/* ============================================================
   FEDESOFT — Shared Styles
   Federación Salvadoreña de Sóftbol
   Paleta: #283c96 / #ffffff | Inspirado en WBSC + USA Softball
   ============================================================

/* HACK: container padding caused horizontal scroll on mobile 360 — added overflow-x:hidden on container */
/* TODO: usar container queries en lugar de media queries en la refactorización */

/* --- Reset & Base --- */
/* HACK: container padding caused horizontal scroll on mobile 360 — added overflow-x:hidden on container */
/* TODO: usar container queries en lugar de media queries en la refactorización */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #283c96;
  --accent-hover: #3b51b5;
  --accent-dark: #1a2a6c;
  --accent-light: #4a6ddb;
  --accent-rgb: 40, 60, 150;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', monospace;

  --radius: 3px;
  --radius-lg: 3px;
  --max-width: 1200px;
  --nav-height: 64px;
  --topbar-height: 40px;

  --fs-xs: clamp(0.688rem, 0.65rem + 0.15vw, 0.75rem);
  --fs-sm: clamp(0.813rem, 0.75rem + 0.2vw, 0.875rem);
  --fs-base: clamp(0.938rem, 0.875rem + 0.25vw, 1rem);
  --fs-lg: clamp(1.063rem, 1rem + 0.3vw, 1.125rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  --fs-4xl: clamp(2.5rem, 1.8rem + 2.2vw, 3.75rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  padding-top: calc(var(--topbar-height) + var(--nav-height));
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* --- Top Bar (WBSC-style) --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--accent-dark);
  z-index: 1001;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  gap: 0.67rem;
}

.topbar-name {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background 0.2s;
  border-radius: 50%;
}

.topbar-social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

.topbar-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.67rem;
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-xs);
}

.topbar-contact a {
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-xs);
}

.topbar-contact a:hover {
  color: #fff;
  text-decoration: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--fg) !important; /* TODO: refactor — legacy override */
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: var(--fg);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
}

.nav-links a.active:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* --- Section --- */
.section {
  padding: clamp(1rem, 1vw, 2rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-base);
  color: var(--muted);
  margin-bottom: 0.5rem;
  max-width: 640px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(40vh, 50vw, 70vh);
  min-height: 320px;
  overflow: hidden;
  background: var(--accent-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(12, 26, 88, 0.25));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 0 clamp(4.5rem, 6vw, 5.5rem);
  margin: 0;
  width: 100%;
}

.hero-slide-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-slide-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-slide-desc {
  font-size: var(--fs-lg);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(0,0,0,0.5);
}

.slider-arrow.prev { left: 0.75rem; }
.slider-arrow.next { right: 0.75rem; }

/* --- Quick Links / CTA Cards (USA Softball-inspired) --- */
.quick-links-section {
  padding: 0;
  margin-top: -2rem;
  position: relative;
  z-index: 5;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.67rem;
}

.quick-link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.125rem;
  max-width: 280px;
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  justify-self: center;
  background-size: cover;
  background-position: center;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  text-decoration: none;
  color: #fff;
}

.quick-link-card svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.quick-link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.quick-link-card:hover::after {
  opacity: 1;
}

.quick-link-label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.quick-link-arrow {
  font-size: var(--fs-xs);
  opacity: 0.7;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.quick-link-card:hover .quick-link-arrow {
  transform: translateX(4px);
}

/* --- Newsletter Signup --- */
.newsletter-section {
  background: var(--accent);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-content {
  flex: 1;
  min-width: 280px;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-desc {
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-sm);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  min-width: 320px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.newsletter-form button {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* --- Sponsors / Aliados (WBSC-style grid) --- */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  min-height: 110px;
  min-width: 180px;
}

.sponsor-item:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(40, 60, 150, 0.08);
  transform: translateY(-2px);
}

.sponsor-name {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sponsor-img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);
  transition: filter 0.2s;
}

.sponsor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-align: center;
}

.sponsor-placeholder svg {
  opacity: 0.4;
}

.sponsor-placeholder span {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- News card image label --- */
.news-card-img-label {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: rgba(0,0,0,0.55);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(2px);
}

/* --- News full grid (noticias page) --- */
.news-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* --- Page hero (inner pages) --- */


.page-hero-label {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.page-hero-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.page-hero-line {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto 1rem;
}

.page-hero-desc {
  font-size: var(--fs-lg);
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Comunicado full page --- */
.comunicado-full {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--fg);
}

.comunicado-full h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-xl);
}

.comunicado-full ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.comunicado-full li {
  margin-bottom: 0.35rem;
}

