/* =====================================================================
   LORENA CAMPILLO — v4 «Luz de espejo» · base
   Su salón es una pared de espejos de marco negro con luz LED detrás.
   La página se enciende como ellos. Su negro y su blanco; el oro de sus
   medallas, solo para los premios y algún detalle de la reserva.
   ===================================================================== */

@font-face {
  font-family: 'Italiana';
  src: url('../fonts/italiana.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --negro: #000000;          /* su negro: cabecera, marcos, azulejo */
  --carbon: #161616;         /* superficies sobre negro */
  --blanco: #FFFFFF;
  --pared: #DCDDDF;          /* el gris frío de la pared de su salón (el LED se ve más blanco que ella) */
  --suave: #F3F3F3;          /* fondos de controles sobre blanco */
  --linea: #DEDEDE;
  --tinta: #000000;          /* titulares */
  --texto: #262626;          /* texto corrido sobre claro */
  --humo: #666666;           /* secundario sobre claro · 5,7:1 */
  --humo-claro: #A6A6A6;     /* secundario sobre negro · 8,6:1 */
  --oro: #C9A55C;            /* el oro de sus medallas · 9:1 sobre negro */
  --oro-osc: #85672C;        /* oro para texto sobre blanco · 5:1 */

  /* Tipografía */
  --display: 'Italiana', 'Didot', 'Bodoni 72', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Retícula */
  --ancho: 1320px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --sec: clamp(80px, 11vw, 150px);
  --cab-h: 64px;
  --foco: #000;

  /* Movimiento */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --e-muelle: linear(0, .009, .037 1.7%, .153 3.6%, .776 10.3%, 1.001 13.8%, 1.083 16.8%, 1.101 18.4%, 1.09 20.8%, 1.018 26.9%, .996 31.2%, .99 35.4%, 1.002 46.3%, 1);
}
@media (min-width: 1024px) { :root { --cab-h: 76px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--cab-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--negro);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul[role='list'], ol { list-style: none; }
table { border-collapse: collapse; }
::selection { background: var(--oro); color: var(--negro); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.solo-lectores {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--blanco); color: var(--negro); padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.saltar:focus { top: 12px; }

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

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}

/* ---------- Iconos y pictogramas ---------- */
.ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.picto {
  width: 28px; height: 28px; flex-shrink: 0; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Tipografía ---------- */
.titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.55rem + 4.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: .005em;
  color: var(--tinta);
  text-wrap: balance;
}
.titulo--versal {
  text-transform: uppercase; letter-spacing: .14em;
  /* «TRAYECTORIA» mide ~8,4 em con su espaciado: nunca más ancho que la pantalla */
  font-size: min(clamp(2.75rem, 1.55rem + 4.6vw, 6rem), calc((100vw - 2 * var(--gutter)) / 8.6));
}
.entradilla {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem);
  line-height: 1.7;
  color: var(--humo);
  max-width: 54ch;
  text-wrap: pretty;
}

/* Titulares que suben palabra a palabra (las máscaras las pone el JS) */
.p { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .02em .18em; margin: -.1em -.02em -.18em; }
.p__in { display: inline-block; }

/* =====================================================================
   BOTONES
   Un mismo gesto en todos: la tinta (o la luz) crece desde donde entra
   el cursor y el texto se invierte a su paso; el texto rueda, el icono
   hace su gesto y los principales siguen al cursor como un imán.
   El color sigue al cursor: solo se colorea el botón que está debajo.
   En cada grupo, el principal va coloreado en reposo y cede el color al
   botón que se toca; al salir del grupo, el color vuelve a él.
   ===================================================================== */
.boton {
  --mx: 0px; --my: 0px; --s: 1;
  --rx: 50%; --ry: 50%;
  --pintado: 0;                /* 1 = coloreado: la mancha cubre el botón */
  --b-fondo: var(--blanco);    /* fondo sin colorear */
  --b-tinta: var(--negro);     /* el color que crece */
  --b-borde: var(--negro);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.55em;
  border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: .01em;
  color: var(--blanco);
  background: var(--b-fondo);
  box-shadow: inset 0 0 0 1.5px var(--b-borde);
  text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my)) scale(var(--s));
  transition: transform .6s var(--e-muelle);
  -webkit-tap-highlight-color: transparent;
}
/* La mancha que crece desde el cursor */
.boton::before {
  content: ''; position: absolute; z-index: 0;
  left: var(--rx); top: var(--ry);
  width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: var(--b-tinta);
  transform: translate(-50%, -50%) scale(var(--pintado));
  transition: transform .65s var(--e-out);
  pointer-events: none;
}
/* Texto e icono, siempre por encima e invertidos donde pasa la mancha */
.boton > .ico, .boton > .boton__txt { position: relative; z-index: 2; mix-blend-mode: difference; color: var(--blanco); }
.boton:active { --s: .95; transition-duration: .14s; }

