/* ==========================================================
   homepage.css (Shadcn theme)
   Combined: external homepage.css + inline <style> block
   Colors mapped to CSS custom properties from shadcn-theme.
   ========================================================== */

/* Landing en cyan: corre el tono verde (hue 172.5) del tema hacia verde agua/cyan.
   Solo afecta la homepage porque este archivo se carga después de shadcn-theme.css. */
:root {
    --primary: oklch(0.56 0.115 205);
    --accent: oklch(0.953 0.055 205);
    --accent-foreground: oklch(0.35 0.09 205);
    --ring: oklch(0.56 0.115 205);
}

/* ── Base Styles ────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    /* clip (no hidden): recorta el overflow horizontal sin volver al body un
       contenedor de scroll, lo que romperia el backdrop-filter del header fixed */
    overflow-x: clip;
}

/* Scroll suave a las anclas del header, compensando la navbar fija */
html {
    scroll-behavior: smooth;
}

section[id],
footer[id] {
    scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Zoom 90% en todo menos hero y navbar (el zoom rompe el backdrop-filter del header) */
.stats-section,
.brands-section,
.features-section,
.how-it-works,
.showcase-section,
.pricing-section,
.cta-section,
.footer {
    zoom: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, -webkit-backdrop-filter 0.3s ease,
                backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Al scrollear, el header se vuelve glass (lo agrega el JS) */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    backdrop-filter: blur(18px) saturate(1.8);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

/* Header sobre zonas oscuras (lo agrega el JS): texto/logo claros, glass oscuro */
.navbar.over-dark .nav-brand {
    color: #fff;
}

.navbar.over-dark .nav-brand img {
    filter: brightness(0) invert(1);
}

.navbar.over-dark .nav-links a {
    color: rgba(255, 255, 255, 0.78);
}

.navbar.over-dark .nav-links a:hover {
    color: #fff;
}

.navbar.over-dark.scrolled {
    background: rgba(15, 25, 30, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.navbar.over-dark .btn-cta {
    background: #fff;
    color: #16252c;
}

.navbar.over-dark .btn-cta:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #16252c;
}

.navbar.over-dark .btn-cta--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.nav-brand img {
    transition: filter 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand .hgi-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #17272E;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-cta:hover {
    background: #22383f;
}

/* Variante "ghost" (outline): mismo botón y radio que .btn-cta, solo cambian los colores */
.btn-cta--ghost {
    background: var(--card);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.btn-cta--ghost:hover {
    background: var(--muted);
    border-color: var(--muted-foreground);
}

.btn-large {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(110px, 16vw, 150px) 0 0;
    overflow: hidden;
    text-align: center;
    /* Modo claro (default): blanco arriba (zona del texto) → teal oscuro abajo + líneas verticales sutiles */
    background:
        repeating-linear-gradient(90deg,
            rgba(20, 40, 48, 0.05) 0 1px,
            transparent 1px 46px),
        linear-gradient(180deg,
            #ffffff 0%,
            #f4f6f6 38%,
            #d2dadb 56%,
            #8fa1a6 72%,
            #33545d 88%,
            #13212a 100%);
}

/* Modo oscuro: teal oscuro arriba (texto claro) → fundido oscuro abajo */
html.dark .hero {
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            transparent 1px 46px),
        linear-gradient(180deg,
            #16252c 0%,
            #1b2e35 55%,
            #16252c 100%);
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: oklch(from var(--card) l c h / 0.7);
    border: 1px solid oklch(from var(--foreground) l c h / 0.08);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--foreground);
    backdrop-filter: blur(6px);
    margin-bottom: 28px;
}

.hero-badge-chip {
    padding: 3px 10px;
    /* Misma saturación/lightness que --primary, solo el tono más cyan (hue 192) */
    background: oklch(from var(--primary) l c 192);
    color: var(--primary-foreground);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.1rem, 7vw, 4.25rem);
    font-weight: 600;
    line-height: 1.08;
    color: #262626;
    letter-spacing: -0.01em;
    margin: 0 0 clamp(16px, 2.5vw, 24px);
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    /* 20% más oscuro que --muted-foreground */
    color: oklch(from var(--muted-foreground) calc(l * 0.8) c h);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 0 clamp(22px, 3.5vw, 32px);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
}

.hero-actions .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
}

.hero-footnote {
    color: #1a1a1a;
    opacity: 0.8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-footnote .hgi-icon {
    color: #1a1a1a;
    font-size: 1rem;
}


/* ── Reveal on scroll (stats + cards de features) ─────────── */
.js-reveal .stat-item,
.js-reveal #features .feature-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: opacity, transform;
}

.js-reveal .stat-item.is-visible,
.js-reveal #features .feature-card.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Stats Section ──────────────────────────────────────── */
.stats-section {
    /* Mismo teal oscuro sólido que la sección de features */
    padding: 56px 0 64px;
    background: #13212a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

/* ── Brands Section ─────────────────────────────────────── */
.brands-section {
    padding: 3.75rem 0;
    /* Mismo teal oscuro sólido que features/stats */
    background: #13212a;
    overflow: hidden;
}

/* Logos invertidos a claro para que se vean sobre el fondo oscuro */
.brands-section .brand-item img {
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.6;
}

.brands-section .brands-title {
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2.5rem;
}

.brands-section .brands-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-section .brands-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(2rem, 5vw, 4rem);
    width: max-content;
    animation: scroll-brands 30s linear infinite;
}

.brands-section .brand-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: clamp(3rem, 6vw, 4rem);
    width: clamp(6rem, 12vw, 9rem);
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brands-section .brand-item--wide {
    width: clamp(8rem, 16vw, 12rem);
}

.brands-section .brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brands-section .brand-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brands-section .brand-item--wide img {
    max-height: clamp(3rem, 6vw, 4.5rem);
    max-width: clamp(8rem, 16vw, 12rem);
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-section .brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

/* ── Features Section ───────────────────────────────────── */
.features-section {
    padding: clamp(56px, 9vw, 100px) 0;
    background: var(--muted);
}

.gastro-section {
    background: var(--card);
}

/* ── Showcase: mirá el sistema ──────────────────────────── */
.showcase-section {
    padding: clamp(56px, 9vw, 100px) 0;
    background: var(--muted);
}

.showcase-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 14px;
}

/* ── Bento de features ──────────────────────────────────── */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.bento-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -22px rgba(15, 23, 42, 0.25);
    border-color: oklch(from var(--primary) 0.85 0.06 h);
}

/* Card hero: full width, info + mockup lado a lado */
.bento-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 44px;
    align-items: center;
    padding: clamp(28px, 4vw, 44px);
}

