:root {
  --rojo: #b22222;
  --rojo-oscuro: #7a1515;
  --rojo-suave: #f3d6d6;
  --rojo-tint: rgba(178, 34, 34, 0.08);
  --negro: #1a1a1a;
  --carbon: #1a1a1a;
  --gris: #5c5c5c;
  --gris-medio: #8a8a8a;
  --blanco: #ffffff;
  --seda: #f9f9f9;
  --papel: #f9f9f9;
  --linea: rgba(26, 26, 26, 0.1);
  --sombra: 0 16px 40px rgba(26, 26, 26, 0.1);
  --sombra-suave: 0 8px 24px rgba(26, 26, 26, 0.06);
  --fuente-titulo: "Montserrat", "Noto Sans SC", system-ui, sans-serif;
  --fuente-cuerpo: "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --fuente-ui: "Montserrat", "Noto Sans SC", system-ui, sans-serif;
  --max: 1140px;
  --nav-h: 80px;
  --radio: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--carbon);
  background: var(--seda);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Idioma: ocultar los no activos (especificidad alta para ganar a .eyebrow, .tag, etc.) */
html[lang="es"] [data-lang="en"],
html[lang="es"] [data-lang="zh"],
html:not([lang="en"]):not([lang="zh"]) [data-lang="en"],
html:not([lang="en"]):not([lang="zh"]) [data-lang="zh"] {
  display: none !important;
}

html[lang="en"] [data-lang="es"],
html[lang="en"] [data-lang="zh"] {
  display: none !important;
}

html[lang="zh"] [data-lang="es"],
html[lang="zh"] [data-lang="en"] {
  display: none !important;
}

html[lang="zh"] body {
  font-family: "Noto Serif SC", "Source Serif 4", serif;
}

html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] .display,
html[lang="zh"] .hero-brand,
html[lang="zh"] .btn,
html[lang="zh"] .nav-links,
html[lang="zh"] .eyebrow {
  font-family: "Noto Sans SC", "Montserrat", sans-serif;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .display,
html[lang="en"] .hero-brand {
  font-family: var(--fuente-titulo);
}

/* ——— Decorative shapes ——— */
.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(178, 34, 34, 0.18);
  pointer-events: none;
  z-index: 0;
}

.orb-fill {
  background: radial-gradient(circle at 30% 30%, rgba(178, 34, 34, 0.12), transparent 70%);
}

.brush {
  position: absolute;
  width: 180px;
  height: 22px;
  background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.35), transparent);
  transform: rotate(-18deg);
  border-radius: 40%;
  filter: blur(0.4px);
  pointer-events: none;
  opacity: 0.7;
}

.ink-seal {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(178, 34, 34, 0.45);
  border-radius: 8px;
  transform: rotate(12deg);
  opacity: 0.35;
  pointer-events: none;
}

.ink-seal::after {
  content: "武";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 1.8rem;
  color: var(--rojo);
}

.section-deco {
  position: relative;
  overflow: hidden;
}

.section-deco > .container {
  position: relative;
  z-index: 1;
}

