/* ============================================================================
   AVEACHI — Hoja de estilos
   Identidad visual: China cultural e imperial.
   Laca negra #0D0D0D · Rojo chino #C8102E (dominante) · Oro #D4AF37 · Jade #00A86B.
   Texturas: celosía (窗花), nubes ruyi (祥云), grecas (回纹). Glassmorphism cálido.
   Tipografía: Montserrat (cuerpo/títulos), Noto Serif SC (chino imperial), Noto Sans SC.
   Mobile first (390 → 768 → 1100/1280). Contenido: AVENCHI-SPEC.md.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TOKENS DE DISEÑO
   --------------------------------------------------------------------------- */
:root {
  /* Paleta imperial */
  --fondo: #0D0D0D;            /* laca negra */
  --fondo-elevado: #161013;    /* superficie cálida elevada */
  --rojo: #C8102E;             /* rojo chino — dominante */
  --rojo-claro: #E2233C;       /* rojo para texto/hover sobre oscuro */
  --oro: #D4AF37;              /* oro imperial — acento */
  --oro-claro: #E7C766;        /* oro brillante */
  --jade: #00A86B;             /* jade — acento ocasional */
  --jade-claro: #2EC78C;
  --blanco: #FFFFFF;
  --gris: #B3A99B;             /* texto secundario, cálido */

  /* Glassmorphism cálido (tintes oro/crema, bordes dorados) */
  --vidrio-fondo: rgba(255, 240, 214, 0.045);
  --vidrio-fondo-fuerte: rgba(255, 240, 214, 0.075);
  --vidrio-borde: rgba(212, 175, 55, 0.20);
  --vidrio-borde-claro: rgba(212, 175, 55, 0.38);
  --vidrio-blur: 13px;

  /* Glow */
  --glow-rojo: 0 0 40px rgba(200, 16, 46, 0.38);
  --glow-oro: 0 0 38px rgba(212, 175, 55, 0.30);

  /* Tipografía */
  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fuente-zh: "Noto Sans SC", var(--fuente);
  --fuente-zh-serif: "Noto Serif SC", "Noto Sans SC", serif;

  /* Geometría */
  --radio: 22px;
  --radio-sm: 14px;
  --radio-pildora: 999px;

  /* Layout */
  --ancho-max: 1240px;
  --nav-altura: 86px;

  /* Sombra base */
  --sombra-suave: 0 18px 50px rgba(0, 0, 0, 0.55);

  /* Transición */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   2. RESET + BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-altura) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fuente);
  background-color: var(--fondo);
  color: var(--blanco);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Profundidad cálida del fondo: resplandores radiales rojo/oro muy sutiles */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(55% 45% at 12% 2%, rgba(200, 16, 46, 0.10), transparent 60%),
    radial-gradient(50% 45% at 100% 100%, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--fondo);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

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

/* Red de seguridad: recorta el sangrado horizontal de caracteres decorativos
   absolutos sin crear contenedor de scroll (no afecta sticky ni scroll vertical). */
main { overflow-x: clip; }

.texto-oro { color: var(--oro); }
.texto-jade { color: var(--jade-claro); }
/* .texto-rojo: SOLO para titulares grandes (>=24px o >=18.66px en negrita).
   #C8102E sobre fondo oscuro da ~5.9:1, así que también cumple en cuerpo, pero se
   reserva para énfasis. Para rojo sobre oscuro usar el tono base; queda legible. */
.texto-rojo { color: var(--rojo-claro); }

/* Utilidad: visible solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace de salto accesible */
.enlace-salto {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--oro);
  color: #1a1205;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.enlace-salto:focus { top: 16px; }

/* ---------------------------------------------------------------------------
   3. FONDO DECORATIVO IMPERIAL (celosía + nubes ruyi + resplandores)
   --------------------------------------------------------------------------- */
.fondo-decorativo {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
/* Celosía a sangre, muy tenue */
.celosia {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
}
/* Nubes ruyi flotantes */
.ruyi { position: absolute; height: auto; }
.ruyi--1 { top: 7%;  left: -3%;  width: clamp(220px, 26vw, 360px); color: var(--oro); opacity: 0.16; transform: rotate(-6deg); }
.ruyi--2 { bottom: 9%; right: -5%; width: clamp(260px, 32vw, 440px); color: var(--rojo-claro); opacity: 0.13; transform: rotate(5deg); }
.ruyi--3 { top: 46%; right: 14%;  width: clamp(160px, 18vw, 240px); color: var(--oro); opacity: 0.08; }

/* Resplandores difusos que respiran lentamente */
.resplandor {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.10;
  animation: respirar 16s var(--ease) infinite alternate;
}
.resplandor--rojo { top: -12%; left: -10%; background: var(--rojo); }
.resplandor--oro { bottom: -12%; right: -10%; background: var(--oro); animation-delay: -8s; }

@keyframes respirar {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.07; }
  to   { transform: translate3d(0, -24px, 0) scale(1.12); opacity: 0.14; }
}

