/* =========================================================
   CADP — estilo-index.css
   Header, menú y portada con foto real + overlay.
   Paleta: un único azul de marca (#293771, extraído del logo),
   usado en distintos tonos/luminosidad — sin otros colores.
   ========================================================= */

:root {
  --brand: #293771;        /* azul de marca (del logo) */
  --brand-light: #3c50a5;  /* hover / acentos */
  --brand-pale: #a9b3dc;   /* acentos claros sobre fondos oscuros */
  --brand-dark: #1b254c;   /* fondos oscuros (footer, nav mobile) */
  --brand-darkest: #121831;/* fondo base del hero */

  --sky-light: #eef1fa;
  --white: #ffffff;
  --text-dark: #1b254c;
  --text-muted: #5c6a8a;

  --font-main: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;

  --header-h: 104px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--sky-light);
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===================== HEADER ===================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(18, 24, 49, 0.55), rgba(18, 24, 49, 0));
  transition: background-color .35s ease, box-shadow .35s ease, height .3s ease;
}

.site-header.scrolled {
  background: var(--brand);
  box-shadow: 0 6px 24px rgba(18, 24, 49, 0.28);
  height: 84px;
}

/* Variante clara: páginas interiores sin hero oscuro (logo azul sobre fondo blanco) */
.site-header--light {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(18, 24, 49, 0.08);
}

.site-header--light.scrolled { height: 84px; background: var(--white); box-shadow: 0 6px 24px rgba(18, 24, 49, 0.12); }

.site-header--light .nav-menu a { color: var(--text-dark); }
.site-header--light .nav-menu a::after { background: var(--brand); }
.site-header--light .nav-toggle .bar { background: var(--text-dark); }

.header-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 68px; width: auto; transition: height .3s ease; }
.site-header.scrolled .logo-img { height: 56px; }

/* ===================== NAV ===================== */

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav-menu a {
  position: relative;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  padding: 6px 2px;
  opacity: 0.92;
  white-space: nowrap;
  transition: opacity .25s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--brand-pale);
  transition: width .25s ease;
}

.nav-menu a:hover { opacity: 1; }
.nav-menu a:hover::after { width: 100%; }

.btn-asociarse {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(41, 55, 113, 0.35);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.btn-asociarse:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(60, 80, 165, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle .bar {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--brand-darkest);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  transform: scale(1.09);
  animation: heroZoom 26s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.09); }
  to   { transform: scale(1.16); }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .2s ease-out;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,24,49,0.65) 0, rgba(18,24,49,0) 220px),
    linear-gradient(100deg, rgba(18,24,49,0.82) 0%, rgba(18,24,49,0.55) 32%, rgba(18,24,49,0.18) 58%, rgba(18,24,49,0) 82%);
}

/* brillo que recorre la portada para llamar la atención */
.hero-shine {
  position: absolute;
  top: -10%;
  left: -35%;
  width: 28%;
  height: 120%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: skewX(-16deg);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: heroShine 8s ease-in-out infinite;
}

@keyframes heroShine {
  0%   { left: -35%; opacity: 0; }
  6%   { opacity: 1; }
  26%  { left: 115%; opacity: 0; }
  100% { left: 115%; opacity: 0; }
}

/* ===================== TEXTOS DEL HERO ===================== */

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 min(7vw, 90px);
}

.hero-text {
  max-width: min(54vw, 640px);
  color: var(--white);
  opacity: 0;
  transform: translateY(24px);
  animation: heroTextIn 1s ease 0.3s forwards;
}

@keyframes heroTextIn {
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-pale);
  margin-bottom: 22px;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.hero-text h1 .accent {
  background: linear-gradient(100deg, var(--brand-pale) 0%, #ffffff 20%, var(--brand-pale) 40%, #ffffff 60%, var(--brand-pale) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accentShimmer 6s linear infinite;
}

@keyframes accentShimmer {
  from { background-position: 0% 0; }
  to   { background-position: -150% 0; }
}

.hero-text p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.86);
  max-width: 560px;
}