/* ——— Nav (siempre claro por logo con fondo blanco) ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  box-shadow: var(--sombra-suave);
  border-bottom-color: var(--linea);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--negro);
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--fuente-titulo);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rojo);
}

.brand-text span {
  font-family: var(--fuente-ui);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gris-medio);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links > a,
.nav-drop-trigger {
  font-family: var(--fuente-ui);
  color: var(--carbon);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  position: relative;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.is-active,
.nav-drop-trigger:hover,
.nav-drop-trigger.is-active,
.nav-dropdown.is-active > .nav-drop-trigger {
  color: var(--rojo);
}

.nav-links > a.is-active::after,
.nav-dropdown.is-active > .nav-drop-trigger::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--rojo);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  box-shadow: var(--sombra);
  padding: 0.45rem;
  display: none;
  z-index: 120;
}

.nav-dropdown.is-open .nav-drop-menu {
  display: grid;
  gap: 0.15rem;
}

@media (hover: hover) and (min-width: 821px) {
  .nav-dropdown:hover .nav-drop-menu {
    display: grid;
    gap: 0.15rem;
  }

  .nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
  }
}

.nav-drop-link {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem !important;
  border-radius: 8px;
  font-family: var(--fuente-ui);
  font-size: 0.82rem !important;
  font-weight: 600;
  color: var(--carbon);
}

.nav-drop-link:hover,
.nav-drop-link.is-active {
  background: var(--rojo-tint);
  color: var(--rojo);
}

.nav-drop-link.is-active::after {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--carbon);
  transition: color 0.2s, background 0.2s;
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.social-link:hover {
  color: var(--rojo);
  background: var(--rojo-tint);
}

.social-links-footer {
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.social-links-footer .social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: var(--seda);
}

.social-links-footer .social-link:hover {
  border-color: transparent;
}

.lang-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  border: 1px solid var(--linea);
  border-radius: 999px;
  overflow: hidden;
  background: var(--seda);
  flex-shrink: 0;
  isolation: isolate;
}

.lang-toggle button {
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--gris);
  font-family: var(--fuente-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0;
  min-width: 2.35rem;
  height: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle button.is-active {
  background: var(--rojo);
  color: var(--blanco);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--fuente-ui);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  border-radius: var(--radio);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 10px 24px rgba(178, 34, 34, 0.28);
}

.btn-primary:hover {
  background: var(--rojo-oscuro);
}

.btn-gold,
.btn-dark {
  background: var(--negro);
  color: var(--blanco);
}

.btn-gold:hover,
.btn-dark:hover {
  background: #000;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--blanco);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  border-color: var(--negro);
  color: var(--negro);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--negro);
  color: var(--blanco);
}

.btn-soft {
  background: var(--rojo-suave);
  color: var(--rojo-oscuro);
  border-color: transparent;
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-cta-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linea);
  background: var(--blanco);
  color: var(--negro);
  border-radius: var(--radio);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  color: var(--blanco);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0.45) 48%, rgba(178, 34, 34, 0.35) 100%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.35) 0%, transparent 35%, rgba(26, 26, 26, 0.75) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes .orb-1 {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 18%;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-shapes .orb-2 {
  width: 220px;
  height: 220px;
  left: 8%;
  bottom: 22%;
  animation: floatOrb 9s ease-in-out infinite reverse;
}

.hero-shapes .brush-1 {
  right: 18%;
  top: 28%;
}

.hero-shapes .ink-1 {
  left: 6%;
  top: calc(var(--nav-h) + 3rem);
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.03);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 0.75rem) 0 2.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--fuente-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd0d0;
  border: 1px solid rgba(255, 208, 208, 0.45);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.05s ease forwards;
}

.hero-brand {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.15s ease forwards;
}

.hero-brand em {
  font-style: normal;
  color: #ffb4b4;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  position: relative;
  min-height: 38vh;
  display: grid;
  align-items: end;
  color: var(--blanco);
  background: var(--negro);
  overflow: hidden;
}

.page-hero .hero-media img {
  animation: none;
  transform: none;
  opacity: 0.45;
}

.page-hero .hero-content {
  padding: calc(var(--nav-h) + 2.4rem) 0 2.6rem;
}

.page-hero h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 18ch;
}

.page-hero p {
  margin-top: 0.7rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ——— Sections ——— */
.section {
  padding: 5.2rem 0;
  position: relative;
}

.section-alt {
  background: var(--blanco);
}

.section-dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(178, 34, 34, 0.25), transparent 40%),
    linear-gradient(160deg, #141414, #1a1a1a 55%, #2a1010);
  color: var(--blanco);
  overflow: hidden;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--fuente-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 0.65rem;
}

.section-dark .eyebrow {
  color: #ffb4b4;
}

.section h2,
.display {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--negro);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-dark h2 {
  color: var(--blanco);
}

.section-head p,
.lead {
  color: var(--gris);
  font-size: 1.05rem;
}

.section-dark .section-head p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.75);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature {
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-alt .feature {
  background: var(--seda);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-suave);
}

.feature::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(178, 34, 34, 0.15);
}

.feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--rojo-tint);
  color: var(--rojo);
  margin-bottom: 0.35rem;
}

.feature-ico svg {
  width: 24px;
  height: 24px;
}

.feature-dragon {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  width: 52px;
  height: 52px;
  opacity: 0.12;
  color: var(--rojo);
  pointer-events: none;
}

.feature-dragon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.15rem 0 0.35rem;
}

.feature p {
  color: var(--gris);
  font-size: 0.98rem;
  flex: 1;
}

.feature .btn {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.65rem 1.05rem;
  font-size: 0.78rem;
}

.rule {
  width: 40px;
  height: 3px;
  background: var(--rojo);
  border-radius: 2px;
  margin: 0.2rem 0 0.7rem;
}

.ornament-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0 0.9rem;
}

.ornament-line span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rojo), transparent);
}

.ornament-line svg {
  width: 22px;
  height: 22px;
  color: var(--rojo);
  opacity: 0.7;
}

.address-block {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: var(--seda);
}

.address-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.address-row svg {
  width: 18px;
  height: 18px;
  color: var(--rojo);
  margin-top: 0.15rem;
}

.address-row strong {
  display: block;
  font-family: var(--fuente-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--negro);
  margin-bottom: 0.15rem;
}

.address-row p,
.address-row a {
  color: var(--gris);
  font-size: 0.95rem;
}

/* ——— People ——— */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.people-grid.people-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.people-grid.directorio {
  grid-template-columns: repeat(3, 1fr);
}

.person {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1rem 1.25rem;
  box-shadow:
    0 2px 4px rgba(26, 26, 26, 0.03),
    0 10px 28px rgba(26, 26, 26, 0.07);
  text-align: center;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.person:hover {
  box-shadow:
    0 6px 10px rgba(26, 26, 26, 0.05),
    0 18px 40px rgba(26, 26, 26, 0.12);
  transform: translateY(-3px);
}

.person-photo {
  width: min(78%, 220px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, #ececec, #d8d8d8);
  margin: 0 auto 0.95rem;
  position: relative;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.1);
  transition: transform 0.4s ease;
}

.person:hover .person-photo {
  transform: translateY(-2px);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.person:hover .person-photo img {
  transform: scale(1.03);
}

.split-history .aside-people {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  align-self: start;
}

.split-history .aside-people .people-grid {
  gap: 0.9rem;
}

.person-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--rojo);
  font-family: var(--fuente-titulo);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.person .role {
  font-family: var(--fuente-ui);
  color: var(--rojo);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.person h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.person .zh-name {
  color: var(--gris-medio);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.person-bio {
  display: block !important;
  color: var(--gris);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.person p:not(.role):not(.zh-name):not(.person-bio) {
  display: none;
}

.person-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--rojo);
  font-family: var(--fuente-titulo);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, #f3e8e8, #e4d4d4);
}

.person-photo.placeholder img {
  display: none;
}

.ally {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ally-visual {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  width: 100%;
  min-height: 0;
  background: #111;
  border-radius: 18px;
  position: relative;
  border: 0;
  box-shadow:
    0 6px 10px rgba(26, 26, 26, 0.05),
    0 22px 50px rgba(26, 26, 26, 0.14);
}

.ally-visual-logo {
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1.75rem 1.5rem;
}

.ally-visual-logo::before {
  display: none;
}

.ally-visual.ally-visual-logo img,
.ally-visual-logo img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 72%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.ally-visual::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  top: -30px;
  right: -30px;
  z-index: 1;
}

.ally-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  display: block;
}

/* Duality cards */
.duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dual-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 16px;
  padding: 1.5rem 1.4rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--sombra-suave);
}

