:root {
    --verde-oscuro: #0f4c3a;
    --verde: #137547;
    --verde-claro: #2a9d8f;
    --verde-brillante: #38b000;
    --verde-suave: #EAF7F0;
    --rojo: #FF0033;
    --rojo-hover: #CC0029;
    --amarillo: #FFC300;
    --blanco: #ffffff;
    --gris: #6b7280;
    --sombra: 0 20px 60px rgba(0,0,0,.12);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { 
    font-family: 'Outfit', sans-serif; 
    background: #f5f8f6; 
    color: var(--verde-oscuro); 
    overflow-x: hidden; 
    line-height: 1.6;
}

/* HEADER ELEGANTE Y VIVO - FIJO EN LA PARTE SUPERIOR DE LA PÁGINA */
header {
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--verde-oscuro);
    position: relative;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    border-bottom: 4px solid var(--amarillo);
}

.logo-box {
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

/* Logo destacado y amplio sin marco */
.logo-box img { 
    height: 140px; 
    width: auto; 
    object-fit: contain; 
    display: block; 
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo-box:hover img {
    transform: scale(1.03);
}

nav { 
    display: flex; 
    align-items: center; 
    gap: 22px; 
    flex-wrap: wrap; 
}

nav a { 
    text-decoration: none; 
    color: #ffffff; 
    font-weight: 700; 
    padding: 14px 22px; 
    border-radius: 16px; 
    transition: all .3s ease; 
    font-size: 1.3rem; 
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
}

nav a:not(.btn-donar-nav):hover { 
    background: rgba(255, 255, 255, 0.15); 
    color: var(--amarillo); 
    transform: translateY(-2px);
}

.btn-donar-nav { 
    background: var(--rojo); 
    color: white !important; 
    font-size: 1.3rem; 
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4); 
    border: none;
}

.btn-donar-nav:hover {
    background: var(--rojo-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 0, 51, 0.6);
}

/* BOTÓN FLOTANTE "VOLVER ARRIBA" REDISEÑADO Y ELEGANTE */
.btn-scroll-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 58px;
    height: 58px;
    background: var(--rojo);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.btn-scroll-top svg {
    width: 26px;
    height: 26px;
    fill: white;
    transition: transform 0.3s ease;
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    animation: topPulse 2s infinite;
}

.btn-scroll-top:hover {
    background: var(--amarillo);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 15px 30px rgba(255, 195, 0, 0.6);
    border-color: white;
}

.btn-scroll-top:hover svg {
    transform: translateY(-3px);
    fill: var(--verde-oscuro);
}

@keyframes topPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

/* Sección Principal (Hero) */
.hero {
    background: linear-gradient(rgba(10, 32, 22, 0.78), rgba(10, 32, 22, 0.78)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1200') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 110px 20px;
}
.hero h1 { 
    font-size: 52px; 
    font-weight: 900; 
    margin-bottom: 20px; 
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); 
    letter-spacing: -0.5px;
}
.hero p { 
    font-size: 22px; 
    max-width: 850px; 
    margin: 0 auto 35px auto; 
    font-weight: 600; 
    color: #e2e8f0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.btn-cta {
    background: var(--rojo);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(255, 0, 51, 0.4);
    transition: .3s;
    display: inline-block;
    border: none;
}
.btn-cta:hover { transform: translateY(-4px); background: var(--rojo-hover); box-shadow: 0 12px 25px rgba(255, 0, 51, 0.6); }

/* Sección de Impacto / Estadísticas */
.impacto {
    max-width: 1200px;
    margin: -50px auto 50px auto;
    background: white;
    border-radius: 35px;
    padding: 35px;
    box-shadow: var(--sombra);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}
.stat-box { padding: 20px; flex: 1; min-width: 250px; }
.stat-box h3 { font-size: 44px; font-weight: 900; color: var(--rojo); margin: 0 0 8px 0; }
.stat-box p { font-weight: 700; color: var(--gris); margin: 0; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }

/* Secciones de Contenido General */
.seccion {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Sección Quiénes Somos: Alineación precisa y balance de altura PC */
.grid-nosotros {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-wrap: wrap;
}
.col-nosotros-texto {
    flex: 1 1 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}
.card-nosotros-info {
    background: #ffffff;
    padding: 32px 35px;
    border-radius: 35px;
    box-shadow: var(--sombra);
    border-left: 6px solid var(--verde);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-nosotros-info h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin-bottom: 16px;
    line-height: 1.2;
}
.card-nosotros-info p {
    font-size: 16.5px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 14px;
}
.card-nosotros-info p:last-child {
    margin-bottom: 0;
}
.col-nosotros-video {
    flex: 1 1 500px;
    width: 100%;
    display: flex;
    align-items: center;
}
.video-container {
    width: 100%;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: var(--sombra);
    background: #000;
}
.video-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Tarjetas de Servicios/Ayuda */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.card {
    background: white;
    padding: 25px;
    border-radius: 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    border-top: 6px solid var(--verde-brillante);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
    background-color: #e5e7eb;
}
.card h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px 0; color: var(--verde-oscuro); }
.card p { font-size: 15px; color: #4b5563; line-height: 1.6; }

/* ==========================================================================
   SECCIÓN DE PREGUNTAS FRECUENTES (FAQ INTERACTIVA)
   ========================================================================== */
#faq details {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}
#faq details:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--verde-claro);
}
#faq details[open] {
    border-color: var(--verde);
}
#faq summary {
    color: var(--verde-oscuro);
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#faq summary::-webkit-details-marker {
    display: none;
}
#faq summary::after {
    content: '＋';
    font-size: 1.2rem;
    color: var(--verde);
    font-weight: 800;
    transition: transform 0.3s ease;
}
#faq details[open] summary::after {
    content: '－';
    color: var(--rojo);
}

