/* ====================== NUEVA PALETA ====================== */
:root {
    --primary: #0f2b5b;     /* Azul oscuro elegante */
    --accent: #0077cc;      /* Azul brillante para botones */
    --text-dark: #111111;
    --text-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.4s ease;
}

/* ====================== HEADER ====================== */
.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-main {
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* Menú Desktop */
.nav-desktop {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

/* Botón Donaciones */
.btn-donar {
    background: var(--accent);
    color: white;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Botón Hamburguesa */
.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
    padding: 8px;
}

/* ==================== MENÚ MÓVIL ==================== */
/* Menú Desktop Mejorado */
.nav-desktop {
    display: flex;
    gap: 2.8rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #5eb0ff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
}

/* Hero (mantener limpio) */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,43,91,0.5), rgba(15,43,91,0.8));
}

/* HERO CARRUSEL */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Overlay oscuro */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,77,140,0.45), rgba(10,77,140,0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 7.5vw, 5.4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.28rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

.btn-secondary:hover {
    background: white;
    color: #0a4d8c;
}

/* QUIÉNES SOMOS */
.who-we-are {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.image-side img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* MOMENTOS */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.moment-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
}

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

.moment-card:hover img {
    transform: scale(1.08);
}

.moment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 40px 25px 25px;
    color: white;
    font-weight: 500;
}

/* SECCIONES */
.section {
    padding: 100px 0;
}

.bg-light { background: #f8f9fa; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-column img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* DONACIONES */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.donation-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,123,255,0.15);
}

.donation-card img {
    height: 70px;
    margin-bottom: 15px;
}

.copy-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: #f1f1f1;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #007bff;
    color: white;
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
}

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

.social-footer a {
    color: white;
    font-size: 1.6rem;
    margin-right: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav { display: none; }
    .two-column { grid-template-columns: 1fr; }
}

/* MODAL - Versión para mostrar imagen completa */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 680px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: #000;
}

.modal-title {
    text-align: center;
    padding: 20px 20px 10px;
    font-size: 1.5rem;
    color: #0f2b5b;
    margin: 0;
}

.modal-full-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
}

/* CTA */
.cta-center {
    text-align: center;
    margin-top: 70px;
}

.cta-center .btn-primary {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* Responsive específico para Fundación */
@media (max-width: 992px) {
    .difference-grid,
    .transform-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-main {
    font-size: 1.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.75);
}

.nav-desktop {
    display: flex;
    gap: 2.8rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.6px;
}

.nav-link:hover,
.nav-link.active {
    color: #5eb0ff;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.7rem;
    cursor: pointer;
    display: none;
}

/* Menú móvil */
.nav-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    z-index: 2000;
    transition: left 0.4s ease;
}

.nav-mobile.active {
    left: 0;
}

.nav-mobile .nav-link {
    font-size: 1.85rem;
    color: white;
}

/* --- Sección Áreas de Desarrollo --- */

.max-600 { max-width: 600px; margin: 0 auto 3rem; }

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,119,204,0.15);
}

.area-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se estire o deforme */
    transition: transform 0.6s ease;
}

.area-card:hover .area-image img {
    transform: scale(1.1);
}

.area-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.area-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.area-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Banner de llamado a la acción */
.cta-banner {
    background: var(--primary);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 80px;
}

.cta-banner h3 { font-size: 2rem; margin-bottom: 15px; }
.cta-banner p { margin-bottom: 25px; opacity: 0.9; }

/* Responsive móvil */
@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr; /* Una sola columna en celular */
    }
    
    .area-image { height: 200px; }
    
    .cta-banner { padding: 40px 20px; }
}