.dual-card .tag {
  display: inline-block;
  font-family: var(--fuente-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.dual-card .tag-soft {
  background: var(--rojo-suave);
  color: var(--rojo-oscuro);
}

.dual-card .tag-dark {
  background: var(--negro);
  color: var(--blanco);
}

.dual-card h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.dual-card p {
  color: var(--gris);
  margin-bottom: 1.1rem;
}

.dual-card .thumb {
  margin: 0 -1.4rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.dual-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dual-card:hover .thumb img {
  transform: scale(1.04);
}

.dual-card .ghost-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, 0.08);
  top: 1rem;
  right: 1rem;
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.gallery a,
.gallery figure {
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
  border-radius: 14px;
  border: 0;
  box-shadow:
    0 4px 8px rgba(26, 26, 26, 0.05),
    0 16px 36px rgba(26, 26, 26, 0.12);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery a:hover {
  box-shadow:
    0 8px 14px rgba(26, 26, 26, 0.07),
    0 22px 48px rgba(26, 26, 26, 0.18);
  transform: translateY(-4px);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery a:hover img {
  transform: scale(1.06);
}

.gallery .wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: 14px;
  border: 0;
  box-shadow:
    0 4px 8px rgba(26, 26, 26, 0.05),
    0 18px 40px rgba(26, 26, 26, 0.14);
}

/* ——— Lists / model ——— */
.checklist {
  display: grid;
  gap: 0.25rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:not(.section-dark) .checklist li {
  border-bottom-color: var(--linea);
}

.checklist .num {
  font-family: var(--fuente-titulo);
  color: #ffb4b4;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.model-bands {
  display: grid;
  gap: 1rem;
}

.model-band {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--rojo);
  border-radius: 0 10px 10px 0;
}

.model-band strong {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  color: #ffb4b4;
}

.model-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.note-pill {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 180, 180, 0.35);
  color: #ffb4b4;
  font-family: var(--fuente-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

/* ——— History prose ——— */
.prose {
  max-width: 42rem;
}

.prose h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.35rem;
  margin: 2rem 0 0.7rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--gris);
}

.prose ul {
  margin: 0 0 1.2rem 1.1rem;
  list-style: disc;
  color: var(--gris);
}

.prose li {
  margin-bottom: 0.4rem;
}

.split-history {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.split-history .aside-media {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  overflow: hidden;
  min-height: 420px;
  background: #111;
  border-radius: 18px;
  border: 0;
  box-shadow:
    0 6px 10px rgba(26, 26, 26, 0.05),
    0 22px 50px rgba(26, 26, 26, 0.14);
}

.split-history .aside-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* ——— Forms ——— */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-meta {
  display: grid;
  gap: 1.25rem;
}

.contact-meta h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.contact-meta p,
.contact-meta a {
  color: var(--gris);
}

.contact-meta a:hover {
  color: var(--rojo);
}

.form {
  display: grid;
  gap: 1rem;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--sombra-suave);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--fuente-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--carbon);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: var(--seda);
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--carbon);
  border-radius: var(--radio);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(178, 34, 34, 0.2);
  border-color: var(--rojo);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--gris);
  font-weight: 400;
  font-family: var(--fuente-cuerpo);
}

/* ——— CTA band ——— */
.cta-band {
  padding: 4.5rem 0;
  background:
    linear-gradient(120deg, rgba(26, 26, 26, 0.88), rgba(122, 21, 21, 0.78)),
    url("../galeria/shaolin-templo.jpg") center / cover no-repeat;
  color: var(--blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  left: 8%;
  top: -80px;
}

.cta-band h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  color: var(--blanco);
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ——— Footer claro (logo con fondo blanco) ——— */
.site-footer {
  background: var(--blanco);
  color: var(--gris);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--linea);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
}

