/* ============================
   RESET Y VARIABLES
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --azul-noche: #0F2A47;
  --azul-oceano: #1E5F8C;
  --azul-cielo: #5BA7E0;
  --amarillo: #FFC94A;
  --coral: #F26B5E;
  --menta: #7ED9B2;
  --crema: #FFF9F2;
  --blanco: #FFFFFF;
  --gris-texto: #2C3E50;
  --sombra: 0 10px 30px rgba(15, 42, 71, 0.12);
  --radio: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gris-texto);
  background-image: url('../img/fondo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 242, 0.9);
  z-index: -1;
}

/* ============================
   HEADER MODERNO
   ============================ */
.header {
  background: rgba(15, 42, 71, 0.96);
  backdrop-filter: blur(10px);
  color: var(--blanco);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icono {
  font-size: 2rem;
  background: var(--amarillo);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.subtitulo {
  font-size: 0.78rem;
  color: var(--amarillo);
  margin-top: 2px;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  color: var(--blanco);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.nav a:hover { background: rgba(255, 201, 74, 0.2); }

.nav a.activo {
  background: var(--amarillo);
  color: var(--azul-noche);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ============================
   HERO / BIENVENIDA
   ============================ */
.hero {
  padding: 60px 24px 40px;
}

.hero-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.etiqueta {
  display: inline-block;
  background: var(--menta);
  color: var(--azul-noche);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-texto h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  color: var(--azul-noche);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-texto p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--gris-texto);
}

.hero-botones {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-primario {
  background: var(--azul-oceano);
  color: var(--blanco);
}

.btn-primario:hover {
  background: var(--azul-noche);
  transform: translateY(-2px);
  box-shadow: var(--sombra);
}

.btn-secundario {
  background: transparent;
  color: var(--azul-oceano);
  border: 2px solid var(--azul-oceano);
}

.btn-secundario:hover {
  background: var(--azul-oceano);
  color: var(--blanco);
}

.hero-imagen img {
  width: 100%;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  object-fit: cover;
}

/* ============================
   FIRMANTES
   ============================ */
.firmantes {
  background: var(--blanco);
  padding: 50px 24px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15, 42, 71, 0.05);
}

.firmantes h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.firmantes-sub {
  color: var(--azul-oceano);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.firmantes-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.firmantes-lista li {
  background: var(--crema);
  color: var(--azul-noche);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(30, 95, 140, 0.15);
  transition: all 0.3s ease;
}

.firmantes-lista li:hover {
  background: var(--amarillo);
  transform: translateY(-2px);
}

/* ============================
   ACCESOS DIRECTOS
   ============================ */
.accesos {
  padding: 60px 24px;
}

.accesos h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 32px;
}

.accesos-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.acceso-card {
  background: var(--blanco);
  padding: 28px 22px;
  border-radius: var(--radio);
  text-decoration: none;
  color: var(--gris-texto);
  box-shadow: var(--sombra);
  transition: all 0.35s ease;
  border-top: 4px solid var(--azul-cielo);
}

.acceso-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--amarillo);
  box-shadow: 0 18px 40px rgba(15, 42, 71, 0.18);
}

.acceso-icono {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.acceso-card h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.acceso-card p {
  font-size: 0.9rem;
  color: var(--gris-texto);
}

/* ============================
   CONTENIDO GENERAL
   ============================ */
.contenido {
  flex: 1;
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  width: calc(100% - 48px);
}

.titulo-seccion {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 2rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--amarillo);
  display: inline-block;
}

.intro-seccion {
  font-size: 1.05rem;
  margin-bottom: 28px;
  color: var(--gris-texto);
}

/* ============================
   INTEGRANTES
   ============================ */
.grid-integrantes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card-integrante {
  background: var(--crema);
  border-radius: var(--radio);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 42, 71, 0.08);
  transition: all 0.35s ease;
  border-bottom: 4px solid var(--menta);
}

