/* ABF Chess - Diseño elegante, deportivo y profesional */
:root {
  --bg: linear-gradient(180deg, #050505 0%, #111111 100%);
  --surface: rgba(8, 8, 8, 0.92);
  --surface-alt: rgba(20, 20, 20, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --badge-bg: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #c4c4c4;
  --accent: #b3261e;
  --accent-readable: #d94a3a;
  --accent-soft: rgba(179, 38, 30, 0.16);
  --cta-start: #cf3a27;
  --cta-mid: #a92015;
  --cta-end: #651308;
  --cta-shadow: rgba(179, 38, 30, 0.24);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0,0,0,0.38);
  --radius: 24px;
  --max-width: 1440px;
  font-family: 'Montserrat', sans-serif;
}

body[data-theme="light"] {
  --bg: #f5f5f5;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-alt: rgba(245, 245, 245, 0.95);
  --surface-soft: rgba(17, 17, 17, 0.04);
  --badge-bg: rgba(17, 17, 17, 0.05);
  --text: #111111;
  --muted: #5b5b5b;
  --border: rgba(17, 17, 17, 0.08);
  --shadow: 0 20px 40px rgba(0,0,0,0.08);
}

body[data-theme="light"] .hero {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('../assets/bgABFChess-hero.webp');
}

body[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.8));
}

body[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(17, 17, 17, 0.12);
}

body[data-theme="light"] .site-header .site-nav a,
body[data-theme="light"] .site-header .brand-name,
body[data-theme="light"] .site-header .brand-subtitle {
  color: #111;
}

body[data-theme="light"] .site-header .nav-cta {
  border-color: rgba(212, 0, 0, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(212,0,0,0.055));
  color: #8f160f;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  text-shadow: none;
}

body[data-theme="light"] .site-header .site-nav a:hover,
body[data-theme="light"] .site-header .site-nav a:focus-visible {
  color: var(--accent);
}

body[data-theme="light"] .brand-mark {
  border-color: rgba(17, 17, 17, 0.12);
}

body[data-theme="light"] .menu-toggle {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(17, 17, 17, 0.04);
}

body[data-theme="light"] .menu-toggle span {
  background: #111;
}

body[data-theme="light"] .blog-card,
body[data-theme="light"] .event-card,
body[data-theme="light"] .program-card,
body[data-theme="light"] .overview-cards article,
body[data-theme="light"] .overview-method article,
body[data-theme="light"] .pathway-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

body[data-theme="light"] .overview-cards article:first-child,
body[data-theme="light"] .overview-method article:first-child {
  background: linear-gradient(135deg, rgba(212,0,0,0.1), #fff);
  border-color: rgba(212,0,0,0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button, select, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  padding: 0.75rem 1rem;
  background: #111;
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100%, calc(var(--max-width) - 2rem));
  margin: 0 auto;
  padding: 0 1.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 108px;
  padding: 1rem 2rem 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 1.35rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

body[data-theme="dark"] .brand-mark {
  padding: 3px;
  background: rgba(255,255,255,0.94);
  border-color: rgba(255,255,255,0.18);
}

body[data-theme="dark"] .brand-mark img {
  border-radius: 0;
}

body[data-theme="dark"] .logo-switcher img {
  inset: auto;
  width: 52px;
  height: 52px;
}

/* Logo switcher: dos logos en el mismo espacio para evitar saltos de layout. */
.logo-switcher {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 760px;
  overflow: visible;
  isolation: isolate;
  box-shadow: none;
}

.logo-switcher::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  z-index: 0;
  opacity: 1;
  transition: opacity 520ms cubic-bezier(.22, 1, .36, 1);
  animation: logoBaseFade 14s ease-in-out infinite;
}

.logo-switcher img {
  position: absolute;
  inset: auto;
  width: 52px;
  height: 52px;
  border-radius: 0;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: opacity, transform;
  z-index: 1;
}

.logo-switcher .logo-1 {
  opacity: 1;
  width: 58px;
  height: 58px;
  transform: rotateY(0deg) scale(1.16);
  animation: logoPrimaryFade 14s ease-in-out infinite;
}

.logo-switcher .logo-2 {
  opacity: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  transform: rotateY(-90deg) scale(0.96);
  animation: logoSecondaryFade 14s ease-in-out infinite;
}

/* Ciclo de 14s: cada logo permanece varios segundos y cruza con un fade suave. */
@keyframes logoPrimaryFade {
  0%, 38% {
    opacity: 1;
    transform: rotateY(0deg) scale(1.16);
  }

  47%, 88% {
    opacity: 0;
    transform: rotateY(88deg) scale(1.08);
  }

  96%, 100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1.16);
  }
}

@keyframes logoBaseFade {
  0%, 42% {
    opacity: 1;
  }

  49%, 88% {
    opacity: 0;
  }

  95%, 100% {
    opacity: 1;
  }
}

@keyframes logoSecondaryFade {
  0%, 38% {
    opacity: 0;
    transform: rotateY(-88deg) scale(0.96);
  }

  47%, 88% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }

  96%, 100% {
    opacity: 0;
    transform: rotateY(-88deg) scale(0.96);
  }
}

/* Hover desktop: muestra el logo secundario de inmediato, sin golpe visual. */
@media (hover: hover) and (pointer: fine) {
  .brand:hover .logo-switcher::before,
  .brand:focus-visible .logo-switcher::before {
    animation: none;
    opacity: 0;
  }

  .brand:hover .logo-switcher .logo-1,
  .brand:focus-visible .logo-switcher .logo-1 {
    animation: none;
    opacity: 0;
    transform: rotateY(88deg) scale(1.08);
    transition: opacity 520ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.22, 1, .36, 1);
  }

  .brand:hover .logo-switcher .logo-2,
  .brand:focus-visible .logo-switcher .logo-2 {
    animation: none;
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    transition: opacity 520ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.22, 1, .36, 1);
  }
}

/* Accesibilidad: si el usuario pide menos movimiento, queda fijo y estable. */
@media (prefers-reduced-motion: reduce) {
  .logo-switcher img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .logo-switcher .logo-1 {
    opacity: 1;
  }

  .logo-switcher .logo-2 {
    opacity: 0;
  }
}

