:root {
    --color-yellow: #f1d411;
    --color-green: #7eb344;
    --color-red: #d94b2b;
    --color-blue: #0099cc;
    --color-purple: #92278f;
    --primary: #003366;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --radius-xl: 32px; /* Mejorado para look más premium */
    --radius-full: 9999px;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 40px 80px -20px rgba(0, 51, 102, 0.25);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET Y BASES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ANIMACIONES GLOBALES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-title, .animate-subtitle, .animate-text, .animate-btns {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-subtitle { animation-delay: 0.3s; }
.animate-text { animation-delay: 0.6s; }
.animate-btns { animation-delay: 0.9s; }

.reveal > * {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity var(--transition), transform var(--transition);
}

.reveal.active > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* NAVEGACIÓN */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.logo-img { height: 50px; }

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover { color: var(--color-blue); }

.btn-apadrinar {
    background: var(--color-yellow);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 800;
    color: #000 !important;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(241, 212, 17, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-apadrinar:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(241, 212, 17, 0.5);
}

/* HERO CON SLIDER */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    filter: brightness(0.7) contrast(0.8);
}

.hero-slide.active {
    opacity: 0.4;
}

.hero-slide:nth-child(1) { background-image: url('/img/hederuno.png'); }
.hero-slide:nth-child(2) { background-image: url('/img/hederdos.png'); }
.hero-slide:nth-child(3) { background-image: url('/img/hedertres.png'); }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.6);
}

.hero span.animate-title {
    color: var(--color-yellow) !important;
    font-weight: 900;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    display: inline-block;
}

/*.hero h1.animate-subtitle {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin: 0.5rem 0 1.5rem;
    font-weight: 900;
    line-height: 0.95;
background: linear-gradient(90deg, #B8860B, #E0B84C, #B8860B);*/

.hero h1.animate-subtitle {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin: 0.5rem 0 1.5rem;
    font-weight: 900;
    line-height: 0.95;
    background: linear-gradient(0deg, #6c196a, #b043ad, #6c196a);



    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 10px rgba(138, 136, 136, 0.45); 
}

.hero p.animate-text {
    color: white !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.9);
    font-weight: 500;
    font-size: 1.35rem;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-blue {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.4);
}

.btn-outline {
    border: 2.5px solid white;
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.btn-blue:hover, .btn-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.active {
    background: var(--color-yellow);
    transform: scale(1.3);
}

/* SECCIONES Y SEPARADORES */
.section-padding {
    padding: 140px 8% 160px;
    position: relative;
}

/* SEPARADOR MODERNO Y ELEGANTE SOLO ENTRE HERO Y PRIMERA SECCIÓN */
header.hero + .section-padding::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: 
        radial-gradient(ellipse at center top, rgba(241, 212, 17, 0.08) 0%, transparent 70%),
        linear-gradient(to bottom, transparent 0%, rgba(241, 212, 17, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 C360,0 1080,200 1440,100 L1440,200 L0,200 Z' fill='black'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: bottom;
}

/* SEPARADOR ORIGINAL (RAYAS INFINITAS AMARILLAS) PARA EL RESTO DE SECCIONES */
.section-padding + .section-padding::before,
#identidad + #transparencia::before,
#transparencia + #ubicacion::before,
#ubicacion + footer::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 160px;
    background: 
        linear-gradient(to bottom, transparent 0%, rgba(241,212,17,0.05) 50%, transparent 100%),
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 30px,
            rgba(241,212,17,0.1) 30px,
            rgba(241,212,17,0.1) 60px);
    background-size: 100% 160px, 60px 160px;
    pointer-events: none;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    width: 100px;
    height: 6px;
    background: var(--color-yellow);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* PROGRAMAS - SLIDER */
.programs-slider {
    position: relative;
    overflow: hidden;
    padding: 30px 60px 0;
}

.grid-programs {
    display: flex;
    gap: 40px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: max-content;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    flex: 0 0 340px;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.program-card:hover .card-img {
    transform: scale(1.08);
}

.card-body { padding: 35px; }

.card-body h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card-body li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
}

.card-body li i {
    color: var(--color-yellow);
    font-size: 0.8rem;
    margin-top: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    transition: 0.3s;
}

.slider-arrow:hover {
    background: var(--color-yellow);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* IMPACTO SOCIAL PREMIUM */
.stats-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-premium-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 30px 60px -20px rgba(0, 51, 102, 0.15);
    border: 1px solid rgba(0, 51, 102, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-purple), var(--color-green), var(--color-red));
    border-radius: 40px 40px 0 0;
}

