/* ==========================================================================
   Variables Globales y Reset
   ========================================================================== */
:root {
  --navy: #17345f;
  --navy2: #0f2444;
  --cyan: #008fa8;
  --mint: #20b2aa;
  --gold: #d4af37;
  --bg-soft: #f4f7fb;
  --bg-dark: #0a192f;
  --text-color: #475467;
  --line: #e2e8f0;
  --muted: #64748b;
  --shadow: 0 15px 35px rgba(27, 57, 106, 0.12);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .eyebrow {
  font-family: 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Skip Link para accesibilidad */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* Contenedor General */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-pad {
  padding: 80px 0;
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--navy2);
  font-weight: 800;
}

.section-dark .section-heading h2 {
  color: #ffffff;
}

.section-heading p {
  color: var(--muted);
  max-width: 700px;
  margin-top: 10px;
  font-size: 1.05rem;
}

.section-heading--center {
  text-align: center;
}
.section-heading--center p {
  margin: 10px auto 0 auto;
}

/* ==========================================================================
   Header & Logos Superiores
   ========================================================================== */
.brand-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.brand-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Navegación Sticky
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  padding: 14px 0;
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-mark strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.2;
}

.event-mark small {
  display: block;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color 0.3s ease;
}

.menu a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--navy);
  cursor: pointer;
}

/* ==========================================================================
   Estilos de la Foto del Director (En medio y completa)
   ========================================================================== */
.director-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(27, 57, 106, 0.15);
  max-width: 450px;
  margin: 2.5rem auto;
}

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

.director-photo__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(23, 52, 95, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Tarjetas de Características y Recursos
   ========================================================================== */
.feature-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card, .resource-card {
  background: #ffffff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--cyan);
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3, .resource-card h3 {
  font-size: 1.25rem;
  color: var(--navy2);
  margin-bottom: 12px;
}

.resource-card__icon {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: background 0.3s ease;
}

.btn--ghost:hover {
  background: var(--bg-soft);
}

/* ==========================================================================
   Programa & Cronograma
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline li span {
  font-weight: 800;
  color: var(--mint);
  font-family: 'Montserrat', sans-serif;
}

.timeline li strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline li p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Sede y Ubicación
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.location-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-art {
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  font-size: 3rem;
}

.map-art--alt {
  background: linear-gradient(135deg, var(--mint), var(--navy));
}

.map-pin {
  position: absolute;
  font-size: 2rem;
  color: var(--gold);
  top: 30px;
}

.location-card__body {
  padding: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--cyan);
}

/* ==========================================================================
   Contacto & Footer
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--cyan);
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.2rem;
}

.footer {
  background: var(--navy2);
  color: #ffffff;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}

.footer span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Visibilidad Asegurada sin problemas de animación JS */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .menu.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .brand-strip__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-logo {
    height: 36px;
  }
}
.director-photo {
  margin-top: 25px; /* La posiciona un poco más abajo */
}

.director-photo img {
  min-height: 520px;    /* La hace más larga en sentido vertical */
  object-fit: cover;
  object-position: top; /* Mantiene enfocado el rostro */
}