/* ==========================================================
   LEVÁNTATE COLOMBIA · ESTILOS BASE
   Variables de marca, fuentes, reset y tipografía.
   Los colores y fuentes salen del kit de marca: no agregar otros.
   ========================================================== */

/* ---------- Fuentes de títulos: Coolvetica (archivos del kit) ---------- */
@font-face {
  font-family: "Coolvetica";
  src: url("../assets/fuentes/Coolvetica%20Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Versión comprimida: solo para el marquee, stickers y cifras grandes */
@font-face {
  font-family: "Coolvetica Comprimida";
  src: url("../assets/fuentes/Coolvetica%20Hv%20Comp.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de marca ---------- */
:root {
  /* Colores primarios */
  --negro: #000000;
  --rojo: #F32F0A;

  /* Colores secundarios */
  --amarillo: #FFC000;
  --mostaza: #E7AF2F;
  --ladrillo: #A4330B; /* naranja quemado */
  --vinotinto: #6B0404;
  --crema: #FFFDF4;

  /* Neutros de apoyo (solo detalles) */
  --gris: #B2B2B2;
  --gris-claro: #E8E8E8;

  /* Tipografía */
  --fuente-titulos: "Coolvetica", "Arial Narrow", Arial, sans-serif;
  --fuente-comprimida: "Coolvetica Comprimida", "Coolvetica", "Arial Narrow", sans-serif;
  --fuente-texto: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado: margen lateral y separación entre secciones */
  --margen: clamp(1rem, 5vw, 3.5rem);
  --seccion: clamp(4.5rem, 12vw, 9rem);
  --ancho-max: 78rem;

  /* Bordes gruesos estilo sticker */
  --borde: 3px;

  /* Curva de movimiento "levantarse": arranca rápido y frena suave */
  --curva-levantar: cubic-bezier(0.16, 1, 0.3, 1);

  /* Alto del menú superior (lo usa la portada) */
  --alto-menu: 4.75rem;

  color-scheme: dark;
}

/* ---------- Reset mínimo ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Evita que la franja inclinada del marquee genere scroll lateral */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--negro);
  color: var(--crema);
  font-family: var(--fuente-texto);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* ---------- Tipografía ----------
   Coolvetica en MAYÚSCULAS con interletrado cerrado (indicación del kit).
   Nunca en párrafos largos. */
.titulo,
h1,
h2,
h3 {
  font-family: var(--fuente-titulos);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.titulo-xl {
  font-size: clamp(2.6rem, 9.6vw, 8rem);
}

.titulo-l {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
}

.titulo-m {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

/* Texto de lectura: líneas cortas para leer cómodo en el celular */
.texto {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
}

.texto-destacado {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  max-width: 34rem;
}

.cita {
  font-weight: 300;
  font-style: italic;
}

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

/* Enlace para saltar el menú con teclado */
.saltar {
  position: absolute;
  left: var(--margen);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--amarillo);
  color: var(--negro);
  font-weight: 700;
}

.saltar:focus {
  top: 1rem;
}

/* Foco visible en amarillo para todos los elementos interactivos */
:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}

/* Lo oculto con el atributo hidden se queda oculto aunque tenga display propio */
[hidden] {
  display: none !important;
}

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

/* ---------- Grano de fondo (textura urbana del kit) ----------
   Ruido SVG fijo sobre toda la página, muy sutil. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  /* "overlay" no aclara el negro: el grano solo se nota sobre fotos y colores */
  mix-blend-mode: overlay;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

/* Fotos en blanco y negro con contraste alto (decisión de marca) */
.foto-bn {
  filter: grayscale(1) contrast(1.15);
}

/* ---------- Movimiento reducido ----------
   Si la persona pidió menos movimiento en su celular, se apagan
   las animaciones y todo aparece en su sitio. */
@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;
  }
}
