/* ============================================================
   JORNADAS INTERACTIVAS 2026 — Instituto Isaac Newton
   Archivo: css/styles.css
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   VARIABLES GLOBALES
   ────────────────────────────────────────────────────────── */
:root {
  /* Colores institucionales */
  --color-institucional: #1a3a5c;
  /* Azul oscuro */
  --color-acento: #2176ae;
  /* Azul medio */
  --color-naturaleza: #2d6a4f;
  /* Verde */
  --color-sociedad: #e07a3f;
  /* Naranja */
  --color-consumo: #d4a017;
  /* Amarillo dorado */
  --color-tecnologia: #2196a0;
  /* Celeste */

  /* Neutros */
  --color-blanco: #ffffff;
  --color-fondo: #f4f6f9;
  --color-texto: #1c2733;
  --color-gris-suave: #e8ecf1;
  --color-gris-medio: #6c7a89;

  /* Tipografía */
  --fuente-titulo: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'DM Sans', sans-serif;
  --fuente-mono: 'JetBrains Mono', monospace;

  /* Espaciado */
  --seccion-padding: 6rem 0;
  --radio-tarjeta: 12px;

  /* Sombras */
  --sombra-suave: 0 4px 20px rgba(26, 58, 92, 0.08);
  --sombra-hover: 0 12px 40px rgba(26, 58, 92, 0.16);
  --sombra-card: 0 2px 12px rgba(26, 58, 92, 0.10);

  /* Transición */
  --transicion: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ──────────────────────────────────────────────────────────
   RESET Y BASE
   ────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-blanco);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: var(--transicion);
}

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

.footer-logo {
  text-align: center;
  padding: 25px;
  width: 250px;
}

.footer-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

section {
  padding: var(--seccion-padding);
}

/* ──────────────────────────────────────────────────────────
   UTILIDADES PERSONALIZADAS
   ────────────────────────────────────────────────────────── */
.text-institucional {
  color: var(--color-institucional) !important;
}

.text-acento {
  color: var(--color-acento) !important;
}

.text-naturaleza {
  color: var(--color-naturaleza) !important;
}

.text-sociedad {
  color: var(--color-sociedad) !important;
}

.text-consumo {
  color: var(--color-consumo) !important;
}

.text-tecnologia {
  color: var(--color-tecnologia) !important;
}

.bg-institucional {
  background-color: var(--color-institucional) !important;
}

.bg-fondo {
  background-color: var(--color-fondo) !important;
}

.etiqueta-seccion {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.etiqueta-seccion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 2px;
  background-color: var(--color-acento);
}

.titulo-seccion {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--color-institucional);
  margin-bottom: 1rem;
}

.subtitulo-seccion {
  font-size: 1.05rem;
  color: var(--color-gris-medio);
  max-width: 640px;
}

/* Animación de entrada */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* Separador decorativo */
.separador {
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-acento), var(--color-tecnologia));
  margin: 0 auto 2.5rem;
}

.separador-izq {
  margin-left: 0;
  margin-right: auto;
}

/* ──────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────── */
#navbar-principal {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 1rem 0;
  z-index: 1050;
}

#navbar-principal.scrolled {
  background-color: var(--color-institucional) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0;
}

#navbar-principal .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-blanco);
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 700;
}

.logo-inicial {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  font-family: var(--fuente-mono);
  flex-shrink: 0;
}