.card-integrante:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--coral);
  box-shadow: 0 18px 40px rgba(15, 42, 71, 0.15);
}

.card-integrante img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--amarillo);
  margin-bottom: 14px;
}

.card-integrante h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card-integrante .rol {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.card-integrante .descripcion {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================
   LÍNEA DE TIEMPO
   ============================ */
.linea-tiempo h3,
.referencias h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-oceano);
  font-size: 1.4rem;
  margin: 30px 0 14px;
}

.iframe-contenedor {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.iframe-contenedor iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.referencias ul {
  margin-left: 24px;
  line-height: 1.9;
}

.referencias li { margin-bottom: 8px; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--azul-noche);
  color: var(--blanco);
  padding: 30px 24px;
  margin-top: auto;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.88rem;
}

.footer-contenido p { margin-bottom: 6px; }

.footer-small {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 10px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-contenedor {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-texto h2 { font-size: 2rem; }
  .hero-imagen { order: -1; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    width: 100%;
  }
  .nav.abierto { display: block; }
  .nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  .nav a { display: block; }
  .menu-toggle { display: block; }
  .contenido { padding: 24px; margin: 30px auto; }
  .titulo-seccion { font-size: 1.5rem; }
  .firmantes h3, .accesos h3 { font-size: 1.4rem; }
}
/* ============================
   BOTÓN "VER MÁS" EN CARDS
   ============================ */
.btn-ver-mas {
  margin-top: 12px;
  background: var(--azul-oceano);
  color: var(--blanco);
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  background: var(--azul-noche);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 42, 71, 0.2);
}

/* ============================================
   MODALES - ESTILO ÚNICO Y DEFINITIVO
   ============================================ */

/* Fondo oscuro del modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 71, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.activo {
  display: flex;
}

/* Contenedor blanco del modal */
.modal-contenido {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: modalEntrada 0.35s ease;
  margin: auto;
}

@keyframes modalEntrada {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón cerrar */
.modal-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 42, 71, 0.85);
  color: #FFFFFF;
  border: none;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-cerrar:hover {
  background: #F26B5E;
  transform: rotate(90deg);
}

/* ============================================
   MODAL DE INTEGRANTES
   ============================================ */
.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 20px;
  border-bottom: 3px solid #FFC94A;
}

.modal-header img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7ED9B2;
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: 'Poppins', sans-serif;
  color: #0F2A47;
  font-size: 1.3rem;
  margin-bottom: 4px;
  line-height: 1.2;
}

.modal-rol {
  color: #F26B5E;
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-institucion {
  font-size: 0.82rem;
  color: #1E5F8C;
  margin-top: 4px;
}

.modal-body {
  padding: 20px 28px 28px;
}

.modal-body h4 {
  font-family: 'Poppins', sans-serif;
  color: #1E5F8C;
  font-size: 1rem;
  margin: 16px 0 8px;
}

.modal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #2C3E50;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.modal-body li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 6px;
  color: #2C3E50;
}

/* ============================================
   MODAL DE LÍNEA DE TIEMPO
   ============================================ */
.modal-timeline {
  max-width: 800px;
  padding: 0;
  /* ¡Importante! Quitar overflow:hidden para que no corte el contenido */
  overflow-y: auto;
}

