/* =============================================================
   Super Bass — styles.css
   Arquetipo: Glassmorphism Modern (celeste + blancos puros)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6fbff;
  --bg-2:      #eaf5fe;
  --paper:     #ffffff;
  --sky-50:    #f0f8ff;
  --sky-100:   #dcf0fd;
  --sky-200:   #bfe3fb;
  --sky-300:   #8fcdf6;
  --sky-400:   #5bb5ee;
  --accent:    #2593da;
  --accent-2:  #0e6aa8;
  --ink:       #0c2236;
  --ink-soft:  #34506a;
  --ink-mute:  #6d8498;
  --leaf:      #2fae84;
  --line:      rgba(12, 34, 54, 0.09);
  --line-2:    rgba(12, 34, 54, 0.16);

  --glass:        rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px rgba(14, 60, 100, .05), 0 6px 18px -8px rgba(14, 60, 100, .12);
  --shadow-md: 0 2px 4px rgba(14, 60, 100, .04), 0 24px 48px -24px rgba(14, 70, 120, .28);
  --shadow-lg: 0 40px 80px -30px rgba(14, 80, 140, .35);

  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:   "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius:    28px;
  --radius-sm: 16px;
  --gutter:    clamp(20px, 4vw, 48px);
  --maxw:      1240px;
  --nav-h:     76px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--sky-200); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
.kicker {
  padding: .45rem .9rem .45rem .7rem;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  letter-spacing: .08em;
  font-size: .72rem;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 174, 132, .18);
}
.section-title {
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.6rem);
  font-weight: 700;
  margin-top: .9rem;
}
.section-title em { color: var(--accent); font-size: 1.08em; }
.section-lead {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-top: 1.2rem;
}

/* =============================================================
   5. Components
   ============================================================= */
/* --- Buttons --- */
.btn {
  --bg-btn: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 56px; padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s, color .3s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sky-400) 0%, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 18px 36px -14px rgba(37, 147, 218, .75);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 24px 44px -14px rgba(37, 147, 218, .9); }