/* ---------------------------------------------------------------------------
   4. NAVBAR FLOTANTE TIPO PÍLDORA
   --------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  transition: top 0.3s var(--ease);
}

.navbar__pildora {
  width: 100%;
  max-width: var(--ancho-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border-radius: var(--radio-pildora);
  background: rgba(13, 13, 13, 0.58);
  border: 1px solid var(--vidrio-borde);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--sombra-suave);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.navbar.is-scrolled .navbar__pildora {
  background: rgba(13, 13, 13, 0.86);
  border-color: var(--vidrio-borde-claro);
}

/* Marca / logo */
.marca { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.marca__simbolo {
  font-family: var(--fuente-zh-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--oro);
  border-radius: 14px;
  /* Sello imperial: laca con anillo rojo→oro y carácter 友 encendido en oro */
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.30), rgba(212, 175, 55, 0.22));
  border: 1px solid var(--oro);
  box-shadow: inset 0 0 14px rgba(212, 175, 55, 0.22), 0 0 16px rgba(200, 16, 46, 0.30);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__nombre { font-weight: 800; font-size: 18px; letter-spacing: 1.5px; }
.marca__sub { font-family: var(--fuente-zh); font-size: 10px; color: var(--oro); opacity: 0.85; letter-spacing: 1px; }

/* Menú de enlaces */
.navbar__menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 13px;
  border-radius: var(--radio-pildora);
  color: var(--gris);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link__es { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.nav-link__zh { font-family: var(--fuente-zh); font-size: 10px; color: #C9BCA6; letter-spacing: 0.5px; }
.nav-link:hover { color: var(--blanco); background: var(--vidrio-fondo); }
.nav-link.is-active { color: var(--oro); }
.nav-link.is-active .nav-link__zh { color: var(--oro); }

/* Acciones (CTA + hamburguesa) */
.navbar__acciones { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.navbar__hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--vidrio-fondo);
  border: 1px solid var(--vidrio-borde);
  border-radius: 12px;
  cursor: pointer;
}
.navbar__hamburguesa span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--oro);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.navbar__hamburguesa.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburguesa.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburguesa.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   5. BOTONES
   --------------------------------------------------------------------------- */
.boton {
  --b-pad: 12px 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  padding: var(--b-pad);
  border-radius: var(--radio-pildora);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.boton:active { transform: scale(0.97); }

/* Primario: rojo chino dominante con texto blanco y anillo dorado sutil */
.boton--primario {
  background: var(--rojo);
  color: var(--blanco);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--glow-rojo);
}
.boton--primario:hover { transform: translateY(-2px); box-shadow: 0 0 54px rgba(200, 16, 46, 0.6); border-color: var(--oro); }

.boton--fantasma {
  background: var(--vidrio-fondo);
  color: var(--blanco);
  border-color: var(--vidrio-borde-claro);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.boton--fantasma:hover { transform: translateY(-2px); border-color: var(--oro); color: var(--oro-claro); }

.boton--grande { --b-pad: 17px 38px; font-size: 17px; }

/* CTA de la navbar (rojo, con subtítulo chino) */
.boton--cta {
  padding: 7px 18px;
  background: var(--rojo);
  color: var(--blanco);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 26px rgba(200, 16, 46, 0.4);
}
.boton--cta .boton__es { font-size: 13.5px; font-weight: 800; }
.boton--cta .boton__zh { font-family: var(--fuente-zh); font-size: 9.5px; font-weight: 500; opacity: 0.9; }
.boton--cta:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(200, 16, 46, 0.6); border-color: var(--oro); }

/* ---------------------------------------------------------------------------
   6. CARACTERES CHINOS DECORATIVOS (protagonistas: grandes y vistosos)
   --------------------------------------------------------------------------- */
