* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* ==========================================================================
   ESTILOS BASE / ESCRITORIO (HEADER)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 48, 8, 0.712);
    backdrop-filter: blur(2px);
    transition: all 0.4s ease;
}

.header:hover {
    background: rgba(2, 48, 8, 0.74);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu li {
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.menu a:hover {
    color: #d4d4d4;
}

/* Submenús en Escritorio */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.submenu li {
    padding: 12px;
}

.submenu li a {
    display: block;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.donar-btn {
    text-decoration: none;
    color: white;
    background: #307425;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.donar-btn:hover {
    background: #255c1d;
    transform: translateY(-2px);
}

/* Botón Hamburguesa oculto en PC */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s linear;
}



/* ==========================================================================
   AMBIENTE MÓVIL
   ========================================================================== */
/* --- AMBIENTE MÓVIL (HEADER + MENÚ + FIX SCROLL) --- */
@media (max-width: 768px) {
   /* Corrección estricta para divisores verdes y SVG */
svg, 
.wave-up-svg, 
.header-wave, 
.header-wave svg,
[class*="wave"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    height: auto; /* Permite que mantenga la proporción en celulares */
}
   
   
    /* 1. Bloqueo estricto del desbordamiento en toda la página */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }


    /* 2. Control total del Header (SE QUITA OVERFLOW: HIDDEN) */
   /* Header fijo en la parte superior solo para celulares */
    header, .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background-color: #1f4e2bd0 !important; /* Mantiene un fondo verde sólido al scrollear */
        box-shadow: 0 2px 8px rgba(45, 196, 7, 0.555);
    }

    /* Compensa la altura del header en la primera sección para que no tape el video/contenido */
    .hero, .achievements-hero {
        padding-top: 80px !important; 
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }

    .logo a {
        font-size: 1.6rem;
    }

    /* 3. Botón Hamburguesa base (Estado cerrado: 3 barras horizontales) */
.hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001 !important; /* Arriba del panel verde */
    padding: 0;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: center;
}

    /* 4. Menú lateral oculto sin afectar el viewport */
    .nav-left {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: rgba(2, 48, 8, 0.98) !important;
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        gap: 25px;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
       
        z-index: 10000 !important; /* Subimos el z-index a 10000 */
    }

    .nav-left.active {
        transform: translateX(0) !important;
    }

    .menu {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .submenu {
        position: relative;
        top: 0;
        background: rgba(0, 0, 0, 0.267);
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 15px;
        min-width: auto;
    }

    .dropdown:hover .submenu {
        display: block;
    }

    .donar-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* 5. Transformación animada a la X (Solo se activa al dar clic con JS) */
.hamburger.toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
}
/* ==========================================================================
   VIDEO STYLES
   ========================================================================== */
/* 1. La sección principal necesita posición relativa y altura */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Evita que el video se desborde */
}

/* 2. El video va al fondo en capa 0 */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Cambiado de -2 a 0 */
}

/* 3. El overlay va arriba del video en capa 1 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1; /* Cambiado de -1 a 1 */
}

/* 4. El texto va arriba del overlay en capa 2 */
.hero-content {
    position: relative;
    z-index: 2; /* Para que quede por encima del video y del overlay */
    color: white;
    padding: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 3rem;
    animation: bounce 1.5s infinite;
    z-index: 2; /* Aseguramos que la flecha también esté al frente */
}
/* ==========================================================================
   SECCIONES DE CONTENIDO
   ========================================================================== */
.about-section {
    background: #ffffff;
    padding: 50px 80px;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap; 
}

.about-text {
    flex: 1 1 500px; 
    color: #000000;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    height: auto;
}

