/* =====================================================================
   EXPERTOS HVAC LAS VEGAS — Premium landing
   Concepto: "Calor del desierto vs. alivio fresco".
   Sistema de color OKLCH, profundidad por capas, glass con intención.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
    /* Base nocturna tintada hacia azul */
    --bg-0: oklch(0.16 0.035 252);
    --bg-1: oklch(0.20 0.045 254);
    --surface: oklch(0.23 0.05 255 / 0.55);
    --surface-solid: oklch(0.24 0.05 255);
    --line: oklch(0.72 0.05 250 / 0.16);
    --line-strong: oklch(0.78 0.08 235 / 0.34);

    /* Frío / hielo */
    --ice: oklch(0.86 0.11 215);
    --cyan: oklch(0.78 0.14 220);
    --blue: oklch(0.64 0.17 250);
    --blue-deep: oklch(0.46 0.15 255);

    /* Calor / acción */
    --warm: oklch(0.74 0.18 52);
    --warm-bright: oklch(0.80 0.17 60);
    --warm-deep: oklch(0.64 0.18 42);

    /* Texto */
    --ink: oklch(0.97 0.012 250);
    --ink-soft: oklch(0.82 0.025 250);
    --ink-mut: oklch(0.68 0.03 252);

    --radius: 22px;
    --radius-sm: 14px;
    --maxw: 1180px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* ease-out-quint */
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

    --shadow-soft: 0 18px 50px -22px oklch(0.10 0.04 255 / 0.85);
    --shadow-pop: 0 30px 70px -30px oklch(0.08 0.04 255 / 0.95);
    --glow-cyan: 0 0 60px -8px oklch(0.78 0.14 220 / 0.55);
    --glow-warm: 0 14px 40px -12px oklch(0.74 0.18 52 / 0.65);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink-soft);
    background: var(--bg-0);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand__text {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.2rem); }

/* ---------- ATMÓSFERA (depth 0/1) ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }

.atmosphere::after { /* viñeta fría */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 80% at 80% -10%, oklch(0.30 0.09 255 / 0.55), transparent 60%),
        radial-gradient(110% 70% at -10% 110%, oklch(0.24 0.07 255 / 0.5), transparent 60%),
        linear-gradient(180deg, var(--bg-0), oklch(0.13 0.03 255));
}

.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.aurora--cold { width: 52vw; height: 52vw; top: -14vw; right: -10vw; background: radial-gradient(circle, var(--blue), transparent 68%); }
.aurora--ice  { width: 40vw; height: 40vw; top: 32vh; left: -12vw; background: radial-gradient(circle, var(--cyan), transparent 66%); opacity: 0.4; }
.aurora--warm { width: 38vw; height: 38vw; bottom: -10vw; right: 8vw; background: radial-gradient(circle, var(--warm), transparent 70%); opacity: 0.30; }

.grain { position: absolute; inset: -50%; opacity: 0.05; mix-blend-mode: overlay;
    background-image: radial-gradient(oklch(1 0 0 / 0.6) 0.5px, transparent 0.6px);
    background-size: 3px 3px; }

/* ---------- UTILIDADES ---------- */
.eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem;
}

.chip {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.5rem 1rem; border-radius: 50px;
    background: oklch(0.78 0.08 220 / 0.10);
    border: 1px solid var(--line-strong);
    font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
    backdrop-filter: blur(8px);
}

.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: oklch(0.82 0.18 145);
    box-shadow: 0 0 0 0 oklch(0.82 0.18 145 / 0.7);
    animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 oklch(0.82 0.18 145 / 0.6); }
    70% { box-shadow: 0 0 0 9px oklch(0.82 0.18 145 / 0); }
    100% { box-shadow: 0 0 0 0 oklch(0.82 0.18 145 / 0); }
}

.stars { color: var(--warm-bright); letter-spacing: 1px; }