.footer-brand strong {
  display: block;
  color: var(--rojo);
  font-family: var(--fuente-titulo);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.site-footer h4 {
  color: var(--negro);
  font-family: var(--fuente-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer a {
  display: block;
  padding: 0.25rem 0;
  color: var(--gris);
  font-family: var(--fuente-cuerpo);
}

.site-footer a:hover {
  color: var(--rojo);
}

.site-footer .social-link {
  display: inline-flex;
  padding: 0;
  color: var(--carbon);
}

.site-footer .social-link:hover {
  color: var(--rojo);
}

.footer-bottom {
  border-top: 1px solid var(--linea);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}

.footer-legal a {
  display: inline;
  padding: 0;
  font-family: var(--fuente-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gris);
}

.footer-legal a:hover {
  color: var(--rojo);
}

/* Media frame utility (inline images in sections) */
.media-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 0;
  box-shadow:
    0 6px 10px rgba(26, 26, 26, 0.05),
    0 22px 50px rgba(26, 26, 26, 0.14);
}

.map-embed {
  border: 0 !important;
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  box-shadow:
    0 6px 10px rgba(26, 26, 26, 0.05),
    0 20px 44px rgba(26, 26, 26, 0.12);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--linea);
  box-shadow: 0 -12px 40px rgba(26, 26, 26, 0.12);
}

.cookie-banner-inner {
  width: min(100% - 0.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  color: var(--gris);
  font-size: 0.92rem;
  max-width: 42rem;
}

.cookie-banner a {
  color: var(--rojo);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-banner .btn {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 12px;
  border: 0;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Construction / legal prose extras */
.construction {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.construction-badge {
  display: inline-block;
  font-family: var(--fuente-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rojo);
  border: 1px solid rgba(178, 34, 34, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.25rem;
}

.legal-list {
  margin: 0 0 1.2rem 1.2rem;
  list-style: disc;
  color: var(--gris);
}

.legal-list li {
  margin-bottom: 0.45rem;
}

.prose h2 {
  font-family: var(--fuente-titulo);
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
}

@media (max-width: 820px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .nav-links > a,
  .nav-drop-trigger {
    font-size: 0.72rem;
    padding: 0.4rem 0.45rem;
  }

  .nav-ico {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 980px) {
  .grid-3,
  .people-grid.directorio,
  .gallery,
  .video-grid,
  .ally,
  .form-wrap,
  .split-history,
  .footer-grid,
  .duality {
    grid-template-columns: 1fr 1fr;
  }

  .gallery .wide {
    grid-column: span 2;
  }

  .model-band {
    grid-template-columns: 1fr;
  }

  .brand-text strong {
    font-size: 0.82rem;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 68px;
  }

  .site-header {
    height: var(--nav-h);
  }

  .nav-inner {
    gap: 0.5rem;
    width: min(100% - 1.25rem, 1200px);
  }

  .brand {
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 0.72rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nav-actions {
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .lang-toggle {
    grid-template-columns: repeat(3, 2.15rem);
  }

  .lang-toggle button {
    min-width: 0;
    width: 100%;
    height: 1.9rem;
    font-size: 0.65rem;
  }

  .menu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--linea);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--sombra-suave);
    z-index: 99;
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links > a,
  .nav-drop-trigger {
    padding: 0.85rem 0.9rem;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .nav-links > a.is-active::after,
  .nav-dropdown.is-active > .nav-drop-trigger::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-drop-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 0.75rem;
    margin-top: 0.15rem;
    background: transparent;
  }

  .nav-dropdown.is-open .nav-drop-menu {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    min-height: 100svh;
  }

  .hero-content {
    padding: calc(var(--nav-h) + 1.25rem) 0 2.25rem;
  }

  .hero-brand {
    max-width: none;
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }

  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-hero {
    min-height: 32vh;
  }

  .page-hero .hero-content {
    padding: calc(var(--nav-h) + 1.5rem) 0 2rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .people-grid,
  .people-grid.directorio,
  .grid-3,
  .grid-2,
  .gallery,
  .video-grid,
  .ally,
  .form-wrap,
  .split-history,
  .footer-grid,
  .form-row,
  .duality {
    grid-template-columns: 1fr;
  }

  /* Duo leadership: keep President + César side by side on phones */
  .people-grid.people-grid-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .people-grid.people-grid-duo .person {
    padding: 0.7rem 0.55rem 0.85rem;
    border-radius: 12px;
  }

  .people-grid.people-grid-duo .person-photo {
    width: min(88%, 140px);
    margin-bottom: 0.65rem;
    border-radius: 10px;
  }

  .people-grid.people-grid-duo .person .role {
    font-size: 0.62rem;
  }

  .people-grid.people-grid-duo .person h3 {
    font-size: 0.82rem;
  }

  .people-grid.people-grid-duo .person .zh-name {
    font-size: 0.72rem;
  }

  .split-history .aside-people {
    position: static;
  }

  .gallery .wide {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-shapes .ink-1,
  .hero-shapes .brush-1,
  .hero-shapes .orb-1,
  .hero-shapes .orb-2 {
    display: none;
  }

  .feature,
  .dual-card,
  .form {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .feature-dragon {
    width: 40px;
    height: 40px;
    opacity: 0.1;
  }

  .person .role {
    font-size: 0.74rem;
  }

  .cta-band {
    padding: 3.25rem 0;
  }

  .cta-band .hero-actions {
    align-items: stretch;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-history .aside-media {
    position: static;
    min-height: 280px;
  }

  .split-history .aside-media img {
    min-height: 280px;
  }

  .address-block {
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 0.68rem;
    max-width: 9.5rem;
  }

  .lang-toggle {
    grid-template-columns: repeat(3, 2rem);
  }

  .lang-toggle button {
    height: 1.8rem;
    font-size: 0.62rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
  }
}

/* ——— News ——— */
.news-list {
  display: grid;
  gap: 1.5rem;
  max-width: 860px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  padding: 0;
}

.news-card-media {
  display: block;
  min-height: 160px;
  background: #f0f0f0;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.news-card-body {
  padding: 1.15rem 1.25rem 1.35rem 0;
}

.news-card-body h2 {
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.35rem 0 0.65rem;
}

.news-card-body h2 a {
  color: inherit;
  text-decoration: none;
}

.news-card-body h2 a:hover {
  color: var(--rojo);
}

.news-meta {
  font-family: var(--fuente-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.news-meta a {
  color: var(--rojo);
  text-decoration: none;
}

.news-article {
  max-width: 760px;
}

.news-article h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.news-figure {
  margin: 1.5rem 0;
}

.news-figure img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--sombra-suave);
}

.news-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--gris-medio);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 14px;
}

.partner-logos img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.ally-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ally-logo-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  place-items: center;
  min-height: 110px;
  box-shadow: var(--sombra-suave);
}

.ally-logo-card img {
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ally-logo-card a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.lang-reco {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--sombra-suave);
}

.lang-reco-logos {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent;
  border-radius: 14px;
  min-height: 0;
}

.lang-reco-logos img {
  height: auto;
  width: 100%;
  max-width: 280px;
  max-height: 96px;
  object-fit: contain;
}

.lang-reco-logos img.lang-reco-logo-wwsa {
  max-width: 72px;
  max-height: 72px;
  background: transparent;
  border-radius: 10px;
  padding: 0;
}

@media (max-width: 820px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-body {
    padding: 0 1.1rem 1.25rem;
  }

  .ally-logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-reco {
    grid-template-columns: 1fr;
  }
}

/* ——— Acreditaciones ——— */
.acred-card {
  position: relative;
  background:
    linear-gradient(165deg, #ffffff 0%, #fbf7f5 55%, #fff 100%);
  border: 1px solid rgba(178, 34, 34, 0.18);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow:
    0 4px 8px rgba(26, 26, 26, 0.04),
    0 22px 48px rgba(122, 21, 21, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.acred-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(178, 34, 34, 0.22);
  border-radius: 14px;
  pointer-events: none;
}

.acred-card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 10.5rem;
  height: 10.5rem;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  background: transparent;
  transform: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0 20px 0 0;
}

.acred-card-ribbon span {
  position: absolute;
  top: 2.35rem;
  right: -3.4rem;
  display: block;
  width: 15.5rem;
  margin: 0;
  padding: 0.62rem 0.5rem;
  transform: rotate(45deg);
  transform-origin: center;
  background: var(--rojo);
  color: #fff;
  font-family: var(--fuente-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(122, 21, 21, 0.28);
}

.acred-card-top {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  position: relative;
  z-index: 1;
  padding-right: 2.75rem;
}

.acred-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.acred-valid-bar {
  display: none;
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #e7f7ee 0%, #f3fbf6 100%);
  border: 1px solid rgba(31, 107, 58, 0.28);
  color: #14532d;
  box-shadow: 0 8px 20px rgba(31, 107, 58, 0.08);
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
}

/* Desktop: barra junto a botones; móvil: debajo del logo */
.acred-card.is-qr-verified .acred-valid-bar--desktop {
  display: flex;
  flex: 1 1 220px;
  align-self: center;
}

.acred-card.is-qr-verified .acred-valid-bar--mobile {
  display: none;
}

.acred-valid-bar[hidden] {
  display: none !important;
}

.acred-valid-bar svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #1f6b3a;
}

.acred-valid-bar > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.acred-valid-bar strong {
  display: block;
  font-family: var(--fuente-ui);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.acred-valid-bar span {
  display: block;
  font-family: var(--fuente-ui);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.9;
  margin: 0;
}

.acred-identity {
  min-width: 0;
}

.acred-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.acred-logo {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--linea);
  display: grid;
  place-items: center;
  padding: 0.65rem;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.08);
}

.acred-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.acred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.acred-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--fuente-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--carbon);
  background: var(--seda);
  border: 1px solid var(--linea);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.acred-badge svg {
  width: 13px;
  height: 13px;
}

.acred-badge-ok {
  color: #1f6b3a;
  background: #e8f6ee;
  border-color: rgba(31, 107, 58, 0.2);
}

.acred-identity h2 {
  font-family: var(--fuente-titulo);
  font-size: 1.65rem;
  margin: 0 0 0.2rem;
  color: var(--negro);
}

.acred-fullname {
  font-family: var(--fuente-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rojo);
  margin-bottom: 0.75rem;
}

.acred-copy {
  color: var(--gris);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 58ch;
}

.acred-card-meta {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.acred-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.acred-meta-label {
  display: block;
  font-family: var(--fuente-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-medio);
  margin-bottom: 0.25rem;
}

.acred-meta-grid strong {
  font-family: var(--fuente-ui);
  font-size: 0.92rem;
  color: var(--negro);
}

.acred-serial {
  letter-spacing: 0.02em;
  color: var(--rojo) !important;
  white-space: nowrap;
  font-size: 0.85rem !important;
}

.acred-verify {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 0.9rem;
}

.acred-qr {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--linea);
  display: grid;
  place-items: center;
  padding: 0.35rem;
}

.acred-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.acred-verify-text p {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.acred-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
}

.acred-footnote {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--fuente-ui);
  font-size: 0.78rem;
  color: var(--gris-medio);
  letter-spacing: 0.04em;
}

.acred-coming {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.25rem;
  border: 1px dashed rgba(26, 26, 26, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, var(--seda));
}

.acred-coming h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.4rem 0 0.85rem;
}

.acred-coming p {
  color: var(--gris);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .acred-card {
    padding: 1.35rem 1rem 1.15rem;
  }

  .acred-card-ribbon {
    width: 8.75rem;
    height: 8.75rem;
  }

  .acred-card-ribbon span {
    top: 1.9rem;
    right: -3.55rem;
    width: 14rem;
    font-size: 0.58rem;
    padding: 0.55rem 0.35rem;
    letter-spacing: 0.03em;
  }

  .acred-serial {
    white-space: normal;
    word-break: break-word;
  }

  .acred-card-top,
  .acred-verify {
    grid-template-columns: 1fr;
  }

  .acred-side {
    align-items: center;
    width: 100%;
  }

  .acred-logo,
  .acred-qr {
    margin-inline: auto;
  }

  .acred-card-top {
    padding-right: 0;
    text-align: center;
  }

  .acred-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .acred-actions {
    justify-content: center;
  }

  .acred-card.is-qr-verified .acred-valid-bar--mobile {
    display: flex;
    width: 100%;
    max-width: 26rem;
    text-align: left;
    flex: 0 0 auto;
    align-self: stretch;
  }

  .acred-card.is-qr-verified .acred-valid-bar--desktop {
    display: none !important;
  }

  .acred-badges {
    justify-content: center;
  }

  .acred-copy {
    margin-inline: auto;
  }

  .acred-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