/* ==========================================================================
   SECCIÓN DE TIENDA Y BOTÓN ESTÁTICO DE COMPRAS PENDIENTES
   ========================================================================== */
.seccion-tienda {
    background: white;
    padding: 40px 25px;
    border-radius: 35px;
    box-shadow: var(--sombra);
    margin-top: 50px;
}
.tienda-header {
    text-align: center;
    margin-bottom: 35px;
}
.tienda-header h2 {
    color: var(--verde-oscuro);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}
.tienda-header p {
    color: var(--gris);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.producto-card {
    background: #f9fbf9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.prod-img-box {
    width: 100%;
    height: 200px;
    max-height: 200px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}
.producto-card:hover .prod-img-box img {
    transform: scale(1.05);
}
.prod-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    justify-content: space-between;
}
.prod-info h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--verde-oscuro);
    margin: 0;
}
.prod-info .precio {
    font-size: 22px;
    font-weight: 900;
    color: var(--rojo);
}

/* Selector Numérico de Cantidad */
.cantidad-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 5px 0;
}
.btn-cant {
    width: 32px;
    height: 32px;
    background: var(--verde-suave);
    border: 1px solid var(--verde-claro);
    color: var(--verde-oscuro);
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-cant:hover {
    background: var(--verde-claro);
    color: white;
}
.input-cant {
    width: 45px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
    background: white;
    color: var(--verde-oscuro);
}

.btn-comprar {
    background: var(--verde);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(19, 117, 71, 0.25);
    width: 100%;
}
.btn-comprar:hover {
    background: var(--verde-oscuro);
    transform: scale(1.02);
}

/* BOTÓN DE COMPRAS PENDIENTES (ESTÁTICO DEBAJO DE LOS PRODUCTOS) */
.contenedor-carrito-estatico {
    text-align: center;
    margin-top: 35px;
    display: none; /* Controlado por JavaScript según existan productos */
}
.btn-carrito-estatico {
    background: var(--verde-oscuro);
    color: white;
    border: 2px solid var(--amarillo);
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-carrito-estatico:hover {
    background: var(--verde);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}
.btn-carrito-estatico .carrito-icon {
    font-size: 22px;
}

/* Pie de página Rediseñado */
footer {
    background: var(--verde-oscuro);
    color: #e2e8f0;
    padding: 50px 20px 30px 20px;
    margin-top: 90px;
    border-top: 4px solid var(--amarillo);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
    text-align: left;
}

.footer-col h4 {
    color: var(--amarillo);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.footer-col p, .footer-col a {
    color: #cbd5e1;
    font-size: 0.98rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--amarillo);
}

.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-social:hover {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(255, 195, 0, 0.4);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* REGLAS RESPONSIVAS ADAPTADAS */
@media (max-width: 992px) {
    header {
        padding: 16px 4%;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-box img { 
        height: 120px; 
        margin: 0 auto; 
    }

    nav { 
        width: 100%;
        justify-content: center; 
        gap: 10px; 
    }

    nav a { 
        font-size: 1.05rem; 
        padding: 10px 16px; 
        border-radius: 12px;
        flex: 0 1 auto;
    }

    .btn-donar-nav {
        font-size: 1.05rem;
        padding: 10px 22px;
    }

    .grid-nosotros {
        flex-direction: column;
        gap: 30px;
    }
    .col-nosotros-texto, .col-nosotros-video {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    header {
        padding: 14px 12px;
        gap: 12px;
    }

    .logo-box img { 
        height: 100px; 
    }

    nav { 
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px; 
    }

    nav a { 
        font-size: 0.95rem; 
        padding: 8px 12px; 
        border-radius: 12px;
        background: rgba(255,255,255,0.1);
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .btn-donar-nav {
        font-size: 0.95rem;
        padding: 9px 18px;
        background: var(--rojo);
        flex: 0 1 auto;
    }

    .btn-scroll-top {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
    }

    .btn-scroll-top svg {
        width: 22px;
        height: 22px;
    }

    /* ADAPTACIÓN MÓVIL DEL BOTÓN ESTÁTICO Y PREGUNTAS FRECUENTES */
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    .btn-carrito-estatico {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    #faq details {
        padding: 14px 16px;
    }
    #faq summary {
        font-size: 0.98rem;
    }

    .hero { padding: 60px 15px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .impacto { margin: -25px 12px 25px 12px; padding: 20px; }
    .cards-container { grid-template-columns: 1fr; }
    .card { padding: 20px; border-radius: 25px; }
    .card-img { height: 180px; }
    .seccion { padding: 0 12px; margin: 30px auto; }
    .card-nosotros-info { padding: 22px 20px; border-radius: 25px; }
    .card-nosotros-info h2 { font-size: 26px; }
    
    /* COMPRESIÓN DEL PIE DE PÁGINA EN MÓVIL */
    footer {
        padding: 25px 15px 15px 15px;
        margin-top: 40px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
        text-align: center;
    }
    .footer-col h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    .footer-col p, .footer-col a {
        font-size: 0.88rem;
        margin-bottom: 4px;
        justify-content: center;
        gap: 6px;
    }
    .social-buttons {
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
    }
    .btn-social {
        width: 36px;
        height: 36px;
    }
    .btn-social svg {
        width: 16px;
        height: 16px;
    }
    .footer-bottom {
        padding-top: 12px;
        font-size: 12px;
    }
}