.deco-chars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco-char {
  position: absolute;
  font-family: var(--fuente-zh-serif);
  font-weight: 900;
  color: var(--oro);
  opacity: 0.14;
  line-height: 0.8;
  user-select: none;
}
.deco-char--1 { top: 2%;   right: 2%;  font-size: clamp(220px, 34vw, 560px); }
.deco-char--2 { bottom: -8%; left: 0%; font-size: clamp(180px, 26vw, 420px); color: var(--rojo-claro); opacity: 0.12; }
.deco-char--3 { top: 28%;  left: 36%;  font-size: clamp(150px, 18vw, 300px); opacity: 0.07; }
.deco-char--4 { bottom: 10%; right: 28%; font-size: clamp(130px, 16vw, 240px); color: var(--jade); opacity: 0.10; }
.deco-char--cta {
  position: absolute;
  top: -10%; right: -4%;
  transform: rotate(-6deg);
  font-family: var(--fuente-zh-serif);
  font-weight: 900;
  font-size: clamp(160px, 24vw, 320px);
  color: var(--oro);
  opacity: 0.10;
  z-index: 0;
}

/* ---------------------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-altura) + 44px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris);
  padding: 8px 16px;
  border-radius: var(--radio-pildora);
  background: var(--vidrio-fondo);
  border: 1px solid var(--vidrio-borde);
  margin-bottom: 22px;
}
.hero__eyebrow-zh { font-family: var(--fuente-zh); color: var(--oro); letter-spacing: 2px; }
.hero__eyebrow-sep { color: var(--vidrio-borde-claro); }

.hero__titulo {
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  max-width: 18ch;
}
.hero__subtitulo {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--gris);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero__subtitulo strong { color: var(--blanco); font-weight: 800; }

.hero__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__hechos { display: flex; flex-direction: column; gap: 9px; }
.hero__hechos li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gris); }
.hero__hecho-icono { font-size: 10px; color: var(--oro); }

/* --- Cúmulo de tarjetas superpuestas (asimétrico) --- */
.hero__cards {
  position: relative;
  min-height: 540px;
}
.tarjeta-foto {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  border: 1px solid var(--vidrio-borde-claro);
  box-shadow: var(--sombra-suave);
  background: var(--fondo-elevado);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tarjeta-foto picture { display: contents; }
.tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Filtro cálido homogeneizador para fotos propias */
  filter: contrast(1.05) brightness(0.95) saturate(1.05);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.tarjeta-foto__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 35%, rgba(13, 9, 6, 0.9) 100%);
}
.tarjeta-foto__contenido { position: absolute; left: 0; bottom: 0; padding: 18px 20px; z-index: 2; }
.tarjeta-foto__zh {
  font-family: var(--fuente-zh);
  font-size: 13px;
  font-weight: 500;
  color: var(--oro);
  letter-spacing: 1px;
}
.tarjeta-foto__titulo { font-size: 1.15rem; font-weight: 800; margin-top: 2px; line-height: 1.2; }
.tarjeta-foto__caption { font-size: 12.5px; color: var(--gris); margin-top: 4px; }

/* Glow de esquina por tarjeta */
.tarjeta-foto::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.tarjeta-foto:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6); }
.tarjeta-foto:hover img { transform: scale(1.06); filter: contrast(1.08) brightness(1.02) saturate(1.08); }
.tarjeta-foto:hover::after { opacity: 0.55; }

.tarjeta-foto--foro::after { top: -40px; right: -40px; background: var(--rojo); }
.tarjeta-foto--historia::after { bottom: -40px; left: -40px; background: var(--oro); }
.tarjeta-foto--cultura::after { top: -40px; left: -40px; background: var(--rojo); }

