

/* ============================================
   COLORES PRINCIPALES UNIFICADOS
   ============================================ */
:root {
  --color-primary: #C41E3A;
  --color-primary-dark: #9a172e;
  --color-primary-light: #e31e24;
  --color-bg-light: #f7f7f7;
  --color-bg-dark: #121212;
  --color-text-light: #FFFFFF;
  --color-text-dark: #333333;
  --color-gray: #666666;
  --color-gray-light: #f8f8f8;
  --color-gray-dark: #444444;
  --color-border: #e5e5e5;
  --color-border-dark: #444444;
  --color-bg: #f2eaf2;
  --color-footer:#020617;

}


/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.bg-gray {
    background-color: var(--color-bg);
}

.bg-gray-light {
    background-color: var(--color-bg-light);
}

/* ============================================
   TIPOGRAFÍA UNIFICADA
   ============================================ */
.font-serif {
  font-family: 'Crimson Pro', Georgia, serif;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #C41E3A;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #9a172e;
}


.txt-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
  font-weight:500;
}

.text-subtitle {
  color: var(--color-primary);
  text-align: center;
}
.text-subtitle-no-center {
  color: var(--color-primary);

}
.text-italic {
  font-style: italic;

}


.bg-primary {
  background-color: var(--color-primary);

}

.border-primary {
  border-color: var(--color-primary);
}

/* ============================================
   COMPONENTES REUTILIZABLES
   ============================================ */

/* Contenedores */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section-padding {
  padding: 80px 0;

}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Tarjetas */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.cards-images {
    height: 350px;
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    justify-content: center;

}
.cards-images-icon{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-content {
    padding: 1.8rem;
}

/* Encabezados de sección */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 15px auto 0;
}

/* ============================================
   LAYOUT Y GRID
   ============================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ============================================
   ESPACIADO UNIFICADO
   ============================================ */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* ============================================
   COMPONENTES ESPECÍFICOS
   ============================================ */

/* Barra superior de contacto */
.top-bar {
  background-color: #f8f8f8;
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: var(--color-gray);
}

.top-bar a:hover {
  color: var(--color-primary);
}

/* Encabezado principal */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 580;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #575656;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}


.video-container {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      /*border-radius: 10px;*/
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .video-container img {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity 1s ease;
      z-index: 2;
    }
    .video-container iframe {
      width: 100%;
      height: 130%;
      border: none;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      pointer-events: none; /* 🔒 Bloquea interacción con el video */
    }

/* Hero sections */
.hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-collage {
  background-color: var(--color-gray-light);
  padding: 3rem 0;
}





/* Secciones de contenido */



/* About us Section */
.aboutus-container {
    display: flex;
    /* Por defecto en movil: columna (uno sobre otro) */
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* Espacio ms peque09o en mvil */
}

.aboutus-image {
    width: 100%; /* Ocupa todo el ancho en mvil */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.aboutus-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.aboutus-content {
    width: 100%; /* Ocupa todo el ancho en mvil */
    text-align: left; /* Alineado a la izquierda en mvil */
}

/* --- Pantallas Grandes (Escritorio) --- */
@media (min-width: 768px) {
    .aboutus-container {
        /* Volver a ponerlos de lado */
        flex-direction: row;
        gap: 3rem;
    }

    .aboutus-image, .aboutus-content {
        /* Se reparten el espacio 50/50 */
        flex: 1;
    }

    .aboutus-content {
        text-align: left; /* Alineado a la izquierda en escritorio */
    }
}

.content-section {
    padding: 4rem 1.5rem; /* A�0�9adimos padding a los lados para que el texto no toque el borde del cel */
}
/* ===== ABOUT US SECTION 3 columns ===== */
.container_3columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem; /* MENOS separaci��n */
    justify-items: center; /* CENTRA contenido */
}

/* ===== IMAGEN ===== */
.container_3columns-image {
    width: 80%;
    max-width: 280px; /* controla tama�0�9o */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto; /* centra */
}

.container_3columns-image img {
    width: 80%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== CONTENIDO ===== */
.container_3columns-content {
    width: 100%;
    max-width: 280px;
    text-align: center;
}
.container_3columns > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}


/* ===== TABLET ===== */
@media (min-width: 768px) {
    .container_3columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .container_3columns-content {
        text-align: left;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .container_3columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.1rem; /* columnas m��s juntas */
    }
}

/*Links*/

.style-links {
    list-style: none;
}

.style-links li {
  color:var(--color-gray-dark);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;

}

.style-links a {
    color: var(--color-gray-dark);
    transition: var(--transition);
}

.style-links a:hover {
    color: var(--color-primary);
}






/* Contenedor Principal */
.parallax-section {
    position: relative;
    /* Ruta de tu imagen */
    background-image: url("../images/bible.jpg");

    /* EFECTO PARALLAX: La imagen se queda fija */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* Altura y centrado de contenido */
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Capa de superposición (Overlay) */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* Blanco con 60% de opacidad */
    z-index: 1;
}

/* Contenedor del Texto */
.parallax-content {
    position: relative;
    z-index: 2; /* Por encima del overlay */
    /*width: 50%;*/
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

/* Estilo del Texto */
.parallax-text {
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: #1f2937; /* Gris oscuro */
    font-family: 'Georgia', serif; /* O la fuente que prefieras */
}

/* Ajuste para móviles (Muchos móviles no soportan 'fixed') */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll; /* Cambia a scroll normal en móviles */
        min-height: 300px;
    }
    .parallax-text {
        font-size: 1.2rem;
    }
}



