/* =====================================================
   APRODE PERÚ - proyectosGeneral.css
   CSS unificado para todas las páginas de programas/proyectos
   Prefijo único: .prog-*
   Variables, tipografía base y utilities ya en estilos.css
   ===================================================== */

/* ========================================
   HERO DE PROGRAMA
   Reemplaza: .ts-hero, .don-hero, .cj-hero, .p-hero
======================================== */
.prog-hero {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
}

.prog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.prog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(57,63,111,0.92) 0%, rgba(57,63,111,0.55) 60%, transparent 100%);
    display: flex;
    align-items: center;
}

.prog-hero-content {
    max-width: 600px;
    padding: 0 70px;
    color: #fff;
}


.prog-hero-tag {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.prog-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========================================
   CONTADORES
   Reemplazar por: d-flex en el HTML
   (background: var(--navy-blue) se queda)
======================================== */
.prog-contadores {
    background: var(--navy-blue);
}

.prog-contador-item {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.prog-contador-item:last-child { border-right: none; }
.prog-contador-item:hover { background: rgba(255,255,255,0.05); }

.prog-contador-item i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.prog-contador-item .data-inicial {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1;
}

.prog-contador-item span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   SECCIONES
   Reemplaza: .ts-section, .don-section, .cj-section, .p-section
======================================== */
.prog-section      { padding: 72px 0; }
.prog-bg-white     { background: #ffffff; }
.prog-bg-light     { background: var(--light-bg); }
.prog-bg-navy      { background: var(--navy-blue); }

.prog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   ENCABEZADO DE SECCIÓN
   Reemplaza: .ts-section-header, .don-section-header, .cj-section-header, .p-section-header
======================================== */
.prog-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.prog-section-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 14px;
    line-height: 1.3;
}

.prog-header-light h2 { color: #fff; }
.prog-header-light p  { color: rgba(255,255,255,0.75); }

/* Divider — ya existe como .title-line en estilos.css
   Se mantiene .prog-divider para uso inline en secciones de programa */
/* Usar .divider de estilos.css */

/* ========================================
   BOTONES
   Reemplaza: .ts-btn-*, .don-btn-*, .cj-btn-*, .p-btn-*
======================================== */
.prog-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(239,184,21,0.4);
}

.prog-btn-primary:hover {
    background: #d4a010;
    transform: translateY(-2px);
    color: #fff;
}

.prog-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.prog-btn-secondary:hover {
    background: #fff;
    color: var(--navy-blue);
}

.prog-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--navy-blue);
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid var(--navy-blue);
    transition: all 0.3s ease;
}

.prog-btn-outline:hover {
    background: var(--navy-blue);
    color: #fff;
}

/* ========================================
   TABS
   Bootstrap: d-flex flex-wrap gap-2 (margin-bottom se mantiene)
======================================== */
.prog-tabs-nav {
    margin-bottom: 28px;
    justify-content: center;
}

.prog-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--navy-blue);
    border: 2px solid #dde5f5;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prog-tab-btn:hover {
    border-color: var(--navy-blue);
    background: #f0f4ff;
}

.prog-tab-btn.active {
    background: var(--navy-blue);
    color: #fff;
    border-color: var(--navy-blue);
}

.prog-tab-panel {
    display: none;
    background: #fff;
    border: 1px solid #e2e8f4;
    border-radius: 14px;
    padding: 28px 32px;
    animation: progFadeIn 0.3s ease;
}

.prog-tab-panel.active { display: block; }

.prog-tab-panel ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.prog-tab-panel li {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.prog-tab-panel li::marker { color: var(--gold); }

/* ========================================
   FAQS CONTENEDOR
   Bootstrap: d-flex flex-column gap-2 (margin:auto se mantiene)
======================================== */
.prog-faqs-lista {
    display: flex;
    flex-direction: column;
    margin: 10px auto;
}

.prog-faq-item {
    border: 1px solid #e2e8f4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(57,63,111,0.05);
    transition: box-shadow 0.3s ease;
    max-width: 100%;
}

.prog-faq-item:hover { box-shadow: 0 4px 18px rgba(57,63,111,0.1); }

.prog-faq-btn {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.prog-faq-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-blue);
    line-height: 1.4;
}

