/* ============================================================
   EFECTO DOMINÓ - estilos
   Dirección de arte: "Papel y fichas". Noche ciruela, capas de papel
   recortado (rosa, cian, naranja) y fichas de dominó color marfil.
   Un solo tema (oscuro). Una sola acción en amarillo sol: consultar.
   Radios: superficies 22px, controles en píldora, campos 14px.
   ============================================================ */

:root {
  --noche: #1D1030;
  --noche-2: #2A1747;
  --noche-3: #38216A;
  --papel: #FFF4E3;
  --papel-borde: #E4CFB1;
  --suave: #D3C2EC;
  --rosa: #FF3D8B;
  --cian: #19C6D9;
  --naranja: #FF7A2F;
  --lila: #B28CFF;
  --sol: #FFB629;
  --sol-borde: #B87400;

  --f-titulo: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sup: 22px;
  --r-campo: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --ancho: 1240px;
  --respiro: clamp(72px, 10vw, 136px);
  --curva: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--noche); color: var(--papel);
  font: 400 1.0625rem/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--f-titulo); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 6px; }
.ficha :focus-visible, .faq :focus-visible { outline-color: var(--noche); }

.salto { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--sol); color: var(--noche); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.salto:focus { top: 12px; }
.contenedor { width: min(100% - var(--gutter) * 2, var(--ancho)); margin-inline: auto; }
.seccion { padding-block: var(--respiro); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: .95rem 1.6rem; min-height: 48px; border-radius: 999px;
  background: var(--sol); color: var(--noche); border: 2px solid var(--noche);
  font: 700 1rem/1 var(--f-texto); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--sol-borde);
  transition: transform .18s var(--curva), box-shadow .18s var(--curva);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sol-borde); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sol-borde); }
.btn--chico { padding: .7rem 1.2rem; min-height: 44px; font-size: .95rem; }
.enlace-flecha { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--rosa); }
.enlace-flecha span { display: inline-block; transition: transform .2s var(--curva); }
.enlace-flecha:hover span { transform: translateX(5px); }
.boton-texto { background: none; border: 0; padding: 12px 4px; min-height: 44px; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--cian); text-decoration-thickness: 2px; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: var(--noche); transition: box-shadow .25s; }
.cabecera.is-stuck { box-shadow: 0 1px 0 rgb(255 244 227 / .14); }
.cabecera__fila { width: min(100% - var(--gutter) * 2, var(--ancho)); margin-inline: auto; min-height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; margin-right: auto; }
.logo__texto { font: 800 1.2rem/1 var(--f-titulo); letter-spacing: -.02em; }
.menu { display: flex; gap: 26px; }
.menu a { text-decoration: none; font-weight: 500; padding: 8px 2px; background: linear-gradient(var(--rosa), var(--rosa)) 0 100% / 0 3px no-repeat; transition: background-size .25s var(--curva); }
.menu a:hover { background-size: 100% 3px; }
.menu-boton { display: none; background: none; border: 2px solid rgb(255 244 227 / .4); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-weight: 700; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(calc(100dvh - 72px), 860px); display: flex; align-items: center; background: var(--noche); }
.hero__escena { position: absolute; inset: 0; z-index: -1; }
.capa, .hero__video { position: absolute; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.capa {
  inset: -3% -3%; width: 106%; height: 106%; object-position: 70% 50%;
  translate: calc(var(--px, 0) * var(--d, 0) * 1px) calc(var(--py, 0) * var(--d, 0) * 1px);
  transition: translate .5s var(--curva);
  will-change: translate;
}
.hero__video { inset: 0; opacity: 0; transition: opacity .8s; }
.hero.has-video .hero__video { opacity: 1; }
.hero.has-video .capa { opacity: 0; }
.hero__texto { width: min(100% - var(--gutter) * 2, var(--ancho)); margin-inline: auto; padding-block: 36px 150px; }
.hero__texto > * { max-width: min(54vw, 760px); }
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.6rem); line-height: 1; }
.hero mark { background: var(--rosa); color: var(--noche); padding: 0 .16em .04em; margin-inline: -.04em; border-radius: 4px; display: inline-block; transform: rotate(-1.6deg); box-shadow: 0 .09em 0 #B8236A; }
.hero__bajada { margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--papel); max-width: 34rem !important; text-shadow: 0 1px 14px rgb(29 16 48 / .9); }
.acciones { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .capa { animation: desliza linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes desliza { to { transform: translateY(calc((1 - var(--z, 0)) * 150px)); } }
  }
  .js .hero h1, .js .hero__bajada, .js .hero .acciones { animation: entra .9s var(--curva) both; }
  .js .hero__bajada { animation-delay: .12s; }
  .js .hero .acciones { animation-delay: .24s; }
  @keyframes entra { from { opacity: 0; transform: translateY(26px); } }
}

