/* ==========================================
   PALETA DE COLORES Y VARIABLES INSTITUCIONALES
   ========================================== */
:root {
    --primary-green: #1B8A46;
    --primary-dark: #125E2F;
    --magenta: #D81B7D;
    --purple: #7B2CBF;
    --yellow: #FFC107;
    --text-dark: #2D3748;
    --text-muted: #5A6A80;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Redes Sociales en el Menú y Footer */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

.social-icon:hover {
    background-color: #1877F2;
    transform: translateY(-2px);
}

.social-icon:hover {
    background-color: #1877F2;
    transform: translateY(-2px);
}

.social-icon:hover svg {
    fill: var(--white);
}

/* Redes Sociales en el Footer */
.footer-socials {
    margin-top: 15px;
    justify-content: center;
}

.footer-socials .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-socials .social-icon svg {
    fill: var(--white);
}

.footer-socials .social-icon:hover {
    background-color: var(--magenta);
}

/* Ajuste para menú responsive */
@media (max-width: 768px) {
    .social-links-header {
        margin-top: 10px;
    }
}

/* ==========================================
   ESTILOS MODERNOS: META Y OBJETIVO
   ========================================== */
.purpose-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.purpose-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 0 10px 20px !important;
}

.purpose-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.meta-card {
    border-left: 0px solid #f5f4f5 !important;
}

.objetivo-card {
    border-left: 2px solid #e7e7e7 !important;
}

.purpose-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purpose-badge {
    display: inline-block;
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.purple-badge {
    background: rgba(123, 44, 191, 0.1);
    color: var(--purple);
}

.green-badge {
    background: rgba(27, 138, 70, 0.1);
    color: var(--primary-green);
}

/* Mejora la legibilidad del texto */
.purpose-content p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ==========================================
   ESTILOS MODERNOS: EQUIPO
   ========================================== */
.section-title {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
}

.team-img-wrapper {
    margin: 0 auto 15px auto;
    width: 100px;
    height: 100px;
}

.team-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-green);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================
   NAVEGACIÓN Y MENÚ HAMBURGUESA
   ========================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

/* Contenedor principal del logo y texto */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
}

/* Imagen del logo */
.logo-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Regla faltante para el texto del logo */
.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 140px;
    display: inline-block;
}

/* Ajuste responsive para móviles */
@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
        max-width: 110px;
    }
}

.logo span {
    color: #098108;
}

.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: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 6px;
    min-width: 200px;
    display: none;
    list-style: none;
    padding: 10px 0;
    z-index: 1100;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-menu li a:hover {
    background: rgba(27, 138, 70, 0.08);
    color: var(--primary-green);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-donate {
    background-color: var(--magenta) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(216, 27, 125, 0.3);
}

/* ==========================================
   SLIDER & HERO SECTION
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-caption {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.slide-caption h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero {
    background: linear-gradient(135deg, rgba(27,138,70,0.05) 0%, rgba(123,44,191,0.05) 100%);
    padding: 70px 0;
    text-align: center;
}

.badge {
    background-color: rgba(216, 27, 125, 0.1);
    color: var(--magenta);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.hero h1 {
    font-size: 2.3rem;
    margin: 20px 0;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 30px auto;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================
   TARJETAS DE IMPACTO & CONTENIDO INTERNO
   ========================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.green-bg { background: rgba(27,138,70,0.1); }
.magenta-bg { background: rgba(216,27,125,0.1); }
.purple-bg { background: rgba(123,44,191,0.1); }

.about {
    padding: 70px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
    align-items: start;
}

.about-text h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    background: #000;
    padding: 10px;
    border-radius: 12px;
}

/* ESTILO CARE: PAGINAS INTERNAS */
.inner-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.inner-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 94, 47, 0.75);
}

.breadcrumb-section {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--primary-green);
    text-decoration: none;
}

.page-title {
    font-size: 2.3rem;
    color: var(--primary-green);
    font-weight: 800;
    margin-bottom: 10px;
}

.page-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 850px;
}

.main-content {
    padding: 50px 20px;
    background-color: var(--white);
}

/* FORMULARIO & CONTACTO */
.contact {
    background: var(--white);
    padding: 60px 0;
}

.contact-box {
    max-width: 600px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

/* DONACIONES */
.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.bank-card {
    background: var(--bg-light);
    border-left: 5px solid var(--primary-green);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.yape-box {
    background: rgba(123, 44, 191, 0.08);
    border: 2px dashed var(--purple);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.donation-form {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Contenedor de la columna derecha */
.about-media {
    width: 100%;
    overflow: hidden;
}

/* Envoltorio del iFrame con escalado */
.facebook-wrapper {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    /* Ajusta la altura visible según el zoom */
    height: 800px; 
}

/* Forzar al iFrame a estirarse al 100% mediante CSS */
.facebook-wrapper iframe {
    width: 500px !important; /* Ancho base de Facebook */
    height: 650px !important;
    border: none;
    /* Escala el iFrame para cubrir el 100% del ancho del contenedor */
    transform: scale(1.35); 
    transform-origin: top left;
    width: calc(100% / 1.35) !important;
}

/* ==========================================
   RESPONSIVE DESIGN (MÓVIL & TABLETS)
   ========================================== */
/* Desactivar escalado en pantallas pequeñas para evitar desbordes */
@media (max-width: 991px) {
    .facebook-wrapper {
        height: auto;
    }
    .facebook-wrapper iframe {
        transform: none;
        width: 100% !important;
    }
}

/* PC / Pantallas grandes: 2 columnas */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.history-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.history-text h2 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Celulares y Tablets: 1 sola columna (Imagen arriba, texto abajo) */
@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 15px;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* En pantallas móviles, el formulario de donación pasa a estar debajo */
    .donation-grid {
        display: flex;
        flex-direction: column;
    }
}