:root {
  --red:#C0392B;--navy:#1a2744;--navy-mid:#243159;--gold:#D4A017;--gold-light:#f0c040;
  --cream:#FAF8F4;--cream-dark:#F0EDE6;--text:#1C1C1C;--text-mid:#4a4a4a;--text-light:#8a8a8a;
  --white:#FFFFFF;--border:rgba(26,39,68,0.12);--shadow:0 4px 32px rgba(26,39,68,0.10);--shadow-lg:0 16px 56px rgba(26,39,68,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'DM Sans', sans-serif; 
  background: --cream;
  color: var(--text); 
  overflow-x: hidden; 
}

/* ════════════════════════
   HEADER / NAV
════════════════════════ */



header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 0;
}
header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(26,39,68,0.08);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex; align-items: center; gap: 0;
}

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex-shrink: 0; margin-right: 56px;
  position: relative;
}

.logo-default,
.logo-scrolled {
  height: 55px;
  width: auto;
  transition: opacity 0.3s ease;
}
.logo-scrolled {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
header.scrolled .logo-default { opacity: 0; }
header.scrolled .logo-scrolled { opacity: 1; }

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
  white-space: nowrap;
}

header:not(.scrolled) nav a { color: rgba(255,255,255,0.85); }
header:not(.scrolled) nav a:hover { color: white; background: rgba(255,255,255,0.1); }
header:not(.scrolled) nav a.active { color: white; }
header:not(.scrolled) nav a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 1.5px; background: var(--gold-light); border-radius: 2px;
}

header.scrolled nav a { color: var(--text-mid); }
header.scrolled nav a:hover { color: var(--navy); background: rgba(26,39,68,0.06); }
header.scrolled nav a.active { color: var(--navy); font-weight: 600; }
header.scrolled nav a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--navy); border-radius: 2px;
}
header.scrolled .nav-cta { border-color: var(--gold); color: var(--gold); }

.nav-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
  border: 1.5px solid var(--gold);
  color: var(--gold); background: transparent;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span { width: 22px; height: 2px; border-radius: 2px; transition: all 0.3s; }
header:not(.scrolled) .hamburger span { background: white; }
header.scrolled .hamburger span { background: var(--navy); }


/* ═══ SECTIONS COMMON ═══ */
section { padding: 96px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: '/'; font-weight: 700; color: var(--gold); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 300; color: var(--navy); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--red); }
.section-desc { font-size: 15px; line-height: 1.8; color: var(--text-mid); max-width: 560px; }

.btn-outline { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 8px; background: none; border: 1.5px solid var(--navy); font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); text-decoration: none; transition: all .2s; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ═══ AUTORIDADES ═══ */
.autoridades-section { background: var(--white); }
.autoridades-inner { max-width: 1100px; margin: 0 auto; }

.consejo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.autoridad-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.autoridad-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s;
}
.autoridad-card:hover::before { transform: scaleY(1); }
.autoridad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Director: card full-width que rompe el contenedor */
.autoridad-card.card-director {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--navy);
  border-color: transparent;
  border-radius: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding-left: max(40px, calc((100vw - 1100px) / 2));
  padding-right: max(40px, calc((100vw - 1100px) / 2));
}
.autoridad-card.card-director::before { background: var(--gold-light); }

.autoridad-card.card-secretario {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--navy-mid);
  border-color: transparent;
}
.autoridad-card.card-secretario::before { background: var(--gold-light); }

.autoridad-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 300; font-family: 'Cormorant Garamond', serif;
}
.card-director .autoridad-avatar,
.card-secretario .autoridad-avatar {
  background: rgba(212,160,23,.15);
  color: var(--gold-light);
  border: 2px solid rgba(212,160,23,.3);
}
.autoridad-cargo { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.card-director .autoridad-cargo,
.card-secretario .autoridad-cargo { color: var(--gold-light); }
.autoridad-cargo-cream { color: var(--gold); }
.autoridad-nombre { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.2; }
.card-director .autoridad-nombre,
.card-secretario .autoridad-nombre { color: #fff; }
.autoridad-nombre-dark { color: var(--navy); }
.autoridad-detalle { font-size: 13px; margin-top: 4px; line-height: 1.5; }
.card-director .autoridad-detalle,
.card-secretario .autoridad-detalle { color: rgba(255,255,255,.5); }
.autoridad-detalle-light { color: var(--text-light); }

.subsection-title { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-top: 48px; margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.consejo-miembros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.consejo-miembro-card { background: var(--cream); border: 1px solid var(--border); padding: 24px 20px; transition: all .25s; position: relative; overflow: hidden; }
.consejo-miembro-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.consejo-miembro-card:hover::after { transform: scaleX(1); }
.consejo-miembro-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,39,68,.1); }
.qtn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.qtn-card { background: var(--cream); border: 1px solid var(--border); padding: 20px 16px; text-align: center; transition: all .25s; }
.qtn-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,39,68,.1); }
.qtn-card .autoridad-nombre-dark { font-size: 15px; }

