/* ==========================================
   PALETA CORPORATIVA SINSOLUKA
   ========================================== */
:root {
    --primary-navy:        #1d325b;
    --secondary-blue:      #162a4a;
    --accent-red:          #d12b20;
    --accent-red-hover:    #a52318;
    --accent-yellow:       #e9aa2d;
    --accent-yellow-hover: #c9911d;
    --accent-orange:       #e9aa2d;       /* alias para clases existentes */
    --accent-orange-hover: #c9911d;
    --light-bg:            #F8FAFC;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2c3e50;
    background-color: #fdfdfd;
    overflow-x: hidden;
}

.text-navy   { color: var(--primary-navy) !important; }
.text-orange { color: var(--accent-yellow) !important; }
.text-red    { color: var(--accent-red) !important; }

/* ==========================================
   TIPOGRAFÍA
   ========================================== */
h1, h2, h3, .display-2, .display-4, .display-5, .display-6, blockquote {
    font-family: 'Playfair Display', 'Segoe UI', serif;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn-donate-pulse {
    background: linear-gradient(135deg, var(--accent-red), #891e15);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(209,43,32,0.4);
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-donate-pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(209,43,32,0.6);
    background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red));
}

.btn-outline-navy {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-navy:hover {
    background-color: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   NAVEGACIÓN
   ========================================== */
.top-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 45px;
    background-color: var(--primary-navy);
    font-size: 0.85rem;
}

.navbar-sticky-wrapper {
    position: sticky;
    top: 45px;
    z-index: 1020;
    margin-top: -30px;
}

.floating-navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(29,50,91,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================
   HERO
   ========================================== */
.hero-banner {
    height: 90vh;
    position: relative;
    background: linear-gradient(135deg, rgba(29,50,91,0.45) 0%, rgba(29,50,91,0.25) 100%),
                url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    margin-top: -45px;
    padding-top: 45px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50%       { transform: translateY(8px); opacity: 1; }
}
.scroll-bounce {
    animation: scrollBounce 1.6s ease-in-out infinite;
}

.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.9);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.hero-stats {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
}

.hero-stat-divider {
    width: 1px;
    background-color: rgba(255,255,255,0.2);
    align-self: stretch;
}

/* ==========================================
   ESPACIADO SECCIONES
   ========================================== */
.large-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

section[id], header[id] {
    scroll-margin-top: 5rem;
}

/* ==========================================
   MISIÓN / VISIÓN
   ========================================== */
.mv-card {
    background: white;
    border: 2px solid #eef0f4;
    border-top: 5px solid var(--accent-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(29,50,91,0.1);
}
.mv-card-red { border-top-color: var(--accent-red); }
.mv-icon { font-size: 2.8rem; }

.mv-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
}
.mv-subtitle-light { color: var(--accent-yellow); }

/* ==========================================
   DIRECTOR
   ========================================== */
.director-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    font-family: 'Playfair Display', serif;
    border: 5px solid var(--accent-yellow);
    box-shadow: 0 15px 40px rgba(29,50,91,0.25);
    overflow: hidden;
}

.director-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-badge {
    display: inline-block;
    background: var(--light-bg);
    border: 2px solid #eef0f4;
    border-left: 4px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.director-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #eef0f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.director-social:hover {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: white;
    transform: translateY(-3px);
}

/* ==========================================
   ESTADÍSTICAS (sección contexto)
   ========================================== */
.mision-quote-block {
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 20px;
    border-left: 5px solid var(--accent-yellow);
}

.stat-card {
    background: var(--light-bg);
    border-left: 4px solid var(--accent-yellow);
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }

/* ==========================================
   PROGRAMAS
   ========================================== */
.program-card {
    background: white;
    border: 2px solid #eef0f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(29,50,91,0.1);
    border-color: var(--accent-yellow);
}
.program-card-featured {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
}
.program-card-featured:hover { border-color: var(--accent-yellow); }
.program-icon { font-size: 2.5rem; }

/* ==========================================
   IMAGEN DE FONDO (parallax)
   ========================================== */
.bg-image-section {
    background: url('https://images.unsplash.com/photo-1524069290683-0457abfe42c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.content-box-overlay {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(29,50,91,0.15);
    border-top: 5px solid var(--accent-yellow);
}

/* ==========================================
   DONATION TIER CARDS
   ========================================== */
.donation-card {
    background: white;
    border: 2px solid #eef0f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(29,50,91,0.1);
    border-color: var(--accent-yellow);
}
.donation-card-featured {
    background: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(29,50,91,0.25);
}
.donation-card-featured:hover {
    transform: translateY(-18px);
    border-color: var(--accent-yellow);
}
.donation-icon { font-size: 2.5rem; }
.donation-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    font-family: 'Playfair Display', serif;
}
.donation-price small {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
    font-family: 'Segoe UI', sans-serif;
}
.donation-price-light small { color: rgba(255,255,255,0.45); }
.bg-orange { background-color: var(--accent-red) !important; }