.modal-imagen-grande {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.modal-imagen-grande img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-etiqueta {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FFC94A;
  color: #0F2A47;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-header-timeline {
  padding: 20px 30px 12px;
  border-bottom: 3px solid #FFC94A;
}

.modal-header-timeline h3 {
  font-family: 'Poppins', sans-serif;
  color: #0F2A47;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.modal-fecha {
  color: #F26B5E;
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-timeline .modal-body {
  padding: 20px 30px 30px;
}

/* ============================================
   RESPONSIVE MODALES
   ============================================ */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
  }

  .modal-contenido {
    max-height: 95vh;
    border-radius: 14px;
    margin: 10px auto;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px 16px;
    gap: 12px;
  }

  .modal-header img {
    width: 90px;
    height: 90px;
  }

  .modal-header h3 { font-size: 1.15rem; }

  .modal-body { padding: 16px 20px 24px; }

  .modal-body p,
  .modal-body li { font-size: 0.9rem; }

  .modal-imagen-grande { height: 170px; }

  .modal-header-timeline { padding: 16px 20px 10px; }

  .modal-header-timeline h3 { font-size: 1.3rem; }

  .modal-timeline .modal-body { padding: 16px 20px 24px; }

  .modal-cerrar {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    top: 10px;
    right: 10px;
  }
}/* ============================================
   MODALES - ESTILO ÚNICO Y DEFINITIVO
   ============================================ */

/* Fondo oscuro del modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 71, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.activo {
  display: flex;
}

/* Contenedor blanco del modal */
.modal-contenido {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: modalEntrada 0.35s ease;
  margin: auto;
}

@keyframes modalEntrada {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón cerrar */
.modal-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 42, 71, 0.85);
  color: #FFFFFF;
  border: none;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-cerrar:hover {
  background: #F26B5E;
  transform: rotate(90deg);
}

/* ============================================
   MODAL DE INTEGRANTES
   ============================================ */
.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 20px;
  border-bottom: 3px solid #FFC94A;
}

.modal-header img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7ED9B2;
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: 'Poppins', sans-serif;
  color: #0F2A47;
  font-size: 1.3rem;
  margin-bottom: 4px;
  line-height: 1.2;
}

.modal-rol {
  color: #F26B5E;
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-institucion {
  font-size: 0.82rem;
  color: #1E5F8C;
  margin-top: 4px;
}

.modal-body {
  padding: 20px 28px 28px;
}

.modal-body h4 {
  font-family: 'Poppins', sans-serif;
  color: #1E5F8C;
  font-size: 1rem;
  margin: 16px 0 8px;
}

.modal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #2C3E50;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.modal-body li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 6px;
  color: #2C3E50;
}

/* ============================================
   MODAL DE LÍNEA DE TIEMPO
   ============================================ */
.modal-timeline {
  max-width: 800px;
  padding: 0;
  /* ¡Importante! Quitar overflow:hidden para que no corte el contenido */
  overflow-y: auto;
}

.modal-imagen-grande {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.modal-imagen-grande img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-etiqueta {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FFC94A;
  color: #0F2A47;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-header-timeline {
  padding: 20px 30px 12px;
  border-bottom: 3px solid #FFC94A;
}

.modal-header-timeline h3 {
  font-family: 'Poppins', sans-serif;
  color: #0F2A47;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.modal-fecha {
  color: #F26B5E;
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-timeline .modal-body {
  padding: 20px 30px 30px;
}

/* ============================================
   RESPONSIVE MODALES
   ============================================ */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
  }

  .modal-contenido {
    max-height: 95vh;
    border-radius: 14px;
    margin: 10px auto;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px 16px;
    gap: 12px;
  }

  .modal-header img {
    width: 90px;
    height: 90px;
  }

  .modal-header h3 { font-size: 1.15rem; }

  .modal-body { padding: 16px 20px 24px; }

  .modal-body p,
  .modal-body li { font-size: 0.9rem; }

  .modal-imagen-grande { height: 170px; }

  .modal-header-timeline { padding: 16px 20px 10px; }

  .modal-header-timeline h3 { font-size: 1.3rem; }

  .modal-timeline .modal-body { padding: 16px 20px 24px; }

  .modal-cerrar {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    top: 10px;
    right: 10px;
  }
}
/* ============================
   LÍNEA DE TIEMPO INTERACTIVA
   ============================ */
.timeline-section {
  margin: 30px 0;
}

.timeline-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 30px 16px 40px;
  position: relative;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scroll-behavior: smooth;
}

.timeline-wrapper.arrastrando {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Línea conectora horizontal */
.timeline-linea {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--amarillo), var(--menta));
  z-index: 0;
  border-radius: 4px;
}