.brand-name {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

.site-nav a[aria-current="true"]:not(.nav-cta) {
  color: var(--accent);
}

.site-nav a[aria-current="true"]:not(.nav-cta)::after {
  transform: scaleX(1);
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-cta {
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 0, 0, 0.34);
  color: #ffefec;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  text-shadow: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-mid) 54%, var(--cta-end) 100%);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 12px 26px var(--cta-shadow), inset 0 1px 0 rgba(255,255,255,0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  position: relative;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Segoe UI Emoji', sans-serif;
  transition: none;
  position: relative;
  overflow: hidden;
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  line-height: 1;
}

body[data-theme="light"] .theme-toggle {
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

body[data-theme="dark"] .theme-toggle {
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.tab:focus-visible,
.floating-action-rail a:focus-visible {
  outline: 2px solid rgba(212,0,0,0.7);
  outline-offset: 3px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

body[data-theme="light"] .theme-toggle:hover,
body[data-theme="light"] .theme-toggle:focus {
  background: #222;
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus {
  background: #f1f1f1;
}

.theme-toggle span {
  position: relative;
  z-index: 1;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.hero {
  position: relative;
  padding: 120px 0 50px;
  background-color: #050505;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('../assets/bgABFChess-hero.webp');
  background-size: cover;
  background-position: 62% 46%;
  min-height: 72vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.028), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,0.42), rgba(0,0,0,0.18) 38%, rgba(0,0,0,0.5)),
    url('../assets/bgABFChess-hero.webp') 62% 46% / cover no-repeat;
  filter: brightness(0.58) contrast(1.08) saturate(1.02);
  transform: scale(1.018);
  transform-origin: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  width: min(100%, 1320px);
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  position: relative;
  z-index: 3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(212,0,0,0.08), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,0.38), rgba(0,0,0,0.82));
  z-index: 2;
}

body[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(circle at 72% 28%, rgba(212,0,0,0.07), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,0.42), rgba(0,0,0,0.84));
}

body[data-theme="light"] .hero .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

body[data-theme="light"] .hero .btn-outline {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

body[data-theme="light"] .hero .btn-secondary:hover,
body[data-theme="light"] .hero .btn-outline:hover {
  background: rgba(255,255,255,0.16);
}

.top-bar {
  width: 100%;
  background: var(--accent);
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0.45rem 0;
  color: #fff;
}

.top-bar p {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.top-bar-link {
  position: absolute;
  right: 1.6rem;
  font-weight: 700;
  text-decoration: underline;
}

.top-bar-link:hover,
.top-bar-link:focus {
  color: #000;
}

@media (max-width: 720px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .top-bar-link {
    position: static;
    transform: none;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  min-height: calc(72vh - 40px);
}

.hero-info-panel .hero-panel {
  max-width: 720px;
  margin: 0 auto;
}

.hero-copy,
.hero-panel {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: none;
}

.hero .eyebrow {
  gap: 0.55rem;
  padding: 0.74rem 1.05rem;
  background: rgba(3, 3, 3, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  box-shadow: 0 18px 42px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  text-shadow: 0 1px 12px rgba(0,0,0,0.62);
}

.hero .eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,74,58,0.86));
}

.hero .eyebrow::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(217,74,58,0.86), transparent);
}

.hero h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.4rem, 5vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 920px;
}

.hero h1 strong {
  color: #fff;
}

.hero p {
  margin: 2rem 0 2.5rem;
  max-width: 680px;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-mid) 48%, var(--cta-end) 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 34px var(--cta-shadow), inset 0 1px 0 rgba(255,255,255,0.14);
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(90deg, #d84832 0%, #b52619 45%, #581007 100%);
  box-shadow: 0 20px 44px rgba(179,38,30,0.32), inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: #111;
  border-color: rgba(255,255,255,0.28);
}

.btn-outline {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}

.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(255,255,255,0.28);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 2.5rem;
}

