
:root {
    --color-primario: #f4a4a4; /* Tono rosado/salmón del wireframe */
    --color-secundario: #333333;
    --color-fondo: #ffffff;
    --color-texto: #555555;
    --color-boton: #e0e0e0;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    scroll-behavior: smooth; /* ¡Magia! Scroll suave al hacer clic en los enlaces del menú */
}

/* Header y Navegación */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* Para que el menú se quede fijo al bajar */
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-secundario);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Estilo especial para el botón DONAR */
.btn-donar {
    background-color: var(--color-primario);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-donar:hover {
    background-color: #d68a8a;
}

/* Banner Principal */
.hero-banner {
    height: 70vh;
    /* Aquí cargamos tu imagen con un overlay oscuro para que el texto resalte */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../Images/banner-ppal2.jpeg');
    background-size: cover; /* La imagen cubre todo sin deformarse */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 0 0 20px 20px;
    margin: 0 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hero-banner {
        height: 50vh;
        margin: 0;
        border-radius: 0;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}

/* Secciones generales */
section {
    padding: 4rem 5%;
    text-align: center;
}

h2 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
    font-size: 2rem;
    text-transform: uppercase;
}

/* Grid para Misión, Visión, Valores */
.mvv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Grid para Proyectos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.proyecto-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 10px;
}

/* Imagen de proyecto */
.proyecto-img {
    width: 100%;
    height: 200px;        /* Altura fija para uniformidad */
    object-fit: cover;    /* Recorta la imagen sin deformarla */
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

/* Efecto zoom al pasar el mouse sobre la tarjeta */
.proyecto-card:hover .proyecto-img {
    transform: scale(1.03);
}

.proyecto-card button {
    background-color: var(--color-secundario);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}


/* Aliados */
/* Aliados */
.section-aliados {
    background-color: #fafafa;
}

.aliados-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.aliado-logo {
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantiene la forma cuadrada/circular */
    border-radius: 50%;  /* Lo hace un círculo perfecto como en el wireframe */
    border: 1px solid #eee;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Espacio interno para que el logo no toque los bordes */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Estilos específicos para la imagen dentro del círculo */
.aliado-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* ¡CLAVE! Evita que el logo se estire o deforme */
    filter: grayscale(100%); /* Los pone en blanco y negro */
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

/* Efectos al pasar el mouse (Hover) */
.aliado-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--color-primario);
}

.aliado-logo:hover img {
    filter: grayscale(0%); /* ¡Vuelve a su color original! */
    opacity: 1;
}