/* ---------- BOTONES ---------- */
.btn {
    --btn-bg: var(--surface);
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: 0.55rem; padding: 0.8rem 1.5rem; border: 0; cursor: pointer;
    font-family: inherit; font-size: 0.98rem; font-weight: 600; color: var(--ink);
    border-radius: 50px; letter-spacing: 0.01em;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
    will-change: transform;
}
.btn__icon { display: inline-flex; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--full { width: 100%; }

.btn--call {
    background: linear-gradient(135deg, var(--warm-bright), var(--warm-deep));
    color: oklch(0.18 0.04 50);
    box-shadow: var(--glow-warm);
    font-weight: 700;
}
.btn--call::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, oklch(1 0 0 / 0.4), transparent 40%);
    opacity: 0.6; pointer-events: none;
}
.btn--call:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px oklch(0.74 0.18 52 / 0.8); }

.btn--ghost {
    background: oklch(0.8 0.05 230 / 0.06);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); background: oklch(0.8 0.08 230 / 0.14); border-color: var(--cyan); }

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

/* barrido de luz (sheen) al pasar el mouse — sutil, premium */
.btn { overflow: hidden; }
.btn::before {
    content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
    transform: skewX(-22deg); pointer-events: none; z-index: 1;
    background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.28), transparent);
}
.btn:hover::before { animation: btn-sheen 0.8s var(--ease); }
@keyframes btn-sheen { from { left: -130%; } to { left: 150%; } }
.btn > * { position: relative; z-index: 2; }

/* foco accesible global para enlaces y controles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}

/* ---------- NAV ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    padding: 0.85rem 0;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: oklch(0.16 0.03 255 / 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--line);
    padding: 0.6rem 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__cta { white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    color: var(--cyan);
    background: oklch(0.78 0.1 220 / 0.12);
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 0 18px oklch(0.78 0.14 220 / 0.18);
}
.brand__text { display: flex; flex-direction: column; font-size: 1.02rem; line-height: 1.1; font-weight: 700; }
.brand__text small { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 500; color: var(--ink-mut); letter-spacing: 0.02em; }

.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
    font-size: 0.92rem; color: var(--ink-mut); font-weight: 500; position: relative; padding: 0.3rem 0;
    transition: color 0.3s var(--ease);
}
.nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--cyan); border-radius: 2px; transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
        "lead   visual"
        "copy   visual";
    column-gap: clamp(2rem, 5vw, 4rem); row-gap: 0;
    align-items: center;
}
.hero__lead { grid-area: lead; align-self: end; }
.hero__copy { grid-area: copy; align-self: start; }
.hero__visual { grid-area: visual; align-self: center; }

.hero__title {
    font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; margin: 1.1rem 0 1.3rem;
}
.word-cool {
    color: var(--ice);
    text-shadow: 0 0 30px oklch(0.78 0.14 220 / 0.55);
}
.word-warm {
    position: relative; color: var(--warm-bright); white-space: nowrap;
}
.word-warm::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.34em;
    background: linear-gradient(90deg, oklch(0.74 0.18 52 / 0.45), oklch(0.74 0.18 52 / 0.05));
    border-radius: 6px; z-index: -1;
}

.hero__sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 1.8rem; align-items: center; }
.hero__trust li { display: flex; flex-direction: column; font-size: 0.86rem; color: var(--ink-mut); }
.hero__trust li:first-child { flex-direction: row; align-items: center; gap: 0.5rem; }
.hero__trust strong { font-size: 1.05rem; color: var(--ice); font-family: 'Sora', sans-serif; }

/* ============================================================
   SISTEMA DE PERSONAJE (oso con transparencia real)
   Sin cajas ni fondos: glow + sombra independiente + parallax 3D
   ============================================================ */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 440px; }

.bear-scene {
    position: relative; width: min(92%, 480px); margin: 0 auto;
    perspective: 1100px; transform-style: preserve-3d;
}

/* aura/glow integrado al fondo (depth 1) */
.bear-aura {
    position: absolute; z-index: 1; top: 44%; left: 50%; width: 82%; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, oklch(0.80 0.14 220 / 0.55) 0%, oklch(0.60 0.17 252 / 0.22) 42%, transparent 70%);
    filter: blur(38px); animation: aura-pulse 7s var(--ease) infinite;
}
.bear-aura--cyan { background: radial-gradient(circle, oklch(0.82 0.13 215 / 0.5) 0%, oklch(0.64 0.16 240 / 0.18) 45%, transparent 72%); }
@keyframes aura-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.65; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* sombra de contacto independiente (depth 2) */
.bear-shadow {
    position: absolute; z-index: 2; bottom: 6%; left: 50%; width: 54%; height: 8%;
    transform: translateX(-50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse at center, oklch(0.07 0.03 255 / 0.7), transparent 72%);
    filter: blur(10px); will-change: transform, opacity;
}