.comunicado-full a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2.5rem 0;
  }
  .page-hero-title {
    font-size: var(--fs-2xl);
  }
  .page-hero-desc {
    font-size: var(--fs-base);
  }
  .news-grid-full {
    grid-template-columns: 1fr;
  }
}

/* --- Footer Partners Row --- */
.footer-partners {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-partners-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.footer-partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-partner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-partner-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-partner-item svg {
  flex-shrink: 0;
}

/* --- Categorías / Ramas (WBSC World Cups adaptation) --- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.2s;
}

.cat-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.cat-card-bg {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.cat-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.cat-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.cat-card-desc {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
}

.cat-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--fs-xs);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  line-height: 1.4;
}



/* --- News Carousel (WBSC-style) --- */
.news-carousel-wrap {
  position: relative;
}

.news-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.news-carousel::-webkit-scrollbar {
  height: 6px;
}

.news-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.news-carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.news-carousel-item {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.news-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-cat {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.news-card-date {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.news-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.news-card-excerpt {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-arrow:hover {
  background: var(--surface);
  border-color: var(--accent);
}

/* --- Results Compact (index.html top-3) --- */
.results-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.results-compact-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

.results-compact-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.results-compact-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.results-compact .table-wrap {
  border: none;
  border-radius: 0;
}

.results-compact .results-table th {
  padding: 10px 12px;
  font-size: var(--fs-xs);
}

.results-compact .results-table td {
  padding: 8px 12px;
  font-size: var(--fs-xs);
}

/* --- Results / Table --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.results-table thead {
  background: var(--accent);
  color: #fff;
}

.results-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  white-space: nowrap;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.th-tip {
  cursor: help;
  position: relative;
}
.th-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + -45px);
  left: 50%;
  transform: translateX(-50%);
  background: oklch(18% 0.012 250);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  font-family: var(--font-body);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.th-tip:hover::after {
  opacity: 1;
}
.th-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: oklch(18% 0.012 250);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.th-tip:hover::before {
  opacity: 1;
}

.results-table td {
  padding: 12px 16px;
}

.results-table tbody tr:hover td {
  background: var(--surface);
}

.results-table .rank {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.results-table .rank-1 { color: #d4af37; }
.results-table .rank-2 { color: #a0a0a0; }
.results-table .rank-3 { color: #cd7f32; }

.results-table .team-name {
  font-weight: 500;
}

.results-table .pts {
  font-family: var(--font-mono);
  font-weight: 600;
}

.results-table .av {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.results-table .trend {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.trend-up { color: #16a34a; }
.trend-down { color: #dc2626; }
.trend-same { color: var(--muted); }

/* --- Calendar --- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0.67rem;
}

.cal-card {
  display: flex;
  gap: 0.67rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}

.cal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.08);
}

.cal-date-box {
  text-align: center;
  min-width: 56px;
  flex-shrink: 0;
  padding: 8px 0;
}

.cal-date-box-day {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.cal-date-box-month {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.cal-info {
  flex: 1;
  min-width: 0;
}

.cal-info-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cal-info-meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.cal-info-flag {
  display: inline-block;
  margin-right: 4px;
}

/* --- Timeline / History --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light), var(--accent));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.1rem;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-marker svg {
  width: 14px;
  height: 14px;
}

.timeline-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.06);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.timeline-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* --- Asociaciones Departamentales --- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.67rem;
}

.dept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.dept-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.06);
}


.dept-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.dept-name {
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: 0.25rem;
  color: var(--fg);
}

.dept-desc {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.4;
}

.dept-note {
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Gallery Load More --- */
.gallery-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.gallery-load-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-load-btn:active {
  transform: translateY(0);
}

.gallery-load-btn.loaded {
  opacity: 0.5;
  pointer-events: none;
}

.gallery-count {
  font-size: var(--fs-xs);
  color: var(--muted);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  text-decoration: none;
  background: var(--accent-dark);
}

.gallery-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover .gallery-item-img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -1.6rem;
    width: 20px;
    height: 20px;
  }

  .timeline-marker svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .gallery-load-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.lightbox-img {
  width: 85vmin;
  height: 85vmin;
  max-width: 90vw;
  max-height: 85vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 2;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow-prev {
  left: 0.5rem;
}

.lightbox-arrow-next {
  right: 0.5rem;
}

/* --- About Page --- */
.about-hero {
  background: var(--accent);
  color: #fff;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
}

.about-hero .container {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  flex-shrink: 0;
}

.about-hero p {
  opacity: 0.85;
  font-size: var(--fs-base);
  margin: 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 2.5rem;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.about-block p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--fg);
}

.about-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-mv-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg);
}

.about-mv-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-mv-card p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--fg);
}

