/* ==========================================================================
   CLINIT · clinit.es
   Sistema de diseño editorial para clínicas privadas

   Índice
   00. Tokens
   01. Base y utilidades
   02. Tipografía de sección
   03. Botones y enlaces
   04. Navegación
   05. Hero
   06. Simulador «Clinit en acción»
   07. Especialidades
   08. Cómo funciona
   09. Resultados
   10. Preguntas frecuentes
   11. Contacto
   12. Pie
   13. Animaciones de entrada
   14. Detalles de movimiento (tinta, máscara, luz y punto)
   15. Responsive
   16. Movimiento reducido
   ========================================================================== */

/* ==========================================================================
   00. TOKENS
   ========================================================================== */
:root {
  /* Superficies cálidas */
  --canvas: #FAF9F5;
  --paper: #FFFFFF;
  --sand: #F3F0EA;
  --sand-deep: #EBE7DF;

  /* Tinta */
  --ink: #15181C;
  --ink-2: #474E56;
  --ink-3: #646B73;  /* notas y texto secundario: ≥ 4,7:1 sobre cualquier fondo claro */
  --ink-4: #848A91;  /* numeración y estados apagados: ≥ 3:1 */

  /* Acento clínico: azul pizarra */
  --accent: #355070;
  --accent-hover: #2C445F;
  --accent-soft: #EDF1F6;
  --accent-line: rgba(53, 80, 112, 0.22);

  /* Canales (solo dentro del simulador) */
  --ch-wa: #1FA05A;
  --ch-ig: #BF3A8C;
  --ch-fb: #0A7CFF;
  --ch-web: var(--accent);

  /* Noche: el único capítulo oscuro de la página */
  --night: #17212E;
  --night-raised: #1D2938;
  --on-night: #FAF9F5;
  --on-night-2: rgba(250, 249, 245, 0.7);
  --on-night-3: rgba(250, 249, 245, 0.45);
  --night-line: rgba(250, 249, 245, 0.15);
  --sky: #A9C0DB;

  /* Líneas */
  --line: rgba(21, 24, 28, 0.09);
  --line-strong: rgba(21, 24, 28, 0.15);

  /* Sombras: siempre en capas, nunca una sola mancha */
  --shadow-sm:
    0 1px 2px rgba(21, 24, 28, 0.026),
    0 4px 12px -6px rgba(21, 24, 28, 0.039);
  --shadow-md:
    0 1px 2px rgba(21, 24, 28, 0.026),
    0 8px 18px -8px rgba(21, 24, 28, 0.052),
    0 24px 48px -24px rgba(21, 24, 28, 0.078);
  --shadow-lg:
    0 1px 2px rgba(21, 24, 28, 0.033),
    0 12px 24px -10px rgba(21, 24, 28, 0.065),
    0 40px 72px -32px rgba(21, 24, 28, 0.143);

  /* Tipografía */
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Geometría */
  --gutter: clamp(20px, 5vw, 80px);
  --max-w: 1240px;
  --section-y: clamp(92px, 10.5vw, 156px);
  --r-xs: 5px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 16px;
  --nav-h: 68px;

  /* Curvas */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   01. BASE Y UTILIDADES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

em {
  font-style: normal;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

::selection {
  background: #DCE4EE;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--max-w) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--sand {
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.section--rule {
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   02. TIPOGRAFÍA DE SECCIÓN
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-4);
}

.eyebrow__num::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.8s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 5.6vw, 76px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-lede {
  margin-inline: auto;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.section-head--split .section-lede {
  margin-top: 0;
  padding-bottom: 0.3em;
}

.section-title {
  margin-top: 22px;
  font-weight: 400;
  font-size: clamp(2.1rem, 1.25rem + 2.9vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  color: var(--ink);
  text-wrap: balance;
}

.section-title--wide {
  max-width: 19ch;
}

/* Acento editorial: cursiva serif en azul pizarra */
.section-title em,
.hero__title em,
.statement__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.035em;
  letter-spacing: -0.032em;
  color: var(--accent);
}

.section-lede {
  margin-top: 22px;
  max-width: 50ch;
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1rem + 0.28vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tag--accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ==========================================================================
   03. BOTONES Y ENLACES
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  /* --tx / --ty: imán del cursor (script.js) */
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s ease,
    color 0.3s ease;
}

.btn > * {
  position: relative;
  z-index: 1;
}

/* Tinta: el color entra como una gota desde el punto exacto por el que llega el cursor */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: var(--btn-ink, var(--accent));
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.65s var(--ease-out);
}

.btn:focus-visible::before {
  clip-path: circle(150% at 50% 50%);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.btn:active {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(0.975);
  transition-duration: 0.12s;
}

.btn--primary {
  --btn-ink: var(--accent);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.104),
    0 1px 2px rgba(21, 24, 28, 0.13),
    0 6px 14px -6px rgba(21, 24, 28, 0.195);
}

.btn--ghost {
  --btn-ink: var(--sand);
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(21, 24, 28, 0.026);
}

@media (hover: hover) {
  .btn:hover::before {
    clip-path: circle(150% at var(--mx, 50%) var(--my, 50%));
  }

  /* La flecha sale por la derecha y vuelve a entrar por la izquierda */
  .btn:hover svg use,
  .link-arrow:hover svg use {
    animation: arrowSwap 0.6s var(--ease-in-out);
  }

  .btn--primary:hover {
    border-color: var(--accent);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.117),
      0 1px 2px rgba(53, 80, 112, 0.156),
      0 12px 26px -10px rgba(53, 80, 112, 0.358);
  }

  .btn--ghost:hover {
    border-color: rgba(21, 24, 28, 0.4);
    box-shadow:
      0 1px 2px rgba(21, 24, 28, 0.033),
      0 10px 22px -14px rgba(21, 24, 28, 0.182);
  }

  /* El subrayado se retira hacia la derecha y se vuelve a trazar desde la izquierda */
  .link-arrow:hover {
    color: var(--accent);
    animation: underlineRedraw 0.75s var(--ease-in-out);
  }
}

@keyframes arrowSwap {
  0% { transform: translateX(0); }
  49.9% { transform: translateX(17px); }
  50% { transform: translateX(-17px); }
  100% { transform: translateX(0); }
}

@keyframes underlineRedraw {
  0% { background-size: 100% 1px; background-position: right bottom; }
  45% { background-size: 0 1px; background-position: right bottom; }
  46% { background-size: 0 1px; background-position: left bottom; }
  100% { background-size: 100% 1px; background-position: left bottom; }
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 0.95rem;
}

.btn--sm {
  height: 38px;
  padding: 0 15px;
  font-size: 0.86rem;
}

/* Estado «enviando»: los tres puntos de la marca ocupan el lugar del texto */
.btn__dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn__dots b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.btn.is-sending {
  pointer-events: none;
}

.btn.is-sending::before {
  clip-path: circle(150% at 50% 50%);
}

.btn.is-sending > span,
.btn.is-sending > svg {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn.is-sending .btn__dots {
  opacity: 1;
}

.btn.is-sending .btn__dots b {
  animation: typing 1s var(--ease-in-out) infinite;
}

.btn.is-sending .btn__dots b:nth-child(2) { animation-delay: 0.14s; }
.btn.is-sending .btn__dots b:nth-child(3) { animation-delay: 0.28s; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.link-arrow svg {
  width: 13px;
  height: 13px;
  overflow: hidden;
}

/* ==========================================================================
   04. NAVEGACIÓN
   ========================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 249, 245, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.navbar.is-scrolled {
  background: rgba(250, 249, 245, 0.9);
  border-bottom-color: var(--line);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--ink);
}

/* Logotipo: la palabra «Clinit.» con su punto final en azul pizarra */
.logo {
  display: block;
  width: auto;
  height: 25px;
  overflow: visible;
}

.logo__letters,
.logo__dot {
  fill: var(--ink);
  transition: fill 0.4s ease;
}

.logo__point {
  fill: var(--accent);
}

.logo__dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* Los tres puntos del logotipo «escriben», como quien está respondiendo */
.is-typing .logo__dot {
  animation: logoHop 0.62s var(--ease-in-out) calc(var(--k, 0) * 0.14s);
}

.is-typing .logo__point {
  animation-name: logoLand;
}

@keyframes logoHop {
  45% { transform: translateY(-48%); }
}

@keyframes logoLand {
  45% { transform: scale(1.34); }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__links a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 0.89rem;
  font-weight: 450;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}

.navbar__links a:hover,
.navbar__links a.is-current {
  color: var(--ink);
}

.navbar__links a.is-current::after {
  transform: scaleX(1);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.navbar__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out), background-color 0.4s ease;
}

.navbar__toggle span:first-child { top: 14px; }
.navbar__toggle span:last-child { top: 21px; }

.navbar__toggle[aria-expanded="true"] span:first-child {
  top: 17.5px;
  transform: rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] span:last-child {
  top: 17.5px;
  transform: rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 10px var(--gutter) 26px;
  background: rgba(250, 249, 245, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(21, 24, 28, 0.163);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s;
}

.drawer a:not(.btn) {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.drawer a:not(.btn) span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.drawer__cta {
  margin-top: 22px;
}

/* ---- La barra sobre el capítulo de noche ----
   Al pasar sobre la sección oscura, la navegación cambia con ella en lugar de
   quedar como una franja clara encima. Con el menú móvil abierto vuelve a ser clara. */
.navbar.is-night:not(.has-menu) {
  background: rgba(23, 33, 46, 0.86);
  border-bottom-color: var(--night-line);
}

.navbar.is-night:not(.has-menu)::after {
  background: var(--sky);
}

.navbar.is-night:not(.has-menu) .logo__letters,
.navbar.is-night:not(.has-menu) .logo__dot {
  fill: var(--on-night);
}

.navbar.is-night:not(.has-menu) .logo__point {
  fill: var(--sky);
}

.navbar.is-night:not(.has-menu) .navbar__links a {
  color: var(--on-night-2);
}

.navbar.is-night:not(.has-menu) .navbar__links a:hover,
.navbar.is-night:not(.has-menu) .navbar__links a.is-current {
  color: var(--on-night);
}

.navbar.is-night:not(.has-menu) .navbar__links a::after {
  background: var(--on-night);
}

.navbar.is-night:not(.has-menu) .btn--primary {
  --btn-ink: var(--sky);
  background: var(--on-night);
  border-color: var(--on-night);
  color: var(--ink);
  box-shadow: none;
}

.navbar.is-night:not(.has-menu) .btn--primary:hover {
  border-color: var(--sky);
}

.navbar.is-night:not(.has-menu) .navbar__toggle {
  background: transparent;
  border-color: rgba(250, 249, 245, 0.3);
}

.navbar.is-night:not(.has-menu) .navbar__toggle span {
  background: var(--on-night);
}

/* ==========================================================================
   05. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(64px, 7.4vw, 112px)) 0 clamp(84px, 8.4vw, 128px);
  overflow: hidden;
}

.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(880px + 2 * var(--gutter));
  text-align: center;
}

.hero__title {
  margin-top: 26px;
  font-weight: 400;
  font-size: clamp(2.6rem, 1.16rem + 4.5vw, 4.9rem);
  line-height: 1.01;
  letter-spacing: -0.047em;
  color: var(--ink);
}

/* Cada línea del titular se descubre desde abajo tras una máscara */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.hero__title .line > * {
  display: block;
}

.hero__title em {
  letter-spacing: -0.036em;
  padding-inline: 0.06em;
}

.js .hero__title .line > * {
  transform: translateY(112%);
}

.js.is-loaded .hero__title .line > * {
  transform: none;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(0.1s + var(--i, 0) * 0.11s);
}

.hero__lede {
  margin-top: 28px;
  max-width: 35.5em;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1rem + 0.36vw, 1.26rem);
  line-height: 1.52;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  text-wrap: balance;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.hero__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 30px;
  font-size: 0.82rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}

.hero__channels li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__channels svg {
  width: 15px;
  height: 15px;
  color: var(--ink-4);
}

/* Collage editorial lateral */
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__pic {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
  box-shadow:
    0 0 0 1px rgba(21, 24, 28, 0.08),
    0 2px 4px rgba(21, 24, 28, 0.026),
    0 24px 48px -20px rgba(21, 24, 28, 0.13);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}

.hero__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .hero__pic {
  opacity: 0;
  translate: 0 28px;
}

.js.is-loaded .hero__pic {
  opacity: 1;
  translate: 0 0;
  transition:
    transform 0.9s var(--ease-out),
    opacity 1.2s ease calc(0.35s + var(--i, 0) * 0.13s),
    translate 1.5s var(--ease-out) calc(0.35s + var(--i, 0) * 0.13s);
}

.hero__pic--l1 {
  top: calc(var(--nav-h) + 78px);
  left: clamp(28px, 3.2vw, 48px);
  width: clamp(168px, 14vw, 208px);
  aspect-ratio: 3 / 4;
  z-index: 1;
}

.hero__pic--l2 {
  top: calc(var(--nav-h) + 248px);
  left: 0;
  width: clamp(132px, 11.3vw, 166px);
  aspect-ratio: 3 / 4.05;
  z-index: 2;
  border-radius: 0 4px 4px 0;
}

.hero__pic--r1 {
  top: calc(var(--nav-h) + 92px);
  right: 0;
  width: clamp(180px, 15vw, 222px);
  aspect-ratio: 1 / 0.94;
  z-index: 1;
  border-radius: 4px 0 0 4px;
}

.hero__pic--r2 {
  top: calc(var(--nav-h) + 268px);
  right: 0;
  width: clamp(136px, 11.6vw, 170px);
  aspect-ratio: 3 / 3.85;
  z-index: 2;
  border-radius: 4px 0 0 4px;
}

/* ==========================================================================
   06. SIMULADOR «CLINIT EN ACCIÓN»
   ========================================================================== */
.sim-section {
  padding-top: clamp(84px, 9vw, 132px);
}

.sim {
  --ch: var(--ch-wa);
  max-width: 1140px;
  margin-inline: auto;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 2px 4px rgba(21, 24, 28, 0.019),
    0 30px 60px -30px rgba(21, 24, 28, 0.117);
  overflow: hidden;
  /* La conversación se mueve por dentro: nunca debe arrastrar el scroll de la página */
  overflow-anchor: none;
}

.sim[data-channel="ig"] { --ch: var(--ch-ig); }
.sim[data-channel="fb"] { --ch: var(--ch-fb); }
.sim[data-channel="web"] { --ch: var(--ch-web); }

/* ---- Pestañas de canal ---- */
.sim__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--canvas);
  border-bottom: 1px solid var(--line-strong);
}

.sim-tab {
  --tab-ch: var(--ch-wa);
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 70px;
  padding: 0 24px;
  text-align: left;
  color: var(--ink-3);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sim-tab[data-ch="ig"] { --tab-ch: var(--ch-ig); }
.sim-tab[data-ch="fb"] { --tab-ch: var(--ch-fb); }
.sim-tab[data-ch="web"] { --tab-ch: var(--ch-web); }

.sim-tab + .sim-tab {
  border-left: 1px solid var(--line-strong);
}

.sim-tab:focus-visible {
  outline-offset: -3px;
}

.sim-tab__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-4);
  transition: color 0.3s ease, transform 0.5s var(--ease-out);
}