/* indicador de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity .4s ease;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-pale);
  animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  71% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===================== FRANJA DE TRANSICIÓN (superpuesta a la portada) ===================== */

.intro-strip {
  position: relative;
  z-index: 6;
  margin-top: -84px;
  padding: 0 24px;
  background: transparent;
}

.intro-container {
  max-width: 1180px;
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(18, 24, 49, 0.22);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

.intro-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 30px;
  border-left: 1px solid rgba(41, 55, 113, 0.1);
  transition: background-color .25s ease;
}

.intro-card:first-child { border-left: none; }

.intro-card:hover {
  background: var(--sky-light);
}

.intro-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: var(--white);
}

.intro-icon svg { width: 26px; height: 26px; }

.intro-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.intro-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===================== ENCABEZADOS DE SECCIÓN (compartido) ===================== */

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.section-eyebrow.light { color: var(--brand-pale); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-head h2 { margin: 0; }

.link-more {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}

.link-more:hover { border-color: var(--brand); }

/* ===================== NOTICIAS ===================== */

.news {
  background: var(--white);
  padding: 90px 24px;
}

.news-container { max-width: 1180px; margin: 0 auto; }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--brand-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  box-shadow: 0 10px 30px rgba(18, 24, 49, 0.06);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}

.news-card:hover {
  box-shadow: 0 20px 48px rgba(18, 24, 49, 0.16);
  border-color: rgba(41, 55, 113, 0.25);
  transform: translateY(-6px);
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-darkest);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-card-media img { transform: scale(1.08); }

.news-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,24,49,0) 55%, rgba(18,24,49,0.65) 100%);
}

.news-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brand);
  padding: 5px 13px;
  border-radius: 999px;
}

.news-card-date {
  position: absolute;
  bottom: 14px;
  left: 20px;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px 26px 28px;
}

.news-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.35;
  margin-bottom: 12px;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.news-card-link:hover { text-decoration: underline; }

/* ===================== AGENDA ===================== */

.agenda {
  background: var(--sky-light);
  padding: 90px 24px;
}

.agenda-container { max-width: 1180px; margin: 0 auto; }

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.agenda-item:hover {
  box-shadow: 0 16px 40px rgba(41, 55, 113, 0.1);
  border-color: rgba(41, 55, 113, 0.3);
}

.agenda-date {
  flex-shrink: 0;
  width: 92px;
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--white);
}

.agenda-day {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.agenda-month {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-pale);
}

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

.agenda-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.agenda-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(41, 55, 113, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.agenda-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.agenda-place {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.agenda-link {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.agenda-link:hover { background: var(--brand); color: var(--white); }

/* ===================== EL CAP EN NÚMEROS ===================== */

.stats {
  background: var(--brand-dark);
  padding: 90px 24px;
  text-align: center;
}

.stats-container { max-width: 1180px; margin: 0 auto; }
.stats h2 { color: var(--white); margin-bottom: 50px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.stat-num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.stat p {
  font-size: 0.85rem;
  color: var(--brand-pale);
  margin-top: 8px;
}

/* ===================== SOCIOS COLECTIVOS ===================== */

.partners {
  background: var(--white);
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}

.partners-head { padding: 0 24px; margin-bottom: 44px; }

.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.partners-marquee:hover .partners-track { animation-play-state: paused; }

.partners-track img {
  height: 44px;
  width: auto;
  filter: grayscale(1) opacity(0.55);
  transition: filter .25s ease;
}

.partners-track img:hover { filter: grayscale(0) opacity(1); }

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

/* ===================== NEWSLETTER ===================== */

.newsletter {
  background: var(--sky-light);
  padding: 80px 24px;
}

.newsletter-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.newsletter-text { max-width: 440px; }
.newsletter-text p { color: var(--text-muted); margin-top: 8px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(41, 55, 113, 0.18);
  background: var(--white);
  color: var(--text-dark);
  min-width: 260px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand);
}

.newsletter-form button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--brand);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.newsletter-form button:hover { background: var(--brand-light); transform: translateY(-2px); }

.newsletter-msg {
  width: 100%;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--brand);
  min-height: 1.2em;
}

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 24px 32px;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin: 0 auto 18px;
}