.hero-badges span {
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

body[data-theme="light"] .hero-badges span {
  background: rgba(0,0,0,0.22);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

.hero-panel {
  background: rgba(17,17,17,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .hero-panel {
  background: rgba(17,17,17,0.72);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

body[data-theme="light"] .hero-panel h2,
body[data-theme="light"] .hero-panel .hero-list li,
body[data-theme="light"] .hero-panel .hero-meta div {
  color: #fff;
}

body[data-theme="light"] .hero-panel .hero-list li {
  color: #3b3b3b;
}

body[data-theme="light"] .hero-panel .hero-list li::before {
  color: var(--accent);
}

body[data-theme="light"] .hero-panel .hero-list li::before {
  color: var(--accent);
}

.hero-panel h2 {
  margin-top: 0;
  font-size: 1.9rem;
}

.hero-list {
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.hero-list li {
  padding-left: 1.4rem;
  position: relative;
  color: rgba(255,255,255,0.82);
}

.hero-list li::before {
  content: "\265F";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hero-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-meta div {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-meta span {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
}

.hero-meta strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

.section {
  padding: 90px 0;
}

.intro-overview {
  padding: 86px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.overview-copy h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
}

.overview-copy p {
  max-width: 620px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.overview-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.overview-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
  font-weight: 700;
}

.overview-list li::before {
  content: "\2659";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent);
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Segoe UI Emoji', sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.overview-list li:nth-child(2)::before {
  content: "\265E";
}

.overview-list li:nth-child(3)::before {
  content: "\265C";
}

.overview-list li span {
  font-weight: 800;
}

.overview-cards,
.overview-method {
  display: grid;
  gap: 0.85rem;
}

.overview-cards article,
.overview-method article {
  position: relative;
  min-height: 0;
  padding: 1.1rem 1.25rem 1.1rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-alt);
  box-shadow: 0 14px 34px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.overview-cards article:first-child,
.overview-method article:first-child {
  background: var(--surface-alt);
  border-color: rgba(212,0,0,0.35);
}

.overview-method article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0.35);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.overview-method article:hover,
.overview-method article:focus-within {
  transform: translateX(6px);
  border-color: rgba(212,0,0,0.35);
  box-shadow: 0 18px 46px rgba(0,0,0,0.14);
}

.overview-method article:hover::before,
.overview-method article:focus-within::before {
  transform: scaleY(1);
}

.overview-cards span,
.overview-method span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-method span {
  color: var(--text);
  font-size: 0.72rem;
}

body[data-theme="light"] .overview-method span {
  color: #111;
}

.overview-cards strong,
.overview-method strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--accent);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.overview-cards p,
.overview-method p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.technical-team {
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: clamp(2rem, 4.2vw, 3.4rem);
  align-items: stretch;
}

.team-copy > span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-copy h2 {
  max-width: 760px;
  margin: 1rem 0 1.1rem;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1;
}

.team-copy > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.coach-grid article,
.team-story {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-alt);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.coach-grid strong {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
}

.coach-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.team-story {
  margin-top: 1rem;
  border-color: rgba(212,0,0,0.28);
  background: rgba(212,0,0,0.08);
}

.team-story summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: default;
  list-style: none;
}

.team-story summary::-webkit-details-marker {
  display: none;
}

.team-story summary::after {
  content: "+";
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(179,38,30,0.1);
  color: var(--accent);
  flex: 0 0 auto;
}

.team-story[open] summary::after {
  content: "-";
}

.team-story:not([open]) > p {
  display: block;
}

.team-story p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.team-media {
  display: grid;
  grid-template-rows: auto minmax(250px, auto) auto 1fr;
  gap: 0.8rem;
  max-width: 620px;
  height: 100%;
  align-self: stretch;
}

.team-photo-label span,
.team-video-label span {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-theme="light"] .team-photo-label span,
body[data-theme="light"] .team-video-label span {
  color: #111;
}

.team-video-label {
  margin-top: 1.15rem;
}

.team-photo-card {
  min-height: 250px;
  border-radius: 28px;
  background-image: url('../assets/GabyRk.jpg');
  background-size: cover;
  background-position: center 70%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.academy-video-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-alt);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.academy-video-ready {
  min-height: 430px;
  height: 100%;
  align-items: end;
  padding: 1.5rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.42)),
    url('../assets/grupal.webp');
  background-size: cover;
  background-position: center;
}

.academy-video-ready::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: inherit;
  pointer-events: none;
}

.academy-video-ready::after {
  content: '';
  position: absolute;
  inset: auto 1.25rem 1.25rem auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(212,0,0,0.18);
  pointer-events: none;
}

.academy-video-ready .play-button,
.academy-video-ready div {
  position: relative;
  z-index: 1;
}

.academy-video-link span:not(.play-button) {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.academy-video-link strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.academy-video-link p {
  margin: 0.35rem 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.9rem;
}

.play-button {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
}

.play-button::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 14px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

body[data-theme="light"] .coach-grid article,
body[data-theme="light"] .team-story {
  border-color: rgba(17,17,17,0.08);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

body[data-theme="light"] .team-story {
  border-color: rgba(212,0,0,0.2);
  background: rgba(212,0,0,0.06);
}

body[data-theme="light"] .academy-video-link {
  border-color: rgba(17,17,17,0.08);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

body[data-theme="light"] .academy-video-ready {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.34)),
    url('../assets/grupal.webp');
  background-size: cover;
  background-position: center;
}

.pathways {
  background: var(--bg);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pathway-card {
  display: grid;
  align-content: start;
  min-height: 310px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-alt);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.pathway-card > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.pathway-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
}

.pathway-card p {
  margin: 0;
  color: var(--muted);
}

.pathway-card a {
  width: fit-content;
  margin-top: 1.3rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.involvement {
  background: var(--bg);
  overflow: hidden;
}

.involvement-head {
  width: min(100%, 1920px);
  margin: 0 auto 0;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 7vw, 8rem) clamp(1.7rem, 3vw, 2.4rem);
}

.centered-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.involvement-title {
  max-width: none;
  margin: 0;
  text-align: left;
}

.involvement-title h2 {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  width: 100%;
  max-width: 1640px;
  margin-top: 1rem;
  font-size: clamp(1.65rem, 2.1vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.involvement-title h2 strong {
  flex: 0 1 auto;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.involvement-title h2 span {
  flex: 1 1 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.55rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.01em;
  max-width: 860px;
  text-wrap: normal;
}

.involvement-list {
  display: grid;
  gap: 0;
  width: min(100%, 1920px);
  margin: 0 auto;
  position: relative;
}

.involvement-list::before,
.involvement-list::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(28px, 5vw, 92px);
  pointer-events: none;
}

.involvement-list::before {
  left: 0;
  background: linear-gradient(90deg, #f5f5f5, rgba(245,245,245,0));
}

.involvement-list::after {
  right: 0;
  background: linear-gradient(270deg, #f5f5f5, rgba(245,245,245,0));
}

.involvement-row {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 380px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.involvement-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.involvement-row.reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.involvement-row.reverse .involvement-copy {
  order: 2;
}

.involvement-row.reverse .involvement-image {
  order: 1;
}

.involvement-copy {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(2rem, 7vw, 8rem);
  background: var(--surface);
}

.involvement-copy > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.involvement-copy h3 {
  margin: 0.75rem 0 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.involvement-copy ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.involvement-copy li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.involvement-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.involvement-copy a {
  width: fit-content;
  margin-top: 1.4rem;
  color: var(--accent);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.involvement-image {
  position: relative;
  min-height: 430px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.involvement-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.involvement-row.reverse .involvement-image::after {
  background: linear-gradient(270deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04), rgba(255,255,255,0));
}

body[data-theme="dark"] .involvement-image::after {
  background: linear-gradient(90deg, rgba(5,5,5,0.28), rgba(5,5,5,0.1), rgba(5,5,5,0));
}

body[data-theme="dark"] .involvement-row.reverse .involvement-image::after {
  background: linear-gradient(270deg, rgba(5,5,5,0.28), rgba(5,5,5,0.1), rgba(5,5,5,0));
}

body[data-theme="dark"] .involvement-list::before {
  background: linear-gradient(90deg, #050505, rgba(5,5,5,0));
}

body[data-theme="dark"] .involvement-list::after {
  background: linear-gradient(270deg, #050505, rgba(5,5,5,0));
}

body[data-theme="light"] .involvement-row,
body[data-theme="light"] .involvement-row:last-child {
  border-color: rgba(17,17,17,0.06);
}

.involvement-image-1 {
  background-image: url('../assets/programa-ajedrez-todas-edades.webp');
}

.involvement-image-2 {
  background-image: url('../assets/programa-clases-grupales-individuales.webp');
}

.involvement-image-3 {
  background-image: url('../assets/programa-alto-rendimiento-torneos.webp');
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.4rem;
}

.section-head span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-head p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.section-head.involvement-title {
  max-width: none;
  margin-bottom: 0;
}

.section-head.involvement-title h2 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: 100%;
  max-width: 1640px;
  margin-top: 0.85rem;
  font-size: clamp(1.55rem, 2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-head.involvement-title h2 strong {
  flex: 0 1 auto;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.section-head.involvement-title h2 span {
  flex: 1 1 620px;
  display: inline;
  max-width: 980px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.18vw, 1.32rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
  text-wrap: normal;
}

.split-features {
  padding: 90px 0;
  background: rgba(10,10,10,0.96);
}

body[data-theme="light"] .split-features {
  background: #f7f5f3;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.split-grid.reverse .split-copy {
  order: 2;
}

.split-grid.reverse .split-image {
  order: 1;
}

.split-image {
  min-height: 460px;
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.16), rgba(17,17,17,0.45));
}

.split-image-1 {
  background-image: linear-gradient(180deg, rgba(212,0,0,0.22), rgba(0,0,0,0.5)), url('../assets/grupal.webp');
}

.split-image-2 {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(212,0,0,0.38)), url('../assets/bgABFChess-hero.webp');
}

.split-copy {
  max-width: 560px;
  color: #fff;
}

body[data-theme="light"] .split-copy {
  color: #111;
}

.split-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.05;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "\265F";
  color: var(--accent);
  margin-top: 0.2rem;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}

body[data-theme="light"] .btn-secondary {
  border-color: var(--accent);
  color: #111;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(212,0,0,0.16);
}

.achievements-grid,
.program-grid,
.blog-grid,
.event-grid {
  display: grid;
  gap: 1.5rem;
}

.achievements {
  position: relative;
  background:
    radial-gradient(circle at 15% 28%, rgba(179,38,30,0.22), transparent 28%),
    radial-gradient(circle at 78% 64%, rgba(179,38,30,0.16), transparent 26%),
    linear-gradient(135deg, #120302 0%, #050505 58%, #1a0705 100%);
  color: #fff;
  overflow: hidden;
}

.achievements::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 48%, #000, transparent 78%);
  pointer-events: none;
}

.achievements .container {
  position: relative;
  z-index: 1;
}

.achievement-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: clamp(2rem, 4vw, 4.8rem);
  align-items: center;
  min-height: 560px;
  padding: clamp(2.4rem, 5vw, 5rem);
  margin: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 45% 50%, rgba(179,38,30,0.18), transparent 31%),
    radial-gradient(circle at 92% 14%, rgba(255,255,255,0.06), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02) 44%, rgba(179,38,30,0.12));
  box-shadow: 0 34px 100px rgba(0,0,0,0.34);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.achievement-showcase::before {
  content: "";
  position: absolute;
  left: 46%;
  top: 50%;
  width: clamp(340px, 35vw, 560px);
  height: clamp(340px, 35vw, 560px);
  background: url('../assets/logoABF1.PNG') center / contain no-repeat;
  opacity: 0.12;
  filter: saturate(0.85) contrast(1.06);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.achievement-showcase::after {
  content: "";
  position: absolute;
  inset: 1.35rem;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}

.achievement-intro,
.achievement-metrics,
.fide-board article {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.achievement-metrics {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.achievement-intro {
  position: relative;
  display: grid;
  align-content: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  overflow: visible;
  clip-path: none;
  z-index: 2;
}

.achievement-intro::before {
  content: none;
}

.achievement-intro::after {
  content: "";
  width: 92px;
  height: 3px;
  margin-top: 1.65rem;
  background: linear-gradient(90deg, var(--accent-readable), transparent);
  border-radius: 999px;
}

.achievement-intro span {
  position: relative;
  z-index: 2;
  color: #ff4d4d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.achievement-intro h2 {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 1.15rem 0 1.4rem;
  font-size: clamp(3.2rem, 5.8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.achievement-intro p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.7;
}

.achievement-intro a {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-top: 1.5rem;
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.achievement-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
  align-content: center;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  z-index: 2;
}

.achievement-metrics::before {
  content: none;
}

.achievement-metrics article {
  display: grid;
  align-content: space-between;
  gap: 1.3rem;
  min-height: 188px;
  padding: 1.45rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 14%, rgba(217,74,58,0.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.025));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 45px rgba(0,0,0,0.16);
}

.achievement-metrics strong {
  display: block;
  color: #fff;
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.achievement-metrics strong::after {
  content: "+";
  margin-left: 0.08em;
  color: var(--accent-readable);
  font-size: 0.72em;
  font-weight: 800;
}

.achievement-metrics article:nth-child(2) strong::after,
.achievement-metrics article:nth-child(4) strong::after {
  content: "";
}

.achievement-metrics span {
  display: block;
  max-width: 320px;
  margin-top: 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.achievement-emblem {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.achievement-emblem::before,
.achievement-emblem::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.achievement-emblem::before {
  width: clamp(250px, 24vw, 390px);
  height: clamp(250px, 24vw, 390px);
  border: 1px solid rgba(217,74,58,0.34);
  box-shadow: 0 0 0 18px rgba(179,38,30,0.045), 0 28px 90px rgba(0,0,0,0.34);
}

.achievement-emblem::after {
  width: clamp(180px, 18vw, 292px);
  height: clamp(180px, 18vw, 292px);
  background:
    linear-gradient(135deg, rgba(190,18,18,0.96), rgba(190,18,18,0.96)) top left / 46% 8px no-repeat,
    linear-gradient(135deg, rgba(190,18,18,0.96), rgba(190,18,18,0.96)) top left / 8px 46% no-repeat,
    linear-gradient(135deg, rgba(190,18,18,0.96), rgba(190,18,18,0.96)) bottom right / 46% 8px no-repeat,
    linear-gradient(135deg, rgba(190,18,18,0.96), rgba(190,18,18,0.96)) bottom right / 8px 46% no-repeat,
    linear-gradient(135deg, rgba(179,38,30,0.2), rgba(0,0,0,0.16));
}

.achievement-emblem img {
  position: relative;
  z-index: 1;
  width: clamp(230px, 23vw, 360px);
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,0.34));
  opacity: 0.96;
}

@media (min-width: 1121px) {
  .achievements .container {
    width: min(100%, 1660px);
  }

  .achievement-showcase {
    grid-template-columns: minmax(380px, 0.9fr) minmax(230px, 0.58fr) minmax(520px, 1fr);
    gap: clamp(2.4rem, 4.8vw, 6.2rem);
    min-height: 560px;
    padding: clamp(2.8rem, 5vw, 5.4rem);
  }

  .achievement-showcase::before {
    display: none;
  }

  .achievement-intro h2 {
    max-width: 560px;
    font-size: clamp(3.4rem, 5.4vw, 5.9rem);
  }

  .achievement-intro p {
    max-width: 560px;
  }

  .achievement-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    align-self: center;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .achievement-metrics article {
    grid-template-columns: minmax(140px, 0.42fr) minmax(240px, 1fr);
    align-items: center;
    align-content: center;
    min-height: auto;
    padding: 1.35rem 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    box-shadow: none;
  }

  .achievement-metrics article:last-child {
    border-bottom: 0;
  }

  .achievement-metrics strong {
    font-size: clamp(2.3rem, 4vw, 4.1rem);
  }

  .achievement-metrics span {
    max-width: 360px;
    color: rgba(255,255,255,0.76);
  }

  .achievement-emblem {
    min-height: 320px;
  }

  .achievement-emblem::before {
    width: clamp(220px, 19vw, 330px);
    height: clamp(220px, 19vw, 330px);
  }

  .achievement-emblem::after {
    width: clamp(178px, 15.6vw, 268px);
    height: clamp(178px, 15.6vw, 268px);
  }

  .achievement-emblem img {
    width: clamp(210px, 18vw, 300px);
  }
}

@media (max-width: 1120px) {
  .achievement-emblem {
    min-height: 260px;
  }

  .achievement-emblem img {
    width: min(250px, 62vw);
  }
}

.fide-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fide-board article {
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 20px;
}

.fide-board span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.fide-board strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.fide-board p {
  margin: 0.65rem 0 0;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
}

body[data-theme="light"] .achievement-intro,
body[data-theme="light"] .fide-board article {
  border-color: rgba(17,17,17,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

body[data-theme="light"] .achievement-metrics,
body[data-theme="light"] .fide-board article {
  background: transparent;
}

body[data-theme="light"] .achievement-metrics article {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035));
  border-color: rgba(255,255,255,0.1);
}

body[data-theme="light"] .featured-blog-card {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .event-date {
  background: rgba(179,38,30,0.075);
  border-color: rgba(179,38,30,0.16);
}

body[data-theme="dark"] .event-date::before,
body[data-theme="dark"] .event-date::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(217,74,58,0.5));
  border-color: rgba(255,255,255,0.12);
}

.achievement-card,
.program-card,
.blog-card,
.event-card {
  background: var(--surface-alt);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.achievement-card h3,
.program-card h3,
.blog-card h3,
.event-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.3rem;
}

.achievement-card p,
.program-card p,
.blog-card p,
.event-card p {
  margin: 0;
  color: var(--muted);
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card {
  min-height: 230px;
}

.blog-grid {
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.91fr));
  align-items: stretch;
}

.blog-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(179,38,30,0.24);
  box-shadow: 0 22px 54px rgba(0,0,0,0.16);
}

.featured-blog-card {
  min-height: 220px;
  background: var(--surface-alt);
  border-color: rgba(255,255,255,0.08);
}

.featured-blog-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

.blog-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-page {
  background: var(--bg);
  color: var(--text);
}

.article-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.article-header .brand {
  width: fit-content;
}

.article-main {
  padding: 3rem 0 4rem;
}

.article-shell {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero .blog-label {
  margin-bottom: 0.8rem;
}

.article-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-hero p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 3.4vw, 1.16rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.article-meta span {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-cover {
  margin: 1.7rem 0 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-content {
  display: grid;
  gap: 1.35rem;
}

.article-content section,
.article-summary,
.article-references {
  padding: clamp(1.1rem, 4vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-alt);
}

.article-summary {
  border-color: rgba(179,38,30,0.22);
  background:
    linear-gradient(135deg, rgba(179,38,30,0.13), rgba(255,255,255,0.02)),
    var(--surface-alt);
}

.article-content h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.1;
}

.article-content p {
  margin: 0;
  color: var(--muted);
}

.article-content p + p {
  margin-top: 0.85rem;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.article-content strong {
  color: var(--text);
}

.article-references a {
  color: var(--accent-readable);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.article-back {
  display: inline-flex;
  margin-top: 1.6rem;
  color: var(--accent-readable);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

body[data-theme="light"] .article-header,
body[data-theme="light"] .article-content section,
body[data-theme="light"] .article-summary,
body[data-theme="light"] .article-references {
  background: #fff;
  border-color: rgba(17,17,17,0.08);
}

body[data-theme="light"] .article-summary {
  background: linear-gradient(135deg, rgba(179,38,30,0.07), #fff);
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1.15rem 1.25rem;
  align-items: start;
  min-height: 250px;
  overflow: hidden;
}

.event-card > div {
  min-height: 132px;
}

.event-card .btn {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.4rem;
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-mid) 48%, var(--cta-end) 100%);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 14px 28px rgba(179,38,30,0.2), inset 0 1px 0 rgba(255,255,255,0.14);
}

.event-card .btn:hover,
.event-card .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(179,38,30,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

.event-date {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 74px;
  min-height: 84px;
  padding: 1.15rem 0.65rem 0.75rem;
  border-radius: 18px;
  background: rgba(179,38,30,0.1);
  border: 1px solid rgba(179,38,30,0.2);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.event-date::before,
.event-date::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(179,38,30,0.42));
  border: 1px solid rgba(179,38,30,0.2);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.08);
}

.event-date::before {
  left: 18px;
}

.event-date::after {
  right: 18px;
}

.event-date span {
  display: block;
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.activity-calendar .container {
  width: min(100% - 2rem, 1320px);
}

.calendar-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(440px, 0.58fr);
  align-items: center;
  gap: 1.5rem 3rem;
  max-width: none;
}

.calendar-head > span {
  grid-column: 1 / -1;
}

.calendar-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0;
}

.calendar-head h2 svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0.55rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 16px 28px rgba(179,38,30,0.2);
}

.calendar-head p {
  max-width: none;
  margin: -0.45rem 0 0;
  white-space: nowrap;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.55rem);
  margin-top: 2.3rem;
}

.activity-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(430px, 1fr);
  gap: 0.75rem;
  min-width: 0;
}

.activity-month {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.activity-poster,
.activity-placeholder {
  position: relative;
  display: block;
  width: 100%;
  min-height: 430px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(179,38,30,0.16), transparent 38%),
    #090909;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 54px rgba(0,0,0,0.16);
}

.activity-poster {
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-poster:hover,
.activity-poster:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}

.activity-poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: contain;
}

.activity-placeholder span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.activity-placeholder {
  display: grid;
  align-content: end;
  padding: 2rem;
  min-height: 430px;
  background:
    radial-gradient(circle at 72% 18%, rgba(179,38,30,0.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(245,245,245,0.82));
}

.activity-placeholder::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(179,38,30,0.13);
  border-radius: 20px;
  pointer-events: none;
}

.activity-placeholder::after {
  content: "\265C";
  position: absolute;
  top: 2rem;
  right: 2.2rem;
  color: rgba(179,38,30,0.09);
  font-size: 8rem;
  line-height: 1;
}

.activity-placeholder h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.activity-placeholder p {
  max-width: 260px;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.clock-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(179,38,30,0.34);
  border-radius: 50%;
  background: rgba(255,255,255,0.64);
}

.clock-icon::before,
.clock-icon::after,
.clock-icon span::before,
.clock-icon span::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.clock-icon::before {
  left: 50%;
  top: 17px;
  width: 3px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 99px;
}

.clock-icon::after {
  left: 50%;
  top: 50%;
  width: 20px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 99px;
}

.clock-icon span::before,
.clock-icon span::after {
  top: 18px;
  width: 12px;
  height: 10px;
  border-radius: 8px 8px 2px 2px;
}

.clock-icon span::before {
  left: -3px;
}

.clock-icon span::after {
  right: -3px;
}

body[data-theme="light"] .activity-poster,
body[data-theme="light"] .activity-placeholder {
  border-color: rgba(10,10,10,0.08);
}

body[data-theme="dark"] .activity-placeholder {
  background:
    radial-gradient(circle at 72% 18%, rgba(217,74,58,0.22), transparent 34%),
    linear-gradient(145deg, #1b1b1b, #090909);
}

body[data-theme="dark"] .activity-placeholder-dark {
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.1), transparent 34%),
    linear-gradient(145deg, #1c1c1c, #080808);
  color: #fff;
}

body[data-theme="dark"] .activity-placeholder-dark p {
  color: rgba(255,255,255,0.72);
}

body[data-theme="dark"] .clock-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 980px);
  max-height: 92vh;
  padding: 0.7rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.image-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 1.4rem);
  border-radius: 18px;
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy {
  max-width: 100%;
}

.contact-copy > span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
  margin-top: 1.9rem;
}

.contact-card {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-alt);
}

.contact-info strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.85rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.location-card {
  position: relative;
  overflow: hidden;
}

.location-card::after {
  content: '';
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(212, 0, 0, 0.12);
  pointer-events: none;
}

.map-card {
  height: 240px;
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.18) contrast(1.05);
}

.social-icon-links svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-hub {
  text-align: left;
}

.contact-hub-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}