.sim-tab__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sim-tab__label {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.sim-tab__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-tab:hover {
  color: var(--ink);
  background: #F6F4EF;
}

.sim-tab:hover .sim-tab__icon {
  color: var(--ink-2);
}

.sim-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}

.sim-tab[aria-selected="true"] .sim-tab__icon {
  color: var(--tab-ch);
  transform: scale(1.06);
}

.sim-tab[aria-selected="true"] .sim-tab__meta {
  color: var(--ink-3);
}

/* Línea de progreso de la conversación */
.sim-tab__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.sim-tab__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tab-ch);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 0.9s var(--ease);
}

.sim-tab[aria-selected="false"] .sim-tab__bar::after {
  transform: scaleX(0);
  transition: none;
}

/* ---- Lienzo ilustrado ---- */
.sim__canvas {
  position: relative;
  padding: clamp(18px, 3.4vw, 42px);
  background:
    linear-gradient(rgba(250, 249, 245, 0.34), rgba(250, 249, 245, 0.34)),
    url("assets/img/hero-backdrop.svg") center / cover no-repeat;
  background-position: 0 0, 50% calc(50% + var(--bp, 0px));
}

.sim__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  transition: opacity 0.28s ease, transform 0.45s var(--ease-out), filter 0.28s ease;
}

