/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #444;
    background-color: #FAFAFA; /* Blanco humo */
    overflow-x: hidden;

}
/* Header */
header {
    background-color: #9cddc8; 
    padding: 20px 30px; /* Reducimos el padding para hacer el header más compacto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px; /* Bordes redondeados solo en la parte inferior */
    box-shadow: 
    0px 8px 12px rgba(0, 0, 0, 0.2),  /* Sombra más compacta */
    0px 3px 5px rgba(0, 0, 0, 0.1),   /* Sombra secundaria más suave */
    inset 0px -2px 4px rgba(0, 0, 0, 0.05); /* Sombra interna sutil */
    position: relative; /* Para que los elementos hijos con "absolute" se posicionen respecto a él */
    z-index: 1000; /* Asegurar que esté por encima del contenido */
}

/* Logo */
.logo img {
    height: 80px; /* Reducimos el tamaño del logo */
    width: auto; /* Mantiene proporción */
    display: block;
}

/* Navbar */
.navbar {
    display: flex;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;    
}

.nav-links li {
    position: relative;
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s ease-in-out;
}

.nav-links a:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Ocultar checkbox */
#menu-toggle,
#submenu-toggle {
    display: none;
}

/* Menú navegación */
.navbar {
    display: flex;
}


/* Menú hamburguesa */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Submenú */
.dropdown {
    display: none;
    position: absolute;
    background: #444;
    top: 100%;
    left: 0;
    min-width: 180px;
    list-style: none;
    padding: 0;
}

.dropdown li {
    display: block;
}

.dropdown a {
    padding: 10px;
    display: block;
}

/* Estilos en pantalla grande */
@media (min-width: 769px) {
    .dropdown-parent:hover .dropdown {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 110px;
        left: 0;
        width: 100%;
        background: #9cddc8; /* Color del menú */
        padding: 10px 0;
        z-index: 1000;
    }

    /* Activar menú con checkbox */
    #menu-toggle:checked ~ .navbar {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        background: #9cddc8; /* Mismo color del menú */
        padding: 10px 0;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
        color: #222; /* Color del texto */
        font-weight: bold;
        text-decoration: none;
    }

    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    /* Submenú en móvil */
    .dropdown {
        display: none;
        position: static;
        background: #8cc3b5; /* Color ligeramente más oscuro para el submenú */
        width: 100%;
        text-align: center;
    }

    #submenu-toggle:checked ~ .dropdown {
        display: block;
    }

    .dropdown a {
        color: #222;
        padding: 10px;
    }

    .dropdown a:hover {
        background: rgba(0, 0, 0, 0.1);
    }
}


/* Estilos para el dropdown */
.dropdown {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    width: 180px;
    z-index: 1001;
}

.nav-links li:hover .dropdown {
    display: block;
}

.dropdown li {
    display: block;
    margin: 0;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    color: #444;
}

.dropdown a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Estilos generales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #fdd835;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #fff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
  }

  
  /* Hero section */
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/hero-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding: 5rem 2rem;
    text-align: center;
  }
  
  .carousel-content {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .carousel-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
  }
  
  .carousel-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Sección de valores */
  .values-section {
    padding: 4rem 2rem;
    background-color: var(--light-color);
  }
  
  .values-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
  }
  
  .values-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto;
  }
  
  .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .value-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .value-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
  }
  
  .value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  /* Sección de servicios */
  .services-section {
    padding: 4rem 2rem;
    background-color: white;
  }
  
  .services-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
  }
  
  .services-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto;
  }
  
  .services-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .tab {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .tab h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
  }
  
  .tab h3 i {
    margin-right: 0.8rem;
    color: var(--secondary-color);
  }
  
  .tab ul {
    list-style-position: inside;
  }
  
  .tab li {
    margin-bottom: 0.5rem;
  }
  /* Estilos para las secciones de cards */
.health-section, .solidaria-section {
  padding: 3rem 2rem;
  background-color: #f8f9fa;
  text-align: center;
}

