@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --navy: #0a1628;
  --navy-light: #121f38;
  --navy-mid: #1a2d50;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a08030;
  --white: #f5f5f5;
  --gray: #8a9bb5;
  --glass: rgba(18, 31, 56, 0.7);
  --glass-border: rgba(201, 168, 76, 0.15);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.4); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10, 22, 40, 0.95);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  height: 66px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  transition: transform 0.3s;
  filter: invert(66%) sepia(47%) saturate(559%) hue-rotate(5deg) brightness(94%) contrast(88%);
}
.nav-brand:hover img { transform: scale(1.1); }
.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.nav-brand-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 4px 15px rgba(0, 0, 0, 0.2);
}
.nav-links a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.nav-links a:not(.btn):hover {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('sierra_chihuahua.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.7) 50%, rgba(10,22,40,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 4rem;
  animation: fadeUp 1s ease-out;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 550px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent);
}
.shape-1 { width: 400px; height: 400px; top: 10%; right: 5%; animation: float 8s infinite; }
.shape-2 { width: 250px; height: 250px; bottom: 15%; right: 20%; animation: float 6s infinite 1s; }
.shape-3 { width: 180px; height: 180px; top: 40%; right: 35%; animation: float 10s infinite 2s; }

/* ─── SECTIONS SHARED ─── */
section {
  padding: 6rem 2rem;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s;
}
.about-image:hover img { transform: scale(1.05); }
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  pointer-events: none;
}
.about-stats {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 2rem;
  animation: pulse-glow 4s infinite;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.about-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}
.value-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}
.value-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── PROGRAMS ─── */
.programs-section { background: var(--navy-light); }
.programs-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.tab-btn:hover { color: var(--white); border-color: var(--gold); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.5s ease; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.program-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.program-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.program-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.program-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}

/* ─── ACCREDITATIONS ─── */
.accred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.accred-card {
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s;
  position: relative;
}
.accred-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.accred-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 2px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  font-size: 1.6rem;
  transition: all 0.3s;
}
.accred-card:hover .accred-icon {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  transform: scale(1.1);
}
.accred-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.accred-card p {
  color: var(--gray);
  font-size: 0.85rem;
}
.accred-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-green { background: rgba(72,187,120,0.1); color: #48bb78; border: 1px solid rgba(72,187,120,0.2); }
.badge-blue { background: rgba(66,153,225,0.1); color: #4299e1; border: 1px solid rgba(66,153,225,0.2); }
.badge-gold { background: rgba(201,168,76,0.1); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }

.sub-section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 3rem 0 2rem;
  color: var(--gold-light);
}
.divider-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* ─── REPORTS / INFORMES ─── */
.informes-section { background: var(--navy-light); }
.informes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.informe-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s;
}
.informe-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.informe-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  font-size: 1.8rem;
}
.informe-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.informe-card p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.btn-small {
  padding: 10px 24px;
  font-size: 0.8rem;
}

