/* ============================================================
   COMFORT MEDCARE · site.css
   Colores tomados del sitio original (--dark, --gold, --blush…)
   ============================================================ */

@font-face {
  font-family: "Lexend"; src: url("../assets/fonts/lexend-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --ink: #0D1929;
  --ink-2: #122238;
  --blue: #1A5FAD;
  --blue-light: #3A80CC;
  --blue-dark: #0F3F80;
  --cyan: #8CD7F3;      /* celeste del logo */
  --sky: #BAD4EE;
  --pale: #E5F0FC;
  --cream: #F5F8FC;
  --line: #DCE6F0;
  --text: #0D1929;
  --text-2: #2E4A6A;
  --white: #fff;

  --display: "Lexend", Verdana, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --r: 30px;
  --r-s: 18px;
  --gutter: 24px;
  --sec: clamp(88px, 10vw, 144px);
  --nav-h: 86px;
  --bar: 0px;           /* alto de la barra del navegador en móvil */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@supports (height: 100lvh) { :root { --bar: calc(100lvh - 100svh); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .round:focus-visible { border-radius: 100px; }

html[lang="en"] .t-es, html[lang="es"] .t-en { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 100px; }
.skip:focus { top: 16px; }

.wrap { width: min(1224px, 100% - var(--gutter) * 2); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Tipografía ───────────────────────────────────────────── */
.h1, .h2, .h3, .h-mid { font-family: var(--display); text-wrap: balance; }
.h1 { font-weight: 400; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.12; letter-spacing: -.028em; }
.h2 { font-weight: 300; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.1; letter-spacing: -.032em; }
.h-mid { font-weight: 300; font-size: clamp(30px, 3.05vw, 44px); line-height: 1.14; letter-spacing: -.028em; }
.h3 { font-weight: 500; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.2; letter-spacing: -.02em; }
.lead { font-weight: 300; font-size: clamp(18px, 1.75vw, 24px); line-height: 1.42; letter-spacing: -.01em; text-wrap: pretty; }
.lead b { font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; line-height: 20px; color: var(--blue); }
.eyebrow .ic { font-size: 20px; stroke-width: 1.7; }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 30px; border-radius: 100px; border: 1px solid transparent;
  font: 400 16px/18px var(--display); letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost { border-color: rgb(255 255 255 / .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--ink); border-color: var(--ink); }
.btn .ic { font-size: 18px; stroke-width: 1.8; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.more {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 12px;
  border-bottom: 1px solid currentColor; font-size: 16px; line-height: 20px;
}
.more .ic { font-size: 20px; stroke-width: 1.5; transition: transform .35s var(--ease); }
.more:hover .ic { transform: translateX(5px); }
.round {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid currentColor; transition: background-color .25s, color .25s, border-color .25s;
}
.round .ic { font-size: 20px; stroke-width: 1.5; }
.round:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.round:disabled { opacity: .35; cursor: default; }

/* ── Navegación ───────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; color: #fff;
  background: rgb(6 13 24 / .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .5s var(--ease), background-color .3s;
}
.nav.is-hidden:not(:focus-within):not(.is-open) { transform: translateY(-102%); }
.nav-in { display: flex; align-items: center; height: var(--nav-h); padding-inline: clamp(20px, 4.2vw, 60px) 20px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 22px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.brand img { width: 42px; height: auto; }
.brand span span { font-weight: 300; color: var(--cyan); }
.menu { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.menu > a, .menu > .drop > button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: var(--nav-h);
  font: 300 16px/1 var(--display); letter-spacing: -.01em; white-space: nowrap;
}
.menu > a::after, .menu > .drop > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.menu > a:hover::after, .menu > .drop:hover > button::after, .menu > .drop > button[aria-expanded="true"]::after { transform: scaleX(1); }
.menu [aria-current="page"] { font-weight: 600; }
.drop .ic { font-size: 16px; transition: transform .3s; }
.drop:hover > button .ic, .drop > button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 100px;
  font: 400 14px/1 var(--display); transition: background-color .2s;
}
.lang:hover { background: rgb(255 255 255 / .12); }
.lang .ic { font-size: 18px; stroke-width: 1.6; }
.nav .burger { display: none; width: 48px; height: 48px; border-radius: 50%; place-items: center; }
.burger span { grid-area: 1 / 1; width: 22px; height: 1.8px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.is-open .burger span:first-child { transform: rotate(45deg); }
.is-open .burger span:last-child { transform: rotate(-45deg); }

.mega {
  position: absolute; top: var(--nav-h); right: 20px; width: min(1187px, 100% - 40px);
  display: grid; grid-template-columns: 1fr 392px; overflow: hidden; border-radius: 0 0 var(--r) var(--r);
  background: #fff; color: var(--text); box-shadow: 0 30px 70px rgb(6 13 24 / .28);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .4s var(--ease), visibility .25s;
}
.drop:hover .mega, .drop:focus-within .mega, .drop > button[aria-expanded="true"] + .mega { opacity: 1; visibility: visible; transform: none; }
.mega.is-closed { opacity: 0 !important; visibility: hidden !important; }
.mega h3 { margin-bottom: 22px; font: 300 16px/20px var(--display); color: var(--blue); }
.mega-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 40px; padding: 56px 40px 52px 64px; }
.mega-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.mega-cat { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: start; }
.mega-cat .tile { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--cream); color: var(--blue); font-size: 22px; transition: background-color .25s, color .25s; }
.mega-cat:hover .tile { background: var(--blue); color: #fff; }
.mega-cat strong { display: block; font: 400 17px/1.3 var(--display); letter-spacing: -.01em; }
.mega-cat small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: #5b7592; }
.mega-list { display: grid; gap: 20px; font-size: 16px; line-height: 1.3; }
.mega-list a:hover { color: var(--blue); }
.mega-side { padding: 56px 40px; box-shadow: inset 14px 0 18px -14px rgb(6 13 24 / .16); }
.mega-card { position: relative; display: block; overflow: hidden; border-radius: 12px; padding: 24px; min-height: 196px; color: #fff; background: var(--ink) url("../assets/img/hero-poster.jpg") 78% 50% / cover; }
.mega-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 25 41 / .25), rgb(13 25 41 / .86)); }
.mega-card > * { position: relative; }
.mega-card strong { display: block; margin-top: 50px; font: 300 23px/1.15 var(--display); letter-spacing: -.02em; }
.mega-card span { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--cyan); }

/* Menú claro (Servicios) */
.light .nav { color: var(--ink); background: rgb(255 255 255 / .95); box-shadow: 0 4px 26px rgb(13 25 41 / .07); }
.light .nav .brand span span { color: var(--blue); }
.light .nav .btn-white { background: var(--blue); border-color: var(--blue); color: #fff; }
.light .nav .btn-white:hover { background: var(--ink); border-color: var(--ink); }
.light .nav .lang:hover { background: var(--pale); }
.light .nav.is-open { color: #fff; background: var(--ink); }
.light .nav.is-open .brand span span { color: var(--cyan); }
.light .nav.is-open .lang:hover { background: rgb(255 255 255 / .12); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-a { position: relative; height: 380vh; background: var(--ink); color: #fff; }
/* 100vh = pantalla completa sin la barra del móvil: el video nunca deja una franja vacía abajo */
.stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; }
.stage > video, .stage > .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgb(8 16 28 / .62) 0%, rgb(8 16 28 / .28) 46%, transparent 70%),
  linear-gradient(0deg, rgb(8 16 28 / .86) 0%, rgb(8 16 28 / .30) 20%, transparent 36%); }
.hero-copy { position: relative; height: 100%; }
.hero-copy > * { position: absolute; left: 0; }
.manifesto {
  top: 50%; width: min(800px, 100%); margin-top: -172px;
  font: 400 clamp(29px, 2.9vw, 42px)/1.28 var(--display); letter-spacing: -.02em;
}
.manifesto .w { opacity: .36; }
.manifesto .w.brandword { opacity: 1; font-weight: 500; }
.hero-cta { top: 50%; width: min(860px, 100%); margin-top: -186px; opacity: 0; }
.hero-cta .sub { margin-top: 16px; font: 300 clamp(19px, 2vw, 29px)/1.35 var(--display); letter-spacing: -.015em; }
.hero-cta .btns { margin-top: 46px; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(168px + var(--bar)); width: 30px; height: 50px; margin-left: -15px; border: 1.5px solid #fff; border-radius: 20px; display: grid; place-items: center; }
.scroll-cue .ic { font-size: 18px; stroke-width: 1.4; animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-9px); opacity: 0; } 45%, 60% { transform: none; opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }

.ticker { position: absolute; inset: auto 0 var(--bar); padding: 30px 0 42px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.track { display: flex; width: max-content; animation: slide 52s linear infinite; }
.track.rev { animation-direction: reverse; }
.track ul { display: flex; flex: none; align-items: center; }
.ticker li { display: flex; align-items: center; gap: 12px; margin-right: 78px; font: 500 21px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.ticker li .ic { font-size: 25px; stroke-width: 1.7; }
@keyframes slide { to { transform: translateX(-50%); } }
.vid-toggle { position: absolute; right: 24px; bottom: calc(112px + var(--bar)); z-index: 3; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .5); border-radius: 50%; display: grid; place-items: center; transition: background-color .2s; }
.film-sec .vid-toggle { right: 64px; bottom: calc(52px + var(--bar)); color: #fff; }
.vid-toggle:hover { background: rgb(255 255 255 / .16); }
.vid-toggle .ic { font-size: 17px; }
.vid-toggle .i-play, .is-paused .vid-toggle .i-pause { display: none; }
.is-paused .vid-toggle .i-play { display: block; }
.is-paused .track { animation-play-state: paused; }

/* ── Panel de video que se encoge ─────────────────────────── */
.film-sec { position: relative; z-index: 2; height: 200vh; margin-top: -100vh; background: rgb(255 255 255 / var(--k, 0)); }
.film-sec.solo { margin-top: 0; background: none; }
.film { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--ink); clip-path: inset(var(--iy, 0px) var(--ix, 0px) round var(--r)); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.08)); }
/* La misma imagen inicial queda detrás del video: si el navegador aún no tiene un cuadro listo, no se ve el fondo vacío */
.stage video { background: 50% / cover no-repeat; }
/* Sin el botón de «play» que pone iPhone cuando bloquea el arranque automático */
.stage video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-a video { background-image: url("../assets/img/hero-poster.jpg"); }
@media (max-width: 767px) and (orientation: portrait) { .hero-a video { background-image: url("../assets/img/hero-poster-mobile.jpg"); } }
.film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgb(8 22 48 / .42), rgb(8 22 48 / .10)); }
.film.deep::after { background: rgb(8 16 28 / .42); }
.film > :not(video) { position: relative; z-index: 1; }
.film .disc { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: #fff; color: var(--blue); font-size: 40px; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.film .disc .ic { stroke-width: 1.6; }
.film:hover .disc { transform: scale(1.08); background: var(--blue); color: #fff; }
.film h2 { width: min(760px, 100vw - 72px); margin-top: 42px; font: 600 clamp(32px, 3.6vw, 52px)/1.12 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.film p { margin-top: 26px; font-size: 17px; }

/* ── Encabezados de sección ───────────────────────────────── */
.sec { padding-block: var(--sec); }
.head-c { text-align: center; display: grid; justify-items: center; }
.head-c .eyebrow { margin-bottom: 20px; }
.head-c .h2 { max-width: 900px; }
.head-c .lead { max-width: 820px; margin-top: 22px; }
.head-c .btns { margin-top: 30px; justify-content: center; }
.head-s { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 72px; }
.head-s .eyebrow { margin-bottom: 20px; }
.head-s .h-mid { max-width: 860px; }

/* ── Retrato que se expande ───────────────────────────────── */
.portrait { height: 250vh; }
.portrait .stage { background: #fff; }
.portrait .frame { position: absolute; inset: 0; overflow: hidden; background: #070d17; color: #fff; clip-path: inset(var(--iy, 22px) var(--ix, 36px) round var(--r)); }
.portrait img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.04); transform: translateX(var(--tx, 0)); }
.portrait .shade { position: absolute; inset: 0; opacity: var(--s, 0); background: linear-gradient(90deg, rgb(7 13 23 / .04) 0%, rgb(7 13 23 / .12) 28%, rgb(7 13 23 / .62) 43%, rgb(7 13 23 / .96) 56%, #070d17 72%); }
.portrait .say { position: absolute; left: 52%; top: 50%; width: min(540px, 42%); transform: translateY(calc(-50% + var(--ty, 40px))); opacity: var(--o, 0); }
.portrait .role { margin: 16px 0 24px; font: 400 17px/1.4 var(--display); color: var(--cyan); }
.portrait .say .lead { margin-bottom: 34px; }

/* ── Tarjetas con borde ───────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 84px; }
.pillar { display: flex; flex-direction: column; min-height: 530px; padding: 44px 42px 54px; border: 1px solid #c9d7e6; border-radius: var(--r-s); transition: border-color .3s, background-color .3s; }
.pillar:hover { border-color: var(--blue); background: var(--cream); }
.pillar > .ic { font-size: 82px; stroke-width: 1.9; color: var(--blue); margin-left: -4px; }
.pillar .h3 { margin-top: auto; padding-top: 40px; }
.pillar p { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--text-2); min-height: 6em; }

/* ── Carrusel ─────────────────────────────────────────────── */
.slider { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: max(var(--gutter), (100vw - 1224px) / 2); padding-inline: max(var(--gutter), (100vw - 1224px) / 2); }
.slider::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 min(392px, 82vw); height: 462px; overflow: hidden; scroll-snap-align: start; border-radius: var(--r); padding: 60px 40px 46px; display: flex; flex-direction: column; }
.slide.photo { padding: 0; }
.slide.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.slide.photo figcaption { position: absolute; inset: auto 0 0; padding: 90px 32px 30px; color: #fff; font-size: 16px; line-height: 1.45; background: linear-gradient(0deg, rgb(13 25 41 / .86), transparent); }
.slide.stat { background: var(--blue); color: #fff; }
.slide.stat.dark { background: var(--ink); }
.slide.stat::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 460px; height: 460px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 20px, rgb(255 255 255 / .26) 20px 21px); }
.slide .num { font: 300 46px/1 var(--display); letter-spacing: -.03em; }
.slide .big { margin-top: 44px; font: 300 clamp(30px, 2.9vw, 41px)/1.2 var(--display); letter-spacing: -.03em; }
.slide .cap { margin-top: auto; font: 500 12px/1.4 var(--display); letter-spacing: .02em; text-transform: uppercase; position: relative; z-index: 1; }
.slide.quote { background: var(--sky); }
.slide.quote.alt { background: var(--pale); }
.slide.quote.sky { background: var(--cyan); }
.slide blockquote { font-size: 20px; line-height: 1.5; letter-spacing: -.01em; }
.slide .who { margin-top: auto; }
.slide .who strong { display: block; font: 600 16px/1.4 var(--display); letter-spacing: .13em; text-transform: uppercase; }
.slide .who span { font-size: 15px; color: var(--text-2); }
.slider-nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; color: var(--ink); }

/* ── Teléfono ─────────────────────────────────────────────── */
.phone-sec { position: relative; overflow: hidden; border-radius: var(--r); background: var(--cream); padding-top: 136px; }
.phone-stage { position: relative; height: 690px; margin-top: 84px; }
.tiles { position: absolute; inset: 126px 0 auto; display: grid; gap: 44px; -webkit-mask: linear-gradient(90deg, transparent 2%, #000 12%, #000 88%, transparent 98%); mask: linear-gradient(90deg, transparent 2%, #000 12%, #000 88%, transparent 98%); }
.tiles .track { animation-duration: 60s; }
.tiles li { display: grid; place-items: center; width: 156px; height: 156px; margin-right: 44px; border: 1.5px solid #2b4666; border-radius: 36px; background: #fff; color: var(--blue); font-size: 66px; }
.tiles li .ic { stroke-width: 1.5; }
.tiles li:nth-child(3n) { color: var(--blue-light); }
.tiles li:nth-child(4n) { color: var(--ink); }
.phone { position: absolute; left: 50%; top: var(--py, 60px); width: 400px; height: 820px; margin-left: -200px; padding: 16px; border-radius: 66px; background: #060b13; box-shadow: 0 0 0 2px #51647c, 0 30px 80px rgb(13 25 41 / .34), 0 0 140px rgb(13 25 41 / .18); }
.screen { height: 100%; overflow: hidden; border-radius: 51px; background: #f1f5fa; color: var(--ink); }
.scr-top { position: relative; padding: 16px 16px 14px; text-align: center; color: #fff; background: var(--ink-2); background-image: radial-gradient(circle at 78% 8%, rgb(58 128 204 / .6), transparent 56%), linear-gradient(rgb(140 215 243 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(140 215 243 / .07) 1px, transparent 1px); background-size: auto, 26px 26px, 26px 26px; }
.scr-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font: 600 15px/30px var(--body); }
.scr-bar i { width: 112px; height: 32px; border-radius: 20px; background: #000; }
.scr-bar .ic { font-size: 20px; }
.scr-ico { display: grid; place-items: center; width: 88px; height: 88px; margin: 26px auto 16px; border-radius: 50%; background: rgb(6 13 24 / .74); color: var(--cyan); font-size: 40px; }
.scr-top strong { font: 500 27px/1.2 var(--display); letter-spacing: -.02em; }
.scr-seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding: 4px; border-radius: 8px; background: rgb(6 13 24 / .5); font-size: 13px; line-height: 32px; }
.scr-seg span:first-child { border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; }
.scr-cards { display: flex; gap: 12px; padding: 34px 0 0 14px; }
.scr-cards li { flex: 0 0 148px; height: 136px; padding: 14px; border-radius: 10px; display: flex; flex-direction: column; background: #fff; box-shadow: 0 2px 10px rgb(13 25 41 / .1); font-size: 13px; line-height: 1.3; }
.scr-cards li .ic { margin: 0 0 auto auto; font-size: 25px; }
.scr-cards li b { font: 600 18px/1.15 var(--display); letter-spacing: -.02em; }
.scr-cards li:nth-child(2) { background: var(--blue); color: #fff; }
.scr-cards li:nth-child(3) { background: var(--cyan); }
.scr-lab { padding: 24px 16px 10px; font-size: 13px; color: #55708f; }
.scr-list { display: grid; gap: 8px; padding: 0 12px; }
.scr-list li { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 600; }
.scr-list .ic { font-size: 16px; color: var(--blue-light); }

/* ── Cuatro tarjetas ilustradas ───────────────────────────── */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card4 { display: flex; flex-direction: column; border: 1px solid #b9c9da; border-radius: var(--r-s); overflow: hidden; transition: border-color .3s; }
.card4 .art { aspect-ratio: 288 / 240; border-radius: var(--r-s); margin: -1px; overflow: hidden; }
.card4 .art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.card4:hover { border-color: var(--blue); }
.card4:hover .art svg { transform: scale(1.06); }
.card4 .txt { flex: 1; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 0 10px; padding: 24px 22px 28px 24px; }
.card4 .tag { grid-column: 1 / -1; font: 300 15px/20px var(--display); color: var(--blue); }
.card4 h3 { grid-column: 1 / -1; margin: 12px 0 14px; font: 500 23px/1.15 var(--display); letter-spacing: -.025em; }
.card4 p { font-size: 16px; line-height: 1.38; color: var(--text-2); }
.card4 .round { align-self: end; color: #7f97b0; }
.card4:hover .round { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Antes y después ──────────────────────────────────────── */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: hidden; border-radius: 14px; background: #fff; }
.ba figure { position: relative; }
.ba img { width: 100%; aspect-ratio: 188 / 300; object-fit: cover; object-position: 50% 22%; }
.ba figcaption { position: absolute; left: 14px; bottom: 14px; padding: 9px 16px; border-radius: 100px; background: #fff; font: 400 13px/1 var(--display); text-transform: uppercase; }
.ba figure:last-child figcaption { background: var(--blue); color: #fff; }
.result h3 { margin-top: 22px; font: 400 21px/1.3 var(--display); letter-spacing: -.02em; }
.result p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.fine { margin-top: 34px; font-size: 14px; line-height: 1.5; color: #4f6a87; max-width: 78ch; }

/* ── CTA + pie ────────────────────────────────────────────── */
.cta-zone { position: relative; z-index: 2; margin-bottom: -205px; }
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 100px 48px 112px 80px; border-radius: var(--r); background: var(--blue); color: #fff; }
.cta > svg { position: absolute; pointer-events: none; color: var(--blue-dark); }
.cta > svg.a { left: 14%; bottom: -190px; width: 520px; }
.cta > svg.b { right: -190px; top: -230px; width: 560px; }
.cta > div { position: relative; }
.cta .h-mid { font-weight: 400; font-size: clamp(29px, 2.8vw, 40px); max-width: 520px; }
.cta .btns { margin-top: 40px; }
.cta h3 { font: 500 clamp(24px, 2.2vw, 32px)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 54px; }
.cta-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid rgb(255 255 255 / .9); }
.cta-row + .cta-row { margin-top: 30px; }
.cta-row strong { display: block; font: 500 20px/1.3 var(--display); letter-spacing: -.02em; }
.cta-row span { font-size: 16px; line-height: 1.45; }
.cta-row i { display: grid; place-items: center; width: 82px; height: 34px; border: 1px solid #fff; border-radius: 100px; transition: background-color .25s, color .25s; }
.cta-row:hover i { background: #fff; color: var(--blue); }
.cta-row i .ic { font-size: 20px; stroke-width: 1.5; }

.foot { padding: 320px 0 46px; border-radius: var(--r) var(--r) 0 0; background: var(--ink); color: #fff; font-size: 16px; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; padding-bottom: 58px; border-bottom: 1px solid rgb(255 255 255 / .28); }
.foot .brand { font-size: 27px; }
.foot .brand img { width: 52px; }
.foot-top p { max-width: 500px; margin: 26px 0 28px; color: #d5e1ee; line-height: 1.5; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .6); border-radius: 9px; background: rgb(255 255 255 / .12); transition: background-color .2s, border-color .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 20px; height: 20px; }
.foot-call { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }
.foot-call a:first-child { font: 300 clamp(25px, 2.4vw, 34px)/1.2 var(--display); letter-spacing: -.02em; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; align-content: center; }
.foot a:not(.btn):hover { color: var(--cyan); }
.foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px; padding-block: 58px; border-bottom: 1px solid rgb(255 255 255 / .28); }
.foot-cols h3 { margin-bottom: 18px; font: 500 18px/1.2 var(--display); letter-spacing: -.02em; }
.foot-cols li { margin-bottom: 9px; font-size: 15px; line-height: 1.4; color: #d5e1ee; }
.foot-end { padding-top: 34px; font-size: 14px; color: #c2d1e1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }

/* ── Aviso flotante ───────────────────────────────────────── */
.pop { position: fixed; right: 26px; bottom: 30px; z-index: 60; width: 368px; padding: 56px 18px 20px; border: 1px solid #2c5c94; border-radius: 12px; color: #fff; background: var(--ink-2); box-shadow: 0 24px 60px rgb(6 13 24 / .4); transform: translateY(24px); opacity: 0; visibility: hidden; transition: transform .7s var(--ease), opacity .4s, visibility .4s; }
.pop.show { transform: none; opacity: 1; visibility: visible; }
.pop-x { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.pop-x .ic { stroke-width: 1.4; }
.pop-img { display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 18px; border-radius: 12px; border: 1px solid #35618f; background: linear-gradient(180deg, rgb(13 25 41 / .1), rgb(13 25 41 / .82)), url("../assets/img/hero-poster.jpg") 82% 60% / cover; }
.pop-img span { font: 400 15px/1.3 var(--display); color: var(--cyan); }
.pop-img strong { margin-top: 6px; font: 300 26px/1.14 var(--display); letter-spacing: -.025em; }
.pop .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pop .btn { padding-inline: 12px; font-size: 15px; }

/* ── Páginas internas ─────────────────────────────────────── */
.phead { position: relative; padding: calc(var(--nav-h) + 118px) 0 100px; color: #fff; text-align: center; background: #070d17; background-image: radial-gradient(90% 120% at 50% 118%, rgb(26 95 173 / .52), transparent 62%); }
.phead .wrap { display: grid; justify-items: center; }
.phead .over { font: 400 15px/1.3 var(--display); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; color: var(--cyan); }
.phead .h2 { max-width: 840px; }
.phead .lead { margin-top: 20px; max-width: 860px; font-size: clamp(18px, 1.5vw, 21px); }
.phead.round-b { border-radius: 0 0 var(--r) var(--r); }

/* Nosotros */
.trio { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 76px; align-items: center; margin-top: 70px; padding-inline: 45px; }
.trio-sec { padding-bottom: 60px; overflow: hidden; background: linear-gradient(transparent 86%, #fff 86%), radial-gradient(80% 70% at 50% 92%, rgb(26 95 173 / .62), transparent 70%), #070d17; }
.trio-sec .phead { background: none; }
.trio img { width: 100%; object-fit: cover; border-radius: 8px; }
.trio .mid { aspect-ratio: 1 / 1.08; object-position: 50% 20%; }
.trio .side { aspect-ratio: 1; filter: brightness(.72); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two .eyebrow { margin-bottom: 22px; }
.two .copy { display: grid; gap: 24px; align-content: start; padding-top: 42px; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.two .copy b { color: var(--text); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 110px; }
.stat3 { display: flex; align-items: center; gap: 24px; }
.stat3 .sq { display: grid; place-items: center; flex: none; width: 146px; height: 146px; border: 1.5px solid var(--blue); border-radius: 14px; color: var(--blue); font-size: 72px; }
.stat3 .sq .ic { stroke-width: 1.6; }
.stat3 strong { display: block; font: 300 clamp(42px, 4vw, 58px)/1.1 var(--display); letter-spacing: -.04em; }
.stat3 span { display: block; margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--text-2); }
.lobby { margin-top: 96px; }
.info + .lobby { margin-top: 24px; }
.lobby img { width: 100%; border-radius: var(--r); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv article { padding: 54px 48px 60px; border-radius: var(--r); background: var(--blue); color: #fff; }
.mv article + article { background: var(--sky); color: var(--ink); }
.mv p { margin-top: 26px; font-size: 19px; line-height: 1.55; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.value { padding: 36px 34px 42px; border: 1px solid #c9d7e6; border-radius: var(--r-s); background: #fff; }
.value .ic { font-size: 44px; stroke-width: 1.6; color: var(--blue); }
.value h3 { margin: 34px 0 12px; font: 500 22px/1.2 var(--display); letter-spacing: -.02em; }
.value p { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.soft { background: var(--cream); border-radius: var(--r); }
.bio { display: grid; grid-template-columns: 460px 1fr; gap: 72px; align-items: start; }
.bio img { width: 100%; border-radius: var(--r); position: sticky; top: 110px; }
.bio .copy { display: grid; gap: 22px; margin-top: 28px; color: var(--text-2); }
.bio .role { margin-top: 16px; font: 400 19px/1.4 var(--display); color: var(--blue); }
.creds { margin: 44px 0; border-top: 1px solid #c9d7e6; }
.creds li { display: flex; gap: 16px; align-items: center; padding: 17px 0; border-bottom: 1px solid #c9d7e6; font: 400 18px/1.35 var(--display); letter-spacing: -.01em; }
.creds .ic { font-size: 24px; color: var(--blue); stroke-width: 1.7; }

/* Servicios */
.shead { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 104px) 0 130px; text-align: center; background: var(--cream); }
.shead .wrap { position: relative; display: grid; justify-items: center; }
.shead .over { font: 400 16px/1.3 var(--display); margin-bottom: 18px; color: var(--blue); }
.shead .h1 { font-weight: 300; font-size: clamp(38px, 4.6vw, 66px); letter-spacing: -.04em; }
.shead .swap { display: inline-block; font-weight: 600; color: var(--blue); transition: opacity .3s, transform .5s var(--ease); }
.shead .swap.out { opacity: 0; transform: translateY(.28em); }
.shead .lead { max-width: 660px; margin: 24px 0 32px; color: var(--text-2); }
.float { position: absolute; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 24px; background: #fff; color: var(--blue); font-size: 46px; box-shadow: 14px 20px 30px rgb(26 61 112 / .16); rotate: var(--a); animation: bob 7s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.float .ic { stroke-width: 1.6; }
@keyframes bob { to { transform: translateY(-18px); } }
.chips { position: sticky; top: 0; z-index: 20; transition: top .5s var(--ease); background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav:not(.is-hidden) ~ main .chips { top: var(--nav-h); }
.chips ul { display: flex; gap: 10px; padding-block: 16px; overflow-x: auto; scrollbar-width: none; }
.chips ul::-webkit-scrollbar { display: none; }
.chips a { display: flex; align-items: center; min-height: 44px; padding: 10px 22px; border: 1px solid #b9c9da; border-radius: 100px; font: 400 15px/1 var(--display); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.chips a:hover, .chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat { padding-block: clamp(80px, 8.5vw, 120px); scroll-margin-top: 60px; }
.cat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.cat-head .eyebrow { margin-bottom: 18px; }
.cat-head p { color: var(--text-2); max-width: 48ch; }
.treats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.treats.c2 { grid-template-columns: repeat(2, 1fr); }
.treat { display: flex; flex-direction: column; min-height: 400px; padding: 34px 32px 30px; border: 1px solid #c9d7e6; border-radius: var(--r-s); background: #fff; transition: border-color .3s; }
.treat:hover { border-color: var(--blue); }
.treat .time { display: inline-flex; align-items: center; gap: 8px; font: 300 15px/20px var(--display); color: var(--blue); }
.treat .time .ic { font-size: 18px; stroke-width: 1.6; }
.treat h3 { margin: 28px 0 14px; font: 500 26px/1.16 var(--display); letter-spacing: -.028em; }
.treat p { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.treat .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.treat .tags li { padding: 7px 13px; border-radius: 100px; background: var(--pale); color: var(--blue-dark); font-size: 13px; line-height: 1.2; }
.treat .go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font: 400 16px/1 var(--display); }
.treat .round { color: #7f97b0; }
.treat .go:hover .round { background: var(--blue); border-color: var(--blue); color: #fff; }
.treat.wide { grid-column: 1 / -1; min-height: 0; padding: 48px 48px 40px; }
.treat.wide h3 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 300; }
.treat.wide p { max-width: 62ch; font-size: 19px; }
.treat.hero-t { background: var(--blue); border-color: var(--blue); color: #fff; }
.treat.hero-t p, .treat.hero-t .time { color: #fff; }
.treat.hero-t .round { color: #fff; }
.treat.hero-t .go:hover .round { background: #fff; border-color: #fff; color: var(--blue); }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair { padding: 48px 44px 40px; border-radius: var(--r); background: var(--pale); }
.pair + .pair { background: var(--ink); color: #fff; }
.pair .ic-l { font-size: 52px; color: var(--blue); stroke-width: 1.5; }
.pair + .pair .ic-l { color: var(--cyan); }
.pair .h3 { margin: 34px 0 22px; }
.pair li { padding: 14px 0; border-top: 1px solid rgb(13 25 41 / .16); font-size: 17px; }
.pair + .pair li { border-color: rgb(255 255 255 / .2); }

/* Contacto */
.form-card { position: relative; z-index: 2; width: min(920px, 100% - var(--gutter) * 2); margin: -144px auto 0; padding: 64px; border-radius: var(--r); background: #fff; box-shadow: 0 0 120px rgb(13 25 41 / .12); }
.phead.for-form { padding-bottom: 236px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.field { display: grid; gap: 12px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 60px; padding: 17px 20px; border: 1px solid transparent; border-radius: 10px; background: #eef3f9; font-size: 17px; transition: border-color .2s, background-color .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5d7794; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--blue); background: #fff; }
.field :is(input, select, textarea):user-invalid { border-color: #b3261e; }
.form-note { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: #4f6a87; }
.form-error { grid-column: 1 / -1; padding: 16px 20px; border-radius: 10px; background: #fdeceb; color: #8c1d18; font-size: 16px; }
.form-ok { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: 40px; }
.form-ok .ic { font-size: 64px; color: var(--blue); stroke-width: 1.4; }
[hidden] { display: none !important; }
.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info > * { display: flex; flex-direction: column; min-height: 280px; padding: 32px 28px; border: 1px solid #c9d7e6; border-radius: var(--r-s); transition: border-color .3s, background-color .3s; }
.info > a:hover { border-color: var(--blue); background: var(--cream); }
.info .ic { font-size: 46px; color: var(--blue); stroke-width: 1.6; }
.info h2 { margin: auto 0 10px; font: 500 21px/1.2 var(--display); letter-spacing: -.02em; }
.info p { font-size: 16px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; min-height: 4.5em; }
.map { position: relative; overflow: hidden; height: 500px; border-radius: var(--r); background: var(--pale); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .btn { position: absolute; left: 24px; bottom: 24px; }

/* My Comfort */
.mc-wrap { background: var(--cream); border-radius: 0 0 var(--r) var(--r); padding-bottom: 60px; }
.mc-wrap .mc-page { max-width: 1010px; min-height: 620px; padding-bottom: 60px; font-family: var(--body); }
.mc-wrap :is(.mc-title, .mc-q-title, .mc-res-title, .mc-rx-treatment-name, .mc-cat-info strong), .mc-myers-popup-title, .mc-complement-name { font-family: var(--display); }
.mc-wrap :is(.mc-title, .mc-q-title, .mc-res-title) { font-weight: 300; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.1; }
.mc-wrap .mc-intro-header { padding: 8px 0 48px; }
.mc-wrap :is(.mc-subtitle, .mc-q-hint) { color: var(--text-2); font-size: 18px; }
.mc-wrap .mc-eyebrow { display: none; }
.mc-wrap .mc-category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mc-wrap .mc-cat-card { border-color: #c9d7e6; border-radius: var(--r-s); padding: 26px; box-shadow: none; }
.mc-wrap .mc-cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mc-wrap .mc-cat-info strong { font-size: 19px; font-weight: 500; }
.mc-wrap .mc-cat-info span { font-size: 15px; color: var(--text-2); }
.mc-wrap .mc-opt-card { border-color: #c9d7e6; border-radius: var(--r-s); box-shadow: none; }
.mc-wrap :is(.mc-step) { font-size: 13px; letter-spacing: .02em; color: #5d7794; text-transform: none; }
.mc-wrap .mc-step.active { color: var(--blue); }
.mc-wrap :is(.mc-btn-book, .mc-btn-restart), .mc-myers-popup-cta { border-radius: 100px !important; font-family: var(--display); font-weight: 400; }
.mc-wrap .mc-back { min-height: 44px; font-size: 15px; }
.mc-wrap :is(.mc-rx-date, .mc-rx-treatment-label span, .mc-rx-treatment-desc, .mc-rx-seal span, .mc-rx-checklist li, .mc-rx-note-name) { color: rgb(255 255 255 / .82); }
.mc-wrap .mc-rx-treatment-desc { font-size: 17px; line-height: 1.55; }
.mc-wrap .mc-rx-quote { color: #fff; }
:is(.mc-myers-popup-desc, .mc-complement-notice, .mc-myers-popup-dismiss, .mc-myers-popup-saving, .mc-complement-areas) { color: var(--text-2) !important; }
.mc-legal { width: min(880px, 100% - 48px); margin: 0 auto; text-align: center; font-size: 14px; line-height: 1.5; color: #4f6a87; }

/* Health Guide */
.hg-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.hg-disclaimer-banner { display: flex; gap: 14px; padding: 18px 22px; margin-bottom: 16px; border-radius: var(--r-s); background: var(--pale); font-size: 15px; line-height: 1.5; color: var(--blue-dark); }
.hg-disclaimer-banner i { margin-top: 4px; }
.hg-emergency-alert { margin-bottom: 16px; padding: 22px; border-radius: var(--r-s); background: #a3211b; color: #fff; }
.hg-emergency-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hg-emergency-inner > div { flex: 1 1 260px; font-size: 16px; }
.hg-emergency-call { padding: 14px 24px; border-radius: 100px; background: #fff; color: #a3211b; font: 600 16px/1 var(--display); }
.hg-messages { height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 30px; border: 1px solid #c9d7e6; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: var(--cream); }
.hg-msg { display: flex; gap: 14px; max-width: 84%; font-size: 16px; line-height: 1.55; }
.hg-msg-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; }
.hg-msg-bubble { padding: 18px 22px; border-radius: 6px 22px 22px 22px; background: #fff; display: grid; gap: 10px; }
.hg-msg-bubble ul { list-style: disc; padding-left: 1.2em; }
.hg-msg-bubble h4 { font: 500 18px/1.3 var(--display); }
.hg-msg-user { align-self: flex-end; }
.hg-msg-user .hg-msg-bubble { background: var(--blue); color: #fff; border-radius: 22px 6px 22px 22px; }
.hg-welcome-examples, .hg-examples { font-size: 15px; color: #4f6a87; }
.hg-cta-block { padding: 24px; border-radius: var(--r-s); background: var(--ink); color: #fff; display: grid; gap: 14px; }
.hg-cta-header { display: flex; gap: 10px; align-items: center; font-family: var(--display); }
.hg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-secondary { border-color: #fff; color: #fff; }
.hg-form { padding: 22px; border: 1px solid #c9d7e6; border-radius: 0 0 var(--r) var(--r); background: #fff; }
.hg-textarea { width: 100%; padding: 16px 18px; border: 1px solid transparent; border-radius: 12px; background: #eef3f9; resize: none; font-size: 17px; line-height: 1.5; }
.hg-textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.hg-textarea::placeholder { color: #5d7794; }
.hg-char-count { display: block; margin-top: 6px; text-align: right; font-size: 13px; color: #4f6a87; }
.hg-form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 10px; }
.hg-clear-btn, .hg-send-btn { min-height: 48px; padding: 14px 26px; border-radius: 100px; font: 400 16px/18px var(--display); }
.hg-clear-btn { border: 1px solid var(--ink); }
.hg-send-btn { background: var(--blue); color: #fff; }
.hg-send-btn:hover { background: var(--ink); }
.hg-send-btn:disabled { opacity: .6; }
.hg-sidebar { display: grid; gap: 24px; }
.hg-sidebar-card { padding: 32px 28px; border: 1px solid #c9d7e6; border-radius: var(--r-s); font-size: 16px; }
.hg-sidebar-icon { font-size: 34px; color: var(--blue); margin-bottom: 18px; }
.hg-sidebar-card h3, .hg-sidebar-card h4 { font: 500 20px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.hg-sidebar-card h4 { font-size: 17px; }
.hg-sidebar-card li { display: flex; gap: 12px; padding: 6px 0; color: var(--text-2); line-height: 1.4; }
.hg-sidebar-card li i { margin-top: 4px; color: var(--blue); width: 14px; }
.hg-sidebar-divider { height: 1px; margin: 20px 0; background: #c9d7e6; }
.hg-sidebar-dr { display: grid; gap: 14px; }
.hg-dr-photo { width: 100%; aspect-ratio: 1.1; object-fit: cover; object-position: 50% 20%; border-radius: 12px; }
.hg-dr-info { display: grid; }
.hg-dr-info strong { font: 500 20px/1.3 var(--display); letter-spacing: -.02em; }
.hg-dr-tag { color: var(--blue); font-size: 14px; }
.hg-dr-note { color: var(--text-2); }

/* ── Aparición al hacer scroll ────────────────────────────── */
.js .rise { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 1340px) { .float:nth-of-type(3), .float:nth-of-type(4) { display: none; } }

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .pop { display: none; }
  .menu { display: none; }
  .nav-end { margin-left: auto; }
  .nav .burger { display: grid; }
  .is-open .menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 12px var(--gutter) 40px; background: var(--ink);
  }
  .is-open.nav { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu > a, .menu > .drop > button { width: 100%; height: auto; padding: 21px 0; justify-content: space-between; font-size: 25px; border-bottom: 1px solid rgb(255 255 255 / .18); }
  .menu > a::after, .menu > .drop > button::after { display: none; }
  .drop .ic { font-size: 24px; }
  .mega { position: static; width: 100%; grid-template-columns: 1fr; border-radius: 0; background: none; color: #fff; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .drop > button[aria-expanded="true"] + .mega { display: block; }
  .mega-main { grid-template-columns: 1fr; gap: 26px; padding: 26px 0; }
  .mega-cats { grid-template-columns: 1fr; gap: 20px; }
  .mega-cat small { color: #b9cde2; }
  .mega-cat .tile { background: rgb(255 255 255 / .1); color: var(--cyan); }
  .mega h3 { color: var(--cyan); margin-bottom: 16px; }
  .mega-side { display: none; }
  .pillars { gap: 24px; }
  .pillar { min-height: 440px; padding: 34px 28px; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .treats, .values { grid-template-columns: 1fr 1fr; }
  .info { grid-template-columns: 1fr 1fr; }
  .info > * { min-height: 220px; }
  .stat3 { flex-direction: column; align-items: flex-start; }
  .bio { grid-template-columns: 1fr 1.35fr; gap: 40px; }
  .hg-layout { grid-template-columns: 1fr; }
  .hg-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .trio { gap: 28px; padding-inline: 24px; }
  .cta { padding: 72px 44px; gap: 40px; }
}

/* ── Móvil ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --nav-h: 72px; --r: 24px; --gutter: 20px; }
  body { font-size: 17px; }
  .nav-in { gap: 8px; padding-inline: 20px 12px; }
  .brand { font-size: 19px; }
  .brand img { width: 35px; }
  .nav-end { gap: 2px; }
  .nav .btn-white { min-height: 44px; width: 44px; padding: 0; }
  .nav .btn-white > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lang .ic { display: none; }
  .hero-a { height: 320vh; }
  .veil { background: linear-gradient(0deg, rgb(8 16 28 / .9) 0%, rgb(8 16 28 / .36) 30%, rgb(8 16 28 / .44) 100%); }
  .manifesto { margin-top: 0; top: 19%; }
  .hero-cta { margin-top: 0; top: 23%; }
  .hero-cta .btns { margin-top: 34px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .scroll-cue { bottom: calc(124px + var(--bar)); }
  .ticker { padding: 22px 0 30px; }
  .ticker li { font-size: 18px; margin-right: 46px; }
  .vid-toggle { right: 16px; bottom: calc(80px + var(--bar)); }
  .film .disc { width: 80px; height: 80px; font-size: 32px; }
  .head-s { flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
  .portrait { height: 220vh; }
  .portrait img { height: calc(100% - 26% * var(--s, 0)); object-position: 46% 0; }
  .portrait .shade { background: linear-gradient(180deg, rgb(7 13 23 / .1) 0%, rgb(7 13 23 / .2) 26%, #070d17 62%); }
  .portrait .say { left: 24px; right: 24px; width: auto; top: auto; bottom: calc(34px + var(--bar)); transform: translateY(var(--ty, 40px)); }
  .portrait .say .h1 { font-size: 40px; }
  .portrait .role { margin: 10px 0 14px; font-size: 16px; }
  .portrait .say .lead { font-size: 17px; margin-bottom: 22px; }
  .pillars, .cards4, .results, .treats, .treats.c2, .values, .pairs, .mv, .two, .stats, .info, .fields, .bio, .cat-head, .hg-sidebar { grid-template-columns: 1fr; }
  .pillars { margin-top: 52px; }
  .pillar { min-height: 0; padding: 32px 26px; }
  .pillar > .ic { font-size: 64px; }
  .pillar .h3 { padding-top: 60px; }
  .pillar p, .info p { min-height: 0; }
  .info > * { min-height: 0; }
  .info h2 { margin-top: 28px; }
  .slide { height: 430px; padding: 40px 30px 36px; }
  .slide blockquote { font-size: 18px; }
  .phone-sec { padding-top: 84px; }
  .phone-stage { height: 620px; margin-top: 56px; }
  .phone { width: 316px; height: 720px; margin-left: -158px; padding: 12px; border-radius: 54px; }
  .screen { border-radius: 43px; }
  .scr-bar i { width: 88px; }
  .scr-ico { width: 72px; height: 72px; font-size: 32px; margin-top: 18px; }
  .scr-cards li { flex-basis: 132px; }
  .tiles li { width: 112px; height: 112px; margin-right: 24px; border-radius: 26px; font-size: 46px; }
  .tiles { gap: 24px; }
  .results { gap: 40px; }
  .ba img { aspect-ratio: 4 / 5; }
  .cta { grid-template-columns: 1fr; padding: 56px 26px 64px; gap: 60px; }
  .cta h3 { margin-bottom: 32px; }
  .cta .btn { width: 100%; }
  .cta-row i { width: 60px; }
  .foot { padding-top: 278px; }
  .foot-top { grid-template-columns: 1fr; gap: 44px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .pop { display: none; }
  .phead { padding: calc(var(--nav-h) + 64px) 0 72px; }
  .phead.for-form { padding-bottom: 200px; }
  .form-card { padding: 34px 22px; margin-top: -130px; }
  .trio { grid-template-columns: 1fr; margin-top: 44px; padding-inline: 20px; }
  .trio .side { display: none; }
  .two { gap: 20px; }
  .two .copy { padding-top: 6px; }
  .stats { margin-top: 64px; gap: 28px; }
  .lobby { margin-top: 56px; }
  .lobby img { border-radius: 16px; }
  .stat3 { flex-direction: row; align-items: center; }
  .stat3 .sq { width: 104px; height: 104px; font-size: 50px; }
  .mv article { padding: 38px 28px; }
  .bio img { position: static; }
  .shead { padding: calc(var(--nav-h) + 150px) 0 150px; }
  .float { width: 70px; height: 70px; border-radius: 18px; font-size: 30px; }
  .float:nth-of-type(3), .float:nth-of-type(4) { display: none; }
  .float:nth-of-type(5), .float:nth-of-type(6) { top: auto !important; bottom: 52px; }
  .float:nth-of-type(5) { left: 12% !important; }
  .float:nth-of-type(6) { right: 12% !important; bottom: 36px; }
  .cat-head { gap: 20px; margin-bottom: 36px; }
  .treat { min-height: 0; }
  .treat.wide { padding: 34px 28px 30px; }
  .treat.wide p { font-size: 17px; }
  .film-sec .vid-toggle { right: 30px; bottom: calc(30px + var(--bar)); }
  .pair { padding: 36px 26px; }
  .map { height: 400px; }
  .mc-wrap .mc-category-grid { grid-template-columns: 1fr; }
  .mc-wrap .mc-page { padding-inline: 20px; }
  .mc-wrap .mc-topbar { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
  .mc-wrap .mc-step.active { color: #fff; }
  .mc-wrap :is(.mc-intro-header, .mc-q-header) { text-align: center; }
  .hg-messages { padding: 18px; }
  .hg-msg { max-width: 100%; }
  .hg-form-actions > * { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-a, .portrait { height: auto; }
  .stage { position: relative; }
  .film-sec { height: 100vh; margin-top: 0; }
  .manifesto { display: none; }
  .hero-cta { opacity: 1; }
  .scroll-cue { display: none; }
  .portrait .frame { --s: 1; --o: 1; --ty: 0px; --tx: -22%; }
  .js .rise { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) { .portrait .frame { --tx: 0; } }