/* Pie de página */
/* Footer */
footer {
    background-color: var(--color-bg-dark);
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.footer-links {
    list-style: none;
}

.footer-links li {
  color:#FFFFFF;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;

}

.footer-links a {
    color:#FFFFFF;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}


.footer-columns {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}


@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}




@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA LOS 3 SITIOS
   ============================================ */

/* Estilos específicos para Formación ASAPH */
.asaph-hero-clip {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.asaph-class-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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


/* Estilos específicos para Home */
.home-hero {
    aspect-ratio: 21/9;
    position: relative;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.home-hero h1 {
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.home-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.home-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.home-indicator.active {
    background-color: white;
}

.home-indicator.inactive {
    background-color: rgba(255, 255, 255, 0.5);
}

.home-schedule-card {
    max-width: 26rem;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.home-video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.home-event-card {
    display: flex;
    flex-direction: column;
}

.home-event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.home-group-life-img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home-group-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.home-group-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.home-group-indicator.active {
    background-color: var(--color-gray);
}

.home-group-indicator.inactive {
    background-color: var(--color-border);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 14;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--color-border);
    color: var(--color-gray);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-border);
    color: var(--color-primary);
    transform: translateY(-3px);
}





/*---*/
.home-red-underline::after {
  content: '';
  display: block;
  width: 150px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 15px auto 0;
}

.home-video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.home-video-thumbnail .play-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.home-video-thumbnail:hover .play-overlay {
  opacity: 1;
}

/* Estilos específicos para Varones */
.varones-collage-container {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
}

.varones-title-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  padding-right: 6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  z-index: 10;
}

.varones-image-collage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.varones-image-frame {
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* ============================================
   MODO OSCURO
   ============================================ */
body.dark-mode {
  background-color: var(--color-bg-dark);
  color: #e5e5e5;
}

.dark-mode .top-bar {
  background-color: #1a1a1a;
  border-bottom-color: var(--color-border-dark);
  color: #aaa;
}

.dark-mode .main-header {
  background-color: rgba(18, 18, 18, 0.95);
  border-bottom-color: var(--color-border-dark);
}

.dark-mode .card {
  background-color: #1e1e1e;
}

.dark-mode .content-section-alt {
  background-color: #1a1a1a;
}

.dark-mode .main-footer {
  border-top-color: var(--color-border-dark);
}

.dark-mode .footer-bottom {
  border-top-color: var(--color-border-dark);
}

/* ============================================
   UTILIDADES RESPONSIVAS
   ============================================ */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }
}

/* ============================================
   ANIMACIONES Y TRANSICIONES
   ============================================ */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.transition-all {
  transition: all 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}


/**//* ============================================
   MENU DE NAVEGACIÓN PRINCIPAL
   ============================================ */

   /* ===== BASE ===== */
.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
}

/* ===== NAV ===== */
.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    color: #222;
    font-size: 14px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon {
    font-size: 14px;
}

.menu-icon {
    font-size: 20px; /* Ajusta este valor a tu gusto */
    display: inline-block; /* Permite que el tamaño y rotación funcionen mejor */
    line-height: 1; /* Evita que el icono afecte la altura del renglón */
    vertical-align: middle; /* Lo alinea perfectamente con el texto de al lado */
}