.logo-texto-principal {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.logo-texto-secundario {
  display: block;
  font-size: 0.72rem;
  font-family: var(--fuente-cuerpo);
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

#navbar-principal .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px;
  transition: var(--transicion);
}

#navbar-principal .nav-link:hover,
#navbar-principal .nav-link.active {
  color: var(--color-blanco) !important;
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-transmision {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-transmision:hover {
  background: linear-gradient(135deg, #c62828, #b71c1c) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.45);
}

.punto-vivo {
  width: 8px;
  height: 8px;
  background-color: #ff5252;
  border-radius: 50%;
  animation: parpadeo 1.3s ease-in-out infinite;
}

@keyframes parpadeo {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.navbar-toggler {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 0.3rem 0.55rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ──────────────────────────────────────────────────────────
   HERO PRINCIPAL
   ────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg,
      rgba(10, 28, 52, 0.92) 0%,
      rgba(26, 58, 92, 0.85) 45%,
      rgba(10, 40, 70, 0.90) 100%),
    url("img\RECURSOS\3\ODS4.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-ornamento {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.ornamento-1 {
  width: 500px;
  height: 500px;
  background: var(--color-acento);
  top: -100px;
  right: -100px;
}

.ornamento-2 {
  width: 350px;
  height: 350px;
  background: var(--color-tecnologia);
  bottom: 0px;
  left: -80px;
}

.hero-anio {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  color: var(--color-blanco);
  line-height: 1.12;
  margin-bottom: 1rem;
}

#hero h1 span {
  display: block;
  background: linear-gradient(90deg, #64b5f6, #81d4fa, #b3e5fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bajada {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  border-left: 3px solid var(--color-acento);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.hero-descripcion {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.btn-explorar {
  background-color: var(--color-blanco);
  color: var(--color-institucional);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: var(--transicion);
}

.btn-explorar:hover {
  background-color: transparent;
  border-color: var(--color-blanco);
  color: var(--color-blanco);
  transform: translateY(-2px);
}

.btn-streaming {
  background: transparent;
  color: var(--color-blanco);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: var(--transicion);
}

.btn-streaming:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Estadísticas hero */
.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-numero {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-blanco);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll i {
  font-size: 1.1rem;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: ¿QUÉ SON LAS JORNADAS?
   ────────────────────────────────────────────────────────── */
#que-son {
  background-color: var(--color-blanco);
}

.imagen-institucional {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-hover);
  position: relative;
}

.imagen-institucional img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.imagen-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--color-institucional);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--sombra-suave);
}

.imagen-badge span {
  display: block;
  font-size: 1.4rem;
  font-family: var(--fuente-titulo);
  font-weight: 700;
}

.caracteristica-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.caract-icono {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--color-fondo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-acento);
  flex-shrink: 0;
  transition: var(--transicion);
}

.caracteristica-item:hover .caract-icono {
  background: var(--color-acento);
  color: var(--color-blanco);
}

.caract-texto h5 {
  font-size: 1rem;
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  color: var(--color-institucional);
  margin-bottom: 0.25rem;
}

.caract-texto p {
  font-size: 0.9rem;
  color: var(--color-gris-medio);
  margin-bottom: 0;
}

.caracteristicas-grid {
  display: flex;
  justify-content: space-between;
  gap: 5rem;

  margin-top: 4rem;
}

.caracteristicas-columna {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.caracteristicas-columna .caracteristica-item {
  margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: CÓMO TRABAJAMOS (TIMELINE)
   ────────────────────────────────────────────────────────── */
#como-trabajamos {
  background-color: var(--color-fondo);
}

.timeline-horizontal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.timeline-linea {
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-acento), var(--color-tecnologia));
  z-index: 0;
}

.timeline-paso {
  position: relative;
  z-index: 1;
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  padding: 0 0.75rem;
}

.paso-icono {
  width: 52px;
  height: 52px;
  background: var(--color-blanco);
  border: 3px solid var(--color-acento);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  color: var(--color-acento);
  transition: var(--transicion);
  box-shadow: var(--sombra-suave);
}

.timeline-paso:hover .paso-icono {
  background: var(--color-institucional);
  border-color: var(--color-institucional);
  color: white;
  transform: scale(1.12);
}

.paso-numero {
  position: absolute;
  top: -8px;
  right: calc(50% - 32px);
  width: 20px;
  height: 20px;
  background: var(--color-institucional);
  color: white;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paso-titulo {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-institucional);
  margin-bottom: 0.35rem;
  font-family: var(--fuente-cuerpo);
}

.paso-desc {
  font-size: 0.8rem;
  color: var(--color-gris-medio);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .timeline-linea {
    display: none;
  }

  .timeline-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .timeline-paso {
    max-width: 100%;
  }
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: CUATRO EJES
   ────────────────────────────────────────────────────────── */
#ejes {
  background-color: var(--color-blanco);
}

.card-eje {
  border: none;
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: var(--transicion);
  height: 100%;
  cursor: pointer;
}