.sim__stage.is-switching {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
}

.chat,
.agenda {
  height: 566px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(21, 24, 28, 0.1),
    0 2px 4px rgba(21, 24, 28, 0.026),
    0 14px 28px -12px rgba(21, 24, 28, 0.104),
    0 44px 72px -36px rgba(21, 24, 28, 0.195);
  overflow: hidden;
}

/* ---- Conversación ---- */
.chat {
  --wall: #F1ECE4;
  --me-bg: #D9FDD3;
  --me-ink: #111B21;
  --them-bg: #FFFFFF;
  --them-ink: var(--ink);
  --them-line: rgba(21, 24, 28, 0.07);
  --bubble-r: 11px;
  --head-bg: var(--paper);
  --head-ink: var(--ink);
  --head-sub: var(--ink-3);
  display: flex;
  flex-direction: column;
}

.sim[data-channel="ig"] .chat {
  --wall: #FFFFFF;
  --me-bg: linear-gradient(140deg, #7660E0 0%, #A853C6 58%, #D2588F 115%);
  --me-ink: #FFFFFF;
  --them-bg: #F1F1F2;
  --them-line: transparent;
  --bubble-r: 20px;
}

.sim[data-channel="fb"] .chat {
  --wall: #FFFFFF;
  --me-bg: #0A7CFF;
  --me-ink: #FFFFFF;
  --them-bg: #F0F2F5;
  --them-line: transparent;
  --bubble-r: 18px;
}

.sim[data-channel="web"] .chat {
  --wall: #F7F5F0;
  --me-bg: var(--accent);
  --me-ink: #FFFFFF;
  --them-bg: #FFFFFF;
  --bubble-r: 14px;
  --head-bg: var(--accent);
  --head-ink: #FFFFFF;
  --head-sub: rgba(255, 255, 255, 0.72);
}

.chat__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  padding: 0 18px;
  background: var(--head-bg);
  color: var(--head-ink);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.chat__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sim[data-channel="web"] .chat__avatar {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* Instagram: anillo de historia */
.sim[data-channel="ig"] .chat__avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(45deg, #E8A04C, #D2588F 50%, #7660E0);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Messenger: indicador de actividad */
.sim[data-channel="fb"] .chat__avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #31C45A;
  border: 2px solid var(--paper);
}

.chat__who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.chat__who b {
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__who small {
  font-size: 0.75rem;
  color: var(--head-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.chat.is-typing .chat__who small {
  color: var(--ch);
}

.sim[data-channel="web"] .chat.is-typing .chat__who small {
  color: #FFFFFF;
}

.chat__channel svg {
  width: 19px;
  height: 19px;
  color: var(--ch);
  opacity: 0.9;
}

.sim[data-channel="web"] .chat__channel svg {
  color: rgba(255, 255, 255, 0.8);
}

.chat__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--wall);
  transition: background-color 0.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
}

.chat__stream {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 16px 14px;
  transition: transform 0.55s var(--ease-out);
}

.chat__stamp {
  align-self: center;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 1px rgba(21, 24, 28, 0.033);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.sim[data-channel="ig"] .chat__stamp,
.sim[data-channel="fb"] .chat__stamp {
  background: none;
  box-shadow: none;
  color: var(--ink-4);
}

.chat__context {
  align-self: flex-end;
  margin-bottom: -2px;
  font-size: 0.7rem;
  color: var(--ink-4);
}

.msg {
  position: relative;
  max-width: 82%;
  padding: 9px 13px 10px;
  border-radius: var(--bubble-r);
  font-size: 0.895rem;
  line-height: 1.42;
  letter-spacing: -0.004em;
  animation: msgIn 0.5s var(--ease-out) both;
}

.msg p {
  overflow-wrap: anywhere;
}

.msg--me {
  align-self: flex-end;
  background: var(--me-bg);
  color: var(--me-ink);
  border-bottom-right-radius: 5px;
  transform-origin: 100% 100%;
}

.msg--them {
  align-self: flex-start;
  background: var(--them-bg);
  color: var(--them-ink);
  box-shadow: inset 0 0 0 1px var(--them-line), 0 1px 1px rgba(21, 24, 28, 0.019);
  border-bottom-left-radius: 5px;
  transform-origin: 0 100%;
}

.msg--me + .msg--them,
.msg--them + .msg--me,
.slots + .msg--me {
  margin-top: 5px;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* Hora y doble check: solo en WhatsApp */
.msg__meta {
  display: none;
  float: right;
  align-items: center;
  gap: 3px;
  margin: 7px -3px -3px 12px;
  font-size: 0.66rem;
  line-height: 1;
  color: rgba(17, 27, 33, 0.5);
  font-variant-numeric: tabular-nums;
}

.msg__meta svg {
  width: 15px;
  height: 10px;
  color: #53BDEB;
}

.sim[data-channel="wa"] .msg__meta {
  display: inline-flex;
}

/* Sello de respuesta de la IA */
.msg__by {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -1px 0 3px 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  animation: fadeIn 0.8s ease 0.5s both;
}

.msg__by::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ch);
}

/* Palabras del asistente: aparecen una a una, sin saltos de maquetación */
.msg .w {
  opacity: 0;
  animation: wordIn 0.5s ease forwards;
  animation-delay: calc(var(--n) * 24ms + 80ms);
}

@keyframes wordIn {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Indicador «escribiendo» */
.msg--typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px;
}

.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  animation: typing 1.2s var(--ease-in-out) infinite;
}

.msg--typing i:nth-child(2) { animation-delay: 0.16s; }
.msg--typing i:nth-child(3) { animation-delay: 0.32s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Huecos propuestos (respuestas rápidas) */
.slots {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 2px;
  animation: msgIn 0.5s var(--ease-out) 0.25s both;
}

.slot {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ch) 42%, transparent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: color-mix(in srgb, var(--ch) 82%, #15181C);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease, transform 0.3s var(--ease-out);
}

.slot.is-picked {
  background: var(--ch);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--ch), 0 0 0 4px color-mix(in srgb, var(--ch) 16%, transparent);
  transform: scale(0.97);
}

.slot.is-dimmed {
  opacity: 0.38;
}

/* Barra de escritura */
.chat__composer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.chat__input {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.chat.is-composing .chat__input {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ch) 50%, transparent), 0 0 0 3px color-mix(in srgb, var(--ch) 10%, transparent);
}

.chat__placeholder {
  position: absolute;
  left: 15px;
  color: var(--ink-4);
  transition: opacity 0.2s ease;
}

.chat.is-composing .chat__placeholder {
  opacity: 0;
}

.chat__typed {
  white-space: pre;
}

.chat__caret {
  flex-shrink: 0;
  width: 1.5px;
  height: 17px;
  margin-left: 1px;
  background: var(--ch);
  opacity: 0;
}

.chat.is-composing .chat__caret {
  opacity: 1;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.chat__send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink-4);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}