.bento-info { min-width: 0; }

.bento-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 12px;
}

.bento-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.bento-title--sm {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.bento-desc {
    font-size: 1.02rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.bento-desc--sm {
    font-size: 0.9rem;
    line-height: 1.6;
}

.bento-points {
    list-style: none;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.bento-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--foreground);
}

.bento-points .hgi-icon {
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.bento-visual { min-width: 0; }

/* En las cards chicas el mockup va debajo del texto */
.bento-card:not(.bento-hero) .bento-visual {
    padding-top: 20px;
}

/* Mockup dentro del bento: sombra liviana (la card ya da profundidad) */
.bento-visual .shot {
    box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.22);
}

/* Tarjeta base de los mockups */
.shot {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 22px 55px -16px rgba(15, 23, 42, 0.22), 0 4px 14px -8px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

/* Video real dentro del marco .shot (reemplaza al mockup) */
.shot-video {
    display: block;
    width: 100%;
    height: auto;
}

.shot-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--foreground);
}

.shot-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--primary);
    flex-shrink: 0;
}

.shot-dot .hgi-icon { font-size: 1rem; }
.shot-dot.warn { background: #fef3c7; color: #92400e; }
.shot-dot.wa { background: #dcfce7; color: #15803d; }

/* Badge de estado a la derecha del header del mockup */
.shot-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.shot-status.ok { background: #dcfce7; color: #15803d; }
.shot-status .hgi-icon { font-size: 0.85rem; }

.shot-body { padding: 18px; }

/* Mockup: factura procesada + validación AFIP */
.inv-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--muted);
}

.inv-prov { font-weight: 700; color: var(--foreground); font-size: 0.98rem; }
.inv-meta { font-size: 0.78rem; color: var(--muted-foreground); }

.inv-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
}