.prog-faq-btn i {
    color: var(--navy-blue);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.prog-faq-item.abierto .prog-faq-btn        { background: var(--navy-blue); }
.prog-faq-item.abierto .prog-faq-btn span   { color: #fff; }
.prog-faq-item.abierto .prog-faq-btn i      { transform: rotate(180deg); color: var(--gold); }

.prog-faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8faff;
}

.prog-faq-item.abierto .prog-faq-respuesta {
    max-height: 1200px;
    border-top: 1px solid #e2e8f4;
}

.prog-faq-respuesta p,
.prog-faq-respuesta ul {
    padding: 20px 24px;

}

.prog-faq-respuesta p + p { padding-top: 0; }
.prog-faq-respuesta ul    { padding-left: 40px; padding-top: 0; }
.prog-faq-respuesta li    { margin-bottom: 10px; }
.prog-faq-respuesta li::marker { color: var(--gold); }




.prog-destacado {
    background: #fff8e1;
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.prog-lista {
    padding-left: 20px;
    margin: 0;
}

.prog-lista li {
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 14px;
    padding-left: 6px;
}

.prog-lista li::marker { color: var(--gold); }

/* ========================================
   LINKS / DOCUMENTOS
   Bootstrap: d-flex flex-column gap-2 (margin-top se mantiene)
======================================== */
.prog-links-docs {
    margin-top: 20px;
}

.prog-doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-blue);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid #dde5f5;
    border-radius: 8px;
    background: #f8faff;
    transition: all 0.2s ease;
}

.prog-doc-link:hover {
    background: var(--navy-blue);
    color: #fff;
    border-color: var(--navy-blue);
}

.prog-doc-link i        { color: var(--red); font-size: 1rem; flex-shrink: 0; }
.prog-doc-link:hover i  { color: var(--gold); }

/* ========================================
   IMÁGENES CON OVERLAY
   Reemplaza: .ts-img-principal/secundaria, .don-img-card, .cj-img-card, .p-img-card
======================================== */
.prog-img-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.prog-img-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.prog-img-card:hover img { transform: scale(1.04); }

.prog-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(57,63,111,0.9), transparent);
    padding: 20px 18px 16px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prog-img-card:hover .prog-img-overlay { opacity: 1; }

.prog-img-overlay h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.prog-img-overlay p  { font-size: 0.8rem; opacity: 0.85; line-height: 1.4; margin: 0; }

/* ========================================
   MODAL
   Reemplaza: .p-modal, .c-modal
======================================== */
.prog-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prog-modal.activo { display: flex; }