.chat__send svg {
  width: 17px;
  height: 17px;
  transform: translateX(1px);
}

.chat.is-composing .chat__send {
  background: var(--ch);
  color: #FFFFFF;
}

.chat__send.is-sent {
  animation: sent 0.45s var(--ease-out);
}

@keyframes sent {
  35% { transform: scale(0.86); }
}

/* ---- Agenda de la clínica ---- */
.agenda {
  display: flex;
  flex-direction: column;
  padding: 0 22px 20px;
}

.agenda__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
  margin-inline: -22px;
  padding-inline: 22px;
  border-bottom: 1px solid var(--line);
}

.agenda__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.2;
}

.agenda__kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.agenda__clinic {
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 10px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.replay svg {
  width: 13px;
  height: 13px;
  transition: transform 0.6s var(--ease-out);
}

.replay:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.replay:hover svg {
  transform: rotate(-200deg);
}

.steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 14px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 17px;
}

.step:last-child {
  padding-bottom: 0;
}

/* Conector vertical entre pasos */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 25px;
  bottom: 3px;
  width: 1px;
  background: var(--line-strong);
}

.step:not(:last-child)::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.6s var(--ease);
}

.step.is-done:not(:last-child)::after {
  transform: scaleY(1);
}

.step__dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--paper);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.step__dot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.step__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.8 11.4l2.8 2.8 5.6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}

.step.is-active .step__dot {
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(53, 80, 112, 0.1);
}

.step.is-active .step__dot::before {
  background: var(--accent);
  animation: stepBusy 1.1s var(--ease-in-out) infinite;
}

@keyframes stepBusy {
  50% { transform: scale(0.45); opacity: 0.5; }
}

.step.is-done .step__dot {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.step.is-done .step__dot::before {
  opacity: 0;
}

.step.is-done .step__dot::after {
  opacity: 1;
  transform: none;
}

.step__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 1px;
  min-width: 0;
}

.step__text b {
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink-4);
  transition: color 0.4s ease;
}

.step__text small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(-3px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.step.is-active .step__text b,
.step.is-done .step__text b {
  color: var(--ink);
}

.step.is-done .step__text small {
  opacity: 1;
  transform: none;
}

/* Resultado: la cita ya creada en agenda */
.ticket {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border-radius: var(--r-md);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.ticket > :not(.ticket__pending) {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}

.ticket__pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: opacity 0.3s ease;
}

.ticket.is-done {
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--accent-line),
    0 10px 24px -14px rgba(53, 80, 112, 0.26);
}

.ticket.is-done > :not(.ticket__pending) {
  opacity: 1;
  transform: none;
}

.ticket.is-done > .ticket__info { transition-delay: 0.08s; }
.ticket.is-done > .ticket__reminder { transition-delay: 0.16s; }

.ticket.is-done .ticket__pending {
  opacity: 0;
}

.ticket__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 84px;
  padding: 14px 0;
  border-right: 1px solid var(--line);
}

.ticket__date span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.ticket__date b {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}

.ticket__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 13px 16px;
}

.ticket__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket__info b {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.016em;
}

.ticket__info small {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket__reminder {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
}

.ticket__reminder svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ticket.is-done .ticket__reminder svg {
  animation: ring 1.1s var(--ease-out) 0.5s both;
  transform-origin: 50% 10%;
}

@keyframes ring {
  0% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(7deg); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

.slot,
.chat__stamp,
.chat__who small,
.ticket__info b,
.ticket__info small,
.ticket__reminder,
.form__legal {
  word-spacing: 0.12em;
}

.sim-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.79rem;
  color: var(--ink-3);
}

/* ==========================================================================
   07. ESPECIALIDADES
   ========================================================================== */
.statement {
  margin-bottom: clamp(52px, 6vw, 84px);
}

.statement__text {
  margin-top: 26px;
  max-width: 22.5em;
  font-weight: 400;
  font-size: clamp(1.86rem, 1.06rem + 2.7vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: pretty;
}

/* Cada palabra se enciende al avanzar el scroll */
.statement__text .w {
  opacity: 0.2;
  transition: opacity 0.6s ease;
}

.statement__text .w.is-on {
  opacity: 1;
}

.statement__lede {
  margin-top: 30px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--r-md);
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm);
  overflow: hidden;
}

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 26px 26px 24px;
  background: var(--paper);
  transition: background-color 0.4s ease;
}

.spec:focus-visible {
  outline-offset: -3px;
}

.spec__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 38px;
}

.spec__icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease-out);
}

.spec__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  transition: color 0.3s ease;
}

.spec__title {
  font-size: 1.13rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.spec__desc {
  margin-top: 9px;
  font-size: 0.875rem;
  line-height: 1.56;
  color: var(--ink-2);
  text-wrap: pretty;
}

.spec__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.spec__more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .spec:hover {
    background: #FCFBF8;
  }

  .spec:hover .spec__icon {
    transform: translateY(-3px);
  }

  .spec:hover .spec__num {
    color: var(--accent);
  }

  .spec:hover .spec__more,
  .spec:focus-visible .spec__more {
    opacity: 1;
    transform: none;
  }

  .spec:hover .spec__more svg {
    transform: translateX(3px);
  }
}