.inv-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--foreground);
}

.inv-line span:last-child { font-weight: 600; }

.inv-tax {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--muted-foreground);
    padding: 6px 0;
}

.inv-tax b { color: var(--foreground); font-weight: 600; }

.inv-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 11px 14px;
    border-radius: var(--radius);
    background: oklch(from var(--primary) 0.95 0.04 h);
    font-size: 0.9rem;
    color: var(--foreground);
}

.inv-total b { font-size: 1.05rem; color: oklch(from var(--primary) 0.42 0.1 h); }

.inv-afip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.afip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
}

.afip-badge.ok { background: #dcfce7; color: #15803d; }
.afip-badge .hgi-icon { font-size: 0.8rem; }

.afip-score {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: oklch(from var(--primary) 0.95 0.04 h);
    color: oklch(from var(--primary) 0.42 0.1 h);
}

/* Mockup: alerta de precio */
.alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alert-prod {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alert-name { font-weight: 600; color: var(--foreground); font-size: 0.95rem; }
.alert-sub { font-size: 0.8rem; color: var(--muted-foreground); }

.alert-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.alert-delta.up { background: #fee2e2; color: #b91c1c; }
.alert-delta .hgi-icon { font-size: 0.85rem; }

.alert-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.alert-old s { color: var(--muted-foreground); }
.alert-arrow { color: var(--muted-foreground); }
.alert-new { color: #b91c1c; }
.alert-new b { color: #b91c1c; font-weight: 700; }

.alert-diff {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--muted);
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.alert-diff b { color: #b91c1c; }
.alert-diff .hgi-icon { font-size: 0.9rem; color: var(--muted-foreground); }

/* Mockup: comparador */
.cmp-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--muted);
    font-size: 0.85rem;
    color: var(--foreground);
}

.cmp-row span:nth-child(2),
.cmp-row span:nth-child(3) { text-align: right; }

.cmp-head {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
    font-weight: 700;
}

.cmp-best { font-weight: 600; color: var(--foreground); }

.cmp-tag {
    justify-self: end;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.cmp-tag.ok { background: #dcfce7; color: #15803d; }
.cmp-tag.no { background: #fef3c7; color: #92400e; }

.cmp-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 12px 14px;
    background: #ecfdf5;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--foreground);
}

.cmp-foot b { color: #15803d; font-size: 1.15rem; }

/* Mockup: chat WhatsApp */
.chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f0f2f5;
}

.bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bubble.user {
    align-self: flex-end;
    background: #dcf8c6;
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
}

.bubble.bot {
    align-self: flex-start;
    background: var(--card);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.bubble b { font-weight: 700; }

@media (max-width: 992px) {
    .bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    /* Mockup arriba de la info en la card hero en mobile */
    .bento-hero .bento-visual {
        order: -1;
    }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--muted-foreground);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card);
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px oklch(0.527 0.115 205 / 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon .hgi-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    max-width: 260px;
}

/* ── "Todo lo que FacturAI hace por vos": sección oscura con cards con glow
   (estilo referencia, adaptado a los colores del gradiente teal) ───────── */
#features {
    background: #13212a;
    position: relative;
    /* Aire entre las cards y la curva del fondo (altura intermedia) */
    padding-bottom: clamp(88px, 12vw, 140px);
}

/* Divisor curvo: funde la sección oscura con la clara de abajo */
.section-curve {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(38px, 6vw, 70px);
    display: block;
    pointer-events: none;
}

#features .features-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

#features .section-title {
    color: #fff;
}

#features .section-description {
    color: rgba(255, 255, 255, 0.6);
}

#features .feature-card {
    /* Glow teal/cyan en la esquina superior izquierda sobre un teal oscuro */
    background:
        radial-gradient(115% 115% at 0% 0%, rgba(149, 212, 204, 0.10) 0%, transparent 42%),
        #1b2d34;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 26px;
    text-align: left;
    align-items: flex-start;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

#features .feature-card:hover {
    border-color: rgba(149, 212, 204, 0.35);
    box-shadow: none;
    transform: translateY(-3px);
}

#features .feature-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    margin-bottom: 18px;
}

#features .feature-icon .hgi-icon {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.92);
}