.card-eje:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
}

.card-eje-imagen {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.card-eje-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-eje:hover .card-eje-imagen img {
  transform: scale(1.06);
}

.card-eje-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

.card-eje:hover .card-eje-overlay {
  opacity: 0.6;
}

.card-eje-emoji {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 2rem;
}

.card-eje-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-eje .card-body {
  padding: 1.4rem 1.25rem;
}

.card-eje .card-title {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card-eje .card-text {
  font-size: 0.88rem;
  color: var(--color-gris-medio);
  line-height: 1.65;
}

.card-eje .card-footer {
  background: transparent;
  border-top: 1px solid var(--color-gris-suave);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eje-proyectos-count {
  font-size: 0.8rem;
  color: var(--color-gris-medio);
}

.eje-proyectos-count strong {
  font-size: 1.1rem;
  color: var(--color-institucional);
}

/* Colores por eje */
.eje-naturaleza .card-eje-overlay {
  background: var(--color-naturaleza);
}

.eje-naturaleza .card-eje-badge {
  background: var(--color-naturaleza);
}

.eje-naturaleza .card-title {
  color: var(--color-naturaleza);
}

.eje-sociedad .card-eje-overlay {
  background: var(--color-sociedad);
}

.eje-sociedad .card-eje-badge {
  background: var(--color-sociedad);
}

.eje-sociedad .card-title {
  color: var(--color-sociedad);
}

.eje-consumo .card-eje-overlay {
  background: var(--color-consumo);
}

.eje-consumo .card-eje-badge {
  background: var(--color-consumo);
}

.mapa-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gray);
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.mapa-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: .35;
}

.eje-consumo .card-title {
  color: var(--color-consumo);
}

/* CONTACTO */

.contacto-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  margin-bottom: 2rem;
}

.contacto-info-icono {
  flex-shrink: 0;
}

.contacto-info-icono i {
  font-size: 1.6rem;
  color: var(--accent);
}

.contacto-info-texto {
  text-align: left;
}

.mapa-holder {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.mapa-holder iframe {
  width: 100%;
  height: 320px;
  display: block;
}

.eje-tecnologia .card-eje-overlay {
  background: var(--color-tecnologia);
}

.eje-tecnologia .card-eje-badge {
  background: var(--color-tecnologia);
}

.eje-tecnologia .card-title {
  color: var(--color-tecnologia);
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: PROYECTOS POR CURSO
   ────────────────────────────────────────────────────────── */
#proyectos {
  background-color: var(--color-fondo);
}

.filtros-cursos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.btn-filtro {
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--color-gris-suave);
  background: var(--color-blanco);
  color: var(--color-gris-medio);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicion);
}

.btn-filtro:hover,
.btn-filtro.activo {
  background: var(--color-institucional);
  border-color: var(--color-institucional);
  color: var(--color-blanco);
}

.card-proyecto {
  border: none;
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: var(--transicion);
  height: 100%;
  background: var(--color-blanco);
}

.card-proyecto:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.card-proyecto-img {
  height: 185px;
  overflow: hidden;
  position: relative;
}

.card-proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-proyecto:hover .card-proyecto-img img {
  transform: scale(1.05);
}

.badge-curso {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-institucional);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.badge-eje {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

.card-proyecto .card-body {
  padding: 1.25rem;
}

.card-proyecto .card-title {
  font-size: 1rem;
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  color: var(--color-institucional);
  margin-bottom: 0.5rem;
}

.card-proyecto .card-text {
  font-size: 0.85rem;
  color: var(--color-gris-medio);
  line-height: 1.6;
}

.btn-ver-mas {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-acento);
  border: 1.5px solid var(--color-acento);
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  transition: var(--transicion);
}

.btn-ver-mas:hover {
  background: var(--color-acento);
  color: white;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: STREAMING
   ────────────────────────────────────────────────────────── */
#streaming {
  background: linear-gradient(160deg, var(--color-institucional) 0%, #0d2640 100%);
  color: white;
}

.badge-en-vivo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 57, 53, 0.2);
  border: 1px solid rgba(229, 57, 53, 0.5);
  color: #ff5252;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.player-contenedor {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.8), rgba(10, 28, 52, 0.9));
}