/* ---------- Catálogo: fichas de dominó ---------- */
.servicios { background: var(--noche); padding-bottom: calc(var(--respiro) * .6); }
.servicios__nota { margin-top: 16px; max-width: 40rem; color: var(--suave); }
.carril { margin-top: clamp(32px, 5vw, 56px); }
.fichas {
  display: flex; gap: clamp(16px, 2.4vw, 32px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 24px max(var(--gutter), calc((100vw - var(--ancho)) / 2)) 44px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--ancho)) / 2));
  scrollbar-width: thin; scrollbar-color: rgb(255 61 139 / .8) rgb(255 244 227 / .08);
  align-items: flex-start;
}
.fichas:focus-visible { outline-offset: -6px; }
.fichas::-webkit-scrollbar { height: 6px; }
.fichas::-webkit-scrollbar-track { background: rgb(255 244 227 / .08); border-radius: 6px; margin-inline: max(var(--gutter), calc((100vw - var(--ancho)) / 2)); }
.fichas::-webkit-scrollbar-thumb { background: rgb(255 61 139 / .8); border-radius: 6px; }
.ficha { flex: 0 0 clamp(236px, 72vw, 268px); scroll-snap-align: start; perspective: 900px; }
.ficha:nth-child(even) { margin-top: 26px; }
.ficha__cuerpo-total {
  position: relative; background: var(--papel); color: var(--noche); border-radius: var(--r-sup);
  box-shadow: 0 7px 0 var(--papel-borde), 0 26px 34px -14px rgb(0 0 0 / .6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--curva);
}
.ficha__cuerpo-total::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgb(29 16 48 / .13); border-radius: 16px; pointer-events: none; }
.ficha__pips { padding: 20px 0 16px; display: grid; place-items: center; }
.pips { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 5px; width: 92px; height: 92px; }
.pips i { grid-area: var(--a); width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .18), 0 2px 0 rgb(255 255 255 / .6); }
.n1 i:nth-child(1) { --a: 2 / 2; }
.n2 i:nth-child(1) { --a: 1 / 1; } .n2 i:nth-child(2) { --a: 3 / 3; }
.n3 i:nth-child(1) { --a: 1 / 1; } .n3 i:nth-child(2) { --a: 2 / 2; } .n3 i:nth-child(3) { --a: 3 / 3; }
.n4 i:nth-child(1) { --a: 1 / 1; } .n4 i:nth-child(2) { --a: 1 / 3; } .n4 i:nth-child(3) { --a: 3 / 1; } .n4 i:nth-child(4) { --a: 3 / 3; }
.n5 i:nth-child(1) { --a: 1 / 1; } .n5 i:nth-child(2) { --a: 1 / 3; } .n5 i:nth-child(3) { --a: 2 / 2; } .n5 i:nth-child(4) { --a: 3 / 1; } .n5 i:nth-child(5) { --a: 3 / 3; }
.n6 i:nth-child(1) { --a: 1 / 1; } .n6 i:nth-child(2) { --a: 2 / 1; } .n6 i:nth-child(3) { --a: 3 / 1; } .n6 i:nth-child(4) { --a: 1 / 3; } .n6 i:nth-child(5) { --a: 2 / 3; } .n6 i:nth-child(6) { --a: 3 / 3; }
.ficha__barra { position: relative; height: 3px; margin-inline: 20px; background: rgb(29 16 48 / .22); border-radius: 2px; }
.ficha__barra::before, .ficha__barra::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--noche); transform: translateY(-50%); }
.ficha__barra::before { left: -30px; } .ficha__barra::after { right: -30px; }
.ficha__texto { padding: 20px 22px 24px; }
.ficha h3 { font-size: 1.3rem; line-height: 1.08; }
.ficha__gancho { margin-top: 8px; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.ficha__desc { margin-top: 6px; font-size: .92rem; color: #4A3A63; }
.ficha details { margin-top: 14px; border-top: 1.5px solid rgb(29 16 48 / .14); }
.ficha summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ficha summary::-webkit-details-marker { display: none; }
.ficha summary::after { content: "+"; font: 800 1.4rem/1 var(--f-titulo); transition: transform .25s var(--curva); }
.ficha details[open] summary::after { transform: rotate(45deg); }
.ficha details ul { padding: 0 0 12px 1.1em; list-style: disc; display: grid; gap: 6px; font-size: .96rem; color: #4A3A63; }
.ficha details li::marker { color: var(--c); }
.ficha__precio { margin-top: 12px; font-size: 1.02rem; line-height: 1.3; }
.ficha__precio strong { font: 800 1.3rem/1.1 var(--f-titulo); letter-spacing: -.01em; }
.ficha__precio span { display: block; font-size: .85rem; color: #4A3A63; }
.ficha .btn { margin-top: 16px; width: 100%; min-height: 46px; padding-inline: 1rem; font-size: .95rem; }
.ficha .btn { transition: transform .18s var(--curva), box-shadow .18s var(--curva); }

.pager { display: flex; justify-content: flex-start; gap: 12px; margin-top: -8px; }
.pager__boton { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--papel); background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s, transform .18s var(--curva); }
.pager__boton:hover { background: var(--papel); color: var(--noche); }
.pager__boton:active { transform: translateY(2px); }
.pager__boton[disabled] { opacity: .35; cursor: default; background: transparent; color: inherit; }
.sin-js { padding: 0 var(--gutter); display: grid; gap: 8px; font-weight: 700; }
.sin-js__nota { padding: 16px var(--gutter); }

/* ---------- La cadena ---------- */
.cadena { position: relative; isolation: isolate; overflow: hidden; background: var(--noche-2); padding-block: var(--respiro); }
.cadena__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: -1; transition: opacity .8s; }
.cadena.has-video .cadena__video { opacity: .38; }
.cadena h2 { max-width: 24ch; font-size: clamp(1.9rem, 4vw, 3.4rem); }
.hilera { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); align-items: end; }
.pieza { position: relative; padding-bottom: 6px; }
.pieza__ficha {
  display: grid; grid-template-rows: 1fr 1fr; width: clamp(54px, 7.4vw, 92px); aspect-ratio: 1 / 2; margin-bottom: 22px;
  background: var(--papel); border-radius: 14px; box-shadow: 0 5px 0 var(--papel-borde), 0 18px 24px -10px rgb(0 0 0 / .55);
  transform-origin: 100% 100%; position: relative;
}
.pieza__ficha::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: rgb(29 16 48 / .22); }
.pieza__ficha i { display: block; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--c); align-self: center; justify-self: center; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18); }
.pieza p { font-size: .96rem; line-height: 1.4; color: var(--suave); }
.pieza strong { display: block; font: 800 1.3rem/1.1 var(--f-titulo); color: var(--papel); margin-bottom: 4px; }
.cadena .boton-texto { margin-top: 40px; }
.cadena .boton-texto[data-pausa] { text-decoration-color: var(--cian); }