.contact-hub-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
}

.contact-hub-brand strong {
  margin: 0;
  font-size: 1.25rem;
}

.contact-hub-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-lines {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.contact-lines a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  width: fit-content;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-lines svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: #6f747c;
  background: rgba(17, 17, 17, 0.055);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  flex: 0 0 auto;
}

.contact-lines svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-lines a:first-child svg path {
  fill: currentColor;
  stroke: none;
}

.contact-lines small {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.contact-lines a:hover,
.contact-lines a:focus-visible {
  background: rgba(212, 0, 0, 0.055);
  color: var(--accent);
  transform: translateX(2px);
}

.contact-lines a:hover svg,
.contact-lines a:focus-visible svg {
  color: var(--accent);
  background: rgba(212, 0, 0, 0.08);
  border-color: rgba(212, 0, 0, 0.18);
}

.social-icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.social-icon-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-mid));
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon-links a svg {
  color: #fff;
}

.social-icon-links a:hover,
.social-icon-links a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212,0,0,0.18);
}

.social-whatsapp {
  --social-color: #25d366;
}

.social-instagram {
  --social-color: #e4405f;
}

.social-facebook {
  --social-color: #1877f2;
}

.social-youtube {
  --social-color: #ff0000;
}

.social-tiktok {
  --social-color: #111;
}