.play-btn-grande {
  width: 70px;
  height: 70px;
  background: rgba(229, 57, 53, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: var(--transicion);
  backdrop-filter: blur(4px);
}

.play-btn-grande:hover {
  background: rgba(229, 57, 53, 1);
  transform: scale(1.1);
}

.streaming-info {
  padding-left: 1rem;
}

.streaming-info h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.proxima-presentacion {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.proxima-presentacion h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.proxima-presentacion p {
  color: white;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.proxima-presentacion small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.cronograma-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.crono-hora {
  font-family: var(--fuente-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  min-width: 55px;
}

.crono-titulo {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}

.crono-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: GALERÍA
   ────────────────────────────────────────────────────────── */
#galeria {
  background-color: var(--color-blanco);
}

.galeria-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.galeria-grid {
  columns: 3 220px;
  column-gap: 1rem;
}

.galeria-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.galeria-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 92, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.galeria-item:hover .galeria-item-overlay {
  opacity: 1;
}

.galeria-item-overlay i {
  font-size: 2rem;
  color: white;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.activo {
  opacity: 1;
  visibility: visible;
}

.lightbox-contenido {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.lightbox-contenido img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-cerrar {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: JORNADAS EN NÚMEROS
   ────────────────────────────────────────────────────────── */
#numeros {
  background: var(--color-fondo);
}

.contador-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-blanco);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-card);
  transition: var(--transicion);
  height: 100%;
}

.contador-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.contador-icono {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.contador-numero {
  font-family: var(--fuente-titulo);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-institucional);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.contador-label {
  font-size: 0.9rem;
  color: var(--color-gris-medio);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: TESTIMONIOS
   ────────────────────────────────────────────────────────── */
#testimonios {
  background-color: var(--color-blanco);
}

.card-testimonio {
  border: none;
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-card);
  padding: 2rem;
  height: 100%;
  transition: var(--transicion);
  position: relative;
  background: var(--color-blanco);
}

.card-testimonio:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.testimonio-comillas {
  font-size: 3.5rem;
  color: var(--color-gris-suave);
  font-family: Georgia, serif;
  line-height: 0.8;
  margin-bottom: 0.75rem;
}

.testimonio-texto {
  font-size: 0.92rem;
  color: var(--color-gris-medio);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-gris-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-acento);
}

.testimonio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonio-nombre {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-institucional);
  margin-bottom: 0.1rem;
}

.testimonio-rol {
  font-size: 0.78rem;
  color: var(--color-gris-medio);
}

.testimonio-rol-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  margin-top: 0.2rem;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: CONTACTO
   ────────────────────────────────────────────────────────── */
#contacto {
  background: var(--color-fondo);
}

.formulario-card {
  background: var(--color-blanco);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--sombra-card);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-institucional);
  margin-bottom: 0.4rem;
}

.form-control {
  border: 1.5px solid var(--color-gris-suave);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--color-texto);
  transition: var(--transicion);
}

.form-control:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(33, 118, 174, 0.12);
  outline: none;
}

.btn-enviar {
  background: var(--color-institucional);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transicion);
  width: 100%;
}

.btn-enviar:hover {
  background: var(--color-acento);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 118, 174, 0.35);
}

.contacto-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacto-info-icono {
  width: 46px;
  height: 46px;
  background: var(--color-blanco);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-acento);
  flex-shrink: 0;
  box-shadow: var(--sombra-suave);
}

.contacto-info-texto h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-institucional);
  margin-bottom: 0.15rem;
}