.btn-ghost {
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #fff; }
.btn-sm { height: 44px; padding: 0 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* --- Glass --- */
.glass {
  background: rgba(255, 255, 255, 0.82); /* fallback sólido */
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
}

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo-word b { font-weight: 800; color: var(--accent); }
.logo-mark {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px;
  width: 34px; height: 34px; border-radius: 11px; padding-bottom: 8px;
  background: linear-gradient(140deg, var(--sky-400), var(--accent-2));
  box-shadow: 0 8px 18px -8px rgba(37, 147, 218, .8);
}
.logo-mark i { display: block; width: 4px; border-radius: 2px; background: #fff; }
.logo-mark i:nth-child(1) { height: 10px; }
.logo-mark i:nth-child(2) { height: 17px; }
.logo-mark i:nth-child(3) { height: 13px; }
.logo:hover .logo-mark i { animation: eqBounce .9s var(--ease-soft) infinite alternate; }
.logo:hover .logo-mark i:nth-child(2) { animation-delay: -.3s; }
.logo:hover .logo-mark i:nth-child(3) { animation-delay: -.6s; }

/* --- EQ bars (motivo "bass") --- */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { display: block; width: 4px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; }
.eq-live { color: var(--accent); }
.eq-live i { animation: eqBounce 1.1s var(--ease-soft) infinite alternate; }
.eq-live i:nth-child(2) { animation-delay: -.25s; }
.eq-live i:nth-child(3) { animation-delay: -.5s; }
.eq-live i:nth-child(4) { animation-delay: -.75s; }
.eq-live i:nth-child(5) { animation-delay: -.95s; }

/* --- Placeholders de imagen (se sustituirán por fotos WebP) --- */
.ph {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.95) 0%, transparent 55%),
    linear-gradient(160deg, var(--sky-100) 0%, var(--sky-50) 55%, #fff 100%);
  border: 1px solid var(--glass-border);
}
.ph::after { /* brillo suave que recorre el placeholder */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: phShine 5.5s var(--ease-soft) infinite;
}
.ph-art { position: absolute; inset: 6% 6% 14%; width: 88%; height: 80%; }
.ph-art * { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art-line   { stroke: rgba(14, 106, 168, .28); stroke-width: 1.5; }
.art-soft   { fill: rgba(255,255,255,.7) !important; stroke: rgba(14, 106, 168, .2); stroke-width: 1.5; }
.art-screen { fill: rgba(37, 147, 218, .14) !important; stroke: rgba(14, 106, 168, .45); stroke-width: 2; }
.art-pitch  { stroke: rgba(14, 106, 168, .35); stroke-width: 1.4; }
.art-bar    { fill: rgba(14, 106, 168, .3) !important; stroke: none; }
.art-sofa   { fill: rgba(143, 205, 246, .3) !important; stroke: rgba(14, 106, 168, .35); stroke-width: 1.6; }
.art-leaf   { fill: rgba(47, 174, 132, .16) !important; stroke: rgba(47, 174, 132, .55); stroke-width: 1.5; }
.ph-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  font-size: .78rem; color: var(--ink-soft); font-weight: 500;
  padding: .55rem .8rem; border-radius: 12px;
  background: rgba(255,255,255,.75); border: 1px solid var(--glass-border);
}
.ph-label span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 4.5s forwards; /* red de seguridad si el JS falla */
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-mark { display: flex; align-items: center; gap: .9rem; color: var(--accent); }
.splash-mark .eq { height: 30px; }
.splash-mark .eq i { width: 5px; animation: eqBounce .8s var(--ease-soft) infinite alternate; }
.splash-mark .eq i:nth-child(2) { animation-delay: -.2s; }
.splash-mark .eq i:nth-child(3) { animation-delay: -.45s; }
.splash-mark .eq i:nth-child(4) { animation-delay: -.65s; }
.splash-word { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--ink); }
html:not(.js) .splash { display: none; }

/* --- Nav --- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  padding-inline: 14px;
  transition: transform .6s var(--ease-out);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  height: 64px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px -18px rgba(14, 70, 120, .35);
  transition: background .4s, box-shadow .4s;
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .nav-inner { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
}
.nav.is-scrolled .nav-inner { background: rgba(255,255,255,.82); box-shadow: 0 16px 40px -20px rgba(14, 70, 120, .45); }
.nav.is-hidden { transform: translateY(-120%); }
.nav-links { position: relative; display: none; gap: .25rem; margin-left: auto; }
.nav-links a {
  position: relative; z-index: 1;
  padding: .55rem .95rem; border-radius: 999px;
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-underline {
  position: absolute; z-index: 0; left: 0; top: 50%;
  height: 38px; width: 0; border-radius: 999px;
  background: var(--sky-100);
  transform: translate(var(--ux, 0), -50%);
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
  background: var(--sky-100);
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile {
  max-width: var(--maxw); margin: 8px auto 0;
  display: grid; gap: 2px; padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.nav-mobile a { padding: .9rem 1rem; border-radius: 14px; font-weight: 600; font-size: 1.05rem; }
.nav-mobile a:hover { background: var(--sky-50); }
.nav.is-open .nav-mobile { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .nav-mobile { display: none; }

/* --- Mesh gradient --- */
.mesh { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mesh span {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: .9;
  animation: meshDrift 26s ease-in-out infinite;
}
.mesh span:nth-child(1) { width: 52vw; height: 52vw; left: -8vw; top: -12vw; background: radial-gradient(circle, #bfe3fb 0%, transparent 68%); }
.mesh span:nth-child(2) { width: 46vw; height: 46vw; right: -10vw; top: 4vw; background: radial-gradient(circle, #9ad3f8 0%, transparent 66%); animation-delay: -9s; animation-duration: 32s; }
.mesh span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -14vw; background: radial-gradient(circle, #e2f3ff 0%, transparent 70%); animation-delay: -16s; animation-duration: 38s; }
.mesh-soft span { opacity: .55; }
.mesh-cta span:nth-child(1) { top: 10%; }

/* --- Hero --- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  display: flex; align-items: center;
  overflow: clip;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 70%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(14, 106, 168, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(3rem, 1.4rem + 7.4vw, 7.4rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line-in { display: inline-block; }
.hero-title em {
  font-size: 1.1em; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--sky-400) 0%, var(--accent) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero-sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.4rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.hero-trust svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 640px; width: 100%; margin-inline: auto; }
.room {
  position: absolute; inset: 6% 4% 4% 4%;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
}
.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.05rem;
  border-radius: 20px;
  font-size: .82rem; line-height: 1.25;
}
.float strong { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -0.02em; }
.float small { display: block; color: var(--ink-mute); font-size: .76rem; }
.float > .bob { display: contents; }
.float-score { top: 0; left: 0; flex-direction: column; align-items: stretch; gap: .35rem; padding: .9rem 1.1rem; min-width: 168px; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e0475b; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-out infinite; }
.score { display: flex; align-items: center; justify-content: space-between; gap: .7rem; font-size: .72rem; font-weight: 700; color: var(--ink-mute); letter-spacing: .06em; }
.score strong { font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; }
.score strong em { font-family: var(--sans); font-style: normal; color: var(--sky-300); }
.minute { font-size: .72rem; font-weight: 600; color: var(--accent-2); }
.float-eq { right: -2%; top: 30%; }
.float-energy { left: -4%; bottom: 14%; }
.badge-energy {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(140deg, var(--sky-400), var(--accent-2));
  box-shadow: 0 8px 18px -8px rgba(37, 147, 218, .8);
}
.float-4k { right: 6%; bottom: 0; flex-direction: column; align-items: flex-start; gap: 0; }

/* animación de flotación (en un wrapper para no pelear con el parallax) */
[data-float] { animation: bob 7s ease-in-out infinite; }
[data-float="2"] { animation-delay: -2s; animation-duration: 8s; }
[data-float="3"] { animation-delay: -4s; animation-duration: 9s; }
[data-float="4"] { animation-delay: -1s; animation-duration: 7.5s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 999px;
  border: 1.5px solid var(--line-2);
  display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 2s var(--ease-out) infinite; }

/* --- Section shared --- */
section { position: relative; }
.sala, .ventajas, .catalogo, .testimonios, .contacto { padding: clamp(88px, 12vw, 160px) 0; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head-split { display: grid; gap: 1.2rem; align-items: end; }
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* --- Sala --- */
.sala { background: var(--paper); border-radius: 48px 48px 0 0; margin-top: -48px; z-index: 1; }
.sala-grid { display: grid; gap: 40px; }
.sala-room { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.hotspot {
  position: absolute; z-index: 3; left: var(--x); top: var(--y);
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 20px -8px rgba(14, 70, 120, .5);
  font-size: .82rem; font-weight: 800; color: var(--accent-2);
  transition: transform .6s var(--ease-bounce), background .4s, color .4s;
}
.hotspot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; transform: scale(.7);
  transition: opacity .4s, transform .6s var(--ease-out);
}
.hotspot.is-active { transform: scale(1.18); background: var(--accent); color: #fff; }
.hotspot.is-active::before { opacity: .45; transform: scale(1); animation: ring 2s ease-out infinite; }
.sala-steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  padding: 28px 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background .6s var(--ease-out), border-color .6s, box-shadow .6s, transform .6s var(--ease-out), opacity .6s;
}
.step-num { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-top: .5rem; }
.step p { margin-top: .7rem; color: var(--ink-soft); }
.step p em { color: var(--accent); font-size: 1.1em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tags li { font-size: .78rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: var(--sky-50); color: var(--accent-2); border: 1px solid var(--sky-100); }
.js .sala-steps .step:not(.is-active) { opacity: .55; }
.step.is-active { background: #fff; border-color: var(--sky-200); box-shadow: var(--shadow-md); }

/* --- Ventajas --- */
.ventajas { isolation: isolate; overflow: clip; background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 30%, var(--bg-2) 100%); }
.bento { display: grid; gap: 16px; }
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.card:hover { box-shadow: 0 2px 4px rgba(14, 60, 100, .04), 0 40px 70px -30px rgba(37, 147, 218, .45); }
.card h3 { font-size: 1.3rem; margin-top: 1.1rem; letter-spacing: -0.025em; }
.card p { margin-top: .55rem; color: var(--ink-soft); font-size: .98rem; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(150deg, #fff, var(--sky-100));
  border: 1px solid #fff;
  box-shadow: 0 10px 22px -12px rgba(37, 147, 218, .6);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-xl .card-icon svg { stroke: var(--leaf); }
.card .big-num { margin-top: 1.4rem; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -0.06em; color: var(--ink); }
.big-num small { font-size: .22em; color: var(--accent); margin-left: .35em; letter-spacing: -0.01em; font-weight: 700; }
.rank-list { display: grid; gap: 10px; margin-top: 1.6rem; }
.rank-list li { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem .9rem; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.rank-list b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .85rem; color: #fff; background: var(--accent); }
.rank-list li:nth-child(2) b { background: var(--sky-400); }
.rank-list li:nth-child(3) b { background: #9fb3c3; }
.rank-list strong { display: block; color: var(--ink); font-size: .95rem; }
.card-wide { display: grid; gap: 0 1.4rem; }
.card-wide h3 { margin-top: 1.1rem; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line-2);
}
.stats > div { padding: 28px 8px 0; display: flex; flex-direction: column-reverse; gap: .35rem; }
.stats dt { font-size: .86rem; color: var(--ink-mute); font-weight: 500; }
.stats dd { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.stats dd small { font-size: .45em; color: var(--accent); font-weight: 700; letter-spacing: -0.02em; }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(56px, 8vw, 96px); }
.cat { display: block; border-radius: var(--radius); }
.ph-cat { aspect-ratio: 4 / 5; border-radius: var(--radius); transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.ph-hero .ph-label { left: auto; right: 18px; top: 18px; bottom: auto; text-align: right; }
.ph-icon { position: absolute; left: 50%; top: 44%; width: 38%; translate: -50% -50%; color: rgba(14, 106, 168, .38); transition: transform .8s var(--ease-out), color .4s; }
.ph-icon * { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cat:hover .ph-icon { transform: scale(1.08); color: var(--accent); }
.ph-cat .ph-label { left: 12px; bottom: 12px; right: 12px; font-size: .72rem; }
.cat-body { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 0; }
.cat h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.cat-arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); color: var(--accent);
  transition: transform .6s var(--ease-out), background .3s, color .3s;
}
.cat:hover .ph-cat { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat:hover .cat-arrow { transform: rotate(-45deg); background: var(--accent); color: #fff; }

/* --- Catálogo de la verdad --- */
.catalogo { background: #fff; }
.compare { display: grid; gap: 16px; align-items: stretch; }
.pick {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 22px 26px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.pick:hover { box-shadow: var(--shadow-md); }
.pick-best { background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); border-color: var(--sky-200); box-shadow: var(--shadow-md); }
.pick-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; min-height: 64px; }
.pick-rank { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.pick-warn .pick-rank { color: var(--ink-mute); }
.seal {
  flex: none; display: grid; place-items: center; text-align: center;
  width: 64px; height: 64px; margin: -6px -4px 0 0;
  font-family: var(--serif); font-size: .74rem; line-height: 1.05; color: #fff;
  background: linear-gradient(150deg, var(--sky-400), var(--accent-2)); border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--sky-200), 0 10px 22px -10px rgba(37, 147, 218, .8);
  transform: rotate(-8deg);
}
.ph-pick { aspect-ratio: 16 / 10; border-radius: 18px; margin-top: .6rem; }
.ph-pick .ph-icon { width: 30%; top: 50%; }
.pick-brand { margin-top: 1.1rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.pick-brand span { color: var(--ink-mute); font-weight: 500; font-size: .85em; }
.pick-type { font-size: .9rem; color: var(--ink-soft); }
.pick-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin-top: 1rem; }
.pick-price strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pick-best .pick-price strong { color: var(--accent-2); }
.stock { font-size: .74rem; font-weight: 600; color: var(--ink-mute); padding: .25rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.stock-yes { color: #1d7a5b; background: #e8f7f1; border-color: #c4ebdc; }
.pick-chains { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .7rem; font-size: .84rem; color: var(--ink-mute); }
.pick-chains s { color: var(--ink-soft); margin-left: .2rem; }
.pick-chains span { margin-left: .2rem; font-style: italic; }
.pick-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; font-weight: 500; }
.pick-specs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: 1rem; }
.pick-specs li { font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.compare-tip { margin-top: 28px; padding: 18px 22px; border-radius: 18px; background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--ink); }
.compare-tip b { color: var(--accent-2); }
.compare-legal { margin-top: 14px; font-size: .78rem; color: var(--ink-mute); max-width: 90ch; }

.truths { margin-top: clamp(64px, 9vw, 112px); }
.truths-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.truths-list { display: grid; gap: 12px; margin-top: 28px; }
.truth { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); }
.truth dt { font-weight: 600; color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(224, 71, 91, .55); text-decoration-thickness: 1.5px; }
.truth dd { margin-top: .5rem; color: var(--ink); font-weight: 500; }
.truth dd::before { content: "La verdad: "; color: var(--accent); font-weight: 700; }

/* --- Testimonios --- */
.testimonios { background: var(--bg-2); }
.testi {
  position: relative; max-width: 940px; margin-inline: auto;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 80px) 32px;
  border-radius: 40px;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}
.testi-quote-mark {
  position: absolute; top: -.18em; left: .25em;
  font-family: var(--serif); font-size: clamp(8rem, 6rem + 8vw, 14rem); line-height: 1;
  color: var(--sky-200); pointer-events: none;
}
.testi-track { position: relative; display: grid; }
.testi-slide { position: relative; }
.testi-slide + .testi-slide { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.js .testi-track { grid-template-areas: "stack"; }
.js .testi-slide {
  grid-area: stack; margin: 0 !important; padding: 0 !important; border: 0 !important;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility .7s;
}
.js .testi-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.testi blockquote {
  position: relative;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.05rem);
  line-height: 1.32; letter-spacing: -0.025em; font-weight: 500;
}
.testi figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }
.testi figcaption strong { display: block; font-size: 1rem; }
.testi figcaption small { display: block; font-size: .86rem; color: var(--ink-mute); }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-weight: 700; font-size: .9rem; color: var(--accent-2);
  background: linear-gradient(150deg, var(--sky-50), var(--sky-200));
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.stars { margin-left: auto; color: #f2b632; letter-spacing: .12em; font-size: 1rem; }
.testi-controls { display: none; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.js .testi-controls { display: flex; }
.round-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff;
  transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease-out);
}
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { position: relative; width: 28px; height: 6px; border-radius: 999px; background: var(--sky-100); overflow: hidden; }
.testi-dots button.is-active { width: 48px; }
.testi-dots button.is-active::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  transform-origin: left; animation: dotFill var(--dur, 7s) linear forwards;
}
.testi.is-paused .testi-dots button.is-active::after { animation-play-state: paused; }
.testi-dots button { transition: width .5s var(--ease-out); }

/* --- Contacto --- */
.contacto { isolation: isolate; overflow: clip; background: linear-gradient(180deg, var(--bg-2) 0%, #fff 100%); }
.contacto-grid { display: grid; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 2.2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; font-weight: 600; }
.contact-list small { display: block; font-size: .76rem; font-weight: 500; color: var(--ink-mute); }
.ci { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ci svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-underline-link] {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
[data-underline-link]:hover { background-size: 100% 1.5px; color: var(--accent); }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 32px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,.8); border: 1px solid var(--line-2);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-bounce);
}
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips label:hover span { transform: translateY(-2px); }
.field-row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: .95rem 1.05rem; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.9);
  font-size: 1rem; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aacbb; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(37, 147, 218, .14); }
.field.is-invalid input { border-color: #e0475b; box-shadow: 0 0 0 4px rgba(224, 71, 91, .12); }
.form-note { font-size: .84rem; color: var(--ink-mute); text-align: center; }
.form-note.is-ok { color: var(--leaf); font-weight: 600; }

/* --- Footer --- */
.footer { padding: 56px 0 40px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; align-items: center; }
.footer-tag { margin-top: .6rem; color: var(--ink-mute); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 500; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .84rem; color: var(--ink-mute); }

/* =============================================================
   7. Effects
   ============================================================= */
/* Reveals: solo se ocultan si hay JS (sin JS todo se ve) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2), .js .cats .reveal:nth-child(2) { transition-delay: .08s; }
.js .bento .reveal:nth-child(3), .js .cats .reveal:nth-child(3) { transition-delay: .16s; }
.js .bento .reveal:nth-child(4), .js .cats .reveal:nth-child(4) { transition-delay: .24s; }
.js .bento .reveal:nth-child(5) { transition-delay: .1s; }
.js .bento .reveal:nth-child(6) { transition-delay: .18s; }

/* Entrada del titular: líneas que suben (CSS puro, se dispara con .is-ready) */
.js .hero-title .line-in { transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
.js.is-ready .hero-title .line-in { transform: none; }
.js.is-ready .hero-title .line:nth-child(2) .line-in { transition-delay: .09s; }
.js.is-ready .hero-title .line:nth-child(3) .line-in { transition-delay: .18s; }
.js .hero-stage { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1.2s var(--ease-out) .25s, transform 1.4s var(--ease-out) .25s; }
.js.is-ready .hero-stage { opacity: 1; transform: none; }
/* seguridad: si .is-ready nunca llega, mostrar igualmente */
.js .hero-title .line-in { animation: forceShow .01s 3.5s forwards; }
.js .hero-stage { animation: forceShowStage .01s 3.5s forwards; }

@keyframes forceShow   { to { transform: none; opacity: 1; } }
@keyframes forceShowStage { to { opacity: 1; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
  66%      { transform: translate3d(-4vw, 6vw, 0) scale(.94); }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes eqBounce { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 71, 91, .55); } 100% { box-shadow: 0 0 0 9px rgba(224, 71, 91, 0); } }
@keyframes ring { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes phShine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 539px) {
  .float { padding: .65rem .8rem; border-radius: 16px; }
  .float-eq { right: -1%; }
  .float-energy { left: -1%; bottom: 24%; }
  .float-4k { display: none; }
  .hotspot { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: .7rem; }
  .ph-sala .ph-label { display: none; }
  .ph-hero .ph-label { top: auto; bottom: 14px; right: 14px; font-size: .68rem; }
  .stars { margin-left: 0; width: 100%; }
}
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-row: span 2; }
  .card-wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding-left: 20px; border-left: 1px solid var(--line); }
  .stats > div:first-child { border-left: 0; padding-left: 0; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .truths-list { grid-template-columns: repeat(2, 1fr); }
  .section-head-split { grid-template-columns: 1.3fr 1fr; }
  .section-head-split .section-lead { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-cta { display: inline-flex; margin-left: .5rem; }
  .nav-toggle, .nav-mobile { display: none; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; }
  .scroll-cue { display: block; }
  .sala-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
  .sala-sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
  .sala-steps { gap: 24px; padding-bottom: 12vh; }
  .step { padding: 36px 36px 38px; }
  .bento { grid-template-columns: 1.25fr 1fr 1fr; }
  .card-xl { grid-row: span 2; }
  .card-wide { grid-column: 1 / -1; }
  .contacto-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .compare { grid-template-columns: 1.08fr 1fr 1fr; }
  .truths-list { grid-template-columns: repeat(3, 1fr); }
  .contacto-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
}
@media (min-width: 1280px) {
  .hero-grid { gap: 72px; }
  .float-eq { right: -6%; }
  .float-energy { left: -8%; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos (bucles largos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh span { animation: none; }
  [data-float] { animation: none; }
  .ph::after { animation: none; }
  .eq-live i { animation-duration: 2.4s; }
}

/* Escalonado de la comparación y verdades */
.js .compare .reveal:nth-child(2), .js .truths-list .reveal:nth-child(2) { transition-delay: .08s; }
.js .compare .reveal:nth-child(3), .js .truths-list .reveal:nth-child(3) { transition-delay: .16s; }
.js .truths-list .reveal:nth-child(5) { transition-delay: .08s; }
.js .truths-list .reveal:nth-child(6) { transition-delay: .16s; }

/* Teléfonos de contacto */
.contact-list li { align-items: flex-start; }
.contact-list li > .ci { margin-top: 2px; }
.phones { display: grid; gap: 6px; margin-top: 2px; }
.phone { display: flex; align-items: center; gap: .7rem; }
.wa {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .22rem .6rem; border-radius: 999px;
  color: #1d7a5b; background: #e8f7f1; border: 1px solid #c4ebdc;
  transition: background .3s, color .3s;
}
.wa:hover { background: #25a46f; color: #fff; border-color: #25a46f; }

/* =============================================================
   Asesor virtual (chat)
   ============================================================= */
.asesor { position: fixed; right: 16px; bottom: 16px; z-index: 200; font-family: var(--sans); }
.asesor-fab {
  display: inline-flex; align-items: center; gap: .65rem;
  height: 56px; padding: 0 1.2rem 0 .55rem; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(135deg, var(--sky-400) 0%, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow: 0 18px 36px -14px rgba(37, 147, 218, .8), 0 1px 0 rgba(255,255,255,.35) inset;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.asesor-fab:hover { transform: translateY(-2px); }
.asesor.is-open .asesor-fab { display: none; }
.asesor-fab-icon, .asesor-avatar {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px;
  width: 42px; height: 42px; border-radius: 50%; padding-bottom: 12px;
  background: rgba(255,255,255,.2);
}
.asesor-fab-icon i, .asesor-avatar i { display: block; width: 4px; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eqBounce 1s var(--ease-soft) infinite alternate; }
.asesor-fab-icon i:nth-child(1), .asesor-avatar i:nth-child(1) { height: 10px; }
.asesor-fab-icon i:nth-child(2), .asesor-avatar i:nth-child(2) { height: 17px; animation-delay: -.3s; }
.asesor-fab-icon i:nth-child(3), .asesor-avatar i:nth-child(3) { height: 13px; animation-delay: -.6s; }

.asesor-panel {
  display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 32px));
  border-radius: 26px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -24px rgba(14, 70, 120, .45);
}
.asesor-panel[hidden] { display: none; }
.asesor-head {
  display: flex; align-items: center; gap: .75rem; padding: 14px 14px 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--sky-400) 0%, var(--accent) 50%, var(--accent-2) 100%);
}
.asesor-avatar { width: 40px; height: 40px; flex: none; }
.asesor-title { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.asesor-sub { font-size: .78rem; opacity: .9; }
.asesor-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: #fff; background: rgba(255,255,255,.18); }
.asesor-close:hover { background: rgba(255,255,255,.3); }
.asesor-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.asesor-msg { max-width: 86%; padding: .7rem .9rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.asesor-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.asesor-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.asesor-msg a { color: var(--accent-2); font-weight: 700; text-decoration: underline; }
.asesor-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.asesor-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-300); animation: typing 1s ease-in-out infinite; }
.asesor-typing i:nth-child(2) { animation-delay: .15s; }
.asesor-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.asesor-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--bg); }
.asesor-quick[hidden] { display: none; }
.asesor-quick button { font-size: .8rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--sky-200); color: var(--accent-2); }
.asesor-quick button:hover { background: var(--sky-50); }
.asesor-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.asesor-form textarea {
  flex: 1; resize: none; max-height: 120px; padding: .7rem .9rem; border-radius: 16px;
  border: 1px solid var(--line-2); font-size: .95rem; line-height: 1.4; background: var(--bg);
}
.asesor-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 147, 218, .15); }
.asesor-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--accent); }
.asesor-send:disabled { opacity: .5; cursor: default; }
.asesor-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.asesor-foot { padding: 0 14px 10px; font-size: .7rem; color: var(--ink-mute); text-align: center; background: #fff; }
.asesor-foot a { color: var(--accent-2); font-weight: 600; }
.asesor-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 539px) {
  .asesor-fab-text { display: none; }
  .asesor-fab { padding: 0 .55rem; width: 56px; justify-content: center; }
  .asesor.is-open { right: 8px; left: 8px; bottom: 8px; }
  .asesor-panel { width: 100%; height: calc(100svh - 16px); }
}