/* --- Value Cards --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.67rem;
  margin-top: 1rem;
}

.value-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.value-card:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.value-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: var(--fs-sm);
}

.value-card-desc {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* --- Informes Page (sin FB embed) --- */
.informes-content {
  max-width: 800px;
  margin: 0 auto;
}

.comunicados-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comunicado-item {
  display: flex;
  gap: 0.67rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.comunicado-item:last-child {
  border-bottom: none;
}

.comunicado-item:hover {
  background: var(--surface);
}

.comunicado-item:hover .comunicado-title {
  color: var(--accent);
}

.comunicado-img {
  width: 180px;
  min-height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
}

.comunicado-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.comunicado-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.comunicado-date {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.comunicado-body {
  flex: 1;
}

.comunicado-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.25rem;
}

.comunicado-excerpt {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

.comunicado-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.comunicado-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.comunicado-empty p {
  font-size: var(--fs-sm);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.67rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

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

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg);
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  font-size: var(--fs-sm);
  color: var(--fg);
}

.contact-info-card .email-link {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 1px solid var(--border);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- Footer --- */
.footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.8);
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: var(--fs-xs);
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--muted);
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--border);
}

.breadcrumb .current {
  color: var(--fg);
  font-weight: 500;
}

/* --- View All Link --- */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent);
  margin-top: 1.5rem;
  transition: gap 0.2s;
}

.view-all:hover {
  gap: 10px;
  text-decoration: none;
}

/* --- Bg variants --- */
.bg-surface {
  background: var(--surface);
}

.bg-accent {
  background: var(--accent);
  color: #fff;
}

.bg-accent .section-title {
  color: #fff;
}

.bg-accent .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.bg-accent .section-divider {
  background: rgba(255,255,255,0.5);
}

/* --- Text utilities --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Staff / Directiva Grid --- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.staff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.3s, transform 0.2s;
}

.staff-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.staff-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.staff-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.staff-card-initials {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  opacity: 0.3;
  letter-spacing: -0.03em;
  z-index: 1;
}

.staff-card-body {
  padding: 1.5rem;
}

.staff-card-name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.staff-card-role {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  background: rgba(var(--accent-rgb), 0.08);
  padding: 2px 10px;
  border-radius: 4px;
}

.staff-card-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* --- Documentos descargables --- */
.documentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0.75rem;
}

.documento-card {
  display: flex;
  align-items: center;
  gap: 0.67rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--fg);
}

.documento-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.06);
  text-decoration: none;
}

.documento-card svg:first-child {
  flex-shrink: 0;
  color: var(--accent);
}

.documento-card div {
  flex: 1;
  min-width: 0;
}

.documento-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.documento-meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

/* --- Contact Map --- */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  display: block;
}

/* --- Dept Contacts (Contact page) --- */
.dept-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.67rem;
}

.dept-contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dept-contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.06);
}

.dept-contact-card h4 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.dept-contact-card a {
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 500;
}

.dept-contact-card a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .quick-links {
    gap: 0.75rem;
  }
  .quick-link-card {
    padding: 0.8rem 1rem;
    max-width: 220px;
  }
  .quick-link-card svg {
    width: 20px;
    height: 20px;
  }
  .quick-link-label {
    font-size: var(--fs-xs);
  }
}