body[data-theme="dark"] .social-tiktok {
  --social-color: #fff;
}

.social-icon-links svg path {
  fill: currentColor;
  stroke: none;
}

.social-icon-links svg rect,
.social-icon-links svg circle {
  fill: none;
}

.social-icon-links .play-icon {
  fill: #fff;
}

body[data-theme="light"] .contact-card,
body[data-theme="light"] .map-card {
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .map-card {
  background: #fff;
}

body[data-theme="light"] .contact-form {
  padding: 1.45rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

body[data-theme="light"] .contact-form label {
  color: #2f2f2f;
  font-weight: 700;
}

body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form select,
body[data-theme="light"] .contact-form textarea {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.18);
  color: #111;
  box-shadow: inset 0 1px 0 rgba(17, 17, 17, 0.03);
}

body[data-theme="light"] .contact-form input::placeholder,
body[data-theme="light"] .contact-form textarea::placeholder {
  color: #777;
}

body[data-theme="light"] .tab {
  background: #f3f3f3;
  border-color: rgba(17, 17, 17, 0.14);
  color: #111;
}

body[data-theme="light"] .tab.active {
  background: rgba(212,0,0,0.1);
  border-color: rgba(212,0,0,0.44);
}

.contact-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  margin: 1.25rem 0 0 auto;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-heading span {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
}

body[data-theme="light"] .form-heading span {
  color: #111;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.tab {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 1rem 1rem;
  border-radius: 18px;
  font-weight: 700;
}

.tab.active {
  background: rgba(212,0,0,0.14);
  border-color: rgba(212,0,0,0.4);
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--surface-alt);
  color: var(--text);
  padding: 1rem 1.1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(212,0,0,0.32);
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
}