/* ─── CONSEJO DIRECTIVO ─── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.board-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s;
}
.board-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.board-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 2px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 auto 1.2rem;
  transition: all 0.3s;
}
.board-card:hover .board-avatar {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  transform: scale(1.05);
}
.board-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.board-role {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── ALIADOS ─── */
.aliados-section {
  background: var(--navy-light);
}
.aliados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.aliado-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  transition: all 0.4s;
}
.aliado-card:hover {
  transform: scale(1.03);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.aliado-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.aliado-card p {
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: all 0.3s;
}
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .nav-links.open { display: flex; z-index: 999; }
  .hamburger { display: flex; z-index: 1001; }
  .hero h1 { font-size: 2.5rem; }
  .hero-content { padding: 0 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { position: relative; bottom: 0; right: 0; margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  section { padding: 4rem 1rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .accred-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1rem; }
}


/* ─── NAV: DESPLEGABLES ─── */
.nav-links li { position: relative; }
.caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}
.dropdown::before {            /* puente para no perder el hover */
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-links .dropdown a:not(.btn) {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.dropdown .sub {
  top: -9px;
  left: calc(100% + 8px);
  transform: translateX(-6px);
}
.dropdown .sub::before {
  top: 0; bottom: 0; left: -10px; right: auto;
  width: 10px; height: auto;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown,
.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.has-sub.open > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.has-sub > a .caret { transform: rotate(-90deg); }

/* ─── HERO: VISIÓN ─── */
.hero .hero-vision {
  max-width: 640px;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}
.hero .hero-vision h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.hero .hero-vision p {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  max-width: none;
}

/* ─── ACREDITACIONES: BOTONES ─── */
.accred-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 10px;
  text-align: center;
}

/* ─── DESTINOS DE ENLACES INTERNOS (por la barra fija) ─── */
.programs-tabs, .program-card, .accred-card, .aliado-card { scroll-margin-top: 110px; }

/* ─── RESPONSIVE: MENÚ MÓVIL ─── */
@media (max-width: 968px) {
  .navbar { backdrop-filter: none; }
  .nav-links {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 6rem 1.5rem 2rem;
    gap: 1rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  .nav-links > li { text-align: center; width: 100%; max-width: 320px; }
  .dropdown, .dropdown .sub {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin-top: 0.5rem;
    background: rgba(255,255,255,0.03);
    box-shadow: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown:hover > .dropdown,
  .has-sub:hover > .sub { display: none; }
  .has-dropdown.open > .dropdown,
  .has-sub.open > .sub { display: block; }
  .dropdown .sub { margin-left: 1rem; }
  .has-sub > a .caret { transform: none; }
}

/* ─── ALIADOS: BOTÓN ─── */
.aliado-btn { margin-top: 1.25rem; }

/* Fotos en tarjetas de viajes */
.program-photo {
  display: block;
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem;
  height: 200px;
  object-fit: cover;
}


/* ─── NOSOTROS: OBJETO SOCIAL ─── */
.about-object {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}
.about-object h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.about-object p { font-size: 0.9rem; margin-bottom: 1rem; }
.about-object .about-object-note { margin-bottom: 0; font-size: 0.85rem; }
.about-object a { color: var(--gold); }

/* ─── ALIADOS: LOGOS ─── */
.aliado-logo {
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 200px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aliado-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ─── BECAS POR AÑO ─── */
.becas-years {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.6rem;
}
.becas-years li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.95rem;
}
.becas-years span { color: var(--gray); letter-spacing: 1px; }
.becas-years strong { color: var(--gold-light); font-family: 'Playfair Display', serif; }

/* ─── NOSOTROS: COLLAGE ─── */
.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 420px;
}
.collage-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--navy-mid);
}
.about-image .collage-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
@media (max-width: 900px) { .about-collage { height: 340px; } }

/* Estadísticas debajo del collage (sin tapar las fotos) */
.about-image { overflow: visible; }
.about-image .about-stats {
  position: relative;
  bottom: auto; right: auto;
  margin-top: 1rem;
  justify-content: space-around;
  animation: none;
}


/* ─── ACREDITACIONES: LOGOS ─── */
.accred-logo {
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 1.25rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accred-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#acred-donataria .accred-icon, #acred-cluni .accred-icon, #acred-jasp .accred-icon, #acred-confio .accred-icon { display: none; }

/* Logos en tarjetas de educación */
.program-logo {
  display: flex; align-items: center; justify-content: center;
  height: 90px; margin-bottom: 16px; padding: 8px 12px;
  background: #fff; border-radius: 12px;
}
.program-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.program-logo--tall { height: 150px; }

/* Quiénes somos: alinear el collage arriba (sin hueco) y mantenerlo visible al desplazar */
.about-grid { align-items: start; }
.about-grid .about-image { position: sticky; top: 110px; }
.about-collage { height: 480px; }
@media (max-width: 900px) {
  .about-grid .about-image { position: relative; top: auto; }
  .about-collage { height: 340px; }
}

/* Apoyo Comunitario con viajes integrados */
.program-card--wide { grid-column: 1 / -1; }
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.trip-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 1.25rem;
}
.trip-item > h4, .trip-item > p, .trip-item > .program-tag { margin-left: 1.25rem; margin-right: 1.25rem; }
.trip-photo { display: block; width: 100%; height: 200px; object-fit: cover; margin-bottom: 1rem; }
.trip-item h4 { font-family: 'Playfair Display', serif; margin-bottom: 0.5rem; }
.trip-item p { font-size: 0.9rem; margin-bottom: 0.75rem; }
#acred-ichitaip .accred-icon { display: none; }

/* Educación, asistencial y salud mental visibles juntos */
.program-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}
#tab-educacion .program-group-title { margin-top: 0.5rem; }
.tab-main { scroll-margin-top: 110px; }


/* ═══ SITIO MULTIPÁGINA ═══ */
[id] { scroll-margin-top: 110px; }
.nav-links a.current:not(.btn) { color: var(--gold); }
.nav-links a.current:not(.btn):hover { color: var(--navy); }

/* Encabezado de páginas internas */
.page-hero {
  padding: 9rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--glass-border);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero p { color: var(--gray); max-width: 600px; margin: 0 auto; }

/* Bloques de programas (antes pestañas) */
.program-block { margin-bottom: 1rem; }
.program-block:first-of-type .program-group-title { margin-top: 0.5rem; }

/* Tarjetas que son enlaces */
a.link-card { display: block; color: inherit; text-decoration: none; }
a.link-card:focus-visible, .btn:focus-visible, .nav-links a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ─── Charity ID y dirección ─── */
.id-strip { padding: 3rem 2rem; background: var(--navy-light); border-block: 1px solid var(--glass-border); }
#acreditaciones > .container:first-child { margin-bottom: 4rem; }
.id-box {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.id-box-item { display: flex; flex-direction: column; gap: 0.35rem; }
.id-box-label { font-size: 0.8rem; color: var(--gray); }
.id-box-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}
.id-box-text { font-size: 1.05rem; color: var(--white); }
.id-box-link { color: var(--gold); font-size: 0.9rem; width: fit-content; }

.footer-id {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  color: var(--gray);
  font-size: 0.85rem;
}
.footer-id p { margin: 0 0 0.75rem; max-width: none; }
.footer-id address { font-style: normal; line-height: 1.6; }
.footer-id strong { color: var(--white); font-weight: 600; }
.charity-code { color: var(--gold-light); font-weight: 600; letter-spacing: 0.5px; }

/* ─── Contacto ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.contact-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold-light); }
.contact-card address { font-style: normal; color: var(--white); }
.contact-card p { margin: 0; color: var(--gray); }
.contact-phone { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.contact-mail { color: var(--gold); word-break: break-word; }
.contact-id { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold-light) !important; letter-spacing: 1px; }

/* ─── Páginas de documentos ─── */
.doc-wrap { padding: 8rem 2rem 4rem; }
.document-content { max-width: 800px; margin: 0 auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); line-height: 1.8; }
.document-content h1 { font-size: 2rem; color: #1A365D; margin-bottom: 1.5rem; text-align: center; font-family: 'Playfair Display', serif; }
.document-content h2 { font-size: 1.3rem; color: #8a6a10; margin: 1.5rem 0 0.75rem; }
.document-content p { margin-bottom: 1rem; color: #4A5568; text-align: justify; }
.document-content a:not(.btn) { color: #1A365D; text-decoration: underline; }
.document-content a.btn { margin-top: 2rem; display: inline-flex; color: #1A365D; border-color: #1A365D; }

@media (max-width: 968px) {
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .page-hero h1 { font-size: 2.3rem; }
  .id-box { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

.contact-phone { display: block; }