/* el oso, protagonista (depth 3) */
.bear-character {
    position: relative; z-index: 3; width: 100%; height: auto; display: block;
    transform-origin: 50% 72%; backface-visibility: hidden;
    filter: drop-shadow(0 26px 26px oklch(0.08 0.03 255 / 0.45));
    transition: filter 0.5s var(--ease);
    animation: bear-idle 6.5s var(--ease-soft) infinite; /* fallback si no hay JS */
    will-change: transform; cursor: pointer;
}
.bear-character.is-live { animation: none; } /* JS toma el control del movimiento */
.bear-scene:hover .bear-character { filter: drop-shadow(0 30px 30px oklch(0.62 0.16 240 / 0.5)); }
video.bear-character { object-fit: contain; background: transparent; }

/* glow coordinado con el hover (brillo, no transform, para no pelear con aura-pulse) */
.bear-aura { transition: filter 0.5s var(--ease); }
.bear-scene.is-hover .bear-aura { filter: blur(34px) saturate(1.35) brightness(1.28); }

@keyframes bear-idle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3.2%) scale(1.014); }
}

/* nieve flotante alrededor del oso */
.snow { position: absolute; inset: -8%; z-index: 4; pointer-events: none; }
.snow i {
    position: absolute; top: -8%; color: oklch(0.97 0.03 220);
    font-size: var(--s, 12px); opacity: var(--o, 0.8);
    animation: snow-fall var(--d, 9s) linear infinite; animation-delay: var(--delay, 0s);
    text-shadow: 0 0 8px oklch(0.85 0.12 220 / 0.6);
}
@keyframes snow-fall {
    0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
    10% { opacity: var(--o, 0.8); }
    100% { transform: translateY(118%) translateX(var(--x, 14px)) rotate(220deg); opacity: 0; }
}

/* tarjeta de clima glass (depth 4) */
.temp-card {
    position: absolute; left: -6%; bottom: 4%; z-index: 6;
    padding: 1rem 1.2rem; min-width: 168px; border-radius: 18px;
    background: oklch(0.20 0.04 255 / 0.55);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: var(--shadow-pop);
    transform: translateZ(110px);
    animation: card-float 7.5s var(--ease-soft) infinite;
}
@keyframes card-float { 0%,100% { transform: translateZ(110px) translateY(0); } 50% { transform: translateZ(110px) translateY(-10px); } }
.temp-card__head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mut); }
.temp-card__value { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1; margin: 0.35rem 0 0.4rem; color: var(--warm-bright); transition: color 0.6s var(--ease); }
.temp-card__msg { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; max-width: 22ch; }

.float-pill {
    position: absolute; right: -4%; top: 8%; z-index: 6;
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 0.95rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600; color: var(--ink);
    background: oklch(0.74 0.18 52 / 0.18); border: 1px solid oklch(0.74 0.18 52 / 0.4);
    backdrop-filter: blur(10px); transform: translateZ(130px);
    animation: card-float 6s var(--ease-soft) infinite reverse;
}
.float-pill__icon { color: var(--warm-bright); }

