/* ========== VARIABLES GLOBALES ========== */
:root {
  --color-primario: #E83E8C;
  --color-secundario: #6F2C91;
  --color-acento: #F2C94C;
  --color-oscuro: #2D2D2D;
  --color-claro: #F9F9F9;
}

/* ========== RESET Y ESTILOS BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--color-claro);
  color: var(--color-oscuro);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ========== HEADER / NAVEGACIÓN ========== */
.header {
  background: linear-gradient(90deg, var(--color-secundario), var(--color-primario));
  padding: 15px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  text-decoration: underline;
}

/* Header alternativo (main-header) */
.main-header {
  background: linear-gradient(90deg, var(--color-secundario), var(--color-primario));
  position: relative;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 25px;
}

.nav-left a,
.nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  opacity: 0.7;
}

.logo-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -50px;
  width: 200px;
  height: 100px;
  background: white;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper img {
  width: 110px;
}

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== SECCIONES GENERALES ========== */
.section {
  padding: 50px 20px;
  background-color: #f4f4f4;
}

.section:last-of-type {
    margin-bottom: 0;
}

.section .container {
  background-color: #ffffff;
  padding: 50px 60px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Ajuste para secciones con padding-top extra */
.section {
  padding-top: 120px;
}

/* ========== TITULOS ========== */
.section h1 {
  font-size: 36px;
  color: var(--color-secundario);
  margin-bottom: 30px;
  text-align: center;
}

.section h2 {
  font-size: 22px;
  color: var(--color-primario);
  margin-top: 35px;
  margin-bottom: 15px;
}

/* ========== TEXTO ========== */
.section p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
  text-align: left;
}

/* ========== LISTAS ========== */
.section ul {
  margin: 20px 0 0 20px;
  list-style: disc;
}

.section ul li {
  font-size: 16px;
  margin-bottom: 10px;
}

/* ========== HERO ========== */
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
}

/* Hero minimalista blanco */
.hero {
  background-color: #f9f9f9 !important;
  padding: 100px 20px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-logo img {
  max-width: 280px;
  width: 100%;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #222;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* Hero con imagen */
.hero-image {
  margin-top: 40px;
}

.hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  border-top: 4px solid var(--color-primario);

  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}


.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  border-top: 4px solid var(--color-secundario);
}

.card h3 {
  color: var(--color-secundario);
  margin-bottom: 15px;
  font-size: 20px;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.card a {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-primario);
  transition: color 0.3s ease;
}

.card a:hover {
  color: var(--color-secundario);
}