.health-section h2, .solidaria-section h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  position: relative;
}

.health-section h2::after, .solidaria-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #e74c3c;
  margin: 0.5rem auto;
}

.health-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.health-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.health-card:hover {
  transform: translateY(-5px);
}

.health-card i {
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.health-card p {
  font-size: 1.1rem;
  color: #333;
}

/* Variante para Misión Solidaria */
.solidaria-section {
  background-color: #2c3e50;
}

.solidaria-section h2 {
  color: white;
}

.solidaria-section .health-card i {
  color: #fdd835;
}
  
  /* Sección de testimonios/impacto */
  .testimonials {
    padding: 4rem 2rem;
    background-color: var(--light-color);
  }
  
  .testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
  }
  
  .testimonials h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto;
  }
  
  .impact-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
  }
  
  .stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
  }
  
  /* Sección de videos */
  .videos {
    padding: 4rem 2rem;
    background-color: white;
  }
  
  .videos h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
  }
  
  .videos h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto;
  }
  
  .video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .video-container iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Footer */
  .footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .footer-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
  }
  
  .contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
  }
  
  .contact-info i {
    margin-right: 0.8rem;
    color: var(--accent-color);
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
  }
  
  .social-icons a:hover {
    background-color: var(--secondary-color);
  }
  
  .newsletter input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .newsletter button {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .newsletter button:hover {
    background-color: #ffeb3b;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .menu-icon {
      display: block;
    }
  
    .nav-links {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background-color: var(--primary-color);
      flex-direction: column;
      align-items: center;
      padding: 2rem 0;
      transition: left 0.3s;
    }
  
    #menu-toggle:checked ~ .navbar .nav-links {
      left: 0;
    }
  
    .nav-links li {
      margin: 1rem 0;
    }
  
    .dropdown {
      position: static;
      width: 100%;
      box-shadow: none;
      opacity: 1;
      visibility: visible;
      display: none;
    }
  
    .dropdown-parent:hover .dropdown {
      display: block;
    }
  
    .hero {
      padding: 3rem 1rem;
    }
  
    .carousel-text h1 {
      font-size: 2rem;
    }
  }
  
  /* Animaciones */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .value-card, .tab, .health-card {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  .value-card:nth-child(2) { animation-delay: 0.1s; }
  .value-card:nth-child(3) { animation-delay: 0.2s; }
  .value-card:nth-child(4) { animation-delay: 0.3s; }
  .tab:nth-child(2) { animation-delay: 0.1s; }
  .tab:nth-child(3) { animation-delay: 0.2s; }
  .health-card:nth-child(2) { animation-delay: 0.1s; }
  .health-card:nth-child(3) { animation-delay: 0.2s; }
  
/* Estilos generales del footer */
.footer {
    background-color: #9cddc8;
    color: black;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto; /* Empuja el footer hacia abajo */
    min-height: 200px; /* Ajusta la altura mínima si es necesario */
}

/* Contenedor principal con tres secciones */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    align-items: flex-end; /* Alinear todo en la parte inferior */
    padding: 10px 0;
}

/* Secciones del footer */
.footer-section {
    flex: 1;
    text-align: center;
    padding: 10px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinear contenido al final */
}

/* Estilos para el logo */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Asegura que ocupe toda la altura del contenedor */
}

.footer-logo img {
    width: 120px;
}


/* Estilos para el logo */
.footer-logo img {
    width: 120px;
    margin-bottom: 10px;
}

/* Información de contacto */
.contact-info p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Redes sociales */
.social-media a {
    display: inline-block;
    margin: 5px;
}

.social-media img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.1);
}

/* Enlaces legales */
.footer-links a {
    color: black;
    text-decoration: none;
    margin: 5px 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Línea separadora */
.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 10px; 
    padding-top: 5px; 
    border-top: 1px solid rgba(0, 0, 0, 0.358);
    font-size: 0.85rem;
}