@media (hover: none) {
  .spec__more {
    opacity: 1;
    transform: none;
  }
}

.spec-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--ink-2);
}

.spec-foot .link-arrow {
  font-family: var(--font-sans);
}

/* ---- Capítulo de noche ----
   La declaración de marca y las especialidades son el único momento oscuro:
   el contraste que le faltaba a una página toda en crema y arena. */
.section--night {
  background: var(--night);
  color: var(--on-night);
}

.section--night ::selection {
  background: rgba(169, 192, 219, 0.35);
  color: #FFFFFF;
}

.section--night :focus-visible {
  outline-color: var(--sky);
}

.section--night .eyebrow {
  color: var(--sky);
}

.section--night .eyebrow__num {
  color: var(--on-night-3);
}

.section--night .eyebrow__num::after {
  background: rgba(250, 249, 245, 0.3);
}

.section--night .statement__text {
  color: var(--on-night);
}

.section--night .statement__text em {
  color: var(--sky);
}

.section--night .section-lede,
.section--night .spec-foot {
  color: var(--on-night-2);
}

.section--night .spec-grid {
  background: var(--night-line);
  box-shadow: 0 0 0 1px var(--night-line);
}

.section--night .spec {
  background: var(--night);
}

.section--night .spec__title {
  color: var(--on-night);
}

.section--night .spec__desc {
  color: var(--on-night-2);
}

.section--night .spec__icon {
  stroke: var(--sky);
}

.section--night .spec__num {
  color: var(--on-night-3);
}

.section--night .spec__more,
.section--night .link-arrow:hover {
  color: var(--sky);
}

.section--night .link-arrow {
  color: var(--on-night);
}

.section--night [data-glow]::before {
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(169, 192, 219, 0.9), rgba(169, 192, 219, 0) 70%);
}

@media (hover: hover) {
  .section--night .spec:hover {
    background: var(--night-raised);
  }

  .section--night .spec:hover .spec__num {
    color: var(--sky);
  }
}

/* ==========================================================================
   08. CÓMO FUNCIONA
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1px;
  border-radius: var(--r-md);
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm);
  overflow: hidden;
}

.flow__steps {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  align-content: center;
  gap: 20px;
  padding: 26px 30px 28px;
  text-align: left;
  background: var(--canvas);
  transition: background-color 0.4s ease;
}

.flow-step:focus-visible {
  outline-offset: -3px;
}

.flow-step__num {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  transition: color 0.4s ease;
}

.flow-step__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-step__title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.024em;
  color: var(--ink-3);
  transition: color 0.4s ease;
}

.flow-step__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
  transition: color 0.4s ease;
}

.flow-step:hover {
  background: #F7F5F0;
}

.flow-step:hover .flow-step__title {
  color: var(--ink);
}

.flow-step.is-active {
  background: var(--paper);
}

.flow-step.is-active .flow-step__num {
  color: var(--accent);
}

.flow-step.is-active .flow-step__title {
  color: var(--ink);
}

.flow-step.is-active .flow-step__desc {
  color: var(--ink-2);
}

.flow-step__bar {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  overflow: hidden;
}

.flow-step__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.flow.is-playing .flow-step.is-active .flow-step__bar::after {
  animation: flowBar var(--flow-ms, 7000ms) linear forwards;
}

@keyframes flowBar {
  to { transform: scaleX(1); }
}

.flow__stage {
  position: relative;
  min-height: 520px;
  background: var(--sand);
  overflow: hidden;
}

/* Las escenas se relevan con un telón que sube, no con un fundido */
.flow-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: inset(100% 0 0 0);
}

.flow-scene.is-prev {
  z-index: 1;
  clip-path: inset(0);
}

.flow-scene.is-active {
  z-index: 2;
  clip-path: inset(0);
  transition: clip-path 1.15s var(--ease-in-out);
}

.flow-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s var(--ease);
}

.flow-scene.is-active img {
  transform: scale(1);
}

.flow__count {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: var(--r-xs);
  background: rgba(250, 249, 245, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.flow__count b {
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   09. RESULTADOS
   Sin caja: las cifras se apoyan directamente sobre el lienzo, como en una
   página editorial, para romper la sucesión de marcos del resto de secciones.
   ========================================================================== */
.board {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6.6vw, 100px);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 30px;
}

/* Filete superior de cada cifra: se traza de izquierda a derecha */
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out);
}

.kpi:nth-child(2)::before { transition-delay: 0.12s; }
.kpi:nth-child(3)::before { transition-delay: 0.24s; }
.kpi:nth-child(4)::before { transition-delay: 0.36s; }

.js .board:not(.is-visible) .kpi::before {
  transform: scaleX(0);
}

.kpi__val {
  display: flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 2rem + 4.5vw, 6.2rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}

.kpi__sym {
  margin-right: 0.07em;
  font-size: 0.62em;
  font-weight: 300;
  transform: translateY(-0.2em);
  opacity: 0.7;
}

.kpi__sym--slash {
  margin-inline: 0.06em;
  font-size: 0.86em;
  transform: none;
  opacity: 0.45;
}

.kpi__unit {
  margin-left: 0.1em;
  font-size: 0.46em;
  letter-spacing: -0.01em;
  opacity: 0.8;
}

.kpi__label {
  max-width: 25ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 44px);
}

.versus__col--after {
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line-strong);
}

.versus__col h3 {
  margin-top: 18px;
  max-width: 19ch;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.62rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.versus__col--before h3 {
  color: var(--ink-2);
}

.versus__col ul {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
}

.versus__col li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.versus__col li:last-child {
  border-bottom: 1px solid var(--line);
}

.versus__col li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.versus__col--before li svg {
  color: var(--ink-4);
}

.versus__col--after li {
  color: var(--ink);
}

.versus__col--after li svg {
  color: var(--accent);
}

.board-note {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: 0.79rem;
  color: var(--ink-3);
}

/* ==========================================================================
   10. PREGUNTAS FRECUENTES
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 44px);
}

.faq__head .link-arrow {
  margin-top: 30px;
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: baseline;
  gap: 12px;
  padding: 24px 2px;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  transition: color 0.3s ease;
}

.faq-item__q {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

.faq-item__icon {
  position: relative;
  align-self: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  left: 7.5px;
  right: 7.5px;
  top: 11.25px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease;
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item summary:hover .faq-item__icon {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.faq-item summary:hover .faq-item__icon::before,
.faq-item summary:hover .faq-item__icon::after {
  background: var(--paper);
}

.faq-item.is-open .faq-item__icon::after,
html:not(.js) .faq-item[open] .faq-item__icon::after {
  transform: rotate(0deg);
}

.faq-item.is-open .faq-item__num {
  color: var(--accent);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}

.faq-item.is-open .faq-item__panel,
html:not(.js) .faq-item[open] .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__a {
  min-height: 0;
  overflow: hidden;
  max-width: 60ch;
  padding: 0 36px 0 44px;
  font-size: 0.95rem;
  line-height: 1.66;
  color: var(--ink-2);
  text-wrap: pretty;
  opacity: 0;
  transition: opacity 0.4s ease, padding-bottom 0.55s var(--ease-out);
}

.faq-item.is-open .faq-item__a,
html:not(.js) .faq-item[open] .faq-item__a {
  padding-bottom: 28px;
  opacity: 1;
}

/* ==========================================================================
   11. CONTACTO
   ========================================================================== */
.section--cta {
  padding-top: 0;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 1px;
  border-radius: var(--r-md);
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md);
  overflow: hidden;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(36px, 5.2vw, 72px);
  background:
    linear-gradient(105deg, var(--sand) 56%, rgba(243, 240, 234, 0.8) 100%),
    url("assets/img/hero-backdrop.svg") right center / cover no-repeat;
}