/* Responsive para móviles (3 por fila) */
@media (max-width: 768px) {
    .aliados-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fin Aliados */

/* Sección ¿Cómo puedes ayudar? */
.section-ayudar {
    background-color: #fff;
    padding: 4rem 5%;
}

.ayudar-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.ayudar-card {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.ayudar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ayudar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ayudar-card h3 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.btn-ayudar {
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-ayudar:hover {
    background-color: #d68a8a;
}

/* Fin Sección ¿Cómo puedes ayudar? */

/* Porcentajes 2026 */
.section-porcentajes {
    background-color: #fafafa;
    padding: 4rem 5%;
}

.barras-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.barra-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.barra-fondo {
    flex: 1;
    background-color: #e0e0e0;
    border-radius: 25px;
    height: 35px;
    overflow: hidden;
    position: relative;
}

.barra-progreso {
    height: 100%;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: width 1.5s ease-in-out;
}

.barra-label {
    min-width: 60px;
    font-weight: bold;
    color: var(--color-secundario);
}

/* Fin Porcentajes 2026 */

/* Preguntas Frecuentes */
.section-faq {
    background-color: #fff;
    padding: 4rem 5%;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background-color: #fff;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    color: var(--color-secundario);
    font-size: 1.05rem;
    list-style: none; /* Oculta la flecha por defecto */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primario);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 1rem;
    color: var(--color-texto);
    line-height: 1.6;
}

/* Fin Preguntas Frecuentes */

/* Testimonios */
.section-testimonios {
    background-color: #fafafa;
    padding: 4rem 5%;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.testimonio-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.video-placeholder {
    background-color: #ddd;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 10px;
    color: #555;
    font-size: 0.9rem;
}

.testimonio-info {
    padding: 1.5rem;
}

.autor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.autor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.autor strong {
    display: block;
    color: var(--color-secundario);
}

.autor small {
    color: #999;
    font-size: 0.8rem;
}

.testimonio-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonio-acciones {
    font-size: 0.85rem;
    color: #888;
}

.testimonio-acciones span {
    cursor: pointer;
}

.testimonio-acciones span:hover {
    color: var(--color-primario);
}

/* Fin Testimonios */

/* Contacto */
.section-contacto {
    background-color: #fff;
    padding: 4rem 5%;
}

.formulario-contacto {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    outline: none;
    border-color: var(--color-primario);
}

.btn-enviar {
    background-color: var(--color-secundario);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background-color: #000;
}

/* Fin Contacto */


/* ============================================
   ESTILOS GENERALES DEL FOOTER
   ============================================ */

.main-footer {
    background-color: #2b2b2b; /* Fondo oscuro del footer */
    color: #ffffff;
    padding: 3rem 5% 1.5rem;
    font-family: sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

/* Encabezados y títulos */
.footer-col h3, 
.footer-col h4 {
    color: var(--color-primario);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-col .tagline {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Enlaces de la columna "Enlaces" */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-primario);
}

/* ============================================
   REDES SOCIALES 
   ============================================ */

.social-icons-wrapper {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-icon {
    color: #ffffff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.instagram:hover {
    color: #E4405F;
}

.social-icon.tiktok:hover {
    color: #00f2ea;
}   

/* Responsive para móviles */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.contact-list i {
    width: 16px;
    text-align: center;
    color: #ffffff;
}

/* =========================================
   MODALES (Pop-ups)
   ========================================= */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: var(--color-primario);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-texto);
}

/* Botón de cerrar (X) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primario);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
   MODALES Cierre (Pop-ups)
   ========================================= */

/* ============================================
   PIE DE PÁGINA / COPYRIGHT
   ============================================ */

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.5;
}

.footer-bottom p {
    margin: 0.2rem 0;
}

/* =========================================
   EFECTOS HOVER Y POLISH 
   ========================================= */

/* Suavizar todas las transiciones */
a, button, .ayudar-card, .proyecto-card, .testimonio-card, .aliado-logo {
    transition: all 0.3s ease;
}

/* Hover en enlaces del menú */
.main-nav a:not(.btn-donar):hover {
    color: var(--color-primario);
}

/* Hover en tarjetas de "Cómo ayudar" y "Proyectos" */
.ayudar-card:hover, .proyecto-card:hover {
    transform: translateY(-8px); /* Se levanta un poco */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Sombra más fuerte */
    border-color: var(--color-primario);
}

/* Hover en logos de aliados */
.aliado-logo:hover {
    transform: scale(1.1);
    border-color: var(--color-primario);
    background-color: #fff0f0;
}

/* Efecto en botones */
.btn-donar:hover, .btn-ayudar:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(244, 164, 164, 0.4);
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Efecto en los inputs del formulario al hacer clic */
.formulario-contacto input:focus, .formulario-contacto textarea:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(244, 164, 164, 0.2);
}

/* =========================================
   FIN EFECTOS
   ========================================= */

   /* =========================================
   DISEÑO RESPONSIVO (MÓVILES)
   ========================================= */

@media (max-width: 768px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }

    section {
        padding: 3rem 5%;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Menú en móviles: apilado y centrado */
    .main-header {
        flex-direction: column;
        padding: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    /* Ajuste de grids a 1 columna */
    .mvv-container, .proyectos-grid, .ayudar-cards, .testimonios-grid, .footer-content {
        grid-template-columns: 1fr;
    }

    .aliados-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 logos por fila en móvil */
    }

    /* Ajuste de barras de porcentaje */
    .barra-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .barra-label {
        margin-top: 5px;
    }
}

/* =========================================
   FIN DISEÑO RESPONSIVO 
   ========================================= */


   /*  estilo del Header con sombra (CSS) */
   
   /* Clase que JS agregará al hacer scroll */
.header-scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.95); /* Un poco transparente */
    backdrop-filter: blur(5px); /* Efecto vidrio esmerilado (moderno) */
}