.contacto-info-texto p {
  font-size: 0.88rem;
  color: var(--color-gris-medio);
  margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────── */
footer {
  background: linear-gradient(160deg, #0d2640 0%, var(--color-institucional) 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.75rem;
  margin-left: 15px;
}

.footer-descripcion {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.redes-sociales {
  display: flex;
  gap: 0.6rem;
  margin-left: 70px;
}

.red-social {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transicion);
}

.red-social:hover {
  background: var(--color-acento);
  color: white;
  transform: translateY(-3px);
}

.footer-titulo {
  font-family: var(--fuente-cuerpo);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.2rem;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: var(--transicion);
}

.footer-link:hover {
  color: white;
  padding-left: 0.3rem;
}

.ejes-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eje-footer-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.eje-footer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.Pie {
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
   BOTÓN SCROLL TO TOP
   ────────────────────────────────────────────────────────── */
#btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-institucional);
  color: white;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.35);
  transition: var(--transicion);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

#btn-top.visible {
  opacity: 1;
  visibility: visible;
}

#btn-top:hover {
  background: var(--color-acento);
  transform: translateY(-3px);
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .stat-numero {
    font-size: 1.8rem;
  }

  .streaming-info {
    padding-left: 0;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  section {
    padding: 4rem 0;
  }

  .hero-stats {
    gap: 1rem;
    justify-content: center;
  }

  .galeria-grid {
    columns: 2 160px;
  }

  .formulario-card {
    padding: 1.5rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

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

  .filtros-cursos {
    justify-content: center;
  }
}

.hero-proyecto {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(135deg,
      #1a3a5c,
      #28588d);
  color: white;
}

.btn-volver {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.badge-proyecto {
  display: inline-block;
  background: #ffffff20;
  padding: 10px 20px;
  border-radius: 30px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.hero-proyecto h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.descripcion-principal {
  max-width: 800px;
  font-size: 1.2rem;
  opacity: .9;
}

/* RESET */

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.7;
}

/* HEADER */


.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  width: 65px;
}

.logo-container h1 {
  color: white;
  font-size: 22px;
}

.logo-container p {
  color: #d8e6f5;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: .3s;
}


/* HERO */

.project-hero {
  background: linear-gradient(135deg, #1a3a5c, #29497e);
  color: white;
  padding: 90px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-text span {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  padding: 10px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 14px;
}

.project-text h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.project-text p {
  font-size: 1.15rem;
  opacity: .9;
}

.project-hero img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

/* INFO CARDS */

.info-cards {
  padding: 70px 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
  transition: .3s;
}

.info-card:hover {
  transform: translateY(-8px);
}

.info-card h3 {
  color: #1a3a5c;
  margin-bottom: 12px;
}

/* SECCIONES */

.project-content {
  padding: 80px 8%;
}

.project-content h2 {
  color: #1a3a5c;
  margin-bottom: 25px;
  font-size: 2.2rem;
}

/* CAJA DESTACADA */

.quote-box {
  background: linear-gradient(135deg, #1a3a5c, #29497e);
  color: white;
  padding: 45px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.quote-box h3 {
  margin-bottom: 15px;
}

/* MATERIAS */

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.subject-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
  transition: .3s;
}

.subject-card:hover {
  transform: translateY(-6px);
}

.subject-card h3 {
  color: #1a3a5c;
  margin-bottom: 15px;
}

/* TIMELINE */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.timeline-item {
  background: white;
  padding: 30px;
  border-left: 6px solid #1a3a5c;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}

.timeline-item span {
  display: block;
  color: #1a3a5c;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* BOTONES */

.btn-project {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 28px;
  background: #1a3a5c;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  transition: .3s;
}

.btn-project:hover {
  background: #29497e;
  transform: translateY(-2px);
}

/* GALERÍA */

.subject-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  transition: .4s;
}

.subject-grid img:hover {
  transform: scale(1.04);
}

/* DRIVE */

.drive-card {
  background: white;
  padding: 50px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.drive-card h3 {
  color: #1a3a5c;
  margin-bottom: 15px;
  font-size: 2rem;
}

.drive-card p {
  max-width: 700px;
  margin: auto;
  margin-bottom: 25px;
}

/* FOOTER */

footer {
  background: #1a3a5c;
  color: white;
  text-align: center;
  padding: 40px;
  margin-top: 60px;
}

footer h3 {
  margin-bottom: 10px;
}

footer p {
  opacity: .8;
}

/* RESPONSIVE */

@media(max-width:992px) {

  .project-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-text h1 {
    font-size: 3rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

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

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  header {
    flex-direction: column;
    gap: 20px;
  }
}

@media(max-width:600px) {

  .project-text h1 {
    font-size: 2.3rem;
  }

  .project-content {
    padding: 60px 6%;
  }

  .info-cards {
    padding: 60px 6%;
  }

  .project-hero {
    padding: 70px 6%;
  }

  body {
    padding-top: 90px;
  }
}

:root {
  --eje-color: #2e7d32;
  /* Color verde ODS / Biodiversidad */
  --eje-oscuro: #1b5e20;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: #f4f6f9;
  color: #1c2733;
  line-height: 1.7;
  margin: 0;
}

:root {
  --color-institucional: #1a3a5c;
  --color-acento: #2176ae;
  --color-blanco: #ffffff;
  --fuente-titulo: 'Playfair Display', serif;
  --fuente-cuerpo: 'DM Sans', sans-serif;
  --fuente-mono: 'JetBrains Mono', monospace;
  --transicion: all .35s ease;
}

/* ────────────────────────────────────────
       HERO DEL PROYECTO
    ──────────────────────────────────────── */
.project-hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #1b5d44 60%, #1a3a5c 100%);
  color: #fff;
  padding: 90px 8% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .8);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .25s;
}

.btn-volver:hover {
  color: #fff;
}

.badge-proyecto {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}

.project-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.1rem;
}

.project-hero .descripcion-principal {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 520px;
  line-height: 1.7;
}

.project-hero img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
  object-fit: cover;
  max-height: 420px;
}

/* ────────────────────────────────────────
       INFO CARDS (Resumen)
    ──────────────────────────────────────── */
.info-cards {
  padding: 70px 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
  transition: transform .3s, box-shadow .3s;
}

.info-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .13);
}

.info-card .ic-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
  display: block;
}

.info-card h3 {
  color: #1a3a5c;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  font-family: 'DM Sans', sans-serif;
}

.info-card p {
  font-size: .88rem;
  color: #6c7a89;
  margin: 0;
  line-height: 1.65;
}

/* ────────────────────────────────────────
       QUOTE BOX (Perspectiva Global de Inglés)
    ──────────────────────────────────────── */
.quote-box-wrapper {
  padding: 0 8% 70px;
}

.quote-box {
  background: linear-gradient(135deg, #1a3a5c 0%, #1b5d44 100%);
  color: #fff;
  padding: 48px 52px;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}

.quote-box .qb-eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .9rem;
}

.quote-box blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.6;
  margin: 0 0 1.2rem;
}

.quote-box cite {
  font-size: .82rem;
  opacity: .75;
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
}

.quote-box .qb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}