@media (max-width: 992px) {
    .about-section {
        padding: 60px 40px;
    }
    
    .about-container {
        gap: 40px;
        flex-direction: column; 
    }

    .about-text {
        flex: 1 1 100%;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-image {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Animaciones */
.hidden-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: all 1s ease;
}

.hidden-right {
    opacity: 0;
    transform: translateX(150px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    transform: translateX(0);
}
/* ==========================================================================
   DIVIDER-TWO-COLOR-WAVE
   ========================================================================== */
.header-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: transparent;
}

.header-wave svg {
    display: block;
    width: 100%;
    height: 150px;
}



/* Ondas hacia arriba */
.wave-up-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: transparent;
    margin-bottom: -1px;
}

.wave-up-svg {
    display: block;
    width: 100%;
    height: 150px;
}


/* ==========================================================================
   COMPONENTES DE LAS TARJETAS (PATROCINADORES)
   ========================================================================== */
.cards-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    color: #ffffff;
}

.badge.technology { background-color: #2980b9; }
.badge.food { background-color: #42ac1b; }
.badge.automobile { background-color: #4de73c; }

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        gap: 30px;
        padding: 10px;
    }

    .card {
        flex: none;
        width: 100%;
    }

    .card-image {
        height: 300px;
    }
    
    .card-title {
        font-size: 25px;
    }
}


/* ==========================================================================
   SECCION PARA APOYO DE ABAJO (DONACIONES)
   ========================================================================== */
.container {
    display: flex;
    background-color: #ffffff;
    max-width: 1100px;
    width: 100%;
    gap: 40px;
    align-items: center;
    margin: 40px auto;
    padding: 0 20px;
}

.info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-title {
    font-size: 3.5rem;
    color: #2c2c2c;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
}

.card-donation {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-donation h2 {
    color: #2c2c2c;
    font-size: 1.5rem;
    line-height: 1.4;
}

.card-donation p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.btn-donate {
    background-color: #2c2c2c; 
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    align-self: flex-start; 
    margin-top: 10px;
}

.btn-donate:hover { background-color: #444444; }
.btn-donate:active { transform: scale(0.98); }

.image-column {
    flex: 1;
    display: flex;
    justify-content: center;
}

.charity-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .main-title { font-size: 2.5rem; }
    .btn-donate { align-self: center; width: 100%; }
    .image-column { order: -1; }
}

/* Meta Section */
.Goal-section {
    background: #44C24D;
    padding: 60px 4%;
}

.Goal-header h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.Goal-header p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
}

/* ==========================================================================
   FOOTER STYLES 
   ========================================================================== */
.footer {
    background: #2f7a25;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.footer-contenedor {
    display: flex;
    flex-direction: column; /* Apilado vertical para celulares */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-seccion h3 {
    color: #70d462;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.footer-seccion p {
    line-height: 1.6;
    margin-bottom: 8px;
    color: #e2f5df; /* Verde claro muy suave para mejor lectura */
}

.footer-seccion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-seccion ul li {
    margin-bottom: 8px;
}

/* Enlaces y área de toque optimizada para móviles */
.footer-seccion a {
    color: #ffffff;
    text-decoration: none;
    line-height: 1.8;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0; /* Área de toque más grande para dedos en celular */
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-seccion a:hover {
    color: #70d462;
    opacity: 0.9;
}

.footer-seccion i {
    width: 20px;
    text-align: center;
    color: #70d462; /* Íconos destacados con tu verde brillante */
}

/* Copyright */
.footer-copy {
    text-align: center;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #e2f5df;
}

/* ==========================================================================
   DESKTOP & TABLET ADAPTATION (A partir de 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .footer-contenedor {
        flex-direction: row; /* Distribución horizontal en pantallas grandes */
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-seccion {
        flex: 1;
        min-width: 0; /* Evita desbordamientos en flexbox */
    }
}

/* SECCION PARA SABER DE NOSOTROS PAPUS PROS */



/* Parte de objetivos logrados */
/* --- VARIABLES Y CONFIGURACIÓN BASE --- */
:root {
    --primary-dark: #0f172a;
    --primary-blue: #28c430;
    --accent-green: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}









/* --- HERO HEADER --- */
/* --- HERO HEADER --- */
/* --- HERO HEADER --- */
/* --- HERO HEADER --- */
/* --- HERO HEADER --- */
/* ==========================================================================
   HERO STYLES (Base / Escritorio)
   ========================================================================== */
.achievements-hero {
    position: relative;
    background-image: url('Pictures/Todos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 20px 100px 20px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Mantiene una buena proporción en pantallas grandes */
}



@media (max-width: 768px) {
    .hero-content span {
        padding-top: 100px; /* Se ajusta automáticamente en celulares */
    }
}






.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente ligeramente ajustado para dar legibilidad sin oscurecer de más */
    background: linear-gradient(135deg, rgba(20, 80, 10, 0.75), rgba(11, 60, 13, 0.45));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}



.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA (Móviles - Pantallas hasta 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .achievements-hero {
        padding: 100px 15px 60px 15px; /* Reduce padding para mostrar más imagen */
        min-height: 450px; /* Asegura espacio suficiente para que la imagen luzca */
        background-position: center center; /* Centra el sujeto principal de la foto */
    }

    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Evita que el título ocupe toda la pantalla en celular */
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}





/* --- SECCIÓN DE MÉTRICAS (CONTADORES DE LOGRO) --- */
.metrics-section {
    background-color: var(--bg-light);
    padding: 50px 20px;
    border-bottom: 1px solid var(--border-color);
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.metric-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    text-align: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0 0 5px 0;
}

.metric-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
}

.metric-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0;
}