#features .feature-title {
    color: #fff;
}

#features .feature-description {
    color: rgba(255, 255, 255, 0.6);
    max-width: none;
}

/* Indicadores del stack de features (solo visibles en el stack mobile) */
#features .features-stack-dots {
    display: none;
}

/* Vertical gastronómico: fila minimalista con divisores e iconos de línea */
.gastro-section .features-grid {
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gastro-section .feature-card {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    align-items: flex-start;
}

.gastro-section .feature-card:first-child {
    border-left: none;
}

.gastro-section .feature-card:hover {
    border-left-color: var(--border);
    box-shadow: none;
}

.gastro-section .feature-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    margin-bottom: 24px;
}

.gastro-section .feature-icon .hgi-icon {
    font-size: 2.25rem;
    color: var(--foreground);
}

.gastro-section .feature-description {
    max-width: none;
}

/* ── How It Works Section ───────────────────────────────── */
.how-it-works {
    padding: clamp(56px, 9vw, 100px) 0;
    background: var(--card);
}

/* Línea de tiempo vertical en zigzag, guiada por una línea central */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

/* Línea central que conecta los pasos */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: var(--border);
    z-index: 0;
}

.step-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 36px;
    position: relative;
    z-index: 1;
}

/* Nodo numerado sobre la línea central */
.step-number {
    grid-column: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: oklch(from var(--primary) l c 192);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 0 0 6px var(--card), 0 0 0 8px var(--border);
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pasos impares a la izquierda, pares a la derecha */
.step-card:nth-child(odd) .step-content {
    grid-column: 1;
    align-items: flex-end;
    text-align: right;
}

.step-card:nth-child(even) .step-content {
    grid-column: 3;
    align-items: flex-start;
    text-align: left;
}

.step-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon .hgi-icon {
    font-size: 1.75rem;
    color: oklch(from var(--primary) l c 192);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foreground);
}

.step-description {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 280px;
}

/* ── Pricing Section - Tabla Comparativa ────────────────── */
.pricing-section {
    padding: clamp(56px, 9vw, 100px) 0;
    background: var(--muted);
}

.pricing-table-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 20px 0 0;
    margin: 0 auto;
}

/* El carrusel de planes solo aparece en mobile (ver media query) */
.plans-carousel,
.plans-dots {
    display: none;
}

.pricing-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: visible;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.pricing-table thead tr th:first-child { border-top-left-radius: var(--radius-xl); }
.pricing-table thead tr th:last-child { border-top-right-radius: var(--radius-xl); }
.pricing-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-xl); }
.pricing-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-xl); }

.pricing-table th,
.pricing-table td {
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--muted);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table .feature-label {
    text-align: left;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.9rem;
    width: 15%;
}

.pricing-table .feature-value {
    color: var(--secondary-foreground);
    font-size: 0.9rem;
}