/* Posicionamiento absoluto del cúmulo (solo desktop amplio) */
@media (min-width: 1100px) {
  .hero__cards { min-height: 600px; }
  .tarjeta-foto--foro     { position: absolute; top: 0;    left: 0;   width: 56%; height: 78%; z-index: 3; }
  .tarjeta-foto--historia { position: absolute; top: 6%;   right: 0;  width: 42%; height: 52%; z-index: 2; }
  .tarjeta-foto--cultura  { position: absolute; bottom: 6%; right: 4%; width: 46%; height: 36%; z-index: 4; }
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--vidrio-borde-claro);
  border-radius: var(--radio-pildora);
  display: grid;
  place-items: start center;
  padding-top: 7px;
  z-index: 1;
}
.hero__scroll-rueda {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--oro);
  animation: rueda 1.8s var(--ease) infinite;
}
@keyframes rueda {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------------------------------------------------------------------------
   8. SECCIONES GENÉRICAS
   --------------------------------------------------------------------------- */
.seccion { position: relative; padding: clamp(64px, 10vw, 120px) 0; z-index: 1; }
.seccion__cabecera { max-width: 720px; margin-bottom: 48px; }
.seccion__kicker {
  display: inline-block;
  font-family: var(--fuente);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--oro);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.seccion__kicker [lang="zh"] { font-family: var(--fuente-zh); font-weight: 500; }
.seccion__titulo {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.seccion__intro { margin-top: 16px; color: var(--gris); font-size: clamp(1rem, 2.2vw, 1.12rem); }

/* ---------------------------------------------------------------------------
   9. ÁMBITOS (tarjetas-enlace glassmorphism cálido)
   --------------------------------------------------------------------------- */
.ambitos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.tarjeta-ambito {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border-radius: var(--radio);
  /* Vidrio cálido flotante: tinte dorado, elevación y reflejo superior */
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.10), rgba(255, 240, 214, 0.02)), var(--vidrio-fondo);
  border: 1px solid var(--vidrio-borde);
  box-shadow: var(--sombra-suave), inset 0 1px 0 rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(var(--vidrio-blur));
  -webkit-backdrop-filter: blur(var(--vidrio-blur));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tarjeta-ambito::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.tarjeta-ambito__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--oro);
  letter-spacing: 2px;
  opacity: 0.85;
}
.tarjeta-ambito__zh {
  font-family: var(--fuente-zh);
  font-size: 13px;
  color: var(--gris);
  margin-top: 18px;
  letter-spacing: 1px;
}
.tarjeta-ambito__titulo { font-size: 1.4rem; font-weight: 800; margin-top: 2px; }
.tarjeta-ambito__desc { font-size: 14.5px; color: var(--gris); margin-top: 10px; flex-grow: 1; }
.tarjeta-ambito__flecha {
  margin-top: 18px;
  font-size: 20px;
  color: var(--oro);
  transition: transform 0.3s var(--ease);
}
.tarjeta-ambito:hover {
  transform: translateY(-6px);
  border-color: var(--vidrio-borde-claro);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.28);
}
.tarjeta-ambito:hover::before { transform: scaleX(1); }
.tarjeta-ambito:hover .tarjeta-ambito__flecha { transform: translateX(6px); }

/* Tarjeta destacada (Inscríbete) con acento rojo */
.tarjeta-ambito--destacada {
  background: linear-gradient(140deg, rgba(200, 16, 46, 0.22), var(--vidrio-fondo));
  border-color: rgba(200, 16, 46, 0.45);
}
.tarjeta-ambito--destacada .tarjeta-ambito__num,
.tarjeta-ambito--destacada .tarjeta-ambito__flecha { color: var(--rojo-claro); }
.tarjeta-ambito--destacada::before { background: linear-gradient(90deg, transparent, var(--rojo-claro), transparent); }
.tarjeta-ambito--destacada:hover { box-shadow: var(--glow-rojo), inset 0 1px 0 rgba(212, 175, 55, 0.22); }

/* ---------------------------------------------------------------------------
   10. MISIÓN (foto a sangre + declaración)
   --------------------------------------------------------------------------- */
.mision {
  position: relative;
  padding: clamp(90px, 16vw, 180px) 0;
  overflow: hidden;
  z-index: 1;
}
.mision__fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Va a sangre detrás de texto blanco; se oscurece y se calienta. */
  filter: contrast(1.05) brightness(0.6) sepia(0.32) saturate(1.25);
  z-index: 0;
}
.mision__velo {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Oscurece el lado del texto (izq), libera la foto (der); glow rojo tras el texto. */
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.86) 0%, rgba(13, 13, 13, 0.55) 45%, rgba(13, 13, 13, 0.18) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.6) 0%, transparent 35%, transparent 68%, var(--fondo) 100%),
    radial-gradient(60% 55% at 18% 78%, rgba(200, 16, 46, 0.22), transparent 65%);
}
.mision__ruyi {
  position: absolute;
  top: 8%;
  right: 4%;
  width: clamp(180px, 26vw, 340px);
  height: auto;
  color: var(--oro);
  opacity: 0.5;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}