.quote-box .qb-tags span {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}

/* ────────────────────────────────────────
       PROJECT CONTENT (Materias)
    ──────────────────────────────────────── */
.project-content {
  padding: 70px 8%;
  background: #f4f6f9;
}

.project-content .pc-header {
  margin-bottom: 2.5rem;
}

.project-content .pc-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eje-color);
  margin-bottom: .55rem;
  position: relative;
  padding-left: 1.4rem;
}

.project-content .pc-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: .85rem;
  height: 2px;
  background: var(--eje-color);
}

.project-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #1a3a5c;
  margin: 0 0 .4rem;
}

.project-content .pc-sub {
  font-size: .97rem;
  color: #6c7a89;
  max-width: 620px;
}

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

.subject-card {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
  transition: transform .3s, box-shadow .3s;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .13);
}

.subject-card .sc-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.subject-card .sc-icon {
  width: 40px;
  height: 40px;
  background: #edf7ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--eje-color);
  flex-shrink: 0;
}

.subject-card h3 {
  color: #1a3a5c;
  font-size: .97rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
}

.subject-card p {
  font-size: .88rem;
  color: #6c7a89;
  line-height: 1.65;
  margin: 0;
}

/* ────────────────────────────────────────
       TIMELINE DE COMISIONES (Ejes ODS)
    ──────────────────────────────────────── */
.timeline-section {
  padding: 70px 8%;
  background: #fff;
}

.timeline-section .tl-header {
  margin-bottom: 2.5rem;
}

.timeline-section .pc-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eje-color);
  margin-bottom: .55rem;
  position: relative;
  padding-left: 1.4rem;
}

.timeline-section .pc-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: .85rem;
  height: 2px;
  background: var(--eje-color);
}