.floating-action-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateY(-50%);
}

.floating-action-rail a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-mid));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-action-rail a:hover,
.floating-action-rail a:focus-visible {
  transform: translateX(-2px);
  box-shadow: 0 12px 26px rgba(179,38,30,0.34), inset 0 1px 0 rgba(255,255,255,0.18);
}

.floating-action-rail svg {
  width: 18px;
  height: 18px;
}

.floating-action-rail svg path,
.floating-action-rail svg rect,
.floating-action-rail svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  padding: 54px 0;
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  margin-bottom: 1.2rem;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,0.68);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.78);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--accent);
}

.footer-contact strong {
  font-size: 1.05rem;
}

.footer-social {
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
}

.footer-credit {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: center;
}

.footer-credit a {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #fff;
  border-bottom-color: var(--accent-readable);
}

.reveal {
  opacity: 1 !important;
  transform: none !important;
}

html.js.reveal-ready .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none;
}

.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1120px) {
  .hero-grid,
  .contact-grid,
  .team-grid,
  .involvement-row,
  .involvement-row.reverse,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .involvement-row.reverse .involvement-copy,
  .involvement-row.reverse .involvement-image {
    order: initial;
  }

  .involvement-image,
  .involvement-row {
    min-height: auto;
  }

  .involvement-image {
    min-height: 280px;
  }

  .involvement-image::after,
  .involvement-row.reverse .involvement-image::after,
  body[data-theme="dark"] .involvement-image::after,
  body[data-theme="dark"] .involvement-row.reverse .involvement-image::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.1), var(--surface));
  }

  .contact-form {
    max-width: 100%;
    margin: 0;
  }

  .program-grid,
  .achievement-grid,
  .achievement-showcase,
  .fide-board,
  .blog-grid,
  .event-grid,
  .overview-grid,
  .overview-cards,
  .overview-method,
  .coach-grid,
  .pathway-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .involvement-title h2 {
    display: block;
  }

  .involvement-title h2 strong {
    white-space: normal;
  }

  .section-head.involvement-title h2 {
    display: block;
  }

  .section-head.involvement-title h2 strong {
    white-space: normal;
  }

  .calendar-head {
    grid-template-columns: 1fr;
  }

  .calendar-head p {
    margin: 0;
    white-space: normal;
  }

}