.stat-premium-card h3 {
    font-size: 4.8rem;
    font-weight: 900;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, var(--primary), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-premium-card p {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: #000;
    box-shadow: 0 15px 30px rgba(241, 212, 17, 0.3);
}

/* TRANSPARENCIA - AHORA SIN REDONDEADO Y A ANCHO COMPLETO */
#transparencia {
    background: var(--bg-light);
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 140px 8% 160px;
}

#transparencia .split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card blanca de Transparencia */
.transparency-card {
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.transparency-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: block;
}

.transparency-card p {
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Lado de Estrategia */
.strategy-vision-tag {
    color: var(--color-blue);
    font-weight: 1000;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: block;
    margin-bottom: 10px;
}

.strategy-list {
    list-style: none;
    padding-top: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.strategy-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.strategy-list li i {
    color: var(--color-green);
    font-size: 1.2rem;
}

/* NUESTRA IDENTIDAD + VALORES */
.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.identity-quote {
    background: white;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 8px solid var(--color-yellow);
}

.quote-icon {
    position: absolute;
    top: -30px;
    left: 50px;
    width: 80px;
    height: 80px;
    background: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
    box-shadow: 0 15px 30px rgba(241, 212, 17, 0.4);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    margin-left: 40px;
}

.values-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.value-premium-card {
    background: white;
    border-radius: 30px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(241, 212, 17, 0.1);
}

.value-premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -20px rgba(241, 212, 17, 0.25);
    border-color: var(--color-yellow);
}

.value-premium-card i {
    font-size: 3rem;
    color: var(--color-green);
    margin-bottom: 20px;
}

/* NOTICIAS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 51, 102, 0.15);
    transition: var(--transition);
    position: relative;
}

.news-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover { transform: translateY(-15px); }
.news-card:hover .news-image { transform: scale(1.08); }

.news-content { padding: 35px; }

.news-date {
    color: var(--color-purple);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-blue);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.news-read-more:hover { gap: 16px; }

/* MAPA */
.map-section {
    background: var(--bg-light);
    border-radius: 60px;
    margin: 0 4% 60px;
    padding: 80px 5%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* FOOTER */
footer {
    background: #0a192f;
    color: white;
    padding: 100px 8% 50px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-col h4 {
    color: var(--color-yellow);
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--color-yellow);
    transform: translateX(5px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .split-section, .identity-grid, .footer-grid, .map-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .nav-links { display: none; }
    .hero { text-align: center; padding: 0 5%; }
    .hero-btns { justify-content: center; }
    .section-padding { padding: 100px 5% 120px; }
}

@media (max-width: 768px) {
    .section-header h2 { font-size: 2.5rem; }
    .stat-premium-card h3 { font-size: 3.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .values-premium-grid { grid-template-columns: 1fr; }
    .identity-quote { padding: 40px; }
    .quote-icon { width: 60px; height: 60px; left: 30px; }
    
    header.hero + .section-padding::before {
        height: 120px;
        top: -60px;
    }
    
    .section-padding + .section-padding::before { 
        height: 100px; 
        top: -50px; 
        background-size: 100% 100px, 40px 100px; 
    }

    #transparencia .split-section {
        gap: 50px;
    }
    
    .transparency-card { padding: 30px; }
}

/* ================================================= */
/* NUEVOS ESTILOS PARA MODALIDAD DE DIÁLOGO        */
/* ================================================= */

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* Inicia oculto */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Clase activa controlada por JS */
.custom-alert-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-alert-card {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 35px;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.custom-alert-overlay.active .custom-alert-card {
    transform: scale(1) translateY(0);
}

.alert-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: #d94b2b; /* Color rojo de la fundación */
    color: white;
    transform: rotate(90deg);
}

.alert-icon {
    font-size: 4.5rem;
    color: #0099cc; /* Color azul de la fundación */
    margin-bottom: 25px;
    display: block;
}

.alert-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 15px;
}

.alert-content p {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.alert-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
}

.alert-btn i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.alert-btn span {
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.alert-btn small {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Estilos específicos para los botones del modal */
.btn-donar {
    color: #0099cc;
    background: rgba(0, 153, 204, 0.05);
}

.btn-donar:hover {
    background: #0099cc;
    color: white;
    transform: translateY(-5px);
    border-color: #0099cc;
    box-shadow: 0 10px 20px rgba(0, 153, 204, 0.2);
}

.btn-apadrinar-modal {
    color: #d94b2b;
    background: rgba(217, 75, 43, 0.05);
}

.btn-apadrinar-modal:hover {
    background: #d94b2b;
    color: white;
    transform: translateY(-5px);
    border-color: #d94b2b;
    box-shadow: 0 10px 20px rgba(217, 75, 43, 0.2);
}

/* Ajustes para móviles */
@media (max-width: 480px) {
    .custom-alert-card {
        padding: 40px 20px;
        width: 95%;
    }
    .alert-content h2 {
        font-size: 1.8rem;
    }
}