.prog-modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 820px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.prog-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.prog-modal-close:hover { background: #b91c1c; }

/* ========================================
   ANIMACIONES DE SCROLL
   Reemplaza: .anim-* de proyectosGeneral — las de estilos.css NO tocamos
======================================== */
.prog-anim-fade-up,
.prog-anim-fade-left,
.prog-anim-fade-right,
.prog-anim-scale,
.prog-anim-fade {
    opacity: 0;
}

.prog-anim-fade-up    { transform: translateY(50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.prog-anim-fade-left  { transform: translateX(-60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.prog-anim-fade-right { transform: translateX(60px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.prog-anim-scale      { transform: scale(0.88);        transition: opacity 0.7s ease, transform 0.7s ease; }
.prog-anim-fade       { transition: opacity 0.8s ease; }

.prog-anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

.prog-anim-delay-1 { transition-delay: 0.1s; }
.prog-anim-delay-2 { transition-delay: 0.2s; }
.prog-anim-delay-3 { transition-delay: 0.3s; }
.prog-anim-delay-4 { transition-delay: 0.4s; }
.prog-anim-delay-5 { transition-delay: 0.5s; }
.prog-anim-delay-6 { transition-delay: 0.6s; }

/* ========================================
   QR DONACIONES
   Reemplazar por: d-flex flex-wrap justify-content-center gap-3 en el HTML
======================================== */

.qr-premium-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35,53,89,0.82);
}

.qr-premium-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.qr-premium-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.qr-premium-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    border-radius: 2px;
    margin: 0 auto 20px;
}

.qr-premium-text {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.qr-premium-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.qr-premium-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.25);
}

.qr-logo  { max-height: 50px; object-fit: contain; }
.qr-code  { width: 130px; height: 130px; object-fit: contain; border-radius: 8px; }

.qr-btn {
    display: inline-block;
    background: var(--navy-blue);
    color: #fff;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease;
}

.qr-btn:hover { background: var(--gold); color: #fff; }

.qr-premium-footer {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    margin: 0;
}

/* ========================================
   CART-PREGUNTA (FAQ estilo original — proyectos)
======================================== */
.cart-pregunta {
    border: 1px solid #e2e8f4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(57,63,111,0.05);
    margin-bottom: 12px;
    transition: box-shadow 0.3s ease;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.cart-pregunta:hover { box-shadow: 0 4px 18px rgba(57,63,111,0.1); }

.pregunta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: #fff;
    transition: background 0.2s ease;
}

.cart-pregunta.activo .pregunta-row { background: var(--navy-blue); }

.pregunta-texto {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-blue);
    line-height: 1.4;
}

.cart-pregunta.activo .pregunta-texto { color: #fff; }

.btn-toggle {
    flex-shrink: 0;
    background: var(--navy-blue);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-pregunta.activo .btn-toggle { background: var(--gold); }
.btn-toggle:hover { background: var(--gold); }

.informacion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8faff;
}

.informacion-panel.visible {
    max-height: 800px;
    border-top: 1px solid #e2e8f4;
}

.informacion-panel p,
.informacion-panel ul {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--dark-text);
    padding: 18px 24px;
    margin: 0;
    text-align: justify;
}

.informacion-panel ul { padding-left: 40px; }
.informacion-panel li { margin-bottom: 8px; }
.informacion-panel li::marker { color: var(--gold); }

/* ========================================
   ANIMACIÓN
======================================== */
@keyframes progFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
    .prog-hero            { height: 380px; }
    .prog-hero-content    { padding: 0 36px; }
    .prog-hero-content h1 { font-size: 1.8rem; }
    .prog-contadores      { flex-wrap: wrap; }
    .prog-contador-item   { flex: 1 1 33%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
    .prog-hero            { height: 300px; }
    .prog-hero-overlay    { background: rgba(57,63,111,0.85); }
    .prog-hero-content    { padding: 0 28px; }
    .prog-hero-content h1 { font-size: 1.5rem; }
    .prog-section         { padding: 50px 0; }
    .prog-section-header h2 { font-size: 1.5rem; }
    .prog-tab-panel       { padding: 20px; }
    .prog-tabs-nav        { flex-direction: column; }
    .prog-tab-btn         { width: 100%; text-align: left; }
    .qr-premium-card      { width: 160px; }
    .qr-code              { width: 100px; height: 100px; }
}

@media (max-width: 576px) {
    .prog-hero            { height: 240px; }
    .prog-hero-content h1 { font-size: 1.3rem; }
    .prog-hero-content p  { display: none; }
    .prog-contador-item   { flex: 1 1 100%; }
    .prog-contador-item .data-inicial { font-size: 2rem; }
    .prog-section-header h2 { font-size: 1.3rem; }
    .qr-premium-cards     { flex-direction: column; align-items: center; }
}

@media (max-width: 380px) {
    .prog-hero            { height: 200px; }
    .prog-hero-content    { padding: 0 18px; }
    .prog-hero-content h1 { font-size: 1.1rem; }
}