/* ══════════════════════════════════════════════════════════════
   FlowiLead Landing v6 — "Cálida y seria"
   ──────────────────────────────────────────────────────────────
   Skin premium sobre landing.css (se carga ÚLTIMA y pisa tokens).

   Decisiones de identidad (no genérica):
   • Display: Bricolage Grotesque — geométrica con carácter, nada
     del Inter-bold-everywhere de todo SaaS template.
   • Un solo acento CÁLIDO (flame #FF7A45) para CTAs y momentos de
     acción — rompe el mar de violeta/azul/teal del look 2023.
   • El violeta queda como color de marca secundario (glow, links).
   • Fondo más profundo (#08090F), bordes 1px definidos, glow sutil.
   ══════════════════════════════════════════════════════════════ */

:root {
    /* ── Surfaces: más profundas, más contraste de jerarquía ── */
    --bg-dark: #08090F;
    --bg-surface: #0E1018;
    --bg-card: #12141F;
    --bg-hover: #1A1D2C;
    --border: rgba(235, 238, 248, 0.11);
    --border-subtle: rgba(235, 238, 248, 0.06);

    /* ── Text ── */
    --text-primary: #F4F5FA;
    --text-secondary: #9CA3B8;
    --text-muted: #646B80;

    /* ── Acción (cálido — el color que pide click) ── */
    --flame: #FF7A45;
    --flame-hover: #FF8F62;
    --flame-glow: rgba(255, 122, 69, 0.25);
    --flame-soft: rgba(255, 122, 69, 0.10);

    /* ── Marca (violeta refinado, rol secundario) ── */
    --accent: #8B7CFF;
    --accent-hover: #A395FF;
    --accent-glow: rgba(139, 124, 255, 0.18);
    --accent-soft: rgba(139, 124, 255, 0.09);

    /* ── Tipografía ── */
    --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ── Base ─────────────────────────────────────────────────────── */

body {
    background: var(--bg-dark);
    font-family: var(--font-body);
    /* Textura sutil: evita el "flat vacío" de fondo plano */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 124, 255, 0.07), transparent),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(255, 122, 69, 0.04), transparent);
    background-attachment: fixed;
}

h1, h2, h3,
.hero__title,
.section__title,
.section-header h2 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* ── Hero: más aire, más tamaño, menos ruido ─────────────────── */

.hero__title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.04;
    font-weight: 800;
}

.hero__gradient {
    background: linear-gradient(100deg, var(--flame) 0%, #FFB347 60%, var(--accent) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__badge {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero__subtitle {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 54ch;
}

.hero__trust { color: var(--text-muted); font-size: 13.5px; }

.hero__int-tag {
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* ── Botones: el primario es CÁLIDO (único en la página) ─────── */

.btn--primary {
    background: linear-gradient(180deg, var(--flame) 0%, #F2602E 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #1A0E08;
    font-weight: 650;
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px -8px var(--flame-glow);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn--primary:hover {
    background: linear-gradient(180deg, var(--flame-hover) 0%, var(--flame) 100%);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 32px -8px var(--flame-glow);
}
.btn--primary:active { transform: translateY(0) scale(0.99); }

.btn--outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    transition: border-color 160ms ease, background 160ms ease;
}
.btn--outline:hover { border-color: var(--flame); background: var(--flame-soft); }

.btn:focus-visible {
    outline: 2px solid var(--flame);
    outline-offset: 3px;
}

/* ── Demo panel del hero ─────────────────────────────────────── */

.demo-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 32px 64px -24px rgba(0,0,0,.6);
}

.hero__chip {
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 550;
    transition: all 180ms ease;
    cursor: pointer;
}
.hero__chip.active {
    background: var(--flame-soft);
    border-color: var(--flame);
    color: var(--flame);
}

/* ── CALL DEMO: la transcripción de llamada (estrella) ───────── */

.call-demo { padding: 6px 2px; }

.call-demo__head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 4px 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.call-demo__pulse {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: callPulse 2s infinite;
}
@keyframes callPulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.call-demo__status {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 550;
}
.call-demo__dur {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.call-demo__transcript {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.call-bubble {
    max-width: 88%;
    padding: 9px 13px;
    border-radius: 13px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-primary);
}
.call-bubble__who {
    display: block;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 3px;
    opacity: 0.75;
}
.call-bubble--ai {
    align-self: flex-start;
    background: var(--accent-soft);
    border: 1px solid rgba(139, 124, 255, 0.18);
    border-bottom-left-radius: 4px;
}
.call-bubble--ai .call-bubble__who { color: var(--accent); }
.call-bubble--caller {
    align-self: flex-end;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-bottom-right-radius: 4px;
}
.call-bubble--caller .call-bubble__who { color: var(--text-muted); }

.call-event {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin: 3px 0;
    padding: 7px 13px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #34D399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.call-demo__caption {
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── AGENDA DEMO ─────────────────────────────────────────────── */

.agenda-demo { display: flex; flex-direction: column; gap: 16px; padding: 4px 2px; }
.agenda-demo__day { display: flex; flex-direction: column; gap: 7px; }
.agenda-demo__label {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.agenda-demo__slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--text-muted);
    font-size: 13px;
    color: var(--text-primary);
}
.agenda-demo__slot--ai { border-left-color: var(--flame); }
.agenda-demo__slot--reminder {
    border-left-color: var(--accent);
    color: var(--text-secondary);
    font-size: 12.5px;
}
.agenda-demo__slot .fl-mono,
.agenda-demo__slot span:first-child {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}
.agenda-demo__tag {
    margin-left: auto;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--flame);
    background: var(--flame-soft);
    border: 1px solid rgba(255, 122, 69, 0.25);
    padding: 2.5px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

/* ── Secciones: ritmo más generoso ───────────────────────────── */

.section, .como-funciona, .modules, .pricing, .faq, .contacto {
    padding-top: clamp(72px, 10vw, 130px);
    padding-bottom: clamp(72px, 10vw, 130px);
}

.section__title, .section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.12;
}

.section__eyebrow, .section-tag {
    color: var(--flame);
    font-weight: 650;
    letter-spacing: 0.09em;
}

.grad-text {
    background: linear-gradient(100deg, var(--flame), #FFB347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Pilares ─────────────────────────────────────────────────── */

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 200ms ease, border-color 200ms ease;
}
.pillar:hover { transform: translateY(-3px); border-color: rgba(255, 122, 69, 0.35); }
.pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--flame-soft);
    color: var(--flame);
    border: 1px solid rgba(255, 122, 69, 0.2);
    font-size: 0; /* mata glyphs heredados; solo SVG */
}
.pillar__title { font-family: var(--font-display); font-size: 1.25rem; }

/* ── Sección VOZ (flagship) ──────────────────────────────────── */

.voz-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 900px) { .voz-grid { grid-template-columns: 1fr; } }