@media (max-width: 860px) {
  .floating-action-rail {
    display: none;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .site-nav {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--surface);
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    opacity: 0;
  }

  .header-actions {
    gap: 0.65rem;
    margin-left: auto;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .site-nav.open {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }

  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .contact-form {
    gap: 0.9rem;
  }

  .technical-team {
    padding-top: 46px;
  }

  .team-grid {
    gap: 1.25rem;
  }

  .team-copy h2 {
    margin-top: 0.75rem;
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.02;
  }

  .team-copy > p {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .coach-grid {
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .coach-grid article,
  .team-story {
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  }

  .coach-grid strong {
    font-size: 1rem;
  }

  .coach-grid p {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .team-story:not([open]) {
    background: var(--surface-alt);
  }

  .team-story summary {
    cursor: pointer;
  }

  .team-story summary::after {
    display: inline-grid;
  }

  .team-story:not([open]) > p {
    display: none;
  }

  .team-story p {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .team-story[open] p {
    animation: storyReveal 180ms ease;
  }

  .team-media {
    gap: 0.55rem;
  }

  .involvement-head {
    padding: 3rem 1.4rem 1.6rem;
  }

  .section-head.involvement-title h2 {
    font-size: clamp(1.7rem, 7vw, 2.35rem);
  }

  .section-head.involvement-title h2 span {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .event-grid,
  .blog-grid {
    gap: 1rem;
  }

  .event-card {
    min-height: auto;
  }

  .event-card > div {
    min-height: auto;
  }

  .calendar-head {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .calendar-head p {
    margin: 0;
    white-space: normal;
  }

  .calendar-head h2 {
    align-items: flex-start;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .calendar-head h2 svg {
    width: 38px;
    height: 38px;
    margin-top: 0.1rem;
  }

  .activity-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .activity-card {
    grid-template-rows: auto minmax(360px, 1fr);
  }

  .activity-poster,
  .activity-placeholder,
  .activity-poster img {
    min-height: 360px;
  }

  .activity-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .achievements {
    background:
      radial-gradient(circle at 20% 12%, rgba(179,38,30,0.18), transparent 34%),
      linear-gradient(180deg, #100302, #050505);
  }

  .achievement-showcase {
    padding: 0;
    border-radius: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .achievement-showcase::before,
  .achievement-showcase::after {
    display: none;
  }

  .achievement-intro {
    min-height: auto;
    padding: 2rem 1.35rem;
    border-radius: 22px;
    clip-path: none;
  }

  .achievement-intro::before,
  .achievement-intro::after {
    opacity: 0.28;
    right: -42px;
  }

  .achievement-intro h2 {
    max-width: 320px;
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .achievement-intro p {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .achievement-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .achievement-metrics article {
    min-height: auto;
    padding: 1rem 1.1rem;
    border-radius: 16px;
  }

  .achievement-metrics strong {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .achievement-metrics span {
    max-width: 100%;
    font-size: 0.76rem;
  }

  .contact-form {
    gap: 0.78rem;
    margin-top: 1rem;
  }

  .tab {
    padding: 0.82rem;
    border-radius: 14px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.86rem 0.95rem;
    border-radius: 14px;
  }

  .site-footer {
    padding: 40px 0 30px;
  }

  .footer-grid {
    gap: 1.35rem;
  }

  .site-footer p,
  .footer-links,
  .footer-contact > strong,
  .footer-contact > a {
    display: none;
  }

  .footer-contact {
    gap: 0;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 0;
  }

  .footer-credit {
    margin-top: 1.35rem;
    padding-top: 1rem;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 72px;
  }

  .technical-team {
    padding-top: 46px;
  }

  .team-grid {
    gap: 1.25rem;
  }

  .team-copy h2 {
    margin-top: 0.75rem;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.02;
  }

  .team-copy > p {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .coach-grid {
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .coach-grid article,
  .team-story {
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  }

  .coach-grid strong {
    font-size: 1rem;
  }

  .coach-grid p {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .team-story:not([open]) {
    background: var(--surface-alt);
  }

  .team-story summary {
    cursor: pointer;
  }

  .team-story summary::after {
    display: inline-grid;
  }

  .team-story:not([open]) > p {
    display: none;
  }

  .team-story p {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .team-story[open] p {
    animation: storyReveal 180ms ease;
  }

  .team-media {
    gap: 0.55rem;
  }

  .brand-mark,
  .logo-switcher {
    width: 52px;
    height: 52px;
    border-radius: 50%;
  }

  .logo-switcher img {
    border-radius: 0;
    width: 42px;
    height: 42px;
  }

  .logo-switcher .logo-1 {
    width: 48px;
    height: 48px;
  }

  .logo-switcher .logo-2 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  html {
    scroll-padding-top: 92px;
  }

  .site-nav {
    top: 72px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .section {
    padding: 60px 0;
  }

  .social-icon-links {
    justify-content: center;
  }

  .site-footer {
    padding: 40px 0 30px;
  }

  .footer-grid {
    gap: 1.35rem;
  }

  .site-footer p,
  .footer-links,
  .footer-contact > strong,
  .footer-contact > a {
    display: none;
  }

  .footer-contact {
    gap: 0;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 0;
  }

  .footer-credit {
    margin-top: 1.35rem;
    padding-top: 1rem;
  }
}

@keyframes storyReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* En móviles muy estrechos, el logo queda fijo para priorizar lectura y estabilidad. */
@media (max-width: 380px) {
  .logo-switcher img {
    animation: none;
    transition: none;
    transform: none;
  }

  .logo-switcher .logo-1 {
    opacity: 1;
  }

  .logo-switcher .logo-2 {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html.js.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

.academy-video-player {
  display: block;
  position: relative;
  min-height: clamp(340px, 31vw, 520px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #050505;
  box-shadow: 0 22px 48px rgba(0,0,0,0.2);
}

.academy-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  background: #050505;
}

@media (max-width: 720px) {
  .academy-video-player {
    min-height: 240px;
    border-radius: 18px;
  }
}

.team-media .academy-video-player {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 11;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #050505;
  box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

.team-media .academy-video-player video {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: contain;
  object-position: center;
}

.team-media .academy-video-ambient {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}

.team-media .academy-video-ambient::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.45)),
    url('../assets/grupal.webp') center / cover no-repeat;
  filter: blur(18px) saturate(0.9) brightness(0.55);
  transform: scale(1.06);
}

.team-media .academy-video-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26));
}

.team-media .academy-video-ambient .academy-video-main {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: auto !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: contain;
  background: transparent;
  transform: translateX(-50%);
}

@media (max-width: 720px) {
  .team-media .academy-video-player {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }
}

/* Wider desktop treatment for the technical direction media column. */
@media (min-width: 1121px) {
  .technical-team .container {
    width: min(100%, 1540px);
  }

  .technical-team .team-grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(520px, 0.9fr);
    gap: clamp(2.4rem, 3.8vw, 4.2rem);
  }

  .technical-team .team-media {
    max-width: none;
    width: 100%;
  }

  .technical-team .team-photo-card {
    width: 100%;
    min-height: 250px;
    aspect-ratio: 16 / 7;
  }

  .technical-team .academy-video-player {
    height: clamp(370px, 29vw, 455px);
    aspect-ratio: auto;
  }
}

/* Mobile-first polish layer: only affects phones/tablets, leaving desktop intact. */
@media (max-width: 860px) {
  .top-bar {
    display: none;
  }

  .header-inner {
    min-height: 76px;
    padding: 0.65rem 1rem;
  }

  .site-nav {
    top: 76px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
  }

  .site-nav a {
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body {
    position: relative;
  }

  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    overflow: clip;
  }

  .site-header .container {
    overflow: visible;
  }

  main,
  section,
  .hero-grid,
  .overview-grid,
  .team-grid,
  .team-copy,
  .team-media,
  .coach-grid,
  .involvement-head,
  .involvement-list,
  .involvement-row,
  .achievement-showcase,
  .achievement-intro,
  .achievement-metrics,
  .activity-grid,
  .blog-grid,
  .contact-grid,
  .contact-copy,
  .contact-info,
  .contact-form,
  .footer-grid {
    min-width: 0;
    max-width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .hero {
    min-height: 680px;
    padding: 92px 0 44px;
    background-position: 58% center;
  }

  .hero::before {
    background-position: 58% center;
  }

  .hero .container {
    align-items: flex-end;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    padding: 0.45rem 0.9rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    max-width: 10ch;
    margin-top: 1rem;
    font-size: clamp(2.55rem, 12vw, 3.6rem);
    line-height: 0.94;
  }

  .hero p {
    max-width: 31rem;
    margin-top: 1.15rem;
    font-size: 0.95rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 1.45rem;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .hero-badges {
    display: none;
  }

  .intro-overview .overview-grid {
    gap: 1.4rem;
  }

  .overview-copy h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .overview-copy p {
    margin-top: 0.9rem;
    font-size: 0.95rem;
  }

  .overview-list {
    gap: 0.65rem;
    margin-top: 1.25rem;
  }

  .overview-list li {
    padding-left: 1.7rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .overview-method {
    gap: 0.65rem;
  }

  .overview-method article {
    padding: 0.95rem 1rem 0.95rem 1.15rem;
    border-radius: 14px;
  }

  .overview-method p {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .technical-team {
    padding-top: 42px;
  }

  .team-copy h2 {
    font-size: clamp(2rem, 8.4vw, 2.85rem);
  }

  .team-copy > p {
    margin-top: 1rem;
  }

  .coach-grid article,
  .team-story {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
  }

  .team-story summary {
    min-width: 0;
    align-items: flex-start;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .team-story summary::after {
    margin-top: -0.15rem;
  }

  .team-photo-label span,
  .team-video-label span {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .team-photo-card {
    width: 100%;
    max-width: 100%;
    min-height: 210px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .team-media .academy-video-player {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 210px;
    overflow: hidden;
  }

  .involvement-head {
    padding: 2.35rem 1rem 1.35rem;
  }

  .section-head.involvement-title h2 {
    gap: 0.7rem;
  }

  .section-head.involvement-title h2 strong {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
  }

  .section-head.involvement-title h2 span {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .involvement-list {
    gap: 0;
  }

  .involvement-row,
  .involvement-row:last-child {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(17,17,17,0.08);
  }

  .involvement-row.reverse .involvement-copy,
  .involvement-row.reverse .involvement-image {
    order: initial;
  }

  .involvement-row:nth-child(odd) .involvement-image,
  .involvement-row:nth-child(even) .involvement-image {
    order: 1;
  }

  .involvement-row:nth-child(odd) .involvement-copy,
  .involvement-row:nth-child(even) .involvement-copy {
    order: 2;
  }

  .involvement-copy {
    position: relative;
    z-index: 1;
    padding: 1.45rem 1rem 1.75rem;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
    border-top: 1px solid rgba(179,38,30,0.12);
  }

  body[data-theme="dark"] .involvement-copy {
    background:
      linear-gradient(180deg, rgba(10,10,10,0.98), rgba(18,18,18,0.95));
    border-top-color: rgba(217,74,58,0.18);
  }

  .involvement-copy h3 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .involvement-copy ul {
    gap: 0.55rem;
    margin: 1rem 0 0;
  }

  .involvement-copy li {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .involvement-image {
    min-height: 240px;
    background-position: center;
  }

  .involvement-image::after,
  .involvement-row.reverse .involvement-image::after,
  body[data-theme="dark"] .involvement-image::after,
  body[data-theme="dark"] .involvement-row.reverse .involvement-image::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.16)),
      linear-gradient(0deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  }

  body[data-theme="dark"] .involvement-image::after,
  body[data-theme="dark"] .involvement-row.reverse .involvement-image::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.32)),
      linear-gradient(0deg, rgba(0,0,0,0.12), rgba(0,0,0,0));
  }

  .achievements {
    padding: 54px 0;
  }

  .achievement-showcase {
    gap: 0.9rem;
  }

  .achievement-intro {
    padding: 1.65rem 1.15rem;
  }

  .achievement-intro h2 {
    font-size: clamp(2.25rem, 10vw, 3.05rem);
  }

  .achievement-emblem {
    display: none;
  }

  .achievement-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .achievement-metrics article {
    min-height: 126px;
    padding: 1rem;
  }

  .achievement-metrics strong {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .achievement-metrics span {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .calendar-head {
    gap: 0.75rem;
  }

  .calendar-head h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.05;
  }

  .calendar-head p {
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .activity-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.35rem;
  }

  .activity-card-soon {
    display: none;
  }

  .activity-card {
    grid-template-rows: auto;
  }

  .activity-month {
    margin-bottom: 0.55rem;
  }

  .activity-poster,
  .activity-poster img {
    min-height: 0;
  }

  .activity-poster {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
  }

  .activity-poster img {
    height: auto;
    object-fit: contain;
  }

  .blog .section-head {
    margin-bottom: 1.5rem;
  }

  .blog-grid {
    gap: 0.8rem;
  }

  .blog-card,
  .featured-blog-card {
    min-height: auto;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .blog-card h3,
  .featured-blog-card h3 {
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .blog-card p {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .article-cover {
    margin-top: 1.25rem;
    border-radius: 18px;
  }

  .contact-grid {
    gap: 1.25rem;
  }

  .contact-copy > span,
  .section-head > span {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .contact-copy > span {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
  }

  .contact-copy h2 {
    margin: 0.2rem 0 0.8rem;
    font-size: clamp(1.75rem, 7vw, 2.3rem);
    line-height: 1.12;
  }

  .contact-copy > p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .contact-info {
    gap: 0.8rem;
    margin-top: 1.3rem;
  }

  .contact-card {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 18px;
    overflow: hidden;
  }

  .contact-hub-brand img {
    width: 46px;
    height: 46px;
  }

  .contact-lines {
    margin-top: 1rem;
    gap: 0.65rem;
  }

  .map-card {
    height: 180px;
    margin-top: 0.9rem;
  }

  .form-heading span {
    font-size: 0.95rem;
  }

  .contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    padding: 0.95rem;
    border-radius: 18px;
    margin-top: 0.7rem;
  }

  body[data-theme="light"] .contact-form {
    padding: 0.95rem;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.07);
  }

  .contact-form .form-heading,
  .contact-form .form-tabs,
  .contact-form .field-name,
  .contact-form .field-city,
  .contact-form .field-mode,
  .contact-form .field-message,
  .contact-form > .btn {
    grid-column: 1 / -1;
  }

  .form-tabs {
    gap: 0.55rem;
  }

  .tab {
    min-height: 44px;
    padding: 0.7rem 0.65rem;
    border-radius: 13px;
    font-size: 0.88rem;
  }

  .contact-form label {
    gap: 0.35rem;
    font-size: 0.82rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 44px;
    padding: 0.72rem 0.82rem;
    border-radius: 13px;
    font-size: 0.88rem;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    font-size: 0.82rem;
  }

  .contact-form textarea {
    min-height: 92px;
  }

  .contact-form .btn {
    min-height: 48px;
    margin-top: 0.1rem;
    padding: 0.82rem 1rem;
  }

  .site-footer {
    padding: 30px 0 24px;
  }

  .footer-grid {
    width: min(100%, 340px);
    margin: 0 auto;
    gap: 0.95rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(255,255,255,0.035);
  }

  .footer-brand {
    justify-content: flex-start;
    margin-bottom: 0;
    padding-left: 0;
    gap: 0.75rem;
  }

  .footer-brand .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .footer-brand .brand-name {
    font-size: 0.98rem;
  }

  .footer-brand .brand-subtitle {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .footer-contact {
    margin-top: 0;
  }

  .footer-social {
    width: fit-content;
    display: flex;
    justify-content: center;
    gap: 0.72rem;
    margin: 0.2rem auto 0;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-credit {
    width: min(100%, 340px);
    margin: 0.9rem auto 0;
    padding: 0.85rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .brand-subtitle {
    display: none;
  }

  .footer-brand .brand-subtitle {
    display: block;
  }

  .brand-mark,
  .logo-switcher {
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: 630px;
    padding-top: 86px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.05rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .overview-method article:nth-child(4) {
    display: none;
  }

  .achievement-metrics {
    grid-template-columns: 1fr;
  }

  .achievement-metrics article {
    min-height: 96px;
  }

  .contact-form textarea {
    min-height: 88px;
  }
}