/* ==========================================
   TESTIMONIOS
   ========================================== */
.hover-card {
    transition: transform 0.4s cubic-bezier(0.165,0.84,0.44,1), box-shadow 0.4s ease;
    border-bottom: 4px solid transparent;
}
.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(29,50,91,0.1) !important;
    border-bottom: 4px solid var(--accent-yellow);
}

.hover-zoom { transition: transform 0.6s ease; }
.article-card:hover .hover-zoom { transform: scale(1.08); }

/* ==========================================
   PARTNER CARDS
   ========================================== */
.partner-card {
    border: 2px solid #eef0f4;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.form-control-custom {
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    border: 2px solid transparent;
    background-color: white;
}
.form-control-custom:focus {
    border-color: var(--accent-yellow);
    box-shadow: none;
}
.btn-subscribe {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background-color: var(--primary-navy);
    color: white;
    border: none;
}
.btn-subscribe:hover { background-color: var(--accent-red); color: white; }

/* ==========================================
   MENSAJES DE ALERTA
   ========================================== */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .content-box-overlay { padding: 2rem; margin: 1rem; }
    .large-section { padding-top: 80px; padding-bottom: 80px; }
    .donation-card-featured { transform: none; }
    .hero-stat-divider { display: none; }
}

/* ==========================================
   FLECHAS DE CARRUSELES (foto de portada, artículos)
   Las fotos que se suben pueden tener fondo blanco o
   claro en los bordes, donde la flecha blanca por
   defecto de Bootstrap se pierde. Le damos un fondo
   circular oscuro para que se vea sobre cualquier foto.
   ========================================== */
.carousel-control-prev,
.carousel-control-next {
    width: 4rem;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(29,50,91,.55);
    border-radius: 50%;
    padding: 1.3rem;
    background-size: 50%;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(29,50,91,.8);
}
/* Indicadores (puntos) del carrusel de artículos — los del carrusel de
   Programas ya tienen su propio estilo en .program-carousel-dot y no se tocan. */
.carousel-indicators:not(.program-carousel-indicators) [data-bs-target] {
    background-color: rgba(29,50,91,.6);
    border: 2px solid rgba(255,255,255,.8);
}

/* ==========================================
   SLIDER DE TESTIMONIOS
   ========================================== */
.test-overflow {
    overflow: hidden;
}
.test-track {
    display: flex;
    gap: 1.5rem;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.test-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}
@media (max-width: 991px) {
    .test-item { flex: 0 0 calc(50% - .75rem); }
}
@media (max-width: 575px) {
    .test-item { flex: 0 0 88%; }
}
.test-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-navy);
    background: #fff;
    color: var(--primary-navy);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.test-arrow:hover { background: var(--primary-navy); color: #fff; }
.test-arrow:disabled { opacity: .3; pointer-events: none; }
.test-arrow-prev { left: -20px; }
.test-arrow-next { right: -20px; }
@media (max-width: 575px) {
    .test-arrow-prev { left: -12px; }
    .test-arrow-next { right: -12px; }
}
.test-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.test-dot.active {
    background: var(--primary-navy);
    transform: scale(1.3);
}

/* ==========================================
   UTILIDADES GENERALES
   ========================================== */
.bg-soft { background-color: var(--light-bg) !important; }
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.accent-line {
    width: 40px;
    height: 3px;
    background: var(--accent-red);
    margin-bottom: 1.2rem;
}

/* ==========================================
   HERO (complementos)
   ========================================== */
.hero-card {
    background: rgba(29,50,91,0.62);
    border: 1px solid rgba(255,255,255,.18);
    padding: 2.8rem 3rem;
    border-radius: 6px;
}
.hero-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.18;
}
.hero-text {
    color: rgba(255,255,255,.78);
    font-size: 1rem;
    line-height: 1.8;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
}
.hero-scroll-link {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}
.hero-scroll-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.hero-scroll-icon { font-size: 1.4rem; }

/* ==========================================
   MISIÓN / VISIÓN (complementos)
   ========================================== */
.mv-card-navy {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
}

/* ==========================================
   PROGRAMAS (complementos)
   ========================================== */