.cta__copy .section-title {
  max-width: 13ch;
}

.cta__points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cta__points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 450;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.cta__points svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent);
}

.form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5.2vw, 72px) clamp(28px, 4.6vw, 64px);
  background: var(--paper);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: -0.004em;
  color: var(--ink-2);
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.92rem;
  color: var(--ink);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.field input::placeholder {
  color: var(--ink-4);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23474E56' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.field select:invalid {
  color: var(--ink-4);
}

.field input:hover,
.field select:hover {
  box-shadow: inset 0 0 0 1px rgba(21, 24, 28, 0.3);
}

.field input:focus,
.field select:focus {
  outline: none;
  background-color: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(53, 80, 112, 0.1);
}

.field.is-invalid input,
.field.is-invalid select {
  box-shadow: inset 0 0 0 1.5px #B4533C, 0 0 0 4px rgba(180, 83, 60, 0.08);
}

.form__submit {
  width: 100%;
  margin-top: 24px;
}

.form__legal {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* Estado de confirmación: sustituye al formulario con un fundido */
.form__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: inherit;
  background: var(--paper);
  animation: fadeIn 0.6s ease both;
}

.form__done[hidden] {
  display: none;
}

.form__done-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  animation: msgIn 0.7s var(--ease-out) 0.15s both;
}

.form__done-mark svg {
  width: 18px;
  height: 18px;
}

.form__done b {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.form__done p {
  max-width: 38ch;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ==========================================================================
   12. PIE
   ========================================================================== */
.footer {
  background: var(--sand);
  border-top: 1px solid var(--line-strong);
  padding-bottom: 34px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
  border-bottom: 1px solid var(--line-strong);
}

.footer__brand,
.footer__col {
  padding-block: clamp(48px, 5.4vw, 72px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: clamp(28px, 4vw, 56px);
}

.footer__brand .logo {
  height: 30px;
}

.footer__tagline {
  margin-top: 24px;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.52;
  color: var(--ink-2);
  text-wrap: pretty;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.footer__mail {
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.footer__mail:hover {
  color: var(--ink);
}

.footer__col {
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--line-strong);
}

.footer__col h3 {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 0.92rem;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease-out), color 0.25s ease;
}

.footer__col a:hover {
  background-size: 100% 1px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

.footer__legal a {
  transition: color 0.25s ease;
}

.footer__legal a:hover {
  color: var(--ink);
}

.footer__top {
  color: var(--ink);
  font-weight: 500;
}

.footer__top span {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.footer__top:hover span {
  transform: translateY(-3px);
}

/* ==========================================================================
   13. ANIMACIONES DE ENTRADA
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   14. DETALLES DE MOVIMIENTO
   Tres ideas y nada más: la tinta que llega (botones, filetes, progreso),
   la máscara que descubre (titulares, escenas, firma) y el punto que late.
   ========================================================================== */

/* ---- Progreso de lectura: un filete de tinta bajo la navegación ---- */
.navbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  pointer-events: none;
}

@media (hover: hover) {
  .navbar__links a:not(.is-current):hover::after {
    background: var(--ink-4);
    transform: scaleX(1);
  }
}

/* ---- Etiquetas de sección: el filete se traza ---- */
.eyebrow__num::after {
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out) 0.3s;
}

.js .reveal:not(.is-visible) .eyebrow__num::after,
.js .eyebrow.reveal:not(.is-visible) .eyebrow__num::after {
  transform: scaleX(0);
}

/* ---- Titulares de sección: cada línea sube desde detrás de una máscara ---- */
.js [data-rise]:not(.is-split) {
  opacity: 0;
}

[data-rise] .w {
  display: inline-block;
  clip-path: inset(-0.14em -0.12em -0.26em -0.12em);
}

[data-rise] .w__in {
  display: inline-block;
  transform: translateY(130%);
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 0.095s + 0.05s);
  will-change: transform;
}

[data-rise].is-inview .w__in {
  transform: none;
}

/* ---- Hero: profundidad al hacer scroll y asentamiento de las ilustraciones ---- */
.js .hero__pic img {
  transform: scale(1.18);
}

.js.is-loaded .hero__pic img {
  transform: none;
  transition: transform 2.4s var(--ease-out) calc(0.35s + var(--i, 0) * 0.13s);
}

@media (min-width: 1161px) {
  .hero__center {
    transform: translate3d(0, calc(var(--hp, 0) * 64px), 0);
  }

  .js.is-loaded .hero.is-settled .hero__pic {
    translate: 0 var(--sy, 0px);
    transition: transform 0.9s var(--ease-out);
  }
}

/* ---- Hero: el producto en la primera pantalla ----
   Una pregunta, su respuesta y la cita creada flotan entre las ilustraciones
   y se suceden una sola vez al cargar. Solo en pantallas anchas. */
.hero__live {
  display: none;
}

@media (min-width: 1320px) {
  .hero__live {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
  }

  .live {
    position: absolute;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    translate: 0 var(--sy, 0px);
    transition: transform 0.9s var(--ease-out);
  }

  .live--chat {
    left: clamp(96px, 8.4vw, 128px);
    top: calc(var(--nav-h) + 414px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 238px;
  }

  .live--ticket {
    right: clamp(88px, 7.6vw, 118px);
    top: calc(var(--nav-h) + 452px);
    width: 250px;
  }

  .live__bubble {
    padding: 9px 13px 10px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.36;
    letter-spacing: -0.004em;
    text-align: left;
    box-shadow:
      0 0 0 1px rgba(21, 24, 28, 0.08),
      0 14px 28px -14px rgba(21, 24, 28, 0.208);
  }

  .live__bubble--me {
    align-self: flex-end;
    background: #D9FDD3;
    color: #111B21;
    border-bottom-right-radius: 4px;
    transform-origin: 100% 100%;
  }

  .live__bubble--them {
    justify-self: start;
    align-self: start;
    background: var(--paper);
    color: var(--ink);
    border-bottom-left-radius: 4px;
    transform-origin: 0 100%;
  }

  /* «Escribiendo…» y la respuesta ocupan la misma celda: una releva a la otra */
  .live__reply {
    display: grid;
  }

  .live__reply > * {
    grid-area: 1 / 1;
  }

  .live__typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    opacity: 0;
  }

  .live__typing i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-4);
    animation: typing 1.1s var(--ease-in-out) infinite;
  }

  .live__typing i:nth-child(2) { animation-delay: 0.15s; }
  .live__typing i:nth-child(3) { animation-delay: 0.3s; }

  .live__card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 11px;
    background: var(--paper);
    overflow: hidden;
    box-shadow:
      0 0 0 1px var(--accent-line),
      0 18px 32px -16px rgba(21, 24, 28, 0.221);
  }

  .live__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(53, 80, 112, 0) 38%, rgba(53, 80, 112, 0.12) 50%, rgba(53, 80, 112, 0) 62%);
    transform: translateX(-110%);
  }

  .live__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 68px;
    padding: 12px 0;
    border-right: 1px solid var(--line);
  }

  .live__date span {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .live__date b {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: lining-nums tabular-nums;
  }

  .live__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 10px 13px;
    text-align: left;
  }

  .live__info small {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .live__info b {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
  }

  /* Secuencia de entrada: pregunta → escribiendo → respuesta → cita */
  .js .live__bubble--me,
  .js .live__answer,
  .js .live__card {
    opacity: 0;
  }

  .js.is-loaded .live__bubble--me {
    animation: liveIn 0.7s var(--ease-out) 2.1s both;
  }

  .js.is-loaded .live__typing {
    animation: liveTyping 1.25s ease 2.9s both;
  }

  .js.is-loaded .live__answer {
    animation: liveIn 0.7s var(--ease-out) 4.05s both;
  }

  .js.is-loaded .live__card {
    animation: liveIn 0.8s var(--ease-out) 5s both;
  }

  .js.is-loaded .live__card::after {
    animation: sheen 1.3s var(--ease-in-out) 5.6s;
  }
}

