/* Agrego estilo para justificar el texto de 'Quiénes somos' */
.about-text p {
  text-align: justify;
}

/* ================================
   RESET Y TIPOGRAFÍA
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}



body, html {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #212529;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', serif;
  color: #0a3d62;
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: justify;
}
button { cursor: pointer; }

/* ================================
   HEADER / NAV
================================ */
.site-header {
  position: fixed;
  top: 0;
  left:0;
  width: 100%;
  background: #fff;
  background-color: rgba(255,255,255,0.95);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; }
.logo { height: 50px; margin-right: 0.5rem; }
.nav-list { list-style: none; display: flex; gap: 25px;  border: 3px ;  padding: 0.5rem 1rem;}
.nav-list li a { color: #0a3d62; font-weight: 600;border: 3px ; padding: 8px 10px; border-radius:20px;transition:all 0.3s ease; }
.nav-list li a:hover{background-color: #6469f5; color: #0a3d62;}
.nav-toggle { display: none; font-size: 1.5rem; background:none; border:none; }
.nav a{}

/* ================================
   HERO
================================ */
.hero {
  height: 90vh;
  position: relative;
margin-top:80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  padding-top: 50px; /* altura aproximada del header */

}
.hero-media {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-media .overlay {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
  z-index: 2;
  max-width: 800px;
}
.hero-content h1{color: #fff;}
.hero-title { font-size: 3rem; margin-bottom: 1rem; }
.hero-sub { font-size: 1.25rem; margin-bottom: 2rem; }
.hero-cta .btn { margin: 0 0.5rem; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; transition: all 0.3s ease; font-weight: 600; }
.btn.primary { background-color: #0a3d62; color: #fff; }
.btn.primary:hover { background-color: #062746; }
.btn.ghost { background-color: transparent; border: 2px solid #f6b93b; color: #f6b93b; }
.btn.ghost:hover { background-color: #f6b93b; color: #0a3d62; }
.btn.small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ================================
   SECCIONES GENERALES
================================ */
.section-title { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
.cards-grid, .about-grid, .events-grid, .testi-slider, .contact-grid {
  display: grid; gap: 1.5rem;
}
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card img { width:100%; height:180px; object-fit:cover; }
.card-body { padding:1rem; }
.card-body h3 { margin-bottom:0.5rem; color:#6a1b1a; }
.card-body p { font-size:0.95rem; margin-bottom:0.75rem; }
/* */
section#sobre-nosotros{margin-top: 0 !important; padding-top: 0 !important;}
.about-wrap  {margin-top: 0  !important; padding-top:0 !important; }
.about-grid .about-text1 { text-align: justify;}
/*.about-grid{margin-top: 0  !important; padding-top:0 !important; }
.about-text h2{  margin-top: 0  !important; padding-top:0 !important; }
.about-grid{display: flex; align-items: center;}

.about-grid .about-text1 h2 { text-align: center; font-size: 2rem; margin-bottom: 1.5rem; }
.about-grid .about-values{ width: 50%;}
.about-grid .about-values img{ width: 100%; height: 100%; object-fit: cover;}
.about-grid { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); align-items:center; }*/

.about-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.about-text1,
.about-values {
  
}

.values-list { list-style:none; }
.values-list li { margin-bottom:1rem; }
.values-list h3 { color:#f6b93b; margin-bottom:0.3rem; }
.values-list p { font-size:0.95rem; }

.testi-slider { position: relative; overflow: hidden; }
.testi-item { display:none; transition: opacity 0.5s ease; }
.testi-item.active { display:block; }
.testi-item blockquote { font-style: italic; background:#f8f9fa; padding:1rem; border-left:5px solid #0a3d62; }
.testi-item cite { display:block; margin-top:0.5rem; font-style: normal; font-weight:600; }
.testi-controls { text-align:center; margin-top:1rem; }
.dot { width:12px; height:12px; border-radius:50%; border:none; margin:0 4px; background:#ccc; display:inline-block; transition: background 0.3s; }
.dot.active { background:#0a3d62; }

.events-grid { grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.event-card { background:#fff; padding:1rem; border-radius:8px; box-shadow:0 3px 10px rgba(0,0,0,0.08); }
.event-card time { font-weight:600; color:#6a1b1a; display:block; margin-bottom:0.5rem; }
.event-card h3 { margin-bottom:0.5rem; }
.event-card p { font-size:0.9rem; }

.contact-grid { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:2rem; }
.contact-form label { display:block; margin-top:1rem; font-weight:600; }
.contact-form input, .contact-form select, .contact-form textarea { width:100%; padding:0.5rem; border:1px solid #ccc; border-radius:6px; margin-top:0.3rem; }
.contact-form textarea { resize:none; }
.form-actions { margin-top:1rem; display:flex; gap:1rem; }
.contact-info h3 { margin-bottom:0.5rem; color:#0a3d62; }
.contact-info p, .contact-info a { font-size:0.95rem; margin-bottom:0.3rem; display:block; color:#212529; }
.contact-info .map { height:200px; background:#e9ecef; border-radius:8px; margin:1rem 0; }
.contact-info .socials a { margin-right:1rem; font-weight:600; color:#0a3d62; }

.site-footer { background:#0a3d62; color:#fff; padding:1.5rem 0; text-align:center; margin-top:3rem; }
.site-footer a { color:#f6b93b; margin:0 0.5rem;  text-align: center;}
.site-footer p { text-align: center;}
.site-nav a{ text-align: center;}
.footer-inner{ text-align: center;}

.about-text h2{  margin-top: 5rem  !important; }
/* ================================
   ANIMACIONES SUAVES (fade-in / scroll)
================================ */
[data-ani] { opacity:0; transform: translateY(20px); transition: all 0.7s ease; }
[data-ani].in-view { opacity:1; transform: translateY(0); transition-delay: 0s; }
[data-delay] { transition-delay: 0.2s; }

/* ================================
   RESPONSIVE
================================ 
@media(max-width:768px){
  .nav-list { flex-direction: column; position:absolute; top:100%; right:0; background:#fff; width:200px; max-height:0; overflow:hidden; transition:max-height 0.3s ease; }
  .nav-list.open { max-height:500px; }
  .nav-toggle { display:block; }
}
*/



/* Reparar la estructura de la sección "Quiénes somos" 
.about-grid {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start !important; QUITA EL CENTRADO VERTICAL 
    justify-content: space-between;
    padding-top: 0 !important;
    margin-top: 0 !important;
   
}*/

/* Asegurar columnas 50/50 
.about-text1, .about-values {
    width: 50% !important;
}
*/
/* Subir el título */
.about-text1 h2, 
.about-text h2 {
    margin-top: 20px !important;
    padding-top: 0 !important;
     margin-left: 2rem;
}
.about-text1 { margin-left: 2.5rem;
margin-right: 2rem;}

.about-text1 p{ font-size: 1.2rem;
    line-height: 1.6;}


/* ================================
   FIX DESBORDAMIENTO HORIZONTAL
================================ */

/* Evita scroll lateral */
html, body {
  width: 100%;
  overflow-x: hidden;
}



/* Header bien contenido */
.site-header,
.header-inner {
  width: 100%;
  max-width: 100vw;
}

/* Hero corregido */
.hero,
.hero-media {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

/* Imágenes siempre responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================
   FOOTER - REDES SOCIALES CENTRADAS
================================ */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 1rem;
}

.socials a img {
  width: 32px;
  height: 32px;
}
/* ================================
   FIX MAPA + FOOTER
================================ */

/* Contenedor del mapa */
.contact-info .map {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Iframe de Google Maps */
.contact-info .map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Asegura que el footer quede debajo */
.site-footer {
  position: relative;
  clear: both;
  z-index: 1;
}

@media (max-width: 600px) {

  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: justify;
  }

  .about-text1 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  .about-text1 p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about-text1 h2,
  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }

    /* ================================
   FIX BLOQUE BLANCO BAJO HEADER
================================ */
@media (max-width: 768px) {

  .site-header {
    background-color: #ffffff;
  }

  .header-inner {
    padding: 0.5rem 0;
  }

  .logo {
    height: 42px;
  }
}


    @media (max-width: 768px) {
  .hero {
    margin-top: 72;
    padding-top: 70px; /* iguala la altura real del header */
  }
}

.hero-media {
  margin-top: 0 !important;
}

    /* ====== CORRECCIÓN MENÚ MÓVIL SUPERPUESTO ====== */

/* Asegura que el footer siempre esté arriba */
.site-footer {
  position: relative;
  z-index: 5;
}


    /* ====== AJUSTE HERO TEXTO EN MOVIL ====== */
@media (max-width: 768px) {

  .hero-content {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    text-align: center;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }

}

    /* ====== FIX MENU MOVIL (Z-INDEX) ======
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #fff;
}

.main-nav {
  position: relative;
  z-index: 10000;
}

.nav-list {
  z-index: 10001;
} */

/* ================================
   MENÚ MÓVIL LIMPIO Y FUNCIONAL
================================ */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);

    display: none;
    flex-direction: column;
    align-items: center;

    padding: 1rem 0;
    z-index: 9999;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    white-space: normal; /* 🔑 evita cortes */
  }
}





  

@media (max-width: 768px) {

  .site-header {
    overflow: visible;
  }
}



    .about-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-text,
.imagen2 {
  flex: 1;
}


.imagen2 img {
  max-width: 100%;
  height: auto;
}

    .imagen2 img {
  max-width: 70%;
  height: auto;
}


/* 📱 Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .imagen2 {
    margin-top: 20px;
  }
}

.footer-nav{ text-aling: center}


 /* formulario*/



    .contact-form input.error {
  border: 2px solid #e74c3c;
  background-color: #fff5f5;
}

.contact-form input.success {
  border: 2px solid #2ecc71;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: none;
}

.error-msg.active {
  display: block;
}



    /* 
   BOTONES DE DESCARGA*/
.info-downloads {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-downloads p {
  width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0a3d62;
}

.btn-info {
  display: inline-block;
  padding: 10px 16px;
  background-color: #f1f3f5;
  color: #0a3d62;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #dcdcdc;
  transition: all 0.3s ease;
}

.btn-info:hover {
  background-color: #0a3d62;
  color: #ffffff;
}

    .info-downloads {
  margin: 1.5rem 0;
}

.info-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin: 6px 8px 6px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  background: #f8f9fa;
  color: #0a3d62;
  transition: all 0.3s ease;
}

.info-downloads a:hover {
  background: #0a3d62;
  color: #fff;
}
    
.info-downloads p {

color:#661923;}