.prog-familia-col {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4a80 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.4rem; padding: 3rem 2rem; text-align: center; min-height: 420px;
}
.prog-familia-col .fam-icon  { font-size: 5rem; line-height: 1; }
.prog-familia-col .fam-title {
    font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
    color: #fff; margin: 0;
}
.prog-familia-col .fam-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 340px; }
.prog-familia-col .fam-chips span {
    background: rgba(255,255,255,.13); color: rgba(255,255,255,.88);
    font-size: .76rem; font-weight: 600; padding: .3rem .9rem; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.22);
}

.program-row {
    min-height: 460px;
    border-top: 1px solid #eee;
}
.program-placeholder {
    background: var(--primary-navy);
    min-height: 460px;
}
.program-placeholder-icon {
    font-size: 4rem;
    opacity: .2;
}
.program-placeholder-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.2);
}
.program-carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    left: 0; right: 0; bottom: 0;
    text-align: left;
    padding: 2rem 1.5rem .8rem;
}
.program-carousel-caption-text {
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.program-carousel-indicators {
    bottom: 10px;
    margin: 0 1rem;
}
.program-carousel-dot {
    width: 24px;
    height: 3px;
    border-radius: 2px;
}
.program-number {
    font-size: 4rem;
    line-height: 1;
    color: #e8edf5;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}
.program-label-badge {
    background: rgba(209,43,32,.1);
    color: var(--accent-red);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.program-title {
    font-size: 1.65rem;
    line-height: 1.25;
}
.program-desc {
    font-size: .97rem;
    line-height: 1.8;
}
.program-item {
    font-size: .9rem;
    color: var(--primary-navy);
}
.program-item-icon {
    color: var(--accent-red);
    flex-shrink: 0;
}

/* ==========================================
   VOLUNTARIOS
   ========================================== */
.section-voluntarios {
    position: relative;
    padding: 5.5rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #C0392B 0%, #96281b 100%);
}
.decor-circle-1 {
    position: absolute; top: -80px; right: -80px; width: 340px; height: 340px;
    border-radius: 50%; border: 60px solid rgba(255,255,255,.05); pointer-events: none;
}
.decor-circle-2 {
    position: absolute; bottom: -60px; left: -60px; width: 240px; height: 240px;
    border-radius: 50%; border: 40px solid rgba(255,255,255,.05); pointer-events: none;
}
.voluntarios-label {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.voluntarios-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.4rem;
}
.voluntarios-text {
    color: rgba(255,255,255,.7);
    font-size: .97rem;
    line-height: 1.75;
    max-width: 480px;
    margin: 0;
}
.btn-cta-white {
    display: inline-block;
    background: #fff;
    color: #C0392B;
    padding: .95rem 2.5rem;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,.28);
}

/* ==========================================
   TESTIMONIOS (complementos)
   ========================================== */
.test-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.test-avatar-fallback {
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
}

/* ==========================================
   BLOG (complementos)
   ========================================== */
.blog-thumb { height: 250px; }

/* ==========================================
   APÓYANOS / DONAR
   ========================================== */
.section-donar {
    background: var(--primary-navy);
    padding: 5rem 0;
}
.donar-eyebrow {
    color: var(--accent-yellow);
    font-size: .7rem;
    letter-spacing: .15em;
}
.donar-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
}
.donar-text {
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 500px;
    margin: 0;
}
.donar-contact {
    color: rgba(255,255,255,.3);
    font-size: .8rem;
    margin: 0;
}
.donar-divider {
    border-color: rgba(255,255,255,.1);
    margin: 0 0 2.5rem;
}
.donar-partners-label {
    color: rgba(255,255,255,.3);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin: 0;
}
.donar-divider-vertical {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.12);
}
.donar-partner-flag { font-size: 1.8rem; line-height: 1; }
.donar-partner-name { color: #fff; font-size: .95rem; }
.donar-partner-sub { color: rgba(255,255,255,.4); font-size: .78rem; margin: 0; }

/* ==========================================
   NEWSLETTER (complementos)
   ========================================== */
.section-newsletter {
    background-color: var(--primary-navy);
    position: relative;
    overflow: hidden;
}
.newsletter-decor {
    position: absolute; top: -50%; left: -10%; width: 50%; height: 200%;
    background: radial-gradient(circle, rgba(233,170,45,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.newsletter-form { max-width: 500px; }

/* ==========================================
   MODAL APOYAR
   ========================================== */
.modal-header-navy {
    background: var(--primary-navy);
    padding: 2rem 2.5rem 1rem;
}
.modal-title-serif {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}
.modal-subtitle-light {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
}