@keyframes liveIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes liveTyping {
  0% { opacity: 0; transform: translateY(8px) scale(0.95); }
  18%, 84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* ---- Retículas con luz: los filetes se tiñen de pizarra cerca del cursor ---- */
[data-glow] {
  position: relative;
}

[data-glow]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(53, 80, 112, 0.7), rgba(53, 80, 112, 0) 70%);
  opacity: 0;
  transition: opacity 0.7s ease;
}

[data-glow].is-glowing::before {
  opacity: 1;
}

[data-glow] > * {
  position: relative;
  z-index: 1;
}

/* ---- Especialidades: los iconos se dibujan a sí mismos ---- */
.js .spec .spec__icon {
  opacity: 0;
  transition: opacity 0.4s ease calc(var(--d, 0s) + 0.25s), transform 0.6s var(--ease-out);
}

.js .spec .spec__icon * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-in-out) calc(var(--d, 0s) + 0.3s);
}

.js .spec.is-visible .spec__icon {
  opacity: 1;
}

.js .spec.is-visible .spec__icon * {
  stroke-dashoffset: 0;
}

/* ---- Simulador: un destello recorre la cita recién creada ---- */
.ticket {
  overflow: hidden;
}

.ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(53, 80, 112, 0) 38%, rgba(53, 80, 112, 0.11) 50%, rgba(53, 80, 112, 0) 62%);
  transform: translateX(-110%);
}

.ticket.is-done::after {
  animation: sheen 1.3s var(--ease-in-out) 0.5s;
}

@keyframes sheen {
  to { transform: translateX(110%); }
}

/* ---- Preguntas: la pregunta se adelanta un paso al señalarla ---- */
.faq-item__q {
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .faq-item summary:hover .faq-item__q {
    transform: translateX(5px);
  }

  .faq-item summary:hover .faq-item__num {
    color: var(--accent);
  }
}

/* ---- Formulario: la etiqueta acompaña al foco ---- */
.field label {
  transition: color 0.3s ease;
}

.field:focus-within label {
  color: var(--accent);
}

.field input,
.field select {
  caret-color: var(--accent);
}

/* ---- Firma del pie: el logotipo emerge a gran tamaño, tono sobre tono ---- */
.footer__sign {
  margin-top: clamp(36px, 5vw, 72px);
  padding: 2.4% 0 1.2%;
  overflow: hidden;
}

.footer__sign .logo {
  width: 100%;
  height: auto;
}

.footer__sign .logo__letters,
.footer__sign .logo__dot {
  fill: #E4DFD5;
}

.footer__sign .logo__point {
  fill: var(--accent);
}

.js .footer__sign .logo {
  transform: translateY(46%);
  transition: transform 1.7s var(--ease-out);
}

.js .footer__sign.is-visible .logo {
  transform: none;
}

.footer__sign.is-typing .logo__dot {
  animation-name: logoHopSoft;
  animation-duration: 0.8s;
}

.footer__sign.is-typing .logo__point {
  animation-name: logoLandSoft;
}

@keyframes logoHopSoft {
  45% { transform: translateY(-20%); }
}

@keyframes logoLandSoft {
  45% { transform: scale(1.14); }
}

/* ---- Controles de reproducción: pausa del simulador y de «Cómo funciona» ---- */
.ctrl {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-2);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.ctrl[hidden] {
  display: none;
}

.ctrl svg {
  width: 12px;
  height: 12px;
}

.ctrl[aria-pressed="true"] .ctrl__pause,
.ctrl:not([aria-pressed="true"]) .ctrl__play {
  display: none;
}

.ctrl[aria-pressed="true"] {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--accent);
}

@media (hover: hover) {
  .ctrl:hover {
    background: var(--ink);
    color: var(--paper);
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}

.ctrl--glass {
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: rgba(250, 249, 245, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line);
}

.agenda__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* En pausa, lo que se estaba moviendo se queda quieto */
.sim.is-paused .msg--typing i,
.sim.is-paused .step.is-active .step__dot::before,
.sim.is-paused .slots.is-open .slot,
.sim.is-paused .chat__caret {
  animation-play-state: paused;
}

.flow.is-paused .flow-step.is-active .flow-step__bar::after {
  animation-play-state: paused;
}

/* ---- Huecos que el visitante puede elegir ---- */
button.slot {
  cursor: pointer;
}

button.slot:disabled {
  cursor: default;
}

.slots {
  align-items: center;
}

.slots.is-open .slot {
  animation: slotInvite 1.8s var(--ease-in-out) 0.5s infinite;
}

.slots.is-open .slot:nth-child(2) {
  animation-delay: 0.72s;
}

@media (hover: hover) {
  .slots.is-open .slot:hover {
    background: color-mix(in srgb, var(--ch) 10%, var(--paper));
    box-shadow: inset 0 0 0 1.5px var(--ch);
    animation: none;
  }
}

@keyframes slotInvite {
  0%, 60%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ch) 42%, transparent), 0 0 0 0 color-mix(in srgb, var(--ch) 0%, transparent); }
  30% { box-shadow: inset 0 0 0 1px var(--ch), 0 0 0 4px color-mix(in srgb, var(--ch) 14%, transparent); }
}

.slots__hint {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ch) 80%, #15181C);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slots__hint::before {
  content: "← ";
}

.slots.is-open .slots__hint {
  opacity: 1;
  transition-delay: 0.7s;
}

/* ---- Tira de pasos pegada al chat: solo cuando chat y agenda se apilan ---- */
.chat__steps {
  display: none;
}