/* ═══ PROVINCIAS ═══ */
.provincias-section { background: var(--cream); }
.provincias-inner { max-width: 1100px; margin: 0 auto; }
.regiones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.region-card { background: var(--white); border: 1px solid var(--border); overflow: hidden; transition: all .25s; }
.region-card:hover { box-shadow: var(--shadow-lg); }
.region-card-header { padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.region-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.region-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }
.region-card-header h4 { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.region-card-header .region-rep { font-size: 11px; color: var(--text-light); margin-top: 2px; font-weight: 400; font-family: 'DM Sans', sans-serif; }
.region-provincias { padding: 0 24px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.provincia-tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--navy); background: var(--cream); border: 1px solid var(--border); transition: all .2s; }
.provincia-tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.region-centro .region-icon { background: #C0392B; }
.region-centro-litoral .region-icon { background: #2c5282; }
.region-nea .region-icon { background: #1a6e50; }
.region-noa .region-icon { background: #7a4e1e; }
.region-cuyo .region-icon { background: #5b4a8c; }
.region-patagonia .region-icon { background: #2d6a7a; }

/* ════════════════════════
   FOOTER
════════════════════════ */
footer { background: #0e1625; color: var(--white); padding: 64px 40px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px;
}

.footer-brand-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px; position: relative; margin-bottom: 20px;
}
.footer-brand-icon::before {
  content: ''; position: absolute; top: 7px; left: 7px;
  width: 16px; height: 16px; background: rgba(255,255,255,0.6);
}
.footer-brand-icon::after {
  content: ''; position: absolute; bottom: 7px; right: 7px;
  width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.4);
}

.footer-brand h3 { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 300; color: white; margin-bottom: 8px; letter-spacing: 0.02em; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 240px; margin-bottom: 20px; }
.footer-brand address { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.9; }
.footer-brand address a { color: var(--gold-light); text-decoration: none; }

.footer-col h5 { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: white; }

.social-col { position: static !important; display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 24px; }
.social-links { display: flex; flex-direction: row; gap: 24px; align-items: center; }
.social-link {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px; height: 56px; min-width: 56px; min-height: 56px;
  border-radius: 50%;
  background-color: #E8A020;
  border: 2px solid #E8A020;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  overflow: hidden;
}
.social-link svg { display: block; flex-shrink: 0; pointer-events: none; }
.social-link:hover { background-color: transparent; border-color: #E8A020; color: #E8A020; transform: translateY(-2px); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.22); }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

.version-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 4px 12px; font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }
.version-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }


/* ═══ MOBILE MENU ═══ */
.mobile-menu { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--white); z-index: 300; box-shadow: -8px 0 40px rgba(0,0,0,.2); flex-direction: column; padding: 80px 32px 32px; transform: translateX(100%); transition: transform .35s; }
.mobile-menu.open { display: flex; transform: translateX(0); }
.mobile-menu a { font-size: 17px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border); display: block; transition: color .2s; }
.mobile-menu a:hover { color: var(--red); }
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 290; backdrop-filter: blur(4px); }
.mobile-menu-overlay.open { display: block; }

/* ═══ ANIMATIONS ═══ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ═══ RESPONSIVE ═══ */
@media(max-width: 1024px) {
  .consejo-miembros { grid-template-columns: repeat(2, 1fr); }
  .qtn-grid { grid-template-columns: repeat(2, 1fr); }
  .regiones-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  section { padding: 64px 24px; }
  nav { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .autoridad-card.card-director,
  .autoridad-card.card-secretario { flex-direction: column; text-align: center; gap: 16px; }
  .autoridad-card.card-director { padding-left: 24px; padding-right: 24px; }
  .consejo-miembros { grid-template-columns: 1fr; }
  .qtn-grid { grid-template-columns: 1fr 1fr; }
  .regiones-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-inner { padding: 0 24px; }
}
@media(max-width: 480px) {
  .qtn-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}