 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html{
    background-color: rgb(255, 255, 255);
    }
    body {
      font-family: Arial, sans-serif;
      overflow-x: hidden;
      background-color: rgb(255, 255, 255);
    }
    /* NAV */
    header {
      width: 100%;
      background: linear-gradient(90deg #4EAA4D),#267E91;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    .navbar {
      max-width: 1200px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      background-color: linear-gradient(180deg, #267E91, #4EAA4D);
    }
    .navbar .logo img {
      height: 80px;
    }
    .navbar ul {
      list-style: none;
      display: flex;
      gap: 1.5rem;
    }
    .navbar ul li a {
      text-decoration: none;
      color: #ffffff;
      font-weight: 600;
    }
    .navbar ul li a:hover {
      color: #000000;
    }

    .Titulo{ 
     color: white;    
     text-shadow: rgb(0, 0, 0) 2px 2px 3px;
    margin-left: -120px;
}

    /* SLIDER */
    .slider {
      position: relative;
      width: 100%;
      height: 80vh;
      overflow: hidden;
    }
    .slides {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.6s ease;
    }
    .slide {
      width: 100%;
      flex-shrink: 0;
      height: 100%;
      position: relative;
    }
    .slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    background-color: black;
    }
    .slide .caption {
      position: absolute;
      bottom: 20%;
      left: 10%;
      color: white;
      z-index: 2;
    }
    .slide .caption h1 {
      font-size: 2.5rem;
    }
    .slide .caption p {
      font-size: 1.2rem;
    }
    .slide .caption a {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.8rem 1.5rem;
      background: linear-gradient(90deg, #2a9d2f, #007BFF);
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
    }

    /* Controls */
    .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 2rem;
      color: white;
      background: rgba(0,0,0,0.4);
      padding: 0.5rem;
      cursor: pointer;
      border-radius: 50%;
      z-index: 5;
    }
    .prev { left: 20px; }
    .next { right: 20px; }

    /* Dots */
    .dots {
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.5rem;
    }
    .dots span {
      width: 12px;
      height: 12px;
      background: rgba(255,255,255,0.6);
      border-radius: 50%;
      cursor: pointer;
    }
    .dots .active {
      background: white;
    }


    /* Sección Noticias */
    .noticias {
      background: #e6f0ec;
      padding: 50px 20px;
      text-align: center;
    }
    .noticias h2 {
      margin-bottom: 30px;
    }
    .noticias-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      max-width: 1200px;
      margin: auto;
    }
    .noticia {
      background: white;
      border-radius: 10px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
      overflow: hidden;
      text-align: left;
    }
    .noticia img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
    .noticia h3 {
      margin: 15px;
    }
    .noticia p {
      margin: 0 15px 15px;
      font-size: 14px;
      color: #555;
    }

    /* Sección Historias de Éxito */
    .historias {
      background: #2c8898;
      color: white;
      padding: 50px 20px;
      text-align: center;
    }
    .historias h2 {
      margin-bottom: 30px;
      font-size: 2.3rem;
      color: #000;
      background-color: white;
      width: 900px;
      margin: auto;
      padding: 10px;
      border-radius: 20px;

    }
    .historia {
      
      max-width: 665px;
      margin: auto;
      margin-top: 20px;
      background: 4EAA4D;
      color: #000;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
      text-align: left;
    }
    .historia iframe{
      width: 100%;
      height: 300px;
      object-fit:cover;
    }
    .historia h3 {
      margin: 15px;
    }
    .historia p {
      margin: 0 15px 15px;
    }

    /* Banner final */
    .banner {
      background: rgb(128, 0, 128);
      text-align: center;
      padding: 40px 20px;
    }
    .banner a {
      background: white;
      color: purple;
      padding: 15px 30px;
      border-radius: 30px;
      font-weight: bold;
      text-decoration: none;
      transition: 0.3s;
    }
    .banner a:hover {
      background: #ddd;
    }

      .container {
      display: flex;
      justify-content: space-between;
      align-items: stretch;
      padding: 20px;
    }

    .texto {
      flex: 1;
      padding: 20px;
     color: rgb(0, 0, 0);
        font-size: 1.3rem;
    }

    .gallery {
      flex: 1;
      max-width: 600px;
      height: 500px; /* altura fija del cuadro */
      position: relative;
      border-radius: 10px;
      overflow: hidden;
    }

    .gallery img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain; /* mantiene la imagen ajustada sin deformar */
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .gallery img.active {
      opacity: 1;
    }

/* CSS */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #267E91, #4EAA4D); /* celeste a verde */
  color: white;
  padding: 15px 40px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.footer-logo {
  height: 35px; /* ajusta según tu logo */
  margin-right: 10px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-right a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footer-right a:hover {
  text-decoration: underline;
}

.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.tiktok-container{
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
}

.subtitulo{
  font-size: 85%;
  color: white;
  text-shadow: black 2px 2px 3px;
  position: absolute;
  margin-top: 50px;
  margin-left: 220px;
}
.facebook-container{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Submenú */
.submenu {
  display: none;
  position: absolute;
  top: 70%; /* debajo de "Noticias" */
  right: -10;
      background: #007BFF;
  border-radius: 100px;
  padding: 0;
  margin: 0;
  min-width: 200px;

}

.submenu li a {
  padding: 10px 15px;
  color: white;
}

.submenu li a:hover {
 background-color: #007BFF;    
  border-radius: 100px;
}

/* Mostrar submenú al hacer hover */
.menu li:hover > .submenu {
  display: flex;
}

