/* ==========================================================================
   DESEABLE · base.css
   Reset, tipografía de base, accesibilidad y utilidades.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }


/* ==========================================================================
   LA BARRA DE SCROLL
   ---------------------------------------------------------------------------
   La del sistema es gris y ancha, y en una tienda con esta paleta se ve como
   una tira ajena pegada al costado.

   Se pinta con los tokens, así que acompaña el modo: rosé sobre crema en
   Mujer, clara sobre negro en Hombre, sin una sola línea extra.

   Van las dos sintaxis porque no hay una sola:
     · scrollbar-color / scrollbar-width  → Firefox, y el estándar
     · ::-webkit-scrollbar                → Chrome, Edge, Safari

   El borde del pulgar es del color de la pista y no un color propio: es lo
   que le deja aire alrededor y hace que se vea como una pastilla flotando y
   no como una barra que llena el canal. Un padding no serviría — el pulgar
   no lo acepta.

   ⚠️ Esto NO toca las tiras que se corren con el dedo (los reels, los
   sugeridos en celular): ésas esconden su barra a propósito, con reglas más
   específicas en responsive.css, y siguen mandando.
   ========================================================================== */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--acento) var(--superficie-2);
}

::-webkit-scrollbar { width: 12px; height: 12px; }

::-webkit-scrollbar-track { background: var(--superficie-2); }

::-webkit-scrollbar-thumb {
  background: var(--acento);
  border: 3px solid var(--superficie-2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--acento-solido); }

/* La esquina donde se cruzan las dos barras. Sin esto queda un cuadradito
   gris del sistema, que es justo lo que estábamos sacando. */
::-webkit-scrollbar-corner { background: var(--superficie-2); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-weight: 300;
  font-size: var(--t-cuerpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* El fundido de rosé a negro cuando se cambia de modo */
  transition: background-color var(--vel-tema) ease, color var(--vel-tema) ease;
}

/* Mientras carga la página no queremos ver la transición del tema:
   main.js saca esta clase apenas termina de pintar. */
.sin-transicion, .sin-transicion * {
  transition: none !important;
  animation: none !important;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--vel-rapida) ease;
}
a:hover { color: var(--acento-hover); }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

input, textarea, select { font-family: inherit; font-size: inherit; }


/* --- Accesibilidad -------------------------------------------------------- */

/* Foco visible sólo cuando se navega con teclado */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
}

/* Texto sólo para lectores de pantalla */
.solo-lectores {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Saltar al contenido: aparece al tabular */
.saltar-contenido {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 14px 24px;
  background: var(--acento-solido);
  color: var(--acento-fg);
  font-size: var(--t-chico);
  letter-spacing: var(--sp-boton);
  transition: top var(--vel-rapida) ease;
}
.saltar-contenido:focus { top: 0; color: var(--acento-fg); }

/* Quien pidió menos movimiento, recibe menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Las que se mueven solas y sin parar se apagan del todo: acortarles la
     duración no alcanza, quedarían saltando en el lugar. */
  .cinta__pista,
  .banda__medallon,
  .reel__play,
  .hero__foto { animation: none; }
}


/* --- Tipografía ----------------------------------------------------------- */

.titular {
  font-family: var(--fuente-titulo);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: var(--sp-titular);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--sp-kicker);
  color: var(--acento-texto);
  text-transform: uppercase;
}

.titulo-seccion {
  font-size: var(--t-seccion);
  font-weight: 500;
  letter-spacing: var(--sp-seccion);
  color: var(--texto);
  text-transform: uppercase;
}


/* --- Estructura ----------------------------------------------------------- */

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--margen-lateral);
}

/* Ancho completo pero con el contenido centrado al ancho máximo */
.franja {
  width: 100%;
  background: var(--bg);
  transition: background-color var(--vel-tema) ease;
}


/* --- Animaciones (las mismas del prototipo) -------------------------------- */

@keyframes subir  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomLento { from { transform: scale(1.02); } to { transform: scale(1.13); } }
@keyframes pulso  {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70%  { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes linea  { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Utilidades de entrada */
.anim-subir    { animation: subir 1s var(--curva) both; }
.anim-aparecer { animation: aparecer 1.2s ease both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.30s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.48s; }
.d6 { animation-delay: 0.60s; }