.footer-logo img {
  height: 40px;
}

.footer-tagline {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.footer-note { color: var(--brand-pale); }

/* ===================== PÁGINAS INTERIORES: CABECERA ===================== */

.page-hero {
  padding: calc(var(--header-h) + 64px) 24px 56px;
  background: linear-gradient(180deg, var(--sky-light), var(--white));
}

.page-hero-container { max-width: 1180px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ===================== FILTROS DE CATEGORÍA ===================== */

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.news-filters a {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(41, 55, 113, 0.16);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.news-filters a:hover { border-color: var(--brand); color: var(--brand); }

.news-filters a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.news-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-muted);
}

.news-rss-link svg { width: 16px; height: 16px; }
.news-rss-link:hover { color: var(--brand); border-color: transparent; }

.news-search {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin-bottom: 24px;
}

.news-search input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(41, 55, 113, 0.16);
  background: var(--sky-light);
  color: var(--text-dark);
}

.news-search input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}

.news-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.news-search button svg { width: 18px; height: 18px; }

.news-search-results {
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.news-search-results a { color: var(--brand); font-weight: 600; }

.news-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ===================== PAGINACIÓN ===================== */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 54px;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(41, 55, 113, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.pagination a:hover { border-color: var(--brand); color: var(--brand); }

.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ===================== NOTICIA: DETALLE ===================== */

.article {
  padding: calc(var(--header-h) + 54px) 24px 110px;
  background: var(--white);
}

.article-container { max-width: 800px; margin: 0 auto; }

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brand);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.article h1 {
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 36px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--sky-light);
  border: 1px solid rgba(41, 55, 113, 0.08);
}

.event-meta li {
  font-size: 0.96rem;
  color: var(--text-dark);
  list-style: none;
}

.event-meta strong {
  color: var(--brand);
  font-weight: 700;
  margin-right: 4px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.event-actions .btn-asociarse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-actions .btn-asociarse svg { width: 18px; height: 18px; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
  box-shadow: none;
}

.article-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 42px;
  box-shadow: 0 24px 60px rgba(18, 24, 49, 0.14);
}

.article-image img { width: 100%; display: block; }

.article-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.article-body p { margin-bottom: 22px; }

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.article-share span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--brand);
  transition: background-color .2s ease, color .2s ease;
}

.article-share a svg { width: 18px; height: 18px; }
.article-share a:hover { background: var(--brand); color: var(--white); }

.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

.article-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1.5px solid rgba(41, 55, 113, 0.12);
  transition: border-color .2s ease;
}

.article-pager-link:hover { border-color: var(--brand); }
.article-pager-next { text-align: right; }

.article-pager-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-pager-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(41, 55, 113, 0.1);
}

.related-news {
  background: var(--sky-light);
  padding: 80px 24px 96px;
}

.presa-galeria, .presa-video, .presa-ubicacion { margin-top: 44px; }

.presa-galeria h2, .presa-video h2, .presa-ubicacion h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 18px;
}

.presa-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.presa-galeria-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.presa-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.presa-galeria-item:hover img { transform: scale(1.06); }

/* ===================== PÁGINA CAP / QUIÉNES SOMOS ===================== */

.cap-section { padding: 86px 24px; background: var(--white); }
.cap-section.alt { background: var(--sky-light); }
.cap-container { max-width: 980px; margin: 0 auto; }

.cap-lead {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.cap-lead strong { color: var(--brand); }

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.fact {
  text-align: center;
  padding: 28px 18px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(41, 55, 113, 0.08);
  box-shadow: 0 10px 30px rgba(18, 24, 49, 0.06);
}

.fact-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.fact p { font-size: 0.84rem; color: var(--text-muted); }

.check-list { display: grid; gap: 16px; margin-top: 28px; }

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  list-style: none;
}

.check-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand);
  margin-top: 2px;
}