.timeline-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #1a3a5c;
  margin: 0 0 .4rem;
}

.timeline-section .tl-sub {
  font-size: .97rem;
  color: #6c7a89;
  max-width: 580px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: #fff;
  padding: 26px 28px;
  border-left: 6px solid var(--eje-color);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
}

.timeline-item .tl-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}

.timeline-item .tl-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
  background: var(--eje-color);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.timeline-item span.tl-titulo {
  display: block;
  color: #1a3a5c;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .35rem;
  font-family: 'DM Sans', sans-serif;
}

.timeline-item p {
  font-size: .88rem;
  color: #6c7a89;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.timeline-btn-canva {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: #8b3dff;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}

.timeline-btn-canva:hover {
  background: #7326e6;
  color: #fff;
  transform: translateY(-1px);
}

/* ────────────────────────────────────────
       DRIVE / ENTREGABLES
    ──────────────────────────────────────── */
.drive-section {
  padding: 70px 8%;
  background: #f4f6f9;
}

.drive-section .dr-header {
  text-align: center;
  margin-bottom: 2rem;
}

.drive-section .pc-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eje-color);
  margin-bottom: .55rem;
  position: relative;
  padding-left: 1.4rem;
}

.drive-section .pc-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: .85rem;
  height: 2px;
  background: var(--eje-color);
}

.drive-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #1a3a5c;
  margin: 0 0 .4rem;
}

.drive-section .dr-sub {
  font-size: .97rem;
  color: #6c7a89;
}

.drive-card {
  background: #fff;
  padding: 48px 52px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .09);
  max-width: 740px;
  margin: 0 auto;
}

.drive-card .drive-icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--eje-color);
}

.drive-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  color: #1a3a5c;
  margin-bottom: .75rem;
}

.drive-card p {
  font-size: .92rem;
  color: #6c7a89;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.drive-card .dr-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.drive-card .dr-meta span {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: #6c7a89;
  background: #f4f6f9;
  padding: .35rem .85rem;
  border-radius: 50px;
}

.btn-project {
  display: inline-block;
  padding: 13px 32px;
  background: #1a3a5c;
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .3s, transform .25s, box-shadow .25s;
}

.btn-project:hover {
  background: var(--eje-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46, 125, 50, .38);
}


/* ────────────────────────────────────────
       FOOTER
    ──────────────────────────────────────── */
footer {
  background: #1a3a5c;
  color: rgba(255, 255, 255, .82);
  text-align: center;
  padding: 40px;
  margin-top: 0;
}

footer h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: .5rem;
  color: #fff;
  font-size: 1.15rem;
}

footer p {
  margin: .2rem 0;
  font-size: .85rem;
  opacity: .78;
}

/* ────────────────────────────────────────
       RESPONSIVE
    ──────────────────────────────────────── */
@media (max-width: 992px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 72px 6% 64px;
    text-align: center;
  }

  .project-hero img {
    max-height: 320px;
  }

  .info-cards {
    grid-template-columns: 1fr;
    padding: 56px 6%;
  }

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

  .quote-box,
  .drive-card {
    padding: 36px 28px;
  }

  .project-content,
  .timeline-section,
  .drive-section,
  .quote-box-wrapper {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 19px;
    padding: 45px 10%;
  }


  .project-hero h1 {
    font-size: 2.2rem;
  }
}

.project-hero {
  margin-top: 0 !important;
  padding-top: 0px !important;
  /* Ajusta la altura del título respecto al navbar */
  padding-bottom: 0px !important;
  /* Le da aire abajo */
  background: linear-gradient(135deg, #10375c, #165b33) !important;
  /* Fuerza un degradado limpio sin cortes */
  height: auto !important;
  /* Evita alturas fijas que rompen el fondo */
  min-height: unset !important;
  /* Elimina herencias raras */
}

/* Si tu imagen dentro del hero se estaba desfasando, esto la alinea */
.project-hero img {
  margin-bottom: 0 !important;
  display: block !important;
}

#navbar-principal {
  background-color: #0f2537 !important;
  /* Mantiene el fondo oscuro del menú para cuando bajes a las tarjetas blancas */
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}