/* scroll cue */
.scroll-cue {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 16px; display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 0.9rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee__track span { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 600; color: oklch(0.78 0.04 250 / 0.5); white-space: nowrap; }
.marquee__track .dot { color: var(--cyan); font-size: 0.9rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- SECCIONES ---------- */
.section { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section__head { max-width: 620px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 700; }
.section__lead { margin-top: 0.9rem; color: var(--ink-mut); font-size: 1.05rem; }

/* ---------- SERVICIOS (bento) ---------- */
.bento {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "feature feature a" "feature feature b" "c c b";
}
.card {
    position: relative; overflow: hidden; padding: 1.7rem;
    border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
    transform-style: preserve-3d; will-change: transform;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.card--feature { grid-area: feature; padding: 2.2rem; display: flex; flex-direction: column; justify-content: flex-end;
    background:
        radial-gradient(120% 90% at 100% 0%, oklch(0.40 0.12 250 / 0.55), transparent 55%),
        var(--surface);
    min-height: 280px;
}
.bento .card:nth-child(2) { grid-area: a; }
.bento .card:nth-child(3) { grid-area: b; }
.bento .card:nth-child(4) { grid-area: c; }

.card__icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
    background: oklch(0.78 0.1 220 / 0.12); border: 1px solid var(--line-strong); margin-bottom: 1.1rem;
    box-shadow: inset 0 0 20px oklch(0.78 0.14 220 / 0.2);
    transition: transform 0.5s var(--ease);
}
.card:hover .card__icon { transform: translateY(-4px) scale(1.06); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card--feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.card p { font-size: 0.95rem; color: var(--ink-mut); }
.card__tag {
    display: inline-block; margin-top: 1rem; align-self: flex-start; padding: 0.35rem 0.85rem; border-radius: 50px;
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: oklch(0.2 0.04 50);
    background: linear-gradient(135deg, var(--warm-bright), var(--warm-deep));
}
.card__sheen {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), oklch(1 0 0 / 0.10), transparent 60%);
    transition: opacity 0.4s var(--ease);
}
.card:hover .card__sheen { opacity: 1; }

/* Oso técnico dentro de la tarjeta destacada: esquina superior derecha, sin descuadrar */
.card--feature { padding-right: clamp(2.2rem, 16vw, 11rem); }
.card__bear {
    position: absolute; z-index: 2; top: 7%; right: 4%; margin: 0;
    width: clamp(118px, 14vw, 168px); pointer-events: none;
}
.card__bear .bear-aura { filter: blur(26px); }
.card--feature:hover .card__bear .bear-character { filter: drop-shadow(0 18px 20px oklch(0.62 0.16 240 / 0.5)); }

/* ---------- CÓMO FUNCIONA ---------- */
.process__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.process__intro { position: relative; }

/* Oso asomándose: personaje libre, sin caja, con glow + sombra propia */
.bear-scene--window { margin-top: 2.2rem; width: min(74%, 300px); }
.bear-scene--window .bear-aura { top: 50%; width: 86%; }
.bear-scene--window .bear-shadow { bottom: 2%; width: 50%; }
/* Capa de nieve que cae sobre toda la sección "Cómo funciona" */
.process { position: relative; overflow: hidden; }
.process > .container { position: relative; z-index: 1; }
.snow-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.snow-layer i {
    position: absolute; top: -32px; left: 0;
    font-size: var(--s, 14px); line-height: 1; color: oklch(0.98 0.02 220); opacity: 0;
    text-shadow: 0 0 8px oklch(0.88 0.13 220 / 0.8), 0 0 16px oklch(0.80 0.14 230 / 0.45);
    animation: snow-drift var(--d, 12s) linear infinite; animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}
@keyframes snow-drift {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: var(--o, 0.85); }
    90%  { opacity: var(--o, 0.85); }
    100% { transform: translate3d(var(--x, 16px), var(--fall, 680px), 0) rotate(220deg); opacity: 0; }
}

.steps { list-style: none; display: grid; gap: 1rem; }
.step {
    display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 1.5rem;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    backdrop-filter: blur(10px); transition: transform 0.45s var(--ease), border-color 0.4s var(--ease);
}
.step:hover { transform: translateX(6px); border-color: var(--line-strong); }
.step__num {
    font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.4px var(--cyan); flex: none; min-width: 2.4ch;
}
.step__body h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.step__body p { font-size: 0.94rem; color: var(--ink-mut); }

/* ---------- CONFIANZA ---------- */
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.checklist { list-style: none; display: grid; gap: 0.7rem; margin: 1.4rem 0 2rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); font-size: 1.02rem; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 0.05em; width: 1.4rem; height: 1.4rem;
    display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem; font-weight: 700;
    color: oklch(0.18 0.04 220); background: var(--cyan); box-shadow: 0 0 16px oklch(0.78 0.14 220 / 0.5);
}

.trust__cards { display: grid; gap: 1.1rem; }
.quote {
    padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.quote:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.quote__stars { color: var(--warm-bright); letter-spacing: 2px; margin-bottom: 0.6rem; }
.quote blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.55; font-style: italic; }
.quote figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-mut); font-style: normal; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
    padding: 0.5rem 0.95rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
    background: oklch(0.78 0.08 220 / 0.08); border: 1px solid var(--line-strong);
}