/* Card de cada etapa - MÁS PEQUEÑA */
.timeline-card {
  position: relative;
  flex: 0 0 240px; /* Antes 300px, ahora 240px */
  scroll-snap-align: center;
  background: var(--blanco);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 42, 71, 0.12);
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1;
  border-top: 4px solid var(--azul-cielo);
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15, 42, 71, 0.22);
  border-top-color: var(--amarillo);
}

/* Punto sobre la línea */
.timeline-punto {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--coral);
  border: 3px solid var(--blanco);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--coral);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-card:hover .timeline-punto {
  background: var(--amarillo);
  box-shadow: 0 0 0 5px rgba(255, 201, 74, 0.4);
  transform: translateX(-50%) scale(1.2);
}

/* Imagen de la card - MÁS PEQUEÑA */
.timeline-imagen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.timeline-imagen img {
  width: 100%;
  height: 130px; /* Antes 180px, ahora 130px */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline-card:hover .timeline-imagen img {
  transform: scale(1.08);
}

.timeline-etiqueta {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 42, 71, 0.85);
  color: var(--blanco);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Info de la card */
.timeline-info {
  text-align: center;
}

.timeline-fecha {
  display: inline-block;
  background: var(--menta);
  color: var(--azul-noche);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-info h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1rem; /* Antes 1.2rem */
  margin-bottom: 6px;
}

.timeline-info p {
  font-size: 0.78rem; /* Antes 0.88rem */
  color: var(--gris-texto);
  margin-bottom: 10px;
  line-height: 1.4;
}

.timeline-info .btn-ver-mas {
  background: var(--azul-oceano);
  color: var(--blanco);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-info .btn-ver-mas:hover {
  background: var(--azul-noche);
  transform: translateX(3px);
}

.timeline-hint {
  text-align: center;
  color: var(--azul-oceano);
  font-size: 0.85rem;
  margin-top: 5px;
  font-style: italic;
}

/* Scrollbar personalizada */
.timeline-wrapper::-webkit-scrollbar {
  height: 6px;
}

.timeline-wrapper::-webkit-scrollbar-track {
  background: var(--crema);
  border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
  background: var(--azul-cielo);
  border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--azul-oceano);
}

/* ============================
   MODALES DE LÍNEA DE TIEMPO
   ============================ */
.modal-timeline {
  max-width: 800px;
  padding: 0;
  overflow: hidden;
}

.modal-imagen-grande {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.modal-imagen-grande img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-etiqueta {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--amarillo);
  color: var(--azul-noche);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.modal-header-timeline {
  padding: 20px 30px 10px;
  border-bottom: 3px solid var(--amarillo);
  margin-bottom: 20px;
}

.modal-header-timeline h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.modal-fecha {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-timeline .modal-body {
  padding: 0 30px 30px;
}

.modal-timeline .modal-body h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-oceano);
  font-size: 1rem;
  margin: 18px 0 8px;
}

.modal-timeline .modal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--gris-texto);
}

.modal-timeline .modal-body ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

.modal-timeline .modal-body li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.modal-timeline .modal-cerrar {
  color: var(--blanco);
  background: rgba(15, 42, 71, 0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 14px;
  right: 14px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-timeline .modal-cerrar:hover {
  background: var(--coral);
  color: var(--blanco);
}

/* ============================
   REFLEXIÓN Y REFERENCIAS
   ============================ */
.reflexion {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--crema), #FFF);
  border-left: 6px solid var(--coral);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.reflexion h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--azul-noche);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.reflexion p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--gris-texto);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-wrapper {
    padding: 30px 10px;
  }
  .timeline-card {
    flex: 0 0 260px;
  }
  .timeline-linea {
    display: none;
  }
  .modal-imagen-grande {
    height: 180px;
  }
  .modal-header-timeline h3 {
    font-size: 1.3rem;
  }
}