@media (max-width: 768px) {
  .topbar-social svg {
    width: 12px;
    height: 12px;
  }
  .topbar-social a {
    width: 24px;
    height: 24px;
  }
  .topbar-name {
    display: none;
  }
  .topbar-contact span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--topbar-height) + var(--nav-height));
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 8px 14px;
    font-size: var(--fs-xs);
  }

  .about-mv {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-slide-title {
    font-size: var(--fs-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .quick-links {
    gap: 0.65rem;
  }
  .quick-link-card {
    padding: 0.7rem 0.9rem;
    max-width: 200px;
  }
  .quick-link-card svg {
    width: 18px;
    height: 18px;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form {
    min-width: 0;
  }

  .sponsors-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .slider-arrow {
    display: none;
  }

  .hero-slide-content {
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 3rem;
  }

  .hero-slide-desc {
    font-size: var(--fs-sm);
    margin-bottom: 1rem;
  }

  .hero-slide-title {
    font-size: var(--fs-2xl);
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: var(--fs-xs);
  }

  .slider-controls {
    bottom: 1.25rem;
    left: clamp(1rem, 3vw, 1.5rem);
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .hero-slider {
    height: 55vh;
    min-height: 320px;
  }

  .section {
    padding: 2rem 25px;
  }

  .cats-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    gap: 0.5rem;
  }
  .quick-link-card {
    padding: 0.6rem 0.8rem;
    max-width: 180px;
    gap: 0.45rem;
  }
  .quick-link-card svg {
    width: 18px;
    height: 18px;
  }
  .quick-link-label {
    font-size: 0.688rem;
  }

  .sponsors-grid {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .news-carousel-item {
    flex: 0 0 85vw;
  }

  .about-mv-card {
    padding: 1.5rem;
  }

  .footer-partners-logos {
    gap: 0.67rem;
  }

  .footer-partner-item span {
    display: none;
  }
}

/* ─── Comunicado Page (single-comunicado.php / comunicado.html) ─── */
.com-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.com-page .container {
  max-width: 820px;
}

.com-ref-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.com-ref-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.com-ref-number {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-family: var(--font-mono, ui-monospace, monospace);
}

.com-featured {
  margin-bottom: 2.5rem;
  border-radius: 3px;
  overflow: hidden;
}
.com-featured-img {
  width: 100%;
  aspect-ratio: 16/7;
  background-size: cover;
  background-position: center;
  position: relative;
}
.com-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.com-body {
  line-height: 1.75;
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.com-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--fg);
}
.com-body p {
  margin-bottom: 1rem;
}
.com-body ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
.com-body ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.com-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.com-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.com-actions-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.com-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.com-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.com-btn:hover {
  background: color-mix(in oklab, var(--bg), var(--fg) 4%);
  border-color: var(--muted);
}
.com-btn-pdf {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.com-btn-pdf:hover {
  background: color-mix(in oklab, var(--accent), black 8%);
}
.com-share-label {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-right: 0.2rem;
}
.com-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  background: var(--surface);
}
.com-share-btn:hover {
  border-color: var(--muted);
  color: var(--fg);
}
.com-share-fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}
.com-share-x:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}
.com-share-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.com-share-copy:hover {
  background: #17A34A;
  border-color: #17A34A;
  color: #fff;
}

.com-related {
  margin-top: 1rem;
}
.com-related-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--fg);
}
.com-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.com-related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.com-related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px color-mix(in oklab, var(--fg), transparent 92%);
}
.com-related-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.com-related-card-body {
  padding: 0.85rem 1rem;
}
.com-related-card-date {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-bottom: 0.3rem;
}
.com-related-card-title {
  color: var(--fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .com-featured-img {
    aspect-ratio: 4/3;
  }
  .com-related-grid {
    grid-template-columns: 1fr;
  }
  .com-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .com-actions-right {
    width: 100%;
  }
}

/* ─── Single Post / Noticia (noticia.html layout) ─── */
.noticia-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.noticia-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
  text-decoration: none;
  font-size: var(--fs-sm);
}
.noticia-back:hover {
  text-decoration: underline;
}
.noticia-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.noticia-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.noticia-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.noticia-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  margin-bottom: 2rem;
}
.noticia-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
}
.noticia-body p {
  margin-bottom: 1.25rem;
}
.noticia-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.noticia-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}
.noticia-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
.noticia-body ul,
.noticia-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.noticia-body ul li,
.noticia-body ol li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.noticia-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.noticia-body img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1.5rem 0;
}
.noticia-share {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.noticia-share-header {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.noticia-share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}
.share-fb {
  background: #1877F2;
  color: #fff;
}
.share-tw {
  background: #000;
  color: #fff;
}
.share-wa {
  background: #25D366;
  color: #fff;
}
.share-copy {
  background: var(--border);
  color: var(--fg);
  cursor: pointer;
}
.share-copy.copied {
  background: #17a34a;
  color: #fff;
}

/* ─── Print Styles (hide chrome, show content only) ─── */
@media print {
  body {
    padding-top: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  .topbar,
  .nav,
  .nav-toggle,
  .about-hero,
  .breadcrumb,
  .com-actions,
  .com-related,
  .com-share-btn,
  .com-share-label,
  .com-btn,
  .com-btn-pdf,
  .noticia-share,
  .noticia-back,
  .section > .container > .noticia-wrap > .noticia-back,
  .footer,
  .footer-partners {
    display: none !important;
  }
  .section,
  .com-page,
  .noticia-wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .com-featured-img {
    aspect-ratio: auto;
    max-height: 300px;
  }
  .noticia-img {
    aspect-ratio: auto;
    max-height: 300px;
  }
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
  p, li, blockquote {
    orphans: 3;
    widows: 3;
  }
}

/* responsive overrides will go here */
