/* ══════════════════════════════════════════════════════════════
   FlowiLead Landing v7 — "La página es el producto"
   ──────────────────────────────────────────────────────────────
   Se carga DESPUÉS de landing.css + v6 (hereda tokens de v6:
   --flame, --accent, --bg-*, --font-display Bricolage Grotesque).

   Principios v7 (anti landing-genérica-de-IA):
   • UNA animación protagonista por viewport. Sin orbes, sin
     partículas, sin gradientes que griten "template 2023".
   • La venta es mostrar el sistema trabajando: llamada que se
     atiende sola, agenda que se llena, honestidad explícita.
   • Limpieza: más blanco (negro) que tinta; bordes 1px; jerarquía
     por tamaño y espacio, no por color.
   ══════════════════════════════════════════════════════════════ */

/* ── Reveals genéricos ───────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 480ms ease, transform 480ms cubic-bezier(.21,.8,.35,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ══ HERO v7 ═════════════════════════════════════════════════ */

.hero7 {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}
.hero7__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
@media (max-width: 960px) {
    .hero7 { min-height: 0; padding-top: 104px; }
    .hero7__grid { grid-template-columns: 1fr; }
}

.hero7__scene {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero7__scene::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--flame);
}

.hero7__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.6vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.028em;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 22px;
}
.hero7__title em {
    font-style: normal;
    color: var(--flame);
}
.hero7__sub {
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 50ch;
    margin: 0 0 30px;
}
.hero7__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero7__note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── El teléfono / la llamada ────────────────────────────────── */

.call7 {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -32px rgba(0,0,0,.65);
}

/* Estado inicial: llamada entrante */
.call7-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 44px 20px 40px;
    text-align: center;
}
.call7-ring__avatar {
    position: relative;
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--flame-soft);
    color: var(--flame);
    border: 1px solid rgba(255,122,69,.3);
}
.call7-ring__avatar::before,
.call7-ring__avatar::after {
    content: "";
    position: absolute; inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(255,122,69,.4);
    animation: ring7 2.2s ease-out infinite;
}
.call7-ring__avatar::after { animation-delay: 1.1s; }
@keyframes ring7 {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.9); opacity: 0; }
}
.call7-ring__num { font-family: var(--font-mono); font-size: 15px; color: var(--text-primary); }
.call7-ring__lbl { font-size: 12.5px; color: var(--text-muted); margin-top: -10px; }

.call7-answer {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: 99px;
    border: none;
    background: #22C55E;
    color: #06220F;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 8px 28px -8px rgba(34,197,94,.45);
}
.call7-answer:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(34,197,94,.55); }
.call7-answer:focus-visible { outline: 2px solid #22C55E; outline-offset: 3px; }

/* [hidden] SIEMPRE gana: estos componentes tienen display propio (flex)
   y sin esto el atributo hidden no los oculta. */
.call7-ring[hidden], .call7-live[hidden], .call7-replay[hidden] { display: none !important; }

/* En estado idle (sonando) el transcript y su footer no existen visualmente:
   el protagonista es la llamada entrante. Aparecen al atender. */
.call7:not(.call7--active) .call7-transcript,
.call7:not(.call7--active) .call7-footer { display: none; }

/* Barra "en llamada" */
.call7-live {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 12px;
}
.call7-live__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E;
    animation: pulse7 1.6s ease-in-out infinite;
}
@keyframes pulse7 { 50% { opacity: .35; } }
.call7-live__lbl { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.call7-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; margin-left: 2px; }
.call7-wave span {
    width: 2.5px; border-radius: 2px;
    background: #22C55E;
    animation: wave7 1s ease-in-out infinite;
}
.call7-wave span:nth-child(1) { height: 30%; animation-delay: 0ms; }
.call7-wave span:nth-child(2) { height: 75%; animation-delay: 120ms; }
.call7-wave span:nth-child(3) { height: 50%; animation-delay: 240ms; }
.call7-wave span:nth-child(4) { height: 90%; animation-delay: 360ms; }
.call7-wave span:nth-child(5) { height: 40%; animation-delay: 480ms; }
@keyframes wave7 { 50% { transform: scaleY(.4); } }
.call7-timer {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* Transcript */
.call7-transcript {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 320px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 2px;
}
.call7-transcript::-webkit-scrollbar { display: none; }

.call7-bubble {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-primary);
    animation: bubbleIn7 320ms cubic-bezier(.21,.8,.35,1);
}
@keyframes bubbleIn7 {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.call7-bubble__who {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 3px;
    opacity: .7;
}
.call7-bubble__text { display: block; }
.call7-bubble--ai {
    align-self: flex-start;
    background: var(--accent-soft);
    border: 1px solid rgba(139,124,255,.16);
    border-bottom-left-radius: 5px;
}
.call7-bubble--ai .call7-bubble__who { color: var(--accent); }
.call7-bubble--caller {
    align-self: flex-end;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-bottom-right-radius: 5px;
}
.call7-bubble--caller .call7-bubble__who { color: var(--text-muted); }

.call7-typing {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 14px;
    width: max-content;
    animation: bubbleIn7 200ms ease;
}
.call7-typing--ai     { align-self: flex-start; background: var(--accent-soft); }
.call7-typing--caller { align-self: flex-end;   background: var(--bg-hover); }
.call7-typing span {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--text-secondary);
    animation: typing7 1.1s ease-in-out infinite;
}
.call7-typing span:nth-child(2) { animation-delay: 150ms; }
.call7-typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes typing7 { 30% { transform: translateY(-4px); opacity: .5; } }