/* ---------- LEAD ENGINE / DASHBOARD ---------- */
.dash {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem;
    padding: 1.2rem; border-radius: calc(var(--radius) + 6px);
    background: oklch(0.19 0.04 255 / 0.5); border: 1px solid var(--line); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-pop);
}
.dash__map {
    position: relative; overflow: hidden; min-height: 340px; border-radius: var(--radius);
    background-color: oklch(0.16 0.05 255);
    background-image:
        radial-gradient(120% 120% at 30% 18%, oklch(0.32 0.10 250 / 0.45), transparent 60%),
        linear-gradient(oklch(0.12 0.04 258 / 0.80), oklch(0.15 0.05 255 / 0.86)),
        url('../images/mapa-lasvegas.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal, multiply, normal;
    border: 1px solid var(--line);
}
.map-grid {
    position: absolute; inset: 0; opacity: 0.5;
    background-image:
        linear-gradient(oklch(0.7 0.06 230 / 0.10) 1px, transparent 1px),
        linear-gradient(90deg, oklch(0.7 0.06 230 / 0.10) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 90%);
}
.map-roads { position: absolute; inset: 0; opacity: 0.5; }
.map-roads::before, .map-roads::after {
    content: ""; position: absolute; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.4;
}
.map-roads::before { left: 0; right: 0; top: 52%; height: 2px; }
.map-roads::after { top: 0; bottom: 0; left: 46%; width: 2px; background: linear-gradient(180deg, transparent, var(--cyan), transparent); }

.ping { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.ping span { position: absolute; inset: 0; border-radius: 50%; background: var(--warm-bright); box-shadow: 0 0 14px var(--warm-bright); }
.ping::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--warm-bright);
    animation: ping 2.6s var(--ease) infinite; animation-delay: var(--pd, 0s);
}
.ping:nth-child(4)::before { --pd: 0.6s; }
.ping:nth-child(5)::before { --pd: 1s; }
.ping:nth-child(6)::before { --pd: 1.5s; }
.ping:nth-child(7)::before { --pd: 2s; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.4); opacity: 0; } }
.map-label { position: absolute; transform: translate(-50%, -50%); font-size: 0.74rem; color: var(--ink-soft); font-weight: 600; text-shadow: 0 1px 6px oklch(0.12 0.03 255); pointer-events: none; }

.dash__side { display: grid; gap: 1.1rem; align-content: start; }
.meter { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.86rem; color: var(--ink-mut); }
.meter__head strong { font-family: 'Sora', sans-serif; font-size: 1.3rem; color: var(--ice); }
.meter__bar { height: 8px; border-radius: 50px; background: oklch(0.4 0.06 255 / 0.4); margin: 0.7rem 0 0.5rem; overflow: hidden; }
.meter__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--warm-bright)); transition: width 1.4s var(--ease); }
.meter__hint { font-size: 0.76rem; color: var(--ink-mut); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kpi { padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.kpi__num { font-family: 'Sora', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--ink); }
.kpi__suffix { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--cyan); }
.kpi__label { display: block; font-size: 0.78rem; color: var(--ink-mut); margin-top: 0.2rem; }

.ticker { display: grid; gap: 0.55rem; }
.ticker__item {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 12px;
    background: oklch(0.22 0.04 255 / 0.5); border: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft);
    animation: tick-in 0.5s var(--ease) both;
}
.ticker__item .tick-dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.82 0.18 145); flex: none; }
.ticker__item time { margin-left: auto; font-size: 0.76rem; color: var(--ink-mut); white-space: nowrap; }
@keyframes tick-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- CTA FINAL ---------- */
.cta-final__panel {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 2rem;
    padding: clamp(2rem, 5vw, 3.6rem); border-radius: calc(var(--radius) + 10px);
    background:
        radial-gradient(120% 140% at 100% 0%, oklch(0.46 0.16 50 / 0.55), transparent 55%),
        radial-gradient(120% 140% at 0% 100%, oklch(0.40 0.14 250 / 0.6), transparent 55%),
        oklch(0.20 0.05 255 / 0.7);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop);
}
.cta-final__text h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.8rem; }
.cta-final__text p { color: var(--ink-soft); max-width: 42ch; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 1rem; }
.cta-final__fine { font-size: 0.85rem; color: var(--ink-mut); }