/* --- DETALLE CASO DE ESTUDIO (SHOWCASE) --- */
.showcase-section {
    padding: 40px 20px;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-case {
    margin-bottom: 60px;
}

.project-case-header {
    margin-bottom: 45px;
}

.case-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.project-case-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

/* Grid de Información y Multimedia */
.project-case-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

/* Textos informativos */
.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.info-block h3 .icon {
    margin-right: 10px;
}

.info-block p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin: 0;
}

/* Caja Destacada de Alcance */
.reach-highlight {
    background-color: #f0fdf4; /* Tono verde suave de éxito */
    border-left: 4px solid var(--accent-green);
    padding: 25px;
    border-radius: 0 12px 12px 0;
}

.reach-highlight h3 {
    color: #065f46;
}

.reach-highlight ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.reach-highlight li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #1f2937;
}

.reach-highlight li:last-child {
    margin-bottom: 0;
}

/* --- MULTIMEDIA DERECHO --- */
.case-media {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.media-box {
    background: var(--bg-light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.media-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.media-box img:hover {
    transform: scale(1.02);
}

.media-caption {
    display: block;
    padding: 12px 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    font-style: italic;
}

/* Video Responsive Embebido */
.video-container-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 1px 0;
}

/* --- DISEÑO RESPONSIVO (CELULARES) --- */
@media (max-width: 992px) {
    .project-case-grid {
        grid-template-columns: 1fr; /* Colapsa a una sola columna en pantallas medianas/chicas */
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .showcase-section {
        padding: 60px 15px;
    }

    .project-case-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .achievements-hero {
        padding: 100px 15px 70px 15px;
    }

    .reach-highlight {
        padding: 15px;
    }
    
    .metric-number {
        font-size: 2.5rem;
    }
}
/* Corrección de scroll horizontal e interfaz para celulares */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    * {
        box-sizing: border-box;
    }

    /* Asegura que elementos pesados no sobrepasen la pantalla */
    img, iframe, .card, div {
        max-width: 100%;
    }

    /* Ajuste de la barra superior que causaba el estiramiento */
    .header {
        width: 100% !important;
        max-width: 100% !important;
    }

    .navbar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 15px !important; /* Reduce los 50px de espacio que empujaban el botón */
    }

    .nav-left {
        gap: 15px !important; /* Reduce la separación interna */
    }

    /* Corrección de ondas SVG */
    .header-wave svg,
    .wave-up-svg {
        width: 100% !important;
        margin-left: 0 !important;
    }
}