/* El texto rueda: el JS duplica la etiqueta */
.boton__txt { display: inline-flex; }
.boton__rodillo { display: inline-flex; flex-direction: column; height: 1.2em; overflow: hidden; line-height: 1.2; }
.boton__rodillo > span { display: block; transition: transform .55s var(--e-out); }
@media (hover: hover) {
  .boton:hover .boton__rodillo > span { transform: translateY(-100%); }
}

/* Variantes: sobre oscuro el color es la luz (blanco); sobre claro, la tinta (negro).
   Rellenos (luz, tinta) = principales, coloreados en reposo; contornos = secundarios */
.boton--luz, .boton--contorno-claro { --b-fondo: var(--negro); --b-tinta: var(--blanco); --b-borde: rgba(255, 255, 255, .7); --foco: var(--blanco); }
.boton--luz { --b-borde: var(--blanco); }
.boton--tinta, .boton--contorno { --b-fondo: var(--blanco); --b-tinta: var(--negro); --b-borde: var(--negro); }
.boton--peq { min-height: 44px; padding: 0 1.2em; font-size: .9375rem; }
.boton--ancho { width: 100%; }

/* El color sigue al cursor (y al foco del teclado) */
.boton--luz, .boton--tinta { --pintado: 1; }
.boton:focus-visible { --pintado: 1; }
:where(.hero__acciones, .acciones, .ticket__acciones, [data-grupo-botones]):has(.boton:focus-visible) .boton:not(:focus-visible) { --pintado: 0; }
@media (hover: hover) {
  .boton:hover { --pintado: 1; }
  :where(.hero__acciones, .acciones, .ticket__acciones, [data-grupo-botones]):has(.boton:hover) .boton:not(:hover) { --pintado: 0; }
}

/* Destello de llamada: una sola vez, en el botón principal del hero */
.boton[data-llamativo]::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(201, 165, 92, .55) 50%, transparent 70%);
  transform: translateX(-120%);
}

/* Gestos de los iconos */
@keyframes timbre {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-18deg); } 24% { transform: rotate(15deg); }
  36% { transform: rotate(-12deg); } 48% { transform: rotate(9deg); }
  60% { transform: rotate(-5deg); } 72% { transform: rotate(2deg); }
}
@keyframes hoja { 0%, 100% { transform: none; } 40% { transform: translateY(-3px) rotate(-8deg); } 70% { transform: translateY(1px) rotate(3deg); } }
@keyframes bote { 0%, 100% { transform: none; } 30% { transform: translateY(-5px); } 55% { transform: translateY(0); } 72% { transform: translateY(-2px); } }
@keyframes sobre { 0%, 100% { transform: none; } 40% { transform: translateY(-3px) rotate(-6deg); } }
@keyframes baja { 0%, 100% { transform: none; } 35% { transform: translateY(4px); } 60% { transform: translateY(0); } 80% { transform: translateY(2px); } }
.ico--tel { transform-origin: 50% 50%; }
@media (hover: hover) {
  .boton:hover .ico--tel, .cab__tel:hover .ico--tel { animation: timbre .8s var(--e-out); }
  .boton:hover .ico--cal { animation: hoja .7s var(--e-out); }
  .boton:hover .ico--pin { animation: bote .8s var(--e-out); }
  .boton:hover .ico--correo { animation: sobre .6s var(--e-out); }
  .enlace:hover .ico--abajo { animation: baja .8s var(--e-out); }
}

/* Enlace de texto con subrayado que se dibuja */
.enlace {
  position: relative; display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px; font-weight: 600; text-decoration: none;
}
.enlace span { position: relative; }
.enlace span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(.25); transform-origin: left;
  transition: transform .45s var(--e-out);
}
.enlace:hover span::after, .enlace:focus-visible span::after { transform: scaleX(1); }
.enlace--claro { color: var(--blanco); }
.enlace:active { opacity: .7; }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Estado abierto / cerrado (sin latido) ---------- */
.estado { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: .9375rem; line-height: 1.4; font-weight: 500; }
.estado__punto { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: currentColor; box-shadow: 0 0 0 3px rgba(0, 0, 0, .1); }
.estado.es-cerrado .estado__punto { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.estado__txt { font-weight: 600; }
.estado__sub { color: var(--humo); font-weight: 400; }
.estado--claro { color: var(--blanco); }
.estado--claro .estado__sub { color: var(--humo-claro); }
.estado--claro .estado__punto { background: var(--oro); box-shadow: 0 0 0 3px rgba(201, 165, 92, .2); }
.estado--claro.es-cerrado .estado__punto { background: transparent; box-shadow: inset 0 0 0 1.5px var(--oro); }

/* Utilidades de visibilidad por tamaño */
.solo-movil { display: inline; }
.sin-movil { display: none; }
@media (min-width: 700px) {
  .solo-movil { display: none; }
  .sin-movil { display: inline; }
}