.mision__contenido { position: relative; z-index: 2; max-width: 920px; }
.mision__frase {
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.5px;
  margin-top: 10px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.mision__valores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.mision__valores li {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radio-pildora);
  background: var(--vidrio-fondo-fuerte);
  border: 1px solid var(--vidrio-borde-claro);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.16);
  color: var(--blanco);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------------------
   11. MOMENTOS (cinta marquee)
   --------------------------------------------------------------------------- */
.momentos { overflow: hidden; }
.momentos__pista {
  display: flex;
  width: max-content;
  margin-top: 8px;
  animation: desplazar 48s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.momentos__pista:hover { animation-play-state: paused; }
.momentos__cinta { display: flex; }
.momento {
  position: relative;
  flex: 0 0 auto;
  margin-right: 18px;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--vidrio-borde);
  box-shadow: var(--sombra-suave);
}
.momento picture { display: contents; }
.momento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95) saturate(1.05);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.momento figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(13, 9, 6, 0.92));
}
.momento:hover img { transform: scale(1.07); filter: contrast(1.08) brightness(1.02) saturate(1.1); }

@keyframes desplazar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------------
   12. CTA FINAL
   --------------------------------------------------------------------------- */
.cta-final { position: relative; padding: clamp(64px, 10vw, 110px) 0 clamp(80px, 12vw, 130px); z-index: 1; }
.cta-final__caja {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 60px);
  border-radius: calc(var(--radio) + 8px);
  background: linear-gradient(160deg, rgba(200, 16, 46, 0.10), var(--vidrio-fondo));
  border: 1px solid var(--vidrio-borde-claro);
  backdrop-filter: blur(var(--vidrio-blur));
  -webkit-backdrop-filter: blur(var(--vidrio-blur));
  box-shadow: var(--sombra-suave), inset 0 0 80px rgba(212, 175, 55, 0.08);
}
.cta-final__titulo {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 6px 0 14px;
}
.cta-final__texto { position: relative; z-index: 1; color: var(--gris); max-width: 50ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-final__caja .seccion__kicker { position: relative; z-index: 1; }
.cta-final__caja .boton { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Greca china (回纹) como divisor superior del footer */
.footer__greca {
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath d='M2 14 V6 H10 V12 H6 V8 M16 14 V2 H30 V14 M20 14 V6 H26 V14' fill='none' stroke='%23D4AF37' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 44px;
}
.footer__marca .marca { margin-bottom: 16px; }
.footer__lema { color: var(--gris); font-size: 14.5px; max-width: 38ch; }

.footer__nav-titulo { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--oro); margin-bottom: 16px; }
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a { font-size: 15px; color: var(--blanco); opacity: 0.85; transition: color 0.2s var(--ease), opacity 0.2s var(--ease); }
.footer__nav a:hover { color: var(--oro); opacity: 1; }

.footer__insignia {
  padding: 22px 24px;
  border-radius: var(--radio);
  background: var(--vidrio-fondo);
  border: 1px solid var(--vidrio-borde);
}
.footer__insignia-zh {
  font-family: var(--fuente-zh-serif);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--oro-claro), var(--rojo-claro));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.footer__insignia-es { color: var(--gris); font-size: 14px; font-style: italic; line-height: 1.5; }

.footer__barra {
  border-top: 1px solid var(--vidrio-borde);
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--ancho-max);
  margin-inline: auto;
  font-size: 12.5px;
  color: var(--gris);
}
.footer__barra [lang="zh"] { font-family: var(--fuente-zh); letter-spacing: 1px; color: var(--oro); opacity: 0.8; }

/* ---------------------------------------------------------------------------
   14. ANIMACIÓN DE REVELADO (fade-in-up con GSAP / fallback CSS)
   --------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   15. RESPONSIVE — Tablet (>=768px)
   --------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .contenedor { padding-inline: 32px; }
  .ambitos__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 48px; }
  .momento { width: 340px; }
}

/* ---------------------------------------------------------------------------
   16. RESPONSIVE — Desktop (>=980 / 1100 / 1280)
   --------------------------------------------------------------------------- */
@media (min-width: 980px) {
  .ambitos__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; gap: 48px; }
}

@media (min-width: 1280px) {
  .contenedor { padding-inline: 20px; }
  .hero__grid { gap: 64px; }
}