/* Plan headers */
.plan-header {
    padding: 28px 12px 24px !important;
    vertical-align: top;
    position: relative;
    border-bottom: 1px solid var(--border) !important;
}

/* Plan business destacado: columna en teal oscuro con texto claro */
.plan-header.featured {
    background: #17272E;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* Esquinas inferiores de la columna business → píldora redondeada */
.pricing-table tbody tr:last-child td[data-plan="business"] {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.plan-header.featured .plan-name,
.plan-header.featured .price-amount {
    color: #fff;
}

.plan-header.featured .price-period {
    color: rgba(255, 255, 255, 0.7);
}

.plan-header.featured .btn-table-primary {
    background: #fff;
    color: #17272E;
}

.plan-header.featured .btn-table-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #17272E;
}

.plan-header .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 0.02em;
}

.plan-header .plan-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.plan-header .plan-price {
    margin-bottom: 16px;
}

.plan-header .price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-header .price-period {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.plan-header .plan-cta {
    margin-top: 12px;
}

.btn-table-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-table-primary:hover {
    background: oklch(0.432 0.09 205);
    color: var(--primary-foreground);
}

.btn-table-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--secondary-foreground);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: var(--card);
}

.btn-table-outline:hover {
    background: var(--muted);
    border-color: var(--border);
}

/* Section rows */
.section-header-row td {
    padding: 20px 20px 10px !important;
    border-bottom: none !important;
    background: var(--card);
}