/* ========== MÉTRICAS ========== */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.metric {
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  color: white;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.metric span {
  display: block;
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
}

.metric p {
  font-size: 16px;
  margin: 0;
}

/* ========== CTA ========== */
.cta {
  margin-top: 80px;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--color-secundario), var(--color-primario));
  border-radius: 16px;
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta a {
  display: inline-block;
  padding: 14px 30px;
  background-color: white;
  color: var(--color-secundario);
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta a:hover {
  background-color: var(--color-acento);
  color: #000;
}

/* ========== IMÁGENES ========== */
.image-box {
  width: 100%;
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ========== GALERÍA ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(90deg, var(--color-secundario), var(--color-primario));
  color: #ffffff;
  padding: 60px 0 20px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer h3,
.footer h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
}

/* Footer alternativo (oscuro) */
.footer {
  background-color: #1f1f1f;
  color: #cccccc;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}

/* ========== ICONOS ========== */
.icon {
  width: 18px;
  vertical-align: middle;
  margin-right: 8px;
  filter: brightness(0) invert(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo img {
    max-width: 220px;
  }
}
/* ========== ABOUT SECTION INSTITUCIONAL ========== */

.about-section {
  padding: 120px 0;
  background: linear-gradient(
    135deg,
    var(--color-secundario),
    var(--color-primario)
  );
}

.hero-impacto {
    background: var(--color-primario);
    color: white;
    padding: 60px 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background: #f4f4f4;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    gap: 30px;
}

.metrics h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.icon-card {
    text-align: center;
}

.icon-card i {
    font-size: 40px;
    color: var(--color-primario);
    margin-bottom: 15px;
}

.municipios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.municipios span {
    background: var(--color-primario);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--color-primario);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.about-container {
  background-color: #ffffff;
  padding: 60px 70px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-container h1 {
  text-align: center;
  color: var(--color-secundario);
  margin-bottom: 20px;
}

.about-summary {
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Animación suave al aparecer */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeUp 0.8s ease forwards;
}

/* ========== PROGRAMAS SECTION ========== */

.programs-section {
  padding: 120px 0;
  background-color: #ffffff; /* Fondo blanco */
  display: flex;
  justify-content: center;
  text-decoration: none !important;
}

.programs-container {
  width: 90%;
  max-width: 1200px;
  background: linear-gradient(
    135deg,
    var(--color-secundario),
    var(--color-primario)
  ); /* Color institucional */
  border-radius: 40px;
  padding: 80px 60px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.programs-container h2 {
  margin-bottom: 60px;
  color: #ffffff;
  font-size: 28px;
}


/* Carrusel horizontal */

.programs-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}

.programs-carousel::-webkit-scrollbar {
  height: 8px;
}

.programs-carousel::-webkit-scrollbar-thumb {
  background: var(--color-primario);
  border-radius: 10px;
}

/* Tarjetas */

.program-card {
  min-width: 220px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 25px;
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--color-acento);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.program-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;   /* 👈 IMPORTANTE */
  background-color: #ffffff;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.program-card h4 {
  color: var(--color-secundario);
}

/* Botón */

.programs-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 30px;
  background: var(--color-secundario);
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.programs-btn:hover {
  background: var(--color-primario);
}

.program-link {
  text-decoration: none;
}

.program-link {
  display: block;
}

.program-link:hover .program-card {
  transform: translateY(-8px);
}

.program-card {
  cursor: pointer;
}

.program-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.program-link h4 {
  text-decoration: none !important;
  color: var(--color-secundario);
}

.program-link * {
  text-decoration: none !important;
}

.programs-section a,
.programs-section a:link,
.programs-section a:visited,
.programs-section a:hover,
.programs-section a:active,
.programs-section .program-card h4,
.programs-section .program-card h4 a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.program-card h4 {
  text-decoration: none !important;
}

/* HERO PROGRAMAS */
.hero-programas {
    background: linear-gradient(135deg, #8e2de2, #ff4b8b);
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.hero-programas h1 {
    font-size: 2.7rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-programas p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* CATEGORÍAS */
.categoria {
    margin-top: 60px;
    margin-bottom: 25px;
    border-left: 5px solid #2563eb;
    padding-left: 15px;
}

/* GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* CARD NUEVA */
.program-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.program-card h3 {
    margin-bottom: 10px;
}

/* BOTÓN */
.btn-programa {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #8e2de2, #ff4b8b);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn-programa:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* CTA INSTITUCIONAL BLANCO */
.cta-programas {
    margin-top: 100px;
    background: #ffffff;
    text-align: center;
    padding: 0px 20px;
    position: relative;
}

/* Línea decorativa superior */
.cta-programas::before {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #8e2de2, #ff4b8b);
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}

.cta-programas h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #222;
}

.cta-programas p {
    max-width: 650px;
    margin: auto;
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #555;
}

/* BOTÓN INSTITUCIONAL */
.btn-impacto {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #8e2de2, #ff4b8b);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s ease;
}

.btn-impacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* LOGO PROGRAMA */
.program-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.program-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.impact-bar {
    background: #f4f4f4;
    padding: 40px 20px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    text-align: center;
}

.impact-grid h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--color-primario);
}

.impact-grid p {
    font-size: 14px;
    color: #555;
}

.subtitulo {
    max-width: 700px;
    margin: 10px auto 30px;
    color: #666;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.municipios {
    margin-top: 20px;
}
.hero-section {
    text-align: center;
    padding: 80px 20px;
}

.hero-text {
    max-width: 700px;
    margin: 20px auto;
    font-size: 18px;
}

.bg-light {
    background: #f7f7f7;
}

.bg-dark {
    background: #111;
    color: #fff;
}

.contact-section {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* HERO PROGRAMA */
.programa-hero {
    background: #f5f5f5;
    padding: 60px 0;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero-logo img {
    width: 220px;
    border-radius: 10px;
}

/* SPLIT SECTION */
.split-section {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.split-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
}

.split-content {
    flex: 1;
}

/* GALERÍA */
.galeria-programa {
    background: #fafafa;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.galeria-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.galeria-grid img:hover {
    transform: scale(1.05);
}

/* =========================
   HERO PROGRAMA
========================= */

.program-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff, #f8f0f6);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.program-hero-text {
    flex: 1;
}

.program-hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #b0126b;
}

.subtitle {
    font-weight: 600;
    margin-bottom: 15px;
}

.highlight-list {
    margin-top: 15px;
    padding-left: 0;
    list-style: none;
}

.highlight-list li {
    margin-bottom: 8px;
}

.program-hero-image img {
    max-width: 250px;
    width: 100%;
    height: auto;
}

/* =========================
   CARDS
========================= */

.card-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================
   COLUMNAS
========================= */

.two-columns {
    display: flex;
    gap: 30px;
    align-items: center;
}

.two-columns img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    object-fit: cover;
}

/* =========================
   TEMAS GRID
========================= */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.topic-item {
    background: #f8f0f6;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* =========================
   GALERÍA
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .program-hero {
        flex-direction: column;
        text-align: center;
    }

    .two-columns {
        flex-direction: column;
    }
}

.producer {
    margin-top: 15px;
    padding: 15px;
    background: #f8f0f6;
    border-left: 4px solid #b0126b;
    border-radius: 6px;
}

/* HERO PROGRAMA */
.program-hero {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.program-logo {
    width: 180px;
    border-radius: 15px;
}

.program-hero-text h1 {
    margin: 0;
    font-size: 32px;
}

.subtitle {
    font-size: 18px;
    color: #666;
}

/* CONTENIDO */
.program-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.highlight {
    font-weight: bold;
    color: var(--color-primario);
}

/* LISTA ROMANA */
.roman-list {
    list-style-type: upper-roman;
    padding-left: 20px;
}

.roman-list li {
    margin-bottom: 8px;
}

/* GALERÍA DOS COLUMNAS */
.gallery-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-two img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-two img:hover {
    transform: scale(1.03);
}
/* ============================= */
/* RESPONSIVE HEADER PRO */
/* ============================= */

@media (max-width: 768px) {

    /* Ocultamos completamente el logo del header */
    .logo-wrapper {
        display: none;
    }

    /* Ajustamos el header */
    .main-header {
        padding: 18px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-left,
    .nav-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

}