.cta-final__bear { justify-self: center; align-self: end; width: min(100%, 320px); }
.bear-scene--cta .bear-aura { top: 46%; width: 78%; }
.bear-scene--cta .bear-shadow { bottom: 0%; width: 58%; background: radial-gradient(ellipse at center, oklch(0.80 0.15 220 / 0.45), transparent 72%); }

/* ---------- FORMULARIO ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__assure { list-style: none; display: grid; gap: 0.55rem; margin-top: 1.5rem; }
.contact__assure li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-size: 0.96rem; }
.contact__assure li::before { content: "❄"; position: absolute; left: 0; color: var(--cyan); }

.form {
    padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 6px);
    background: var(--surface); border: 1px solid var(--line-strong);
    backdrop-filter: blur(14px); box-shadow: var(--shadow-pop);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: 1.15rem 1rem 0.55rem; font-family: inherit; font-size: 1rem; color: var(--ink);
    background: oklch(0.16 0.03 255 / 0.6); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field select { padding-top: 1.4rem; cursor: pointer; appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-mut) 50%), linear-gradient(135deg, var(--ink-mut) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 120px; padding-top: 1.4rem; }
.field label {
    position: absolute; left: 1rem; top: 0.95rem; font-size: 1rem; color: var(--ink-mut);
    pointer-events: none; transition: all 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); background: oklch(0.18 0.04 255 / 0.8); box-shadow: 0 0 0 4px oklch(0.78 0.14 220 / 0.16); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select + label {
    top: 0.4rem; font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.03em;
}
.form__note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--ink-mut); text-align: center; }

/* ---------- FOOTER ---------- */
.footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; border-top: 1px solid var(--line); background: oklch(0.13 0.03 255 / 0.6); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand strong { display: block; color: var(--ink); }
.footer__brand span { font-size: 0.85rem; color: var(--ink-mut); }
.footer__contact { text-align: right; }
.footer__phone { display: block; font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--ice); }
.footer__contact span { font-size: 0.85rem; color: var(--ink-mut); }
.footer__bar { max-width: var(--maxw); margin: 1.6rem auto 0; padding: 1.2rem clamp(1.1rem, 4vw, 2.2rem) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-mut); }

/* ---------- CALL FAB (móvil) ---------- */
.call-fab {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    display: none; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem; border-radius: 50px; font-weight: 700; color: oklch(0.18 0.04 50);
    background: linear-gradient(135deg, var(--warm-bright), var(--warm-deep)); box-shadow: var(--glow-warm);
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr 1fr; }
    .process__grid, .trust__grid, .contact__grid { grid-template-columns: 1fr; }
    .process__intro { order: -1; }
    .bear-scene--window { margin-inline: auto; }
    .dash { grid-template-columns: 1fr; }
    .nav__links { display: none; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 76px; }
    .hero { padding-top: 1.25rem; text-align: center; }
    .hero__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "lead" "visual" "copy";
        row-gap: 1.4rem;
    }
    .hero__lead, .hero__copy { align-self: auto; }
    .hero__visual { min-height: 300px; }
    .hero__title { margin: 0.6rem 0 0; }
    .hero__sub { margin-inline: auto; margin-top: 1.2rem; }
    .hero__ctas, .hero__trust { justify-content: center; }
    .hero__trust { gap: 1rem 1.4rem; }
    .scroll-cue { display: none; }

    .bento { grid-template-columns: 1fr; grid-template-areas: "feature" "a" "b" "c"; }
    /* en móvil dejamos espacio arriba para que el oso no pise el texto */
    .card--feature { min-height: 320px; padding-right: 2.2rem; padding-top: 8.5rem; justify-content: flex-end; }
    .card__bear { top: 4%; right: 5%; width: clamp(120px, 34vw, 150px); }

    .cta-final__panel { grid-template-columns: 1fr; text-align: center; }
    .cta-final__text p { margin-inline: auto; }
    .cta-final__actions { justify-content: center; }
    .cta-final__bear { order: -1; width: min(72%, 280px); }

    .footer__inner { flex-direction: column; text-align: center; }
    .footer__contact { text-align: center; }

    .call-fab { display: flex; }
    body { padding-bottom: 4.5rem; }
    .nav__cta { padding: 0.6rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 460px) {
    .hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    .hero__ctas .btn { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr; }
    .temp-card { left: 0; min-width: 150px; }
    .brand__text small { display: none; }
}

