/* ==========================================================================
   CARRUSEL MEDIA — Estilos globales
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --color-blanco: #F2EFE8;
  --color-negro: #0B0B0B;
  --color-azul: #3772FF;
  --color-rojo: #E15554;
  --color-verde: #3BB273;

  --font-principal: 'Archivo', sans-serif;

  --nav-pad: clamp(1.25rem, 4vw, 3rem);
  --nav-pad-y: clamp(1rem, 2vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-negro);
  color: var(--color-blanco);
  font-family: var(--font-principal);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-principal);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Círculos y subrayados tipo marcador — generados con Rough Notation
   (roughnotation.com), ver main.js. Ya no dibujamos el trazo nosotros: la
   librería inserta y anima su propio SVG junto al elemento anotado.
   ========================================================================== */

/* Solo definen --marker-color, que main.js lee para pintar la anotación.
   En títulos, además se agrega .marker-tinted para que el texto también tome
   ese color; en links de navegación NO se agrega, así el texto se queda
   blanco y solo la anotación se colorea. */
.marker--azul  { --marker-color: var(--color-azul); }
.marker--rojo  { --marker-color: var(--color-rojo); }
.marker--verde { --marker-color: var(--color-verde); }

.marker-tinted {
  color: var(--marker-color, currentColor);
}

/* Rough Notation dibuja con stroke-linecap "butt" (puntas cuadradas) por defecto
   y no lo expone como opción configurable — se fuerza por CSS a puntas redondas,
   para que se sienta más como un plumón real. */
svg.rough-annotation path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Botones — bg = color de marca, texto siempre en blanco
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.9em;
  font-family: var(--font-principal);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-blanco);
  background: var(--color-negro);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn:focus-visible {
  outline: 2px solid var(--color-blanco);
  outline-offset: 3px;
}

.btn--azul  { background: var(--color-azul);  color: var(--color-blanco); }
.btn--rojo  { background: var(--color-rojo);  color: var(--color-blanco); }
.btn--verde { background: var(--color-verde); color: var(--color-blanco); }

/* ==========================================================================
   Header / navegación en esquinas (Home)
   ========================================================================== */

.corner-nav {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.75rem, 5vw, 3.5rem);
  pointer-events: none;
}

.corner-nav a {
  pointer-events: auto;
}

.corner-nav__item {
  font-size: clamp(1rem, 1.9vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.corner-nav__item--tl { align-self: start;  justify-self: start; }
.corner-nav__item--tr { align-self: start;  justify-self: end; }
.corner-nav__item--bl { align-self: end;    justify-self: start; }
.corner-nav__item--br { align-self: end;    justify-self: end; }

/* ==========================================================================
   Hero / Home
   ========================================================================== */

.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--color-negro);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--edge-blur, 0px));
  transition: filter 0.2s ease-out;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,11,11,0) 35%, rgba(11,11,11,0.75) 100%),
    linear-gradient(180deg, rgba(11,11,11,0.7) 0%, rgba(11,11,11,0.3) 40%, rgba(11,11,11,0.75) 100%);
}

.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: clamp(190px, 27vw, 420px);
  text-align: center;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

/* Placeholder de logo mientras no exista el archivo final */
.hero__logo-placeholder {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  border: 2px dashed var(--color-blanco);
  padding: 1.2em 1em;
  border-radius: 4px;
}

/* ==========================================================================
   Header simple (páginas internas)
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nav-pad-y) var(--nav-pad);
  position: relative;
  z-index: 20;
}

.site-header__logo {
  display: block;
  height: clamp(100px, 8vw, 120px);
}

.site-header__logo img {
  height: 100%;
  width: auto;
}

.site-header__nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.site-header__nav a {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Página interna genérica
   ========================================================================== */

.page-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-pad);
  gap: 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--color-blanco);
  opacity: 0.85;
}

.page-content {
  padding: var(--nav-pad);
  padding-top: 0;
  min-height: 30vh;
}

.badge-proximamente {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border: 2px solid var(--color-verde);
  color: var(--color-verde);
  border-radius: 100px;
  width: fit-content;
}

.site-footer {
  padding: var(--nav-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(242, 239, 232, 0.15);
}

.site-footer p {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  /* El grid de 2x2 (.corner-nav__item--tl/tr/bl/br ya definidos arriba) se queda
     igual en celular: los 4 links deben seguir en sus esquinas, no apilados. */

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-header__logo {
    align-self: center;
  }
}
