/* --- VARIABLES --- */
:root {
    /* Nuevo color principal: Verde Oliva #87A46D */
    --primary: #87A46D; 
    /* Versión más oscura para efectos hover */
    --primary-dark: #667f50; 
    --secondary: #333333;
    --text-gray: #54595f;
    --bg-light: #f2f2f2; /* Oscurecido para mejor contraste */
    --white: #ffffff;
    --border-radius: 4px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* --- RESET Y BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Slab', serif;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem;
}

a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    /* Sombra ajustada al nuevo verde */
    box-shadow: 0 4px 6px rgba(135, 164, 109, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    /* Sombra ajustada al nuevo verde */
    box-shadow: 0 8px 15px rgba(135, 164, 109, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- HEADER --- */
header {
    background: var(--white);
    height: 80px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 60px; /* Ajuste para el logo PNG */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-menu a:hover { color: var(--primary); }
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 85vh;
    /* Restauramos imagen profesional de Unsplash para evitar efecto de "doble texto" */
    background-image: url('../img/img_01.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Capa verde más sólida para mejor lectura (0.85) */
    background: rgba(135, 164, 109, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.hero .btn {
    background-color: var(--white);
    color: var(--primary);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
}

.hero .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

/* --- SECCIONES GENERAL --- */
section { padding: 90px 0; }

#mision { background-color: var(--white); }
#servicios { background-color: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
}

.icon-circle {
    width: 80px;
    height: 80px;
    /* Fondo verde muy suave */
    background: rgba(135, 164, 109, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 32px;
    transition: var(--transition);
}

.service-card:hover .icon-circle {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 { font-size: 20px; margin-bottom: 15px; }

/* --- NOSOTROS --- */
.about { background-color: var(--white); }

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-img img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-text { flex: 1; min-width: 300px; }

.check-list li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.check-list i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 18px;
}

/* --- VALORES (NUEVA SECCIÓN) --- */
.values { background-color: var(--bg-light); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.value-card:hover { transform: translateY(-5px); }

.value-icon {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--bg-light);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: var(--white);
}

.value-card h3 { margin-bottom: 10px; font-size: 20px; }
.value-card p { font-size: 15px; }

/* --- TRANSPARENCIA RTE (DIAN) --- */
.transparency {
    background-color: var(--bg-light);
    border-top: 5px solid var(--primary); /* Distinción visual */
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.trans-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.trans-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
}

.data-list li {
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.data-list strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 2px;
}

.participation-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}


/* --- MISIÓN (DISEÑO MEJORADO) --- */
.mission-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 20px;
}

.mission-text {
    flex: 1;
    min-width: 300px;
    text-align: left; /* Alineación izquierda para mejor lectura */
}

.mission-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.8;
}

.mission-gallery {
    flex: 1.2; /* Un poco más ancho para las imágenes */
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mission-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-gallery img:hover {
    transform: scale(1.02);
}

/* La primera imagen ocupa todo el ancho superior */
.mission-gallery img:first-child {
    grid-column: span 2; 
    height: 280px;
}

/* Las otras dos imágenes comparten el ancho inferior */
.mission-gallery img:nth-child(2), 
.mission-gallery img:nth-child(3) {
    height: 200px;
}

/* --- GALERÍA (Estilos legacy si se necesitan) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(20px);
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- CONTACTO --- */
.contact { background-color: var(--white); }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.info-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin-right: 20px;
}

.form-box {
    flex: 1.5;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--secondary);
    text-align: left; /* Alineación corregida */
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    /* Sombra de foco verde */
    box-shadow: 0 0 0 3px rgba(135, 164, 109, 0.1);
}

/* --- FOOTER MEJORADO --- */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-about p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #ccc;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column; /* Cambiado para apilar elementos */
    justify-content: center; /* Centrado vertical */
    align-items: center; /* Centrado horizontal */
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px; /* Espacio entre iconos */
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- DONACIONES --- */
.donations {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.donations .section-header h2 {
    color: var(--white);
}

.donations .section-header h2::after {
    background: var(--white);
}

.donations .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.donation-card {
    background: var(--white);
    color: var(--secondary);
    padding: 50px 30px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #FFC107, #FF9800); /* Toque amarillo/naranja de Bancolombia */
}

.bank-icon {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

.account-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 10px;
}

.account-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 25px;
    font-family: 'Roboto Slab', serif;
    word-break: break-word;
}

.account-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.detail-item strong {
    display: block;
    color: var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.copy-btn {
    margin-top: 20px;
    background: #f4f4f4;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */

/* Tablets (Portrait) y Móviles Grandes */
@media (max-width: 991px) {
    .hero h1 { font-size: 40px; }
    
    .mission-wrapper {
        flex-direction: column;
    }
    
    .mission-gallery {
        width: 100%;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .info-box, .form-box {
        width: 100%;
    }
}

/* Móviles (Landscape y Portrait) */
@media (max-width: 768px) {
    /* General */
    section { padding: 60px 0; }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    p { font-size: 16px; }

    /* Header & Nav */
    .header-content {
        padding: 0 10px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-menu a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
    }

    .nav-menu a::after { display: none; } /* Quitar subrayado animado en móvil */

    .hamburger { display: block; }

    /* Hero */
    .hero {
        height: auto;
        min-height: 600px;
        background-attachment: scroll; /* Fix para iOS */
        padding-top: 80px; /* Compensar header fijo */
    }
    
    .hero h1 { font-size: 34px; line-height: 1.3; }
    .hero p { font-size: 18px; }

    /* Misión */
    .mission-gallery {
        grid-template-columns: 1fr; /* Una sola columna de imágenes */
    }
    
    .mission-gallery img:first-child {
        grid-column: span 1;
        height: 220px;
    }
    
    .mission-gallery img:nth-child(2), 
    .mission-gallery img:nth-child(3) {
        height: 200px;
    }

    /* Nosotros */
    .about-content { flex-direction: column-reverse; }

    /* Donaciones */
    .donation-card { padding: 30px 20px; }
    .account-number { font-size: 24px; } /* Reducir tamaño para evitar desborde */
    .account-details { gap: 20px; flex-direction: column; }

    /* Footer */
    .footer-content { text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-contact li { justify-content: center; }
    .footer-links a:hover { transform: translateY(-3px); } /* Hover vertical en vez de lateral */
}

/* Móviles Pequeños (< 480px) */
@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 26px; }
    
    .btn {
        width: 100%; /* Botones full width */
        text-align: center;
    }
}

/* --- MODAL POLÍTICA DE DATOS --- */
.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.7); /* Gris opaco para ver el fondo */
    z-index: 99999; /* Asegurar que esté encima de TODO */
    display: none; /* Oculto por defecto de forma segura */
    align-items: center;
    justify-content: center;
}

.policy-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 450px; /* Un poco más compacto */
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(255,255,255,0.1); /* Brillo suave alrededor */
    text-align: center;
    position: relative;
}

.policy-modal.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.policy-check-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #eee;
}

.policy-check-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.policy-check-container label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.policy-check-container a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.btn-accept {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 500;
    opacity: 0.5;
    pointer-events: none; /* Deshabilitado por defecto */
}

.btn-accept.enabled {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(135, 164, 109, 0.3);
}

.btn-accept:hover {
    background-color: var(--primary-dark);
}

/* --- ANIMACIÓN --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