/* ===== SUBMENU ===== */
.submenu {
    position: absolute;
    top: 90%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .25s ease;
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.submenu li a:hover {
    background: #f5f5f5;
}

/* Hover desktop */
.has-submenu:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== MOBILE ===== */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        right: 0;
        width: 100%;
        height: calc(100vh - 250px);
        background: #dbe0e5;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transform: translateX(100%);
        transition: transform .3s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-item,
    .nav-link {
        width: 100%;
    }

    .submenu {
        position: static;
        box-shadow: none;
        opacity: 0;
        max-height: 0;
        width: 100%; /* Ocupa todo el ancho del menú móvil */
        transform: none;
        overflow: hidden;
        visibility: hidden; /* Evita clics accidentales cuando está cerrado */
        transition: max-height .3s ease, opacity .3s ease;
    }

    .nav-item.open .submenu {
        opacity: 1;
        max-height: 1000px;
        visibility: visible;
        margin-top: 10px;
    }

    /* Rotar la flechita cuando esté abierto */
    .nav-item.open .menu-icon {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.slides {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* ===== BOTONES ===== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 50%;
    transition: background .3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,.8);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .slider {
        max-width: 100%;
    }
}

/* ===== SECTION ===== */
.visit-section {
    background: #f7f7f7;
    padding: 60px 20px;
}

.visit-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.visit-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #1e73be;
}

.visit-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #444;
}

.visit-action {
    text-align: center;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.btn-primary.full {
    width: 100%;
}

/* ===== POPUP ===== */
/* ===== POPUP OVERLAY ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 2000;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== POPUP ===== */
.popup {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    position: relative;

    max-height: 90vh;
    overflow-y: auto;

    transform: scale(.9);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.popup-overlay.active .popup {
    transform: scale(1);
    opacity: 1;
}

.popup h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e73be;
}

/* ===== FORM ===== */
.popup input,
.popup textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.popup textarea {
    resize: none;
}

/* ===== CAPTCHA ===== */
.captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.captcha span {
    font-weight: 600;
}

/* ===== CLOSE ===== */
.close-popup {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== SUCCESS ===== */
.success-message {
    display: none;
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
    color: #1e73be;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .visit-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .popup {
        padding: 22px 18px;
        width: 100%;
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BANNER SECTION ===== */
.banner-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

.banner-wrapper {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px; /* opcional */
}

/* Imagen responsive */
.banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mantener altura visual en pantallas grandes */
@media (min-width: 1024px) {
    .banner-wrapper img {
        max-height: 350px;
    }
}

/* ===== YOUTUBE CTA ===== */
.youtube-cta {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 30px;
    text-align: center;
    background: #f7f7f7;
    border-radius: 14px;
}

.youtube-cta h2 {
    font-size: 34px;
    margin-bottom: 16px;
    color: #1e73be;
}

.youtube-cta p {
    font-size: 17px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 26px;
}

/* ===== BOTÓN ===== */
.youtube-btn {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.youtube-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .youtube-cta h2 {
        font-size: 26px;
    }
    .youtube-cta p {
        font-size: 16px;
    }
}

/* ============================================
   FIN DEL ARCHIVO DE ESTILOS
   ============================================ */

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {

  .main-nav {
    position: fixed;
    top: 72px; /* altura del header */
    right: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 350px);
    background: #dbe0e5;

    /* OCULTO POR DEFECTO */
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;

    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

}

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

  .nav-item.active .submenu {
    display: block;
  }

  .icon {
    cursor: pointer;
  }
}


/*Efectos*/


/* Estilos para el efecto Fade-In */
.fade-in-image {
    /* Establece el estado inicial: transparente */
    opacity: 0;
    /* Define la duración y tipo de la transición */
    transition: opacity 2s ease-out; /* 1.5 segundos de duración */
    /* Asegura que la imagen no ocupe un espacio incorrecto mientras está invisible */
    display: block; 
}

/* Estado Activo: La clase 'is-visible' se agrega con JavaScript */
.fade-in-image.is-visible {
    /* Estado final: totalmente visible */
    opacity: 1;
}

/*
=====================================================
  Efecto de Zoom In 
*/

.zoom-in-element {
    /* 1. Estado inicial: Ligeramente más pequeño (zoom-out) y transparente */
    opacity: 0;
    transform: scale(0.9); 

    /* 2. Definir la transición: aplica la transición a ambas propiedades (opacity y transform) */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Estado Activo: La clase 'is-zoomed' se agrega con JavaScript */
.zoom-in-element.is-zoomed {
    /* Estado final: Tamaño normal (zoom-in) y totalmente visible */
    opacity: 1;
    transform: scale(1);
}