.voz-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.voz-list li {
    position: relative;
    padding: 16px 18px 16px 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
}
.voz-list li strong {
    display: block;
    color: var(--text-primary);
    font-weight: 650;
    margin-bottom: 2px;
}
.voz-list li::before {
    content: "";
    position: absolute;
    left: 18px; top: 21px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--flame);
    box-shadow: 0 0 12px var(--flame-glow);
}

.voz-phone { position: relative; display: flex; justify-content: center; padding: 36px 0; }
.voz-phone__ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(340px, 90%);
    height: 100%;
    border-radius: 24px;
    background: radial-gradient(ellipse at center, var(--flame-soft), transparent 70%);
    filter: blur(8px);
}
.voz-phone__card {
    position: relative;
    width: min(340px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    box-shadow: 0 24px 56px -20px rgba(0,0,0,.55);
}
.voz-phone__label {
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.voz-phone__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    font-size: 13.5px;
    color: var(--text-primary);
}
.voz-phone__item svg { color: #34D399; flex-shrink: 0; }
.voz-phone__item--alert { border-color: rgba(255, 122, 69, 0.3); }
.voz-phone__item--alert svg { color: var(--flame); }

/* ── Cards (módulos, pricing, pasos) ─────────────────────────── */

.module-card, .pricing-card, .step, .vs-panel, .faq__item, .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.module-card { transition: transform 180ms ease, border-color 180ms ease; cursor: pointer; }
.module-card:hover { transform: translateY(-2px); border-color: rgba(255, 122, 69, 0.35); }
.module-card__num {
    font-family: var(--font-mono);
    color: var(--flame);
    opacity: 0.9;
}

.pricing-card--featured {
    border-color: rgba(255, 122, 69, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 122, 69, 0.18), 0 24px 56px -24px var(--flame-glow);
}
.pricing-card__badge { background: var(--flame); color: #1A0E08; font-weight: 700; }
.pricing-card--voice { border-color: rgba(139, 124, 255, 0.35); }
.pricing-card__amount { font-family: var(--font-display); font-weight: 800; }
.pricing__save { color: var(--flame); }

.faq__item summary { font-weight: 600; cursor: pointer; }
.faq__item summary:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; border-radius: 6px; }

/* ── CTA final ───────────────────────────────────────────────── */

.cta-section {
    background:
        radial-gradient(ellipse 70% 90% at 50% 110%, rgba(255, 122, 69, 0.13), transparent),
        var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}
.cta-section h2 {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    line-height: 1.1;
}

/* ── Nav ─────────────────────────────────────────────────────── */

.nav { backdrop-filter: blur(14px); background: rgba(8, 9, 15, 0.75); border-bottom: 1px solid var(--border-subtle); }
.nav__link { color: var(--text-secondary); font-weight: 500; transition: color 150ms ease; }
.nav__link:hover { color: var(--text-primary); }
.nav__link:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }

/* ── Accesibilidad ───────────────────────────────────────────── */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--flame);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .call-demo__pulse { animation: none; }
    .aether-orb { display: none; }
}

/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero__title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
    .call-bubble { max-width: 95%; }
    .agenda-demo__tag { display: none; }
    .hero__cta .btn { width: 100%; justify-content: center; }
}