/* ---------- ACCESIBILIDAD: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    /* Excepción: la nieve es un efecto ambiental sutil y solicitado, se mantiene */
    .snow-layer i {
        animation-name: snow-drift !important;
        animation-duration: var(--d, 12s) !important;
        animation-iteration-count: infinite !important;
        animation-timing-function: linear !important;
    }
}

/* ====================================================================
   FROSTY AI · OSO HVAC IA  (asistente conversacional de leads)
   Glassmorphism frío, glow cyan, mascota integrada. No genérico.
   ==================================================================== */
.frosty { position: fixed; z-index: 95; }

/* ---------- Launcher flotante ---------- */
.frosty-launcher {
    position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 95;
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 1.15rem 0.55rem 0.6rem; border: 1px solid var(--line-strong);
    border-radius: 50px; cursor: pointer; color: var(--ink);
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.95rem;
    background:
        linear-gradient(135deg, oklch(0.30 0.07 245 / 0.92), oklch(0.22 0.06 255 / 0.92));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-pop), var(--glow-cyan);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.frosty-launcher:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-pop), 0 0 70px -6px oklch(0.78 0.14 220 / 0.75); }
.frosty-launcher:active { transform: translateY(-1px) scale(0.99); }
.frosty-launcher__label strong { color: var(--ice); font-weight: 700; }
.frosty-launcher__avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(circle at 50% 35%, oklch(0.82 0.12 215 / 0.55), oklch(0.30 0.08 250 / 0.2) 70%);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.frosty-launcher__avatar img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 6px oklch(0.10 0.04 255 / 0.6)); }
.frosty-launcher__pulse {
    position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px;
    border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; pointer-events: none;
    animation: frostyPulse 3.4s var(--ease) infinite;
}
@keyframes frostyPulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { opacity: 0; }
}
.frosty[data-state="open"] .frosty-launcher { opacity: 0; transform: scale(0.6) translateY(20px); pointer-events: none; }

/* ---------- Panel de chat ---------- */
.frosty-panel {
    position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 130;
    width: min(390px, calc(100vw - 2rem)); height: min(78vh, 640px);
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line-strong); border-radius: 24px;
    background:
        radial-gradient(120% 80% at 100% 0%, oklch(0.30 0.08 230 / 0.35), transparent 60%),
        linear-gradient(180deg, oklch(0.20 0.05 255 / 0.92), oklch(0.16 0.04 255 / 0.96));
    -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
    box-shadow: 0 40px 90px -30px oklch(0.05 0.04 255 / 0.95), var(--glow-cyan);
    transform-origin: bottom right;
    animation: frostyIn 0.5s var(--ease);
}
@keyframes frostyIn {
    from { opacity: 0; transform: translateY(20px) scale(0.94); }
    to { opacity: 1; transform: none; }
}
/* El atributo [hidden] debe ganarle al display:flex del panel */
.frosty-panel[hidden] { display: none !important; }

