/* ===================================================================
   MICROSITE PROCESO MAGDALENA - HOJA DE ESTILOS CSS
   =================================================================== */

/* --- RESET Y VARIABLES GLOBALES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta del Proceso Magdalena: Tonos del Río, Agua y Tierra */
  --primary-color: #0d5c75; /* Azul Río / Teal profundo */
  --primary-dark: #083b4c; /* Azul oscuro institucional */
  --secondary-color: #6e3b23; /* Terracota / Café Ribereño */
  --accent-color: #d97706; /* Ámbar / Dorado */
  --bg-light: #f8f9fa; /* Fondo claro limpio */
  --text-dark: #212529; /* Texto principal */
  --text-muted: #5c677d; /* Texto secundario */
  --white: #ffffff;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 15px;
  --transition-speed: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* --- ESTRUCTURA GLOBAL Y CONTENEDORES DE SECCIÓN --- */
section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.section-with-bg {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid rgba(13, 92, 117, 0.15); /* Línea gráfica sutil entre secciones */
}

/* --- CLASES DE FONDOS ESPECÍFICOS (LÍNEA GRÁFICA MAGDALENA) --- */
.bg-sec-contexto {
  background-image: url("/es/Paginas/CompareSer/2026/Proceso-Magdalena/img/fondos/Contexto_1920_1080.webp");
}

.bg-sec-proceso {
  background-image: url("/es/Paginas/CompareSer/2026/Proceso-Magdalena/img/fondos/Proceso_Restaurativo_1920_1080.webp");
}

.bg-sec-relatoria {
  background-image: url("/es/Paginas/CompareSer/2026/Proceso-Magdalena/img/fondos/Historias_Vida_1920_1080.webp");
}

.bg-sec-linea-tiempo {
  background-image: url("/es/Paginas/CompareSer/2026/Proceso-Magdalena/img/fondos/Linea_Tiempo_1920_1080.webp");
}

.bg-sec-galeria {
  background-image: url("/es/Paginas/CompareSer/2026/Proceso-Magdalena/img/fondos/Galeria_1920_1080.webp");
}

.bg-sec-general {
  background-image: url("/es/Paginas/CompareSer/2026/Proceso-Magdalena/img/fondos/Voces_Memoria_1920_1080.webp");
}

.section-card-container {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border-left: 5px solid var(--primary-color); /* Acento gráfico lateral */
}

/* --- ELEMENTOS DE LÍNEA GRÁFICA --- */
.graphic-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 0 auto 25px auto;
  border-radius: 2px;
}

/* --- TIPOGRAFÍA Y TEXTOS --- */
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.9;
  margin-bottom: 20px;
}

.section-title {
  color: var(--primary-color);
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin: 10px 0 10px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.3rem;
  text-align: center;
  font-weight: 400;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
}

.section-subtitle-main {
  text-align: center;
  color: var(--secondary-color);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 15px;
  font-weight: 600;
}

.section-description {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-dark);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

.text-justify {
  font-size: 1.15rem;
  color: var(--secondary-color);
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 20px;
}

.section-lead-center {
  font-size: 1.2rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 25px;
}

.disclaimer-note {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-top: 10px !important;
}

/* --- HERO BANNER --- */
.hero {
  width: 100%;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  position: relative;
  border-bottom: 4px solid var(--accent-color); /* Separación dorada banner */
}

.hero-container {
  width: 100%;
  line-height: 0;
}

.hero-container img,
.hero-container .overlay-img {
  width: 100%;
  height: auto;
  display: block !important;
  object-fit: cover;
}

/* --- GRILLAS (GRID SYSTEM) --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
  width: 100%;
}

/* --- TARJETAS INFORMATIVAS --- */
.info-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--primary-color);
  transition:
    transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.info-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.info-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- BARRA DE ESTADÍSTICAS --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 35px 0;
  width: 100%;
}

.stat-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px 15px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border-bottom: 3px solid var(--accent-color);
  transition: transform var(--transition-speed);
}

.stat-box:hover {
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--secondary-color);
}

/* --- CITA Y CITACIONES --- */
.quote-box {
  text-align: center;
  margin-top: 35px;
  padding: 20px 30px;
  background-color: #e8f2f5;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
}

.quote-text {
  font-size: 1.3rem;
  color: var(--secondary-color);
  font-style: italic;
  margin: 0;
}

/* --- FOTOS Y GALERÍAS --- */
.photo-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
  margin-top: 35px;
}

.photo-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed);
}

.photo-card:hover {
  transform: translateY(-5px);
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #eef3f6;
  overflow: hidden;
}

.photo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-text {
  padding: 15px;
  font-size: 0.95rem !important;
  color: var(--secondary-color) !important;
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 0;
}

/* --- BOTONES Y BADGES --- */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition-speed),
    transform var(--transition-speed);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.full-width-btn {
  width: 100%;
  margin-top: 15px;
}

.card-footer-action {
  margin-top: 20px;
}

.podcast-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #1db954;
  color: var(--white);
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  transition:
    opacity var(--transition-speed),
    transform var(--transition-speed);
}

.podcast-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.badge-jep {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  background: #e8f2f5;
  padding: 10px;
  border-radius: 20px;
}

/* --- MULTIMEDIA / VIDEO --- */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--card-shadow);
  margin: 30px 0;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.closing-message-box {
  margin-top: 40px;
  text-align: center;
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--accent-color);
}

.closing-message-box h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.closing-message-box p {
  font-size: 1.15rem;
  color: var(--secondary-color);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.closing-quote {
  font-size: 1.2rem !important;
  color: var(--primary-color) !important;
  font-weight: bold;
  margin-top: 20px !important;
}

/* --- ALIADOS DEL PROCESO --- */
.aliados-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 25px;
  border-top: 2px solid var(--primary-color);
}

.aliados-container h3 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.aliados-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.aliados-list li {
  background: #e8f2f5;
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
}

/* --- MODAL PARA PDF --- */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: var(--white);
  width: 90%;
  max-width: 900px;
  height: 85vh;
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #e53935;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.close-modal:hover {
  background: #b71c1c;
}

.modal-body {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #f4f4f4;
}

/* --- FOOTER Y APOYO INSTITUCIONAL --- */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 30px;
  font-size: 1.1rem;
}

.apoyo-final {
  width: 100%;
  text-align: center;
  margin-top: 55px; /* Espaciado hacia abajo desde el mensaje reflexivo */
  padding-top: 35px;
  border-top: 1px solid rgba(13, 92, 117, 0.2); /* Línea divisora sutil */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.apoyo-label {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 15px;
}

.logo-apoyo img {
  display: inline-block !important;
  max-width: 220px;
  height: auto;
}

.apoyo-disclaimer {
  color: #555;
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 15px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   =================================================================== */

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-card-container {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .section-with-bg {
    padding: 40px 15px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .photo-row {
    flex-direction: column;
  }
  .section-card-container {
    padding: 25px 18px;
  }
}

@media (max-width: 600px) {
  .modal-content {
    height: 75vh;
    width: 95%;
  }
}