/* Caída en bucle: cada ficha empuja a la siguiente, quedan caídas un rato y vuelven a pararse.
   Solo corre mientras la banda se ve en pantalla (.is-playing) y se puede pausar (.is-paused). */
.js .cadena .pieza__ficha, .js .cadena .pieza p { animation-duration: 8s; animation-iteration-count: infinite; animation-fill-mode: both; animation-delay: calc(var(--i) * .5s); animation-play-state: paused; }
.js .cadena.is-playing:not(.is-paused) .pieza__ficha, .js .cadena.is-playing:not(.is-paused) .pieza p { animation-play-state: running; }
.js .cadena .pieza__ficha { animation-name: cae-bucle; }
.js .cadena .pieza p { animation-name: leyenda; }
@keyframes cae-bucle {
  0%, 6% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.55, .05, .85, .45); }
  14%, 78% { transform: rotate(var(--fin)); animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
  90%, 100% { transform: rotate(0deg); }
}
@keyframes leyenda {
  0%, 6% { opacity: .5; }
  16%, 78% { opacity: 1; }
  90%, 100% { opacity: .5; }
}
/* Sin JavaScript: se ven ya caídas, con los textos legibles */
html:not(.js) .pieza__ficha { transform: rotate(var(--fin)); }

/* ---------- El estudio ---------- */
.estudio { background: var(--noche); }
.estudio__rejilla { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.estudio h2 { max-width: 15ch; }
.razones { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: clamp(28px, 4vw, 44px); }
.razones h3 { font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.razones p { margin-top: 8px; max-width: 34rem; color: var(--suave); }
.estudio__foto { position: sticky; top: 110px; margin: 0; padding: 18px 18px 0 0; }
.estudio__marco { position: relative; padding: 10px 10px 14px; background: var(--papel); border-radius: var(--r-sup); box-shadow: 0 7px 0 var(--papel-borde), 0 28px 40px -16px rgb(0 0 0 / .6); transform: rotate(1.6deg); }
.estudio__marco img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.estudio__foto figcaption { margin-top: 58px; max-width: 26rem; color: var(--suave); font-size: .96rem; }
.estudio__foto figcaption small { display: block; margin-top: 6px; font-size: .8rem; opacity: .85; }
.recorte {
  --t: 132px; position: relative; display: grid; place-content: center; text-align: center;
  width: var(--t); height: var(--t); border-radius: 50%; color: var(--noche); font-weight: 700; line-height: 1.15; padding: 22px;
  box-shadow: 8px 10px 0 rgb(0 0 0 / .32); transform: rotate(var(--giro, -6deg));
}
.recorte strong { display: block; font: 800 3.2rem/.9 var(--f-titulo); letter-spacing: -.04em; }
.recorte--rosa { position: absolute; left: -46px; bottom: -34px; background: var(--rosa); --giro: -7deg; z-index: 2; }
.recorte--cian { position: absolute; right: -34px; top: -40px; background: var(--cian); --giro: 5deg; --t: 120px; z-index: 2; }

/* ---------- Preguntas ---------- */
.preguntas { background: var(--noche-2); }
.faq { margin-top: clamp(28px, 4vw, 48px); margin-left: clamp(0px, 10vw, 150px); max-width: 52rem; display: grid; gap: 12px; }
.faq details { background: var(--papel); color: var(--noche); border-radius: var(--r-sup); box-shadow: 0 5px 0 var(--papel-borde); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 26px; min-height: 64px; font: 800 1.2rem/1.2 var(--f-titulo); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 800 1.7rem/1 var(--f-titulo); transition: transform .25s var(--curva); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; max-width: 42rem; color: #4A3A63; }

/* ---------- Contacto ---------- */
.contacto { position: relative; isolation: isolate; overflow: hidden; background: var(--noche); padding-block: var(--respiro) calc(var(--respiro) + 40px); }
.contacto__hojas { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: min(50%, 330px); object-fit: cover; object-position: 50% 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%); mask-image: linear-gradient(to top, #000 45%, transparent 100%); }
.contacto__fila { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.contacto h2 { max-width: 14ch; }
.contacto__bajada { margin-top: 20px; max-width: 30rem; color: var(--suave); margin-bottom: 30px; }
.datos {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 18px; padding: 26px 28px;
  border: 2px solid transparent; border-radius: var(--r-sup);
  background: linear-gradient(rgb(29 16 48 / .92), rgb(29 16 48 / .92)) padding-box, linear-gradient(135deg, var(--rosa), var(--sol) 50%, var(--cian)) border-box;
  box-shadow: inset 0 1px 0 rgb(255 244 227 / .28), 0 22px 44px -22px rgb(255 61 139 / .45);
}
.datos > div { position: relative; z-index: 1; }
.datos::after { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgb(255 244 227 / .2) 50%, transparent 70%); transform: translateX(-130%); }
@media (prefers-reduced-motion: no-preference) { .datos::after { animation: brillo 6s ease-in-out 1.2s infinite; } }
@keyframes brillo { 0% { transform: translateX(-130%); } 32%, 100% { transform: translateX(300%); } }
.datos div { display: grid; grid-template-columns: 6.2rem 1fr; gap: 12px; align-items: baseline; }
.datos dt { font-weight: 700; color: var(--suave); font-size: .92rem; }
.datos dd { font-weight: 500; overflow-wrap: anywhere; }
.datos a { display: inline-block; padding-block: 10px; margin-block: -10px; text-decoration-color: var(--rosa); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.pie { background: #150B24; padding-block: 36px 108px; font-size: .92rem; color: var(--suave); }
.pie__fila { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-start; }
.pie__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie a { padding: 10px 0; display: inline-block; text-underline-offset: 4px; }

/* ---------- Botón flotante y asistente ---------- */
.flota {
  position: fixed; z-index: 60; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px);
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 22px 10px 16px;
  background: var(--sol); color: var(--noche); border: 2px solid var(--noche); border-radius: 999px;
  font: 700 1rem/1 var(--f-texto); cursor: pointer; box-shadow: 0 5px 0 var(--sol-borde), 0 18px 30px -8px rgb(0 0 0 / .6);
  transition: transform .18s var(--curva), box-shadow .18s var(--curva);
}
.flota:hover { transform: translateY(-2px); }
.flota:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sol-borde); }
.flota[aria-expanded="true"] { display: none; }

.asistente {
  position: fixed; z-index: 70; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px);
  width: min(396px, calc(100vw - 28px)); max-height: min(640px, calc(100dvh - 28px));
  display: flex; flex-direction: column; background: var(--papel); color: var(--noche);
  border-radius: var(--r-sup); box-shadow: 0 8px 0 var(--papel-borde), 0 30px 60px -10px rgb(0 0 0 / .7);
  overflow: hidden;
}
.asistente[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .asistente { animation: abre .35s var(--curva); } @keyframes abre { from { opacity: 0; transform: translateY(18px) scale(.97); } } }
.asistente__cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--noche); color: var(--papel); }
.asistente__titulo { font: 800 1.1rem/1.1 var(--f-titulo); }
.asistente__nota { font-size: .85rem; color: var(--suave); }
.asistente__cerrar { margin-left: auto; background: none; border: 2px solid rgb(255 244 227 / .4); border-radius: 999px; padding: 6px 16px; min-height: 44px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.asistente__cerrar:hover { background: var(--papel); color: var(--noche); }
.asistente :focus-visible { outline-color: var(--rosa); }
.asistente__cab :focus-visible { outline-color: var(--papel); }
.asistente__cuerpo { overflow-y: auto; padding: 18px 16px 20px; display: grid; gap: 12px; align-content: start; outline: none; }
.burbuja { max-width: 92%; padding: 11px 15px; border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: 0 1px 0 rgb(29 16 48 / .14), inset 0 0 0 1.5px rgb(29 16 48 / .1); font-size: .98rem; line-height: 1.45; }
.burbuja--yo { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--rosa); box-shadow: none; font-weight: 700; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; background: transparent; border: 2px solid var(--noche); font-weight: 700; font-size: .95rem; text-align: left; cursor: pointer; transition: background .15s, color .15s, transform .15s var(--curva); }
.chip:hover { background: var(--noche); color: var(--papel); }
.chip:active { transform: translateY(2px); }
.chip--suave { border-style: dashed; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: .92rem; }
.campo input { min-height: 48px; padding: 10px 14px; border-radius: var(--r-campo); border: 2px solid var(--noche); background: #fff; color: var(--noche); font: 500 1rem var(--f-texto); }
.campo input:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }
.campo small { color: #4A3A63; font-size: .84rem; }
.vista-previa { padding: 12px 14px; border-radius: var(--r-campo); background: rgb(29 16 48 / .06); border: 1.5px dashed rgb(29 16 48 / .4); font-size: .93rem; line-height: 1.45; }
.vista-previa b { display: block; font-size: .8rem; letter-spacing: .02em; margin-bottom: 4px; color: #4A3A63; }
.asistente .btn { width: 100%; }
.aviso { font-size: .88rem; color: #4A3A63; }
.aviso a { font-weight: 700; }
.otro { justify-self: start; }

/* ---------- Revelado ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--curva), transform .8s var(--curva); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: .09s; }
  .js [data-reveal="3"] { transition-delay: .18s; }
  .js .ficha { opacity: 0; transform: translateY(34px) rotate(-6deg); transform-origin: 0 100%; transition: opacity .6s var(--curva), transform .8s var(--curva); }
  .js .ficha.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .menu { gap: 18px; }
  .cabecera__fila { gap: 18px; }
}
@media (max-width: 880px) {
  .menu-boton { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--noche); box-shadow: 0 18px 24px -10px rgb(0 0 0 / .6); }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgb(255 244 227 / .12); }
  .cabecera__fila .btn--chico { display: none; }
  .logo { margin-right: auto; }
  .estudio__rejilla, .contacto__fila { grid-template-columns: 1fr; }
  .estudio__foto { position: static; order: -1; padding: 30px 26px 0 14px; }
  .recorte { --t: min(120px, 34vw); padding: 10px; font-size: .8rem; }
  .recorte strong { font-size: 2.6rem; }
  .recorte--rosa { left: -12px; bottom: -30px; }
  .recorte--cian { --t: min(106px, 30vw); right: -14px; top: -26px; }
  .faq { margin-left: 0; }
  .contacto__hojas { height: 200px; opacity: .8; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-start; }
  .hero__escena { top: auto; height: 56%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  .hero__texto { padding-block: 36px 0; min-height: min(calc(100dvh - 72px), 780px); display: flex; flex-direction: column; }
  .hero__texto > * { max-width: none !important; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.3rem); }
  .capa { object-position: 76% 50%; }
  .hero__video { object-position: 70% 50%; }
  .hero__bajada { text-shadow: none; }
  .hilera { grid-template-columns: 1fr; gap: 0; }
  .pieza { display: grid; grid-template-columns: 112px 1fr; gap: 0 14px; align-items: end; padding-block: 10px 16px; }
  .pieza__ficha { width: 38px; margin: 0 0 6px 6px; justify-self: start; border-radius: 10px; }
  .pieza p { align-self: end; }
  .pieza:nth-child(n) { border-bottom: 1px solid rgb(255 244 227 / .1); }
  .datos div { grid-template-columns: 1fr; gap: 2px; }
  .flota span { display: none; }
  .flota { padding: 12px; min-width: 60px; justify-content: center; }
  .flota svg { width: 34px; height: 34px; }
  .asistente { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100dvh - 16px); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .capa { translate: none !important; transition: none; }
  .js .cadena .pieza__ficha, html .pieza__ficha { animation: none !important; transform: rotate(var(--fin)); }
  .js .cadena .pieza p { animation: none !important; opacity: 1; }
  .cadena [data-pausa] { display: none; }
  .ficha__cuerpo-total { transform: none !important; }
  .hero__video, .cadena__video { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn, .flota, .chip { transition: none; } }

/* ---------- Páginas legales ---------- */
.legal { width: min(100% - var(--gutter) * 2, 46rem); margin: 56px auto 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--suave); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.legal .aviso-borrador { background: var(--papel); color: var(--noche); border-radius: var(--r-sup); padding: 14px 20px; margin: 20px 0 8px; font-weight: 500; }
.legal a { text-underline-offset: 4px; }

/* ---------- Música (apagada por defecto) ---------- */
.music { position: fixed; z-index: 60; left: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 1.1rem 0 .95rem; border-radius: 999px; background: var(--noche-2); color: var(--papel); border: 2px solid rgb(255 244 227 / .4); font: 700 .88rem/1 var(--f-texto); cursor: pointer; box-shadow: 0 14px 26px -10px rgb(0 0 0 / .6); transition: border-color .2s, transform .18s var(--curva); }
.music:hover { transform: translateY(-2px); }
.music[aria-pressed="true"] { border-color: var(--rosa); }
.music__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.music__bars i { width: 3px; height: 5px; background: var(--rosa); border-radius: 2px; }
.music[aria-pressed="true"] .music__bars i { animation: eq .9s ease-in-out infinite; }
.music[aria-pressed="true"] .music__bars i:nth-child(2) { animation-delay: -.3s; }
.music[aria-pressed="true"] .music__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (prefers-reduced-motion: reduce) { .music[aria-pressed="true"] .music__bars i { animation: none; height: 12px; } .music { transition: none; } }
@media (max-width: 760px) { .music { min-width: 60px; min-height: 60px; padding: 0; justify-content: center; } .music__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .music__bars { height: 22px; } .music__bars i { width: 4px; } }

/* Capturas (?static) y movimiento reducido: la cadena se ve ya caída */
.cadena.is-static .pieza__ficha { animation: none !important; transform: rotate(var(--fin)); }
.cadena.is-static .pieza p { animation: none !important; opacity: 1; }
.cadena.is-static [data-pausa] { display: none; }