.autoridades-sub { margin-top: 44px; }
.autoridades-sub h3 { font-size: 1.15rem; color: var(--brand-dark); margin-bottom: 18px; }

.autoridades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.autoridad-card {
  padding: 20px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  box-shadow: 0 8px 24px rgba(18, 24, 49, 0.05);
}

.autoridad-card .rol {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.autoridad-card .nombre {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.cap-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color .2s ease, color .2s ease;
}

.btn-outline:hover { background: var(--brand); color: var(--white); }

/* ===================== PÁGINA SOCIOS ===================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  box-shadow: 0 10px 28px rgba(18, 24, 49, 0.06);
}

.benefit-card .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: var(--white);
}

.benefit-card .icon svg { width: 20px; height: 20px; }

.benefit-card p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.5; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.plan-card {
  padding: 34px 30px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.1);
  box-shadow: 0 16px 40px rgba(18, 24, 49, 0.08);
}

.plan-card.highlight {
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: var(--white);
  border: none;
}

.plan-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.plan-card.highlight h3 { color: var(--white); }

.plan-card .plan-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 22px; }
.plan-card.highlight .plan-desc { color: rgba(255,255,255,0.78); }

.plan-card ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }

.plan-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(41, 55, 113, 0.08);
  font-size: 0.92rem;
  list-style: none;
}

.plan-card.highlight li { border-bottom-color: rgba(255,255,255,0.18); }
.plan-card li:last-child { border-bottom: none; }
.plan-card .li-label { color: var(--text-dark); }
.plan-card.highlight .li-label { color: rgba(255,255,255,0.9); }
.plan-card .li-price { font-weight: 700; color: var(--brand); white-space: nowrap; }
.plan-card.highlight .li-price { color: var(--white); }

.plan-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.plan-card.highlight .plan-note { color: rgba(255,255,255,0.65); }

.plan-card .btn-asociarse { display: inline-block; }
.plan-card.highlight .btn-asociarse { background: var(--white); color: var(--brand); box-shadow: none; }
.plan-card.highlight .btn-asociarse:hover { background: var(--sky-light); }

.bank-box {
  margin-top: 40px;
  padding: 30px 32px;
  border-radius: 18px;
  background: var(--sky-light);
  border: 1px solid rgba(41, 55, 113, 0.08);
}

.bank-box h3 { font-size: 1.05rem; color: var(--brand-dark); margin-bottom: 16px; }

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}

.bank-grid div { font-size: 0.92rem; color: var(--text-dark); }
.bank-grid span { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }

.socios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.socio-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
}

.socio-logo-card img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.socio-logo-card span { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
  padding: 30px 32px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
}

.contact-box div { font-size: 0.95rem; color: var(--text-dark); }
.contact-box span { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.contact-box a { color: var(--text-dark); }
.contact-box a:hover { color: var(--brand); }

/* ===================== PÁGINA CONTACTO ===================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card {
  padding: 40px 34px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: var(--white);
}

.contact-info-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.contact-info-card > p { font-size: 0.92rem; color: rgba(255,255,255,0.75); margin-bottom: 30px; }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
}

.contact-info-item .icon svg { width: 18px; height: 18px; }
.contact-info-item span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-pale); margin-bottom: 4px; }
.contact-info-item div { font-size: 0.94rem; line-height: 1.5; }
.contact-info-item a { color: var(--white); }
.contact-info-item a:hover { text-decoration: underline; }

.contact-form-card {
  padding: 40px 36px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  box-shadow: 0 16px 44px rgba(18, 24, 49, 0.08);
}

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.form-group input, .form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(41, 55, 113, 0.16);
  background: var(--sky-light);
  color: var(--text-dark);
  resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}

.contact-form-card .btn-asociarse {
  border: none;
  cursor: pointer;
  font: inherit;
}

.form-submit-msg {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--brand);
  min-height: 1.2em;
}

.form-group select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(41, 55, 113, 0.16);
  background: var(--sky-light);
  color: var(--text-dark);
}

.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}

/* ===================== FICHA DE SOCIO (TABS) ===================== */

.ficha-tabs {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.ficha-tab {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(41, 55, 113, 0.16);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ficha-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.ficha-form-card {
  padding: 40px 36px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  box-shadow: 0 16px 44px rgba(18, 24, 49, 0.08);
}

.ficha-form { display: none; }
.ficha-form.is-active { display: block; }

.ficha-subtitulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 26px 0 16px;
}

.ficha-form .btn-asociarse {
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ===================== PÁGINA PRESAS ARGENTINAS ===================== */

.map-embed {
  margin-top: 44px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 24, 49, 0.14);
  border: 1px solid rgba(41, 55, 113, 0.08);
}

.map-embed iframe { width: 100%; height: 480px; border: 0; display: block; }

.map-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===================== PÁGINA BIBLIOTECA ===================== */

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(41, 55, 113, 0.08);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.doc-item:hover {
  box-shadow: 0 14px 34px rgba(18, 24, 49, 0.1);
  border-color: rgba(41, 55, 113, 0.25);
}

.doc-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sky-light);
  color: var(--brand);
}