/* ---------------------------------------------------------------------------
   17. RESPONSIVE — Navbar colapsada + hero apilado (<=1099px)
   --------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .navbar__hamburguesa { display: flex; }
  .boton--cta { display: none; }

  .hero { min-height: auto; padding-bottom: 56px; }
  .hero__grid { gap: 30px; }

  .navbar__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radio);
    background: rgba(13, 13, 13, 0.97);
    border: 1px solid var(--vidrio-borde);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--sombra-suave);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .navbar__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 13px 16px;
    border-radius: var(--radio-sm);
  }
  .nav-link__es { font-size: 16px; }
  .nav-link__zh { font-size: 12px; }
  .nav-link:hover, .nav-link.is-active { background: var(--vidrio-fondo); }

  .hero__cards { min-height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .tarjeta-foto { aspect-ratio: 3 / 4; }
  .tarjeta-foto--foro { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 520px) {
  .marca__sub { display: none; }
  .hero__cards { grid-template-columns: 1fr; }
  .tarjeta-foto { aspect-ratio: 16 / 11; }
  .tarjeta-foto--foro { aspect-ratio: 16 / 11; }
  .boton { width: 100%; }
  .hero__acciones { flex-direction: column; }
  .footer__barra { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
   18. ACCESIBILIDAD: respetar "reduce motion"
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .momentos__pista { animation: none; }
  .resplandor { animation: none; filter: blur(80px); }
  .hero .deco-char { transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------------------
   19. ARTÍCULOS DE PUBLICACIONES (páginas individuales en publicaciones/)
   --------------------------------------------------------------------------- */
.articulo { position: relative; z-index: 1; padding: calc(var(--nav-altura) + 40px) 0 clamp(64px, 10vw, 110px); }
.articulo__contenedor { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 20px; }
.articulo__volver { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--oro); margin-bottom: 26px; transition: gap 0.25s var(--ease), color 0.25s var(--ease); }
.articulo__volver:hover { gap: 12px; color: var(--oro-claro); }
.articulo__cabecera { margin-bottom: 24px; }
.articulo__titulo { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.5px; margin: 14px 0 16px; }
.articulo__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13.5px; color: var(--gris); }
.articulo__meta .sep { color: var(--vidrio-borde-claro); }
.articulo__autor { color: var(--oro); font-weight: 600; }
.articulo__bajada { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.55; color: var(--blanco); font-weight: 600; }
.articulo__media { margin: 8px 0 32px; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--vidrio-borde-claro); box-shadow: var(--sombra-suave); aspect-ratio: 16 / 9; }
.articulo__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.05) brightness(0.95) saturate(1.05); }
.articulo__cuerpo { font-size: 1.05rem; line-height: 1.8; color: #D8CFC4; }
.articulo__cuerpo > p { margin-bottom: 1.2em; }
.articulo__cuerpo h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; color: var(--blanco); margin: 1.7em 0 0.6em; line-height: 1.25; }
.articulo__cuerpo h2 span[lang="zh"] { font-family: var(--fuente-zh); color: var(--oro); font-weight: 700; margin-left: 6px; }
.articulo__cuerpo strong { color: var(--blanco); font-weight: 700; }
.articulo__cuerpo a { color: var(--oro); text-decoration: underline; text-underline-offset: 3px; }
.articulo__cuerpo blockquote { margin: 1.6em 0; padding: 16px 24px; border-left: 3px solid var(--oro); background: var(--vidrio-fondo); border-radius: 0 var(--radio-sm) var(--radio-sm) 0; color: var(--blanco); font-style: italic; }
.articulo__cuerpo ul { margin: 0 0 1.2em 1.3em; list-style: disc; }
.articulo__cuerpo li { margin-bottom: 0.5em; }
.articulo__pie { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--vidrio-borde); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.articulo__firma { color: var(--gris); font-size: 14px; max-width: 46ch; }

/* Etiqueta de categoría (artículos) */
.art-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: var(--radio-pildora); font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.art-tag__punto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.art-tag span[lang="zh"] { font-family: var(--fuente-zh); font-weight: 500; letter-spacing: 0.5px; }
.art-tag--economico { color: var(--oro-claro); background: rgba(212, 175, 55, 0.14); border: 1px solid rgba(212, 175, 55, 0.42); }
.art-tag--cultural { color: var(--rojo-claro); background: rgba(200, 16, 46, 0.16); border: 1px solid rgba(200, 16, 46, 0.45); }
.art-tag--investigacion { color: var(--blanco); background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.32); }
.art-tag--boletin { color: var(--gris); background: rgba(179, 169, 155, 0.12); border: 1px solid rgba(179, 169, 155, 0.34); }