/* Header */
.frosty-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); background: oklch(0.22 0.05 255 / 0.5); }
.frosty-head__avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; overflow: visible; background: radial-gradient(circle at 50% 35%, oklch(0.82 0.12 215 / 0.5), transparent 70%); }
.frosty-head__avatar img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 6px oklch(0.10 0.04 255 / 0.6)); }
.frosty-head__live { position: absolute; right: -1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: oklch(0.78 0.16 150); box-shadow: 0 0 0 2px oklch(0.18 0.04 255), 0 0 10px oklch(0.78 0.16 150 / 0.9); }
.frosty-head__id { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.frosty-head__id strong { font-family: 'Sora', sans-serif; font-size: 1rem; color: var(--ink); }
.frosty-head__id strong span { color: var(--ink-mut); font-weight: 500; font-size: 0.82rem; }
.frosty-head__status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--ink-mut); }
.frosty-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse-dot 2s ease-in-out infinite; }
.frosty-head__close { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.frosty-head__close:hover { background: oklch(0.30 0.06 255 / 0.6); color: var(--ink); }

/* Log de mensajes */
.frosty-log { flex: 1; overflow-y: auto; padding: 1rem 0.9rem 0.4rem; display: flex; flex-direction: column; gap: 0.7rem; scroll-behavior: smooth; }
.frosty-log::-webkit-scrollbar { width: 8px; }
.frosty-log::-webkit-scrollbar-thumb { background: oklch(0.5 0.06 250 / 0.4); border-radius: 8px; }

.frosty-msg { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 100%; animation: msgIn 0.4s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.frosty-msg__avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, oklch(0.82 0.12 215 / 0.45), transparent 72%); }
.frosty-msg__avatar img { width: 28px; height: 28px; object-fit: contain; }
.frosty-bubble { padding: 0.65rem 0.85rem; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; max-width: 78%; word-wrap: break-word; }
.frosty-msg--bot .frosty-bubble { background: oklch(0.27 0.045 255 / 0.85); color: var(--ink-soft); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.frosty-msg--user { flex-direction: row-reverse; }
.frosty-msg--user .frosty-bubble { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: oklch(0.16 0.04 255); font-weight: 500; border-bottom-right-radius: 5px; box-shadow: var(--glow-cyan); margin-left: auto; }

/* Chips de intención */
.frosty-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.frosty-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.8rem; border-radius: 50px; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
    color: var(--ice); background: oklch(0.30 0.07 230 / 0.5);
    border: 1px solid var(--line-strong); transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.frosty-chip:hover { background: oklch(0.38 0.09 225 / 0.7); transform: translateY(-1px); }

/* Indicador "Frosty está revisando…" */
.frosty-typing { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem 0.4rem; }
.frosty-typing[hidden] { display: none; }
.frosty-typing__avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.frosty-typing__avatar img { width: 24px; height: 24px; object-fit: contain; }
.frosty-typing__bubble { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.8rem; border-radius: 16px; border-bottom-left-radius: 5px; background: oklch(0.27 0.045 255 / 0.85); border: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-mut); }
.frosty-typing__bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: typingDot 1.3s ease-in-out infinite; }
.frosty-typing__bubble i:nth-child(2) { animation-delay: 0.18s; }
.frosty-typing__bubble i:nth-child(3) { animation-delay: 0.36s; }
.frosty-typing__bubble em { margin-left: 0.3rem; font-style: normal; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Input */
.frosty-input { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.8rem 0.3rem; border-top: 1px solid var(--line); }
.frosty-input input { flex: 1; min-width: 0; padding: 0.75rem 0.9rem; border-radius: 14px; border: 1px solid var(--line-strong); background: oklch(0.16 0.035 255 / 0.85); color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.92rem; }
.frosty-input input::placeholder { color: var(--ink-mut); }
.frosty-input input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.frosty-send { width: 44px; height: 44px; flex: 0 0 auto; border: none; border-radius: 13px; cursor: pointer; display: grid; place-items: center; color: oklch(0.16 0.04 255); background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: var(--glow-cyan); transition: transform 0.3s var(--ease), filter 0.3s var(--ease); }
.frosty-send:hover { transform: translateY(-2px); filter: brightness(1.08); }
.frosty-send:active { transform: translateY(0); }
.frosty-disclaimer { text-align: center; font-size: 0.68rem; color: var(--ink-mut); padding: 0.1rem 1rem 0.6rem; margin: 0; }

/* ---------- Frosty responsive ---------- */
@media (max-width: 760px) {
    /* El launcher debe quedar POR ENCIMA de la barra de llamada móvil (.call-fab). */
    .frosty-launcher { right: 1rem; bottom: 5.4rem; padding: 0.5rem 0.55rem; gap: 0; }
    .frosty-launcher__label { display: none; }
    .frosty-launcher__pulse { right: 8px; bottom: 8px; }
    .frosty-panel {
        right: 0.6rem; left: 0.6rem; bottom: 0.6rem; top: auto;
        width: auto; height: min(82vh, 680px);
    }
}
@media (max-width: 380px) {
    .frosty-panel { height: 86vh; }
}