.doc-icon svg { width: 20px; height: 20px; }

.doc-info { flex-grow: 1; min-width: 0; }
.doc-info h3 { font-size: 0.98rem; font-weight: 600; color: var(--brand-dark); line-height: 1.4; margin-bottom: 4px; }
.doc-info p { font-size: 0.82rem; color: var(--text-muted); }

.doc-link {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.doc-link:hover { background: var(--brand); color: var(--white); }

.library-notice {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--sky-light);
  border: 1px solid rgba(41, 55, 113, 0.08);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.library-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  max-width: 480px;
}

.library-search input {
  flex-grow: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(41, 55, 113, 0.18);
  background: var(--white);
  color: var(--text-dark);
}

.library-search input:focus { outline: none; border-color: var(--brand); }

.library-search button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--brand);
  border: none;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.library-search button:hover { background: var(--brand-light); }

.library-search-clear {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.library-search-clear:hover { color: var(--brand); text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
  .nav-menu, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: var(--brand-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 1050;
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav.is-open .nav-menu,
  .main-nav.is-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .nav-menu a { font-size: 1.1rem; }

  .intro-strip { margin-top: -56px; }
  .intro-container { grid-template-columns: 1fr; border-radius: 18px; }
  .intro-card { border-left: none; border-top: 1px solid rgba(41, 55, 113, 0.1); padding: 26px 26px; }
  .intro-card:first-child { border-top: none; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }

  .agenda-item { flex-wrap: wrap; }
  .agenda-link { margin-left: 120px; }

  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .autoridades-grid { grid-template-columns: repeat(2, 1fr); }
  .socios-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-content { padding: 0 24px; align-items: flex-end; padding-bottom: 96px; }
  .hero-text { max-width: 100%; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .agenda-item { align-items: flex-start; gap: 16px; }
  .agenda-link { margin-left: 108px; }

  .newsletter-container { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex-grow: 1; min-width: 0; }

  .autoridades-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .bank-grid { grid-template-columns: 1fr; }
  .socios-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { flex-direction: column; gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 30px 24px; }
  .map-embed iframe { height: 360px; }
  .doc-item { flex-wrap: wrap; }
  .doc-link { margin-left: 60px; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager-next { text-align: left; }
  .ficha-form-card { padding: 28px 22px; }
}

@media (max-width: 560px) {
  .header-container { padding: 0 18px; }
  .logo-img { height: 48px; }

  .intro-strip { margin-top: -40px; padding: 0 16px; }
  .intro-card { padding: 22px 20px; gap: 14px; }
  .intro-icon { width: 44px; height: 44px; }
  .intro-icon svg { width: 22px; height: 22px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .socios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .hero-text, .wheel, .hero-shine, .hero-text h1 .accent, .partners-track {
    animation: none !important;
  }
  .hero-text { opacity: 1; transform: none; }
  .hero-media { transform: scale(1.02); }
}
