/* ===============================
   ESTILOS GENERALES
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   CONTENEDORES
================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   HEADER
================================ */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;

  position: relative;
}

.nav__link {
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #800000; /* guinda */
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Botón primario */
.btn--primary {
  background: #800000;
  color: #fff;
}

.btn--primary:hover {
  background: #600000;
}

/* Botón claro */
.btn--light {
  background: #fff;
  border: 1px solid #ddd;
}

/* Botón secundario */
.btn--secondary {
  background: #444;
  color: #fff;
}

/* Botón hamburguesa */
#menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #800000;
}

/* ===============================
   HERO / SLIDER
================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__slides {
  position: relative;
}

.hero__slide {
  display: none;
  min-height: 70vh;
  padding: 2rem 0;
  background-size: cover;
  background-position: center;
  background-image: var(--bg);
  color: #fff;
  text-align: center;
}

.hero__slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  max-width: 700px;
}

.hero__cta {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero__dot {
  background: #fff;
  border: none;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero__dot.is-active {
  opacity: 1;
}

/* ===============================
   BENEFICIOS
================================ */
.beneficios-section {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
}
.beneficios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.beneficio-item {
  text-align: center;
  flex: 1 1 150px;
  max-width: 180px;
}

.beneficio-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #800000;
}

/* ===============================
   PROGRAMAS
================================ */
.programa-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.programa-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.programa-btn {
  padding: 0.8rem;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.programa-btn:hover,
.programa-btn.is-active {
  background: #800000;
  color: #fff;
}

.programa-detail {
  display: none;
}

.programa-detail.is-active {
  display: block;
}

/* ===============================
   NOTICIAS
================================ */
.news__iframe-wrapper {
  border: 1px solid #ddd;
  padding: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}
/* Utilities */
.container{width:min(1100px, 92%); margin-inline:auto}
.section{padding:72px 0}
.section--alt{background:var(--light)}
.section__header{margin-bottom:28px}
.section__header h2{margin:0 0 6px; font-size:28px}
.section__header p{color:var(--muted); margin:0}

.grid{display:grid; gap:22px}
.grid--3{grid-template-columns:repeat(3,1fr)}
@media (max-width: 960px){ .grid--3{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ .grid--3{grid-template-columns:1fr} }


/* ===============================
   CONTACTO
================================ */
/* estilo de contacto */
/* Estilo del fondo para la sección de contacto */
.section--alt {
    background-color: #f8f8f8;
}

/* Estructura de la cuadrícula de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Contenedor del formulario */
.contact-form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contenedor de la información de contacto */
.contact-info-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Estilo para las tarjetas de información de contacto */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-card__icon {
    font-size: 1.5rem;
    color: #8B0000;
}

.contact-card__body span {
    color: #333;
    font-size: 1rem;
}

/* Formulario */
.form{display:grid; gap:12px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px}
.form__row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:640px){ .form__row{grid-template-columns:1fr} }
.form__label{display:grid; gap:6px; font-weight:600}
.form__input{
  width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:12px; font:inherit;
  outline:none; transition:.15s;
}
.form__input:focus{border-color:var(--primary); box-shadow:0 0 0 4px var(--ring)}
.form__status{margin:6px 0 0; color:var(--muted)}

/* Estilos para el mapa */
.map-container {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* Media Queries para diseño responsivo */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: #222; /* Se mantiene tu variable */
  color: #e5e7eb;
  margin-top: 40px;
}

/* Contenedor de las columnas del footer */
.footer__inner {
  display: grid;
  gap: 1.5rem; /* Usamos 'rem' para un mejor control del espaciado */
  grid-template-columns: 2fr 1fr 1fr 1fr; /* 4 columnas: una más grande y tres iguales */
  padding: 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__copy {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 1.5rem 0;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Media Query para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr; /* Las columnas se apilan */
    text-align: center;
  }
}

/* Estilos de los títulos de las columnas */
.footer__col h4 {
  margin: 0 0 1rem; /* Espaciado ajustado */
  color: #fff;
  font-size: 1.1rem;
}

/* Estilos de los párrafos en la primera columna */
.footer__col p {
  margin: 0.25rem 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

.list {
  list-style: none;
  padding: 0;
}

.list li {
  margin-bottom: 0.5rem;
}

.list a {
  color: #ccc;
  transition: color 0.3s ease;
}

.list a:hover {
  color: #fff;
}

/* SOCIAL  */
.social {
  display: flex;
  justify-content: center;  /* centra horizontal */
  align-items: center;      /* centra vertical */
  gap: 1rem;                /* espacio entre elementos */
  text-align: center;
  flex-wrap: wrap;          /* si no entra en pantallas pequeñas, pasa a la siguiente línea */
}

.social h4 {
  margin: 0;
  color: #ddd; /* guinda */
}

.social-icon {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* ===============================
   BOTÓN VOLVER ARRIBA
================================ */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #800000;
  color: #fff;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  display: none;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .programa-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block; /* mostrar hamburguesa */
    color: #800020; /* guinda */
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 10px;
    flex-direction: column;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none; /* oculto por defecto */
    z-index: 999;
  }

  .nav.is-open {
    display: flex; /* visible cuando JS activa */
  }

  .nav__link {
    display: block;
    padding: 10px;
    text-align: center;
    width: 100%;
    color: #800020;
  }

  .nav__link:hover {
    background: #f1f1f1;
  }
}


@media (max-width: 600px) {
  .hero__slide {
    padding: 4rem 1rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .beneficios-container {
    gap: 1rem;
  }
}


/*  submenu*  */


.nav__link {
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav__link:hover {
  color: #800000; /* guinda */
}

/* Línea animada debajo */
.nav__link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #800000;
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}


/* Submenú (escritorio) */
/* Quitar los puntos de los menús */
.nav,
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}


.submenu {
  display: none;
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  top: 100%;   /* debajo del link padre */

  border: 1px solid #ddd;
  border-radius: 5px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.submenu li a:hover {
  background: #800000;
  color: #fff;
}

/* Mostrar submenú en hover */
.nav__item:hover > .submenu {
  display: block;
}

/* ===== SUBMENÚ EN MÓVILES ===== */
@media (max-width: 768px) {
 

  .nav__item {
    position: relative;
    width: 100%;
  }

  .submenu {
    position: absolute;
    top: 0;         /* se alinea arriba del link padre */
    left: -100%;   /* 👈 aparece al lado derecho del padre */
    min-width: 165px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  /* Opción: que ocupe todo el alto del padre si quieres menú tipo panel */
  .submenu li a {
    padding: 0.7rem 1rem;
  }
}