.section-title-cell {
    text-align: left !important;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Checks and X */
.check-yes {
    color: var(--primary);
    font-size: 1.1rem;
}

.check-no {
    color: var(--border);
    font-size: 1.1rem;
}

/* Columna business destacada: celdas oscuras con texto/checks claros */
.pricing-table td[data-plan="business"] {
    background: #17272E;
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.pricing-table td[data-plan="business"] .check-yes {
    color: #fff;
}

.pricing-table td[data-plan="business"] .check-no {
    color: rgba(255, 255, 255, 0.35);
}

/* Responsive table */
@media (max-width: 1200px) {
    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
    }

    .plan-header {
        padding: 20px 8px 18px !important;
    }

    .plan-header .plan-name {
        font-size: 0.9rem;
    }

    .plan-header .price-amount {
        font-size: 1.2rem;
    }

    .plan-header .price-period {
        font-size: 0.7rem;
    }

    .pricing-table .feature-label {
        font-size: 0.8rem;
    }

    .pricing-table .feature-value {
        font-size: 0.8rem;
    }

    .btn-table-primary,
    .btn-table-outline {
        padding: 7px 10px;
        font-size: 0.7rem;
    }
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
    padding: clamp(48px, 7vw, 80px) clamp(16px, 3vw, 24px);
    background: var(--muted);
}

/* Tarjeta redondeada casi full-width con el degradado del banner, sobre el fondo muted de la sección */
.cta-section .container {
    max-width: none;
    margin: 0;
    /* Degradado tomado del banner: menta claro abajo-izquierda → teal oscuro a la derecha */
    background:
        radial-gradient(95% 130% at -5% 115%,
            #D2F1EC 0%,
            rgba(210, 241, 236, 0) 52%),
        linear-gradient(95deg,
            #95D4CC 0%,
            #2F8C82 40%,
            #15414A 74%,
            #112F37 100%);
    border-radius: clamp(16px, 2.5vw, 24px);
    overflow: hidden;
    padding: clamp(56px, 9vw, 90px) clamp(24px, 4vw, 40px);
    position: relative;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.3rem, 6vw, 3.75rem);
    font-weight: 800;
    color: var(--primary-foreground);
    margin-bottom: clamp(14px, 2.5vw, 20px);
    letter-spacing: -0.01em;
}

.cta-description {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: oklch(from var(--primary-foreground) l c h / 0.9);
    margin-bottom: clamp(28px, 4vw, 40px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-section .btn-cta {
    background: var(--card);
    color: var(--foreground);
}

.cta-section .btn-cta .hgi-icon {
    font-size: 1.1em;
    line-height: 1;
}

.cta-section .btn-cta:hover {
    background: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    padding: 48px 0 24px;
    background: var(--muted);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 300px;
    flex-shrink: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 12px;
}

.footer-description {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 56px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-foreground);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary-foreground);
}

/* ── Inline style block (icon visibility, animations, brands mobile) ── */@keyframes fa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.fa-spin { animation: fa-spin 1s linear infinite; }

.brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

.brand-item--wide {
    min-width: 14rem;
}

.brand-item--wide img {
    max-width: 12rem;
}

/* ── Responsive Design ──────────────────────────────────── */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Gastronómico: al apilar en grilla, sin divisores ni marco */
    .gastro-section .features-grid {
        gap: 24px;
        border-top: none;
        border-bottom: none;
    }

    .gastro-section .feature-card,
    .gastro-section .feature-card:first-child {
        border-left: none;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }

    .footer-nav {
        gap: 40px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Brands inline overrides */
    .brands-section {
        padding: 3rem 0 !important;
    }
    .brands-section h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    .brands-track {
        gap: 2rem !important;
    }
    .brand-item {
        height: 4rem !important;
    }
    .brand-item img {
        max-height: 3rem !important;
        max-width: 8rem !important;
    }
    .brand-item--wide {
        min-width: 9rem !important;
    }
    .brand-item--wide img {
        max-width: 8rem !important;
        max-height: 3rem !important;
    }

    /* Planes en mobile: carrusel de cards swipeable a ambos lados (scroll-snap) */
    .pricing-table-wrapper {
        overflow-x: visible;
        padding: 0;
    }

    .pricing-table {
        display: none;
    }

    /* Carrusel de foco central: la card activa va grande y centrada,
       las vecinas asoman más chicas y atenuadas. JS fija --off (posición),
       --dist (distancia topeada al centro) y la altura del contenedor. */
    .plans-carousel {
        display: block;
        position: relative;
        overflow: hidden;
        margin: 0 -16px;
    }

    .plan-card {
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 50%;
        width: 76%;
        display: flex;
        flex-direction: column;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        overflow: hidden;
        cursor: pointer;
        transform: translateX(calc(-50% + var(--off, 0) * 78%)) scale(calc(1 - var(--dist, 0) * 0.16));
        filter: brightness(calc(1 - var(--dist, 0) * 0.4));
        transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
        will-change: transform, filter;
    }

    .plan-card.featured {
        border: 2px solid #17272E;
    }

    .plan-card.is-active {
        filter: none;
        box-shadow: 0 18px 40px rgba(15, 30, 35, 0.22);
        cursor: default;
    }

    .plans-dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 22px;
    }

    .plans-dots .plan-dot {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: rgba(15, 30, 35, 0.18);
        transition: width 0.3s ease, background 0.3s ease;
    }

    .plans-dots .plan-dot.active {
        width: 22px;
        background: #17272E;
    }

    .plan-card-head {
        text-align: center;
        flex-shrink: 0;
    }

    .plan-card .popular-badge {
        position: static;
        display: inline-block;
        margin: 0 auto 12px;
    }

    .plan-card .plan-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .plan-card .price-amount {
        font-size: 1.9rem;
    }

    .plan-card .plan-cta {
        margin-top: 16px;
    }

    .plan-card-body {
        padding: 20px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .detail-section {
        margin-bottom: 20px;
    }

    .detail-section:last-child {
        margin-bottom: 0;
    }

    .detail-section-title {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--muted-foreground);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--muted);
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--muted);
        font-size: 0.9rem;
    }

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-label {
        color: var(--secondary-foreground);
        font-weight: 500;
    }

    .detail-value {
        color: var(--foreground);
        font-weight: 600;
    }

    .detail-value .check-yes { font-size: 1.1rem; }
    .detail-value .check-no { font-size: 1.1rem; }

    .hero {
        min-height: 88vh;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-cta {
        width: 100%;
        justify-content: center;
    }

    /* Stats 2 columns - 20% larger */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 40px;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Brands responsive */
    .brands-section {
        padding: 2.5rem 0;
    }

    .brands-section .brands-track {
        animation-duration: 20s;
    }

    /* Features 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .feature-icon .hgi-icon {
        font-size: 1.3rem;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .feature-description {
        font-size: 0.85rem;
        line-height: 1.5;
        max-width: none;
    }

    /* Features en mobile: stack de cards que rota solo (la lógica está en el JS) */
    #features .features-grid.is-stack {
        display: block;
        position: relative;
        height: clamp(290px, 90vw, 360px);
        max-width: 420px;
        margin: 0 auto;
    }

    #features .features-grid.is-stack .feature-card {
        /* Profundidad visible topeada a 3 capas; cards siempre opacas (sin fundido) */
        --d: min(var(--i, 0), 3);
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transform-origin: center top;
        transform: translateY(calc(var(--d) * -16px)) scale(calc(1 - var(--d) * 0.05));
        filter: brightness(calc(1 - var(--d) * 0.12));
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s ease;
        touch-action: pan-x;
        will-change: transform, filter;
    }

    #features .features-stack-dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 20px;
    }

    #features .features-stack-dots .stack-dot {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        transition: width 0.3s ease, background 0.3s ease;
    }

    #features .features-stack-dots .stack-dot.active {
        width: 22px;
        background: rgba(255, 255, 255, 0.85);
    }

    /* Steps 2 columns */
    /* Timeline de una columna con la línea a la izquierda */
    .steps-grid {
        gap: 32px;
    }

    .steps-grid::before {
        left: 20px;
    }

    .step-card {
        grid-template-columns: auto 1fr;
        column-gap: 20px;
    }

    .step-number {
        grid-column: 1;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-card:nth-child(odd) .step-content,
    .step-card:nth-child(even) .step-content {
        grid-column: 2;
        align-items: flex-start;
        text-align: left;
    }

    .step-icon .hgi-icon {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .step-description {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .footer-grid {
        flex-direction: column;
        gap: 24px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: space-between;
        gap: 32px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-cta {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    /* Navbar compact buttons */
    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-cta {
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .btn-large {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .steps-grid {
        gap: 28px;
    }

    .step-description {
        max-width: none;
    }

    /* Features single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    /* Planes: card del carrusel un poco más ancha en pantallas chicas */
    .plan-card {
        width: 82%;
    }

}

/* ══════════════════════════════════════════════════════════════
   Toggle de tema (botón flotante abajo) + MODO OSCURO (html.dark)
   ══════════════════════════════════════════════════════════════ */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Luna en modo claro, sol en modo oscuro */
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }

/* Oculto por ahora — borrar esta regla para reactivar el toggle de tema */
.theme-toggle { display: none; }

/* Header glass oscuro */
html.dark .navbar.scrolled {
    background: rgba(15, 25, 30, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Logo del header: invertido a claro para que se vea sobre el fondo oscuro */
html.dark .nav-brand img {
    filter: brightness(0) invert(1);
}

/* Botón sólido: en oscuro el teal #17272E se mezcla con el fondo → cyan de marca */
html.dark .btn-cta {
    background: var(--primary);
    color: #0d1519;
}

html.dark .btn-cta:hover {
    background: oklch(from var(--primary) calc(l + 0.05) c h);
}

/* El botón del CTA queda blanco sobre la tarjeta cyan (no cyan) */
html.dark .cta-section .btn-cta {
    background: #fff;
    color: #16252c;
}

/* Stats y Marcas ya son oscuros (#13212a) en ambos modos, sin overrides extra */