/* ---- «Cómo funciona»: contador y pausa, arriba a la izquierda ---- */
.flow__ctrl {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.flow__ctrl .flow__count {
  position: static;
  height: 28px;
  padding-block: 0;
  line-height: 28px;
  white-space: pre;
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

/* El collage deja de flotar y pasa a ser una tira bajo el titular */
@media (max-width: 1160px) {
  .hero {
    padding-bottom: clamp(56px, 8vw, 84px);
  }

  .hero__art {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 16px);
    margin-top: clamp(52px, 8vw, 76px);
  }

  .hero__pic,
  .hero__pic--l1,
  .hero__pic--l2,
  .hero__pic--r1,
  .hero__pic--r2 {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: clamp(132px, 23vw, 210px);
    aspect-ratio: 3 / 4;
    border-radius: 4px;
  }

  .hero__pic--l2,
  .hero__pic--r1 {
    margin-top: clamp(28px, 5vw, 48px);
  }
}

@media (max-width: 1040px) {
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-head--split .section-lede {
    margin-top: 22px;
    padding-bottom: 0;
  }

  .sim-tab {
    padding: 0 16px;
    gap: 10px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec {
    min-height: 236px;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow__stage {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .flow__steps {
    grid-template-rows: none;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .faq,
  .cta {
    grid-template-columns: 1fr;
  }

  .faq__head {
    position: static;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .footer__meta {
    padding-top: 28px;
  }

  .footer__col:first-of-type {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: block;
  }

  .sim__stage {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .chat {
    height: 520px;
  }

  .agenda {
    height: auto;
  }

  .steps {
    padding-block: 22px;
  }

  .sim-tab__meta {
    display: none;
  }

  .sim-tab {
    height: 58px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 62px;
  }

  .logo {
    height: 23px;
  }

  .hero__title {
    letter-spacing: -0.042em;
  }

  .hero__ctas {
    width: 100%;
  }

  .hero__ctas .btn {
    flex: 1 1 160px;
  }

  .hero__channels {
    gap: 8px 18px;
  }

  .sim {
    margin-inline: calc(var(--gutter) * -0.5);
  }

  .sim-tab {
    flex-direction: column;
    gap: 6px;
    height: 68px;
    padding: 0 4px;
  }

  .sim-tab__icon {
    width: 19px;
    height: 19px;
  }

  .sim-tab__label {
    font-size: 0.74rem;
    letter-spacing: -0.005em;
  }

  .sim__canvas {
    padding: 14px 12px 16px;
  }

  .chat {
    height: 492px;
  }

  .msg {
    max-width: 86%;
  }

  .agenda {
    padding-inline: 18px;
  }

  .agenda__head {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .ticket__date {
    width: 74px;
  }

  .ticket__label {
    white-space: normal;
    line-height: 1.4;
  }

  .spec-grid,
  .kpis,
  .versus,
  .form__grid {
    grid-template-columns: 1fr;
  }

  .spec {
    min-height: 0;
    padding: 24px 22px;
  }

  .spec__top {
    margin-bottom: 26px;
  }

  .flow-step {
    padding: 22px 20px 24px;
    gap: 14px;
  }

  /* En móvil solo el paso activo despliega su descripción */
  .flow-step__desc {
    display: none;
  }

  .flow-step.is-active .flow-step__desc {
    display: block;
    animation: fadeIn 0.6s ease both;
  }

  .flow__stage {
    aspect-ratio: 4 / 3;
  }

  .kpi {
    padding-top: 24px;
    gap: 16px;
  }

  .kpis {
    row-gap: 40px;
  }

  .versus {
    row-gap: 48px;
  }

  .versus__col--after {
    padding-left: 0;
    border-left: 0;
  }

  .kpi__label {
    max-width: none;
  }

  .faq-item summary {
    grid-template-columns: 26px minmax(0, 1fr) 24px;
    padding: 20px 0;
  }

  .faq-item__q {
    font-size: 1.02rem;
  }

  .faq-item__a {
    padding: 0 8px 0 38px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__col {
    padding-left: 22px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Chat y agenda apilados: los cinco pasos se resumen en una tira bajo la cabecera del chat */
@media (max-width: 900px) {
  .chat__steps {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 8px 0 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .chat__steps-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
  }

  .chat__steps-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }

  .chat__steps-dots i.is-active {
    box-shadow: inset 0 0 0 2px var(--accent);
  }

  .chat__steps-dots i.is-done {
    background: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
  }

  .chat__steps-label {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease;
  }

  .chat__steps.is-booked .chat__steps-label {
    color: var(--accent);
  }

  .chat__steps .ctrl {
    box-shadow: none;
  }

  /* La agenda ya tiene su pausa en la tira del chat */
  .agenda__actions .ctrl {
    display: none;
  }

  .navbar__toggle {
    width: 44px;
    height: 44px;
  }

  .navbar__toggle span {
    left: 13px;
    right: 13px;
  }

  .navbar__toggle span:first-child { top: 17px; }
  .navbar__toggle span:last-child { top: 25px; }

  .navbar__toggle[aria-expanded="true"] span:first-child,
  .navbar__toggle[aria-expanded="true"] span:last-child {
    top: 21px;
  }

  .navbar .btn--sm {
    height: 44px;
  }
}

@media (max-width: 640px) {
  .slots__hint {
    display: none;
  }

  /* Especialidades: un carrusel horizontal en lugar de ocho tarjetas apiladas */
  .spec-grid,
  .section--night .spec-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 1px var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .spec-grid::-webkit-scrollbar {
    display: none;
  }

  .spec {
    flex: 0 0 78%;
    min-height: 236px;
    border-radius: var(--r-md);
    box-shadow: 0 0 0 1px var(--line-strong);
    scroll-snap-align: start;
  }

  .section--night .spec {
    box-shadow: 0 0 0 1px var(--night-line);
  }

  /* Las tarjetas que esperan fuera de la pantalla ya están visibles al deslizar */
  .js .spec.reveal {
    opacity: 1;
    transform: none;
  }
}

/* Pantallas táctiles: zonas de pulsación de al menos 44 px sin cambiar el aspecto */
@media (pointer: coarse) {
  .brand,
  .link-arrow,
  .footer__col a,
  .footer__legal a,
  .footer__mail {
    position: relative;
  }

  .brand::after,
  .link-arrow::before,
  .footer__col a::after,
  .footer__legal a::after,
  .footer__mail::after {
    content: "";
    position: absolute;
    inset: -12px -6px;
  }

  .footer__col ul {
    gap: 24px;
  }

  .footer__legal {
    row-gap: 24px;
  }

  .replay,
  .ctrl:not(.ctrl--glass) {
    height: 44px;
  }

  .ctrl:not(.ctrl--glass) {
    width: 44px;
  }

  .ctrl--glass::after {
    content: "";
    position: absolute;
    inset: -8px;
  }

  .slot {
    height: 44px;
    padding-inline: 16px;
  }

  .skip-link {
    padding-block: 13px;
  }
}

/* ==========================================================================
   16. MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .hero__pic,
  .js .hero__title .line > * {
    opacity: 1;
    transform: none;
    translate: none;
  }

  .statement__text .w {
    opacity: 1;
  }

  .js .hero__pic img,
  .js .footer__sign .logo,
  [data-rise] .w__in {
    transform: none;
  }

  .js .spec .spec__icon {
    opacity: 1;
  }

  .js .spec .spec__icon * {
    stroke-dashoffset: 0;
  }

  .hero__center {
    transform: none;
  }
}