.call7-event {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin: 4px 0;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #34D399;
    background: rgba(52,211,153,.08);
    border: 1px solid rgba(52,211,153,.28);
    animation: bubbleIn7 320ms ease;
}
.call7-event--wsp { color: #4ADE80; }
.call7-event svg { flex-shrink: 0; }

.call7-replay {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 12px auto 0;
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease;
}
.call7-replay:hover { border-color: var(--flame); color: var(--flame); }
.call7-replay[hidden] { display: none; }
.call7 .call7-footer { display: flex; justify-content: center; }
.call7-caption {
    margin: 12px 4px 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

/* ══ ESCENAS — "Mientras tanto, vos…" ════════════════════════ */

.scenes7 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .scenes7 { grid-template-columns: 1fr; } }

.scene7 {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 24px 24px;
    overflow: hidden;
}
.scene7__when {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--flame);
    display: block;
    margin-bottom: 12px;
}
.scene7__you {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0 0 14px;
}
.scene7__flowi {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 11px;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--flame);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}
.scene7__flowi strong { color: var(--text-primary); font-weight: 650; }
.scene7__flowi svg { flex-shrink: 0; margin-top: 2px; color: var(--flame); }

/* ══ AGENDA FILL ══════════════════════════════════════════════ */

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

.agenda7__panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}
.agenda7__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.agenda7__day {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.agenda7__count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.agenda7__slots { display: flex; flex-direction: column; gap: 8px; }

.agenda7 [data-slot] {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--text-muted);
    font-size: 13.5px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(.21,.8,.35,1);
}
.agenda7 [data-slot].is-in { opacity: 1; transform: none; }
.agenda7 [data-slot].slot--ai { border-left-color: var(--flame); }
.agenda7 [data-slot] .slot-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 42px;
}
.agenda7 [data-slot] .slot-tag {
    margin-left: auto;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--flame);
    background: var(--flame-soft);
    border: 1px solid rgba(255,122,69,.25);
    padding: 2.5px 8px;
    border-radius: 99px;
    white-space: nowrap;
}
@media (max-width: 480px) { .agenda7 [data-slot] .slot-tag { display: none; } }

/* ══ HONESTIDAD — hace / no hace ══════════════════════════════ */

.honest7 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .honest7 { grid-template-columns: 1fr; } }

.honest7__col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
}
.honest7__col--no { background: transparent; border-style: dashed; }
.honest7__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.honest7__col--si .honest7__title { color: var(--text-primary); }
.honest7__col--no .honest7__title { color: var(--text-secondary); }
.honest7__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.honest7__list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.honest7__list li strong { color: var(--text-primary); font-weight: 600; }
.honest7__list li svg { flex-shrink: 0; margin-top: 3px; }
.honest7__col--si li svg { color: #34D399; }
.honest7__col--no li svg { color: var(--text-muted); }
.honest7__foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ══ AUTOMATIZACIONES — 3 cards ═══════════════════════════════ */

.autom7 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
}
@media (max-width: 860px) { .autom7 { grid-template-columns: 1fr; max-width: 480px; } }

.autom7__card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.autom7__card:hover { transform: translateY(-3px); border-color: var(--flame); }

.autom7__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 122, 69, 0.1);
    color: var(--flame);
    margin-bottom: 18px;
}
.autom7__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 12px;
}
.autom7__badge--plus { color: var(--flame); border-color: rgba(255, 122, 69, 0.4); }
.autom7__card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}
.autom7__card p {
    font-size: 14px;
    line-height: 1.62;
    color: var(--text-secondary);
    margin: 0;
}

/* ══ Limpieza global v7 ═══════════════════════════════════════ */

/* El orbe y partículas v5/v6 mueren acá: una animación por viewport. */
.aether-orb, .flow-current__particle { display: none !important; }

.section7-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section7-head .section__eyebrow { display: block; margin-bottom: 14px; }
.section7-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.024em;
    color: var(--text-primary);
    margin: 0 0 16px;
}
.section7-head p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.65; margin: 0; }

/* Calculadora como sección propia */
.calc7-wrap { max-width: 720px; margin: 0 auto; }
.calc7-wrap .demo-simulator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
}

@media (prefers-reduced-motion: reduce) {
    .call7-ring__avatar::before, .call7-ring__avatar::after,
    .call7-live__dot, .call7-wave span { animation: none !important; }
    .call7-bubble, .call7-event { animation: none !important; }
    .agenda7 [data-slot] { transition: none; }
}
