/* Reseteo básico para consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

/* Estilos del menú de navegación fijo */
.main-header {
    background-color: rgba(44, 62, 80, 0.85);
    /* Fondo semitransparente oscuro */
    backdrop-filter: blur(10px);
    /* Efecto cristal (Glassmorphism) */
    -webkit-backdrop-filter: blur(10px);
    /* Soporte para Safari */
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    /* Fija el menú en la parte superior al bajar */
    top: 0;
    z-index: 1000;
}

/* Estilos de la sección Hero */
.hero {
    width: 100%;
    background-color: #1a9e90;
    /* Color de fondo similar al de la imagen por si tarda en cargar */
    margin-bottom: 3rem;
    /* Usamos una etiqueta <img> en lugar de background para que no se recorte */
}

.hero-img {
    width: 100%;
    /* Ocupa todo el ancho disponible */
    height: auto;
    /* Mantiene la proporción de la imagen original sin recortarla */
    display: block;
}

/* Ocultar visualmente el h1 pero mantenerlo para SEO y accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Estilos para el Menú Horizontal */
nav ul {
    list-style-type: none;
    /* Elimina las viñetas predeterminadas */
    display: flex;
    /* Utiliza Flexbox para hacer la lista horizontal */
    flex-wrap: wrap;
    /* Permite que los elementos pasen a la siguiente línea si no caben */
    justify-content: center;
    /* Centra los elementos horizontalmente */
    gap: 15px;
    /* Reducido para mejor efecto visual */
    padding: 0;
    position: relative;
    /* Necesario para la posición absoluta del lavalamp */
    z-index: 1;
}

nav ul li {
    position: relative;
    z-index: 2;
    /* Los enlaces van encima de la burbuja del lavalamp */
}

nav ul li a {
    display: block;
    /* Para que tome bien el alto y ancho */
    text-decoration: none;
    /* Quita el subrayado de los enlaces */
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.3s ease;
    /* Transición solo para el color del texto */
}

nav ul li a:hover {
    color: #ffffff;
    /* Color del texto al pasar el mouse */
}

/* La burbuja mágica del Lavalamp */
nav ul li.lavalamp {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    /* Blanco semitransparente para efecto cristal */
    border-radius: 4px;
    z-index: 1;
    /* Detrás de los enlaces (el li normal tiene z-index 2) */
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    /* Animación fluida de desplazamiento */
    pointer-events: none;
    /* Para no bloquear el hover de los enlaces */
    opacity: 0;
    /* Oculto inicialmente hasta que haya un hover */
}

/* =========================================
   PÁGINA QUIÉNES SOMOS
========================================= */
.quienes-somos-page {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.qs-intro {
    text-align: center;
    margin-bottom: 50px;
}

.qs-intro h1 {
    color: #1a9e90; /* Verde agua similar a la imagen */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.qs-intro p {
    color: #66788a;
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

.qs-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.qs-card {
    background-color: #f0f4f8; /* Gris azulado muy claro */
    border-radius: 15px;
    padding: 40px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    color: #1a202c; /* Azul oscuro casi negro */
    font-size: 1.8rem;
    margin-left: 15px;
    font-weight: 700;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
}

.icon-blue {
    background-color: #2b6cb0; /* Azul Misión */
}

.icon-green {
    background-color: #38a169; /* Verde Visión */
}

.qs-card p {
    color: #66788a;
    font-size: 1.1rem;
    line-height: 1.7;
}

.qs-valores {
    margin-top: 30px;
}

.card-valores {
    text-align: center;
    padding: 50px 40px;
}

.icon-heart {
    color: #f6ad55; /* Naranja/Amarillo Valores */
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-valores h2 {
    color: #1a202c;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.valores-list {
    list-style: none;
    padding: 0;
    margin: 25px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
}

.valores-list li {
    background: #fff7ed;
    color: #c05621;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.valores-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(192, 86, 33, 0.15);
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .qs-cards-container {
        grid-template-columns: 1fr; /* Una tarjeta debajo de la otra en móviles */
    }
}

/* =========================================
   PÁGINA SERVICIOS
========================================= */
.servicios-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.servicios-intro {
    text-align: center;
    margin-bottom: 50px;
}

.servicios-intro h1 {
    color: #1a9e90; /* Verde agua */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.servicios-intro p {
    color: #66788a;
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.servicio-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.servicio-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #ffffff; /* Fondo blanco para que se fusione con la tarjeta */
}

.servicio-img:hover {
    transform: scale(1.05); /* Efecto de zoom suave al pasar el mouse */
}

/* =========================================
   LIGHTBOX (CARRUSEL DE FOTOS)
========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #1a9e90;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(26, 158, 144, 0.8);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-img { max-width: 95vw; }
}




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

.servicio-content h3 {
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.servicio-content p {
    color: #66788a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive para Servicios */
@media (max-width: 992px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    .servicios-intro h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   SECCIÓN PROGRAMAS (INDEX)
========================================= */
.programas-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.programas-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    /* Gradiente del título de la segunda foto */
    background: linear-gradient(90deg, #1f618d 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.programas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.programa-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.programa-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.programa-content {
    flex-grow: 1;
}

.programa-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.programa-content p {
    color: #66788a;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Colores de los temas basados en la primera foto */
.icon-blue-theme { background-color: #ebf8ff; color: #3182ce; }
.title-blue-theme { color: #2b6cb0; }

.icon-green-theme { background-color: #f0fff4; color: #38a169; }
.title-green-theme { color: #2f855a; }

.icon-purple-theme { background-color: #faf5ff; color: #9f7aea; }
.title-purple-theme { color: #805ad5; }

.icon-teal-theme { background-color: #e6fffa; color: #319795; }
.title-teal-theme { color: #2c7a7b; }

/* Responsive para Programas */
@media (max-width: 992px) {
    .programas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .programa-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .programa-icon-container {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .programas-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   PÁGINA DE DONACIONES (DONAR)
========================================= */
.donar-page {
    padding: 40px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 150px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.donar-container {
    max-width: 1000px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
}

/* Columna Izquierda (Mensaje) */
.donar-info {
    flex: 1;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('../img/galeria/galeria1.jpg') center/cover no-repeat;
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.donar-info-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.donar-info-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Columna Derecha (Formulario) */
.donar-form-container {
    flex: 1.2;
    padding: 50px 40px;
    background: #ffffff;
}

.form-title {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

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

.form-group-row {
    display: flex;
    gap: 15px;
}
.form-group-row .form-group {
    flex: 1;
}

.donar-form label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    background-color: #f7fafc;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1a9e90;
    box-shadow: 0 0 0 3px rgba(26, 158, 144, 0.2);
    background-color: #ffffff;
}

/* Grupos de botones */
.donation-type-group, .payment-method-group {
    display: flex;
    gap: 10px;
    background-color: #edf2f7;
    padding: 5px;
    border-radius: 10px;
}

.btn-type, .btn-payment {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #4a5568;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-type.active, .btn-payment.active {
    background: #ffffff;
    color: #1a9e90;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-payment i {
    margin-right: 5px;
}

/* Montos */
.donation-amount-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-amount {
    flex: 1;
    min-width: 60px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-amount:hover {
    border-color: #1a9e90;
    color: #1a9e90;
}

.btn-amount.active {
    background: #1a9e90;
    border-color: #1a9e90;
    color: #ffffff;
}

.input-otro-monto {
    flex: 2;
    min-width: 120px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    transition: border-color 0.3s;
}

.input-otro-monto:focus {
    outline: none;
    border-color: #1a9e90;
}

/* Detalles de pago (mostrar/ocultar) */
.payment-details {
    display: none;
    margin-top: 15px;
    animation: fadeIn 0.4s ease;
}

.payment-details.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info del banco */
.bank-info-box {
    background-color: #f0fdfa;
    border: 1px solid #ccfbf1;
    padding: 20px;
    border-radius: 8px;
    color: #0f766e;
}

.bank-info-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bank-info-box p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.bank-note {
    margin-top: 15px;
    font-size: 0.85rem !important;
    color: #115e59;
    font-style: italic;
}

.btn-submit-donar {
    width: 100%;
    padding: 15px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit-donar:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .donar-container {
        flex-direction: column;
    }
    
    .donar-info {
        padding: 40px 20px;
    }
    
    .donar-info-content h1 {
        font-size: 2rem;
    }
    
    .donar-form-container {
        padding: 30px 20px;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   PÁGINA DE ALIANZAS EMPRESARIALES
========================================= */
.alianzas-page {
    padding: 40px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 150px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.alianzas-container {
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
}

/* Columna Izquierda (Informativa) */
.alianzas-info {
    flex: 1.1;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.98) 100%), url('../img/galeria/galeria1.jpg') center/cover no-repeat;
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alianzas-info-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #f6ad55; /* Dorado/Amarillo corporativo */
}

.alianzas-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 40px;
}

.alianzas-options {
    list-style: none;
    padding: 0;
}

.alianzas-options li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.option-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(246, 173, 85, 0.15);
    color: #f6ad55;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.option-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.option-text p {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.5;
}

/* Columna Derecha (Formulario Corporativo) */
.alianzas-form-container {
    flex: 1;
    padding: 50px 40px;
    background: #ffffff;
}

.alianzas-form .form-title {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.select-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.textarea-input {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-alianza {
    width: 100%;
    padding: 15px;
    background-color: #2b6cb0; /* Azul corporativo */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(43, 108, 176, 0.3);
}

.btn-submit-alianza:hover {
    background-color: #1a365d;
    transform: translateY(-2px);
}

/* Responsive para Alianzas */
@media (max-width: 992px) {
    .alianzas-container {
        flex-direction: column;
    }
    
    .alianzas-info {
        padding: 40px 20px;
    }
    
    .alianzas-form-container {
        padding: 30px 20px;
    }
}

/* =========================================
   SECCIÓN GALERÍA (INDEX)
========================================= */
.galeria-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.galeria-subtitle {
    color: #66788a;
    font-size: 1.1rem;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Grid de Galería — 3 columnas uniformes */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.galeria-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    background-color: #f1f5f9;
    aspect-ratio: 4 / 3;
}

/* Overlay con ícono de lupa al hacer hover */
.galeria-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #ffffff;
    background-color: rgba(26, 158, 144, 0);
    transition: background-color 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    border-radius: 12px;
    pointer-events: none;
}

.galeria-item:hover::after {
    background-color: rgba(26, 158, 144, 0.55);
    opacity: 1;
}

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

.galeria-item:hover .galeria-img {
    transform: scale(1.06);
}

/* Responsive galería */
@media (max-width: 992px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   LIGHTBOX (MODAL DE IMÁGENES)
========================================= */
.lightbox {
    visibility: hidden;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.show {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
}

.nav-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10000;
}

.nav-lightbox:hover {
    background: rgba(0,0,0,0.8);
}

.prev-lightbox {
    left: 20px;
}

.next-lightbox {
    right: 20px;
}

/* Ajustes Responsive Lightbox */
@media (max-width: 768px) {
    .nav-lightbox {
        padding: 10px 15px;
        font-size: 18px;
    }
    .prev-lightbox { left: 10px; }
    .next-lightbox { right: 10px; }
}

/* =========================================
   MODAL INFORMATIVO DE SERVICIOS
========================================= */
.servicio-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #1a9e90;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: gap 0.2s ease;
}

.servicio-card:hover .servicio-ver-mas {
    gap: 10px;
}

.servicio-card {
    cursor: pointer;
}

/* Overlay */
.servicio-modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.servicio-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Ventana del modal */
.servicio-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.servicio-modal-overlay.active .servicio-modal {
    transform: scale(1) translateY(0);
}

/* Imagen lateral */
.servicio-modal-img-wrap {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.servicio-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenido */
.servicio-modal-body {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.servicio-modal-tag {
    display: inline-block;
    background-color: #e6fffa;
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.servicio-modal-body h2 {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.servicio-modal-body p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.servicio-modal-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servicio-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.5;
}

.servicio-modal-list li i {
    color: #1a9e90;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Botón cerrar */
.servicio-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.servicio-modal-close:hover {
    background: #1a9e90;
    color: #ffffff;
}

/* Responsive modal */
@media (max-width: 640px) {
    .servicio-modal {
        flex-direction: column;
        max-height: 85vh;
    }

    .servicio-modal-img-wrap {
        width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .servicio-modal-body {
        padding: 25px 20px;
    }
}

/* =========================================
   SECCIÓN TRANSPARENCIA (INDEX)
========================================= */
.transparencia-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.transparencia-header {
    text-align: center;
    margin-bottom: 50px;
}

.transparencia-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e6fffa;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.transparencia-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1f618d 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.transparencia-header p {
    color: #66788a;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tarjetas de estadísticas */
.transparencia-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #66788a;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Informes */
.transparencia-informes h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transparencia-informes h3 i {
    color: #1a9e90;
}

.informes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.informe-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.informe-card:hover {
    border-color: #1a9e90;
    box-shadow: 0 4px 16px rgba(26,158,144,0.12);
    transform: translateX(4px);
}

.informe-icon {
    width: 44px;
    height: 44px;
    background: #fff7ed;
    color: #c05621;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.informe-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.informe-info strong {
    color: #1a202c;
    font-size: 1rem;
}

.informe-info span {
    color: #66788a;
    font-size: 0.88rem;
}

.informe-dl {
    color: #1a9e90;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Responsive transparencia */
@media (max-width: 992px) {
    .transparencia-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .transparencia-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .transparencia-header h2 {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}

/* =========================================
   SECCIÓN NOTICIAS Y CAMPAÑAS (INDEX)
========================================= */
.noticias-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.noticias-header {
    text-align: center;
    margin-bottom: 40px;
}

.noticias-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff7ed;
    color: #c05621;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.noticias-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1f618d 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.noticias-header p {
    color: #66788a;
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Filtros */
.noticias-filtros {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filtro-btn {
    padding: 9px 22px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filtro-btn:hover {
    border-color: #1a9e90;
    color: #1a9e90;
}

.filtro-btn.active {
    background: #1a9e90;
    border-color: #1a9e90;
    color: #ffffff;
}

/* Grid de tarjetas */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Tarjeta */
.noticia-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

/* Tarjeta destacada (historia de impacto) */
.noticia-destacada {
    border-color: #1a9e90;
    box-shadow: 0 4px 20px rgba(26,158,144,0.15);
}

.noticia-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.noticia-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.noticia-card:hover .noticia-img-wrap img {
    transform: scale(1.06);
}

/* Tags de categoría */
.noticia-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-actividad  { background: #ebf8ff; color: #2b6cb0; }
.tag-historia   { background: #e6fffa; color: #0f766e; }
.tag-evento     { background: #fff7ed; color: #c05621; }

/* Cuerpo de la tarjeta */
.noticia-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.noticia-fecha {
    color: #a0aec0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.noticia-body h3 {
    color: #1a202c;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.noticia-body p {
    color: #66788a;
    font-size: 0.93rem;
    line-height: 1.6;
    flex: 1;
}

.noticia-leer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a9e90;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s ease;
}

.noticia-leer:hover {
    gap: 10px;
}

/* Responsive noticias */
@media (max-width: 992px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }
    .noticias-header h2 {
        font-size: 2rem;
    }
}

/* =========================================
   SECCIÓN CONTACTO (INDEX)
========================================= */
.contacto-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contacto-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacto-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ebf8ff;
    color: #2b6cb0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.contacto-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1f618d 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.contacto-header p {
    color: #66788a;
    font-size: 1.1rem;
}

/* Layout de dos columnas */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

/* Columna izquierda */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-dato {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contacto-icono {
    width: 44px;
    height: 44px;
    background: #e6fffa;
    color: #0f766e;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contacto-dato strong {
    display: block;
    color: #1a202c;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contacto-dato span,
.contacto-dato a {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
}

.contacto-dato a:hover {
    color: #1a9e90;
}

/* Redes sociales */
.contacto-redes strong {
    display: block;
    color: #1a202c;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.redes-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.red-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.red-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.red-fb {
    background: #1877f2;
    color: #ffffff;
}

.red-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
}

/* Mapa */
.contacto-mapa {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contacto-mapa iframe {
    display: block;
}

/* Formulario */
.contacto-form-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
}

.contacto-form-wrap h3 {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.cf-group label {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
}

.cf-input {
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #2d3748;
    background: #f7fafc;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
}

.cf-input:focus {
    outline: none;
    border-color: #1a9e90;
    box-shadow: 0 0 0 3px rgba(26,158,144,0.15);
    background: #ffffff;
}

.cf-textarea {
    resize: vertical;
    min-height: 120px;
}

.cf-btn {
    width: 100%;
    padding: 14px;
    background: #1a9e90;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, transform 0.2s;
    margin-top: 4px;
}

.cf-btn:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

.cf-success {
    display: none;
    margin-top: 14px;
    background: #e6fffa;
    color: #0f766e;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.cf-success.visible {
    display: block;
}

/* Responsive contacto */
@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cf-row {
        grid-template-columns: 1fr;
    }
    .contacto-form-wrap {
        padding: 28px 20px;
    }
    .contacto-header h2 {
        font-size: 2rem;
    }
}

.mapa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #1a9e90;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.mapa-link:hover {
    color: #0f766e;
}

/* =========================================
   BOTONES FLOTANTES (FAB)
========================================= */
.fab-container {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    z-index: 8000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.fab i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.fab:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

.fab-whatsapp { background: #25d366; }
.fab-donar    { background: #e74c3c; animation: pulse-donar 2s infinite; }

@keyframes pulse-donar {
    0%, 100% { box-shadow: 0 6px 20px rgba(231,76,60,0.4); }
    50%       { box-shadow: 0 6px 28px rgba(231,76,60,0.75); }
}

.fab-tooltip {
    position: absolute;
    right: 66px;
    background: rgba(15,23,42,0.85);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fab:hover .fab-tooltip { opacity: 1; }

/* =========================================
   PASARELA DE PAGO — DONAR
========================================= */
.payment-method-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: transparent;
    padding: 0;
}

.gateway-box {
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 4px;
    border: 1.5px solid #e2e8f0;
}

.gateway-logo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gateway-box p {
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.5;
}

.gateway-note {
    margin-top: 12px !important;
    font-size: 0.8rem !important;
    color: #718096 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gateway-payphone { background: #f0fdf4; border-color: #86efac; }
.gateway-payphone .gateway-logo { color: #16a34a; }

.gateway-paypal   { background: #eff6ff; border-color: #93c5fd; }
.gateway-paypal .gateway-logo { color: #003087; }

.gateway-stripe   { background: #faf5ff; border-color: #c4b5fd; }
.gateway-stripe .gateway-logo { color: #6d28d9; }

/* Responsive donar — método de pago en 2 cols en móvil */
@media (max-width: 600px) {
    .payment-method-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE GENERAL — MENÚ MÓVIL
========================================= */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }

    nav ul {
        gap: 6px;
        padding: 0 10px;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .hero-img {
        min-height: 180px;
        object-fit: cover;
    }

    .programas-title {
        font-size: 2rem;
    }

    footer {
        text-align: center;
        padding: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .fab-container {
        bottom: 20px;
        right: 16px;
        gap: 10px;
    }
}

/* =========================================
   PÁGINA APADRINAR
========================================= */

/* Hero */
.apad-hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 100px 20px;
    text-align: center;
    color: #ffffff;
}

.apad-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.apad-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(230, 126, 34, 0.2);
    color: #f6ad55;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.apad-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.apad-hero p {
    font-size: 1.15rem;
    color: #cbd5e0;
    line-height: 1.7;
    margin-bottom: 36px;
}

.apad-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e67e22;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}

.apad-hero-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Sección header compartido */
.apad-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.apad-section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1f618d 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.apad-section-header p {
    color: #66788a;
    font-size: 1.05rem;
}

/* Opciones de apadrinamiento */
.apad-opciones-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.apad-opciones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.apad-opcion-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.apad-opcion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.1);
}

.apad-opcion-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
}

.apad-opcion-card h3 {
    color: #1a202c;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.apad-opcion-card p {
    color: #66788a;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.apad-desde {
    display: inline-block;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 20px;
}

.apad-desde strong {
    font-weight: 800;
}

/* Buscador */
.apad-buscador-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.apad-buscador {
    max-width: 900px;
    margin: 0 auto 60px;
}

.apad-filtros {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.apad-filtro-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apad-filtro-group label {
    color: #4a5568;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apad-select {
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #2d3748;
    background: #f7fafc;
    cursor: pointer;
    transition: border-color 0.25s;
    font-family: inherit;
}

.apad-select:focus {
    outline: none;
    border-color: #e67e22;
}

.apad-buscar-btn {
    padding: 12px 24px;
    background: #e67e22;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, transform 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.apad-buscar-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Grid de perfiles */
.apad-resultados {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.apad-perfil-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.apad-perfil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.apad-perfil-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
}

.apad-perfil-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apad-perfil-info h4 {
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 6px 0 6px;
}

.apad-perfil-info p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.apad-perfil-meta {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}

.apad-perfil-meta span {
    color: #a0aec0;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apad-btn-perfil {
    width: 100%;
    padding: 11px;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, transform 0.2s;
    margin-top: auto;
}

.apad-btn-perfil:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* Sin resultados */
.apad-sin-resultados {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    color: #66788a;
}

.apad-sin-resultados i {
    font-size: 3rem;
    color: #cbd5e0;
}

.apad-sin-resultados p {
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA final */
.apad-cta {
    background: linear-gradient(135deg, #1a9e90, #1f618d);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.apad-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.apad-cta i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: #f6ad55;
}

.apad-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.apad-cta p {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.apad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.apad-cta-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* Responsive apadrinar */
@media (max-width: 992px) {
    .apad-opciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .apad-resultados {
        grid-template-columns: repeat(2, 1fr);
    }
    .apad-filtros {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .apad-hero h1 { font-size: 2.2rem; }
    .apad-opciones-grid { grid-template-columns: 1fr; }
    .apad-resultados { grid-template-columns: 1fr; }
    .apad-filtros { grid-template-columns: 1fr; }
    .apad-section-header h2 { font-size: 1.8rem; }
}

/* =========================================
   DONACIONES — PAYPAL Y QR PREVIEW
========================================= */
.coming-soon-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 10px;
    vertical-align: middle;
}

/* PayPal preview */
.gateway-paypal {
    background: #eff6ff;
    border-color: #93c5fd;
}

.gateway-paypal .gateway-logo {
    color: #003087;
}

.paypal-preview {
    margin-top: 16px;
}

.paypal-btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #003087;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.5;
    cursor: not-allowed;
    margin-bottom: 12px;
}

/* QR preview */
.gateway-qr {
    background: #f0fdf4;
    border-color: #86efac;
}

.gateway-qr .gateway-logo {
    color: #16a34a;
}

.qr-preview {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    border: 3px dashed #86efac;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #16a34a;
    font-size: 0.78rem;
    text-align: center;
    flex-shrink: 0;
    background: #ffffff;
}

.qr-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.qr-code-box {
    padding: 8px;
    border-style: solid;
    overflow: hidden;
}

.qr-code-box img,
.qr-code-box canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.btn-copy-bank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #14532d;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-copy-bank:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(20, 83, 45, 0.24);
    background: #166534;
}

.qr-note {
    margin: 0;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.45;
}

.qr-datos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-datos p {
    color: #2d3748;
    font-size: 0.9rem;
    margin: 0;
}

.qr-datos strong {
    color: #1a202c;
}

/* =========================================
   NOTICIAS — MEJORAS
========================================= */

/* Botón leer más como button */
.noticia-leer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a9e90;
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
    transition: gap 0.2s ease;
    font-family: inherit;
}

.noticia-leer:hover { gap: 10px; }

/* Overlay en imagen de noticia */
.noticia-img-wrap {
    cursor: pointer;
}

.noticia-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,158,144,0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.noticia-img-wrap:hover .noticia-img-overlay {
    background: rgba(26,158,144,0.5);
    opacity: 1;
}

/* Modal noticia */
.noticia-modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15,23,42,0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.3s, visibility 0.3s;
}

.noticia-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.noticia-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.noticia-modal-overlay.active .noticia-modal {
    transform: scale(1) translateY(0);
}

.noticia-modal img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
}

.noticia-modal-body {
    padding: 28px 32px 32px;
}

.noticia-modal-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.noticia-modal-fecha {
    display: block;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.noticia-modal-body h2 {
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.noticia-modal-body p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
}

.noticia-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.noticia-modal-close:hover {
    background: #1a9e90;
    color: #fff;
}

/* Informes — badge próximamente */
.informe-badge-pronto {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* =========================================
   MENÚ HAMBURGUESA (MOBILE)
========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ecf0f1;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   RESPONSIVE MOBILE — 768px
========================================= */
@media (max-width: 768px) {

    /* Header */
    .main-header {
        padding: 0.8rem 0;
        position: relative;
    }

    nav {
        position: relative;
        min-height: 48px;
    }

    /* Hamburger visible */
    .hamburger { display: flex; }

    /* Menú oculto por defecto en mobile */
    nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 62, 80, 0.98);
        backdrop-filter: blur(10px);
        padding: 12px 0;
        z-index: 1050;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        border-radius: 0 0 12px 12px;
    }

    nav ul.open { display: flex; }

    nav ul li { width: 100%; }

    nav ul li a {
        font-size: 1rem;
        padding: 12px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    nav ul li a:hover { background: rgba(255,255,255,0.08); }

    /* Ocultar lavalamp en mobile */
    nav ul li.lavalamp { display: none; }

    /* Secciones — reducir márgenes */
    .transparencia-section,
    .noticias-section,
    .galeria-section,
    .contacto-section,
    .programas-section {
        margin: 40px auto;
    }

    /* Stats — 2 columnas en tablet */
    .transparencia-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Títulos */
    .transparencia-header h2,
    .noticias-header h2,
    .contacto-header h2,
    .programas-title {
        font-size: 2rem;
    }
}

/* =========================================
   RESPONSIVE MOBILE — 480px
========================================= */
@media (max-width: 480px) {

    body { overflow-x: hidden; }

    /* Stats — 1 columna */
    .transparencia-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card { padding: 20px 16px; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.85rem; }

    /* Títulos generales */
    .transparencia-header h2,
    .noticias-header h2,
    .contacto-header h2,
    .programas-title,
    .apad-section-header h2 {
        font-size: 1.7rem !important;
    }

    /* Noticias */
    .noticia-img-wrap { height: 160px; }
    .noticia-body { padding: 16px; gap: 8px; }
    .filtro-btn { padding: 7px 14px; font-size: 0.8rem; }
    .noticias-filtros { gap: 6px; }

    /* Galería */
    .galeria-grid { gap: 10px; }
    .galeria-item::after { font-size: 1.4rem; }

    /* Contacto */
    .contacto-form-wrap { padding: 20px 16px; }
    .contacto-icono { width: 36px; height: 36px; font-size: 0.95rem; }
    .contacto-mapa iframe { height: 180px; }
    .cf-input { padding: 10px 12px; font-size: 0.9rem; }
    .cf-textarea { min-height: 100px; }
    .cf-row { grid-template-columns: 1fr; }

    /* FAB */
    .fab { width: 48px; height: 48px; font-size: 1.1rem; }
    .fab-container { bottom: 16px; right: 12px; gap: 8px; }
    .fab-tooltip { display: none; }

    /* Informes */
    .informe-card { padding: 14px 16px; gap: 12px; }
    .informe-icon { width: 36px; height: 36px; font-size: 1rem; }

    /* Modales */
    .noticia-modal,
    .servicio-modal { max-width: 95vw; }
    .noticia-modal img { height: 180px; }
    .noticia-modal-body { padding: 20px; }

    /* Apadrinar */
    .apad-hero h1 { font-size: 1.8rem; }
    .apad-hero p { font-size: 0.95rem; }
    .apad-filtros { grid-template-columns: 1fr; }
    .apad-resultados { grid-template-columns: 1fr; }
    .apad-opciones-grid { grid-template-columns: 1fr; }

    /* Donar */
    .payment-method-group { grid-template-columns: repeat(2, 1fr); }
    .donar-container { flex-direction: column; }
    .donar-info { padding: 30px 20px; }
    .donar-form-container { padding: 24px 16px; }
}

/* =========================================
   SECCIÓN VIDEOS (INDEX)
========================================= */
.videos-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.videos-header {
    text-align: center;
    margin-bottom: 50px;
}

.videos-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    color: #1877f2;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.videos-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1f618d 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.videos-header p {
    color: #66788a;
    font-size: 1.1rem;
}

/* Grid de videos — 3 columnas primera fila, 2 centradas segunda */
.videos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.video-card {
    width: calc(33.333% - 16px);
    max-width: 360px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.video-destacado {
    border-color: #1877f2;
    box-shadow: 0 4px 20px rgba(24,119,242,0.15);
}

.video-embed {
    width: 100%;
    background: #000;
    overflow: hidden;
    position: relative;
}

.video-embed iframe {
    display: block;
    width: 100%;
}

.video-info {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: #1877f2;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.video-info p {
    color: #66788a;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* CTA ver más */
.videos-cta {
    text-align: center;
}

.videos-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877f2;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(24,119,242,0.3);
}

.videos-fb-btn:hover {
    background: #1558b0;
    transform: translateY(-2px);
}

/* Responsive videos */
@media (max-width: 992px) {
    .video-card {
        width: calc(50% - 12px);
        max-width: 420px;
    }
}

@media (max-width: 576px) {
    .video-card {
        width: 100%;
        max-width: 100%;
    }
    .videos-header h2 { font-size: 2rem; }
}

.video-abrir {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1877f2;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s;
}
.video-abrir:hover { gap: 8px; }

/* =========================================
   QR BANCARIO ACTIVO — DONAR
========================================= */
.active-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 10px;
    vertical-align: middle;
}

.qr-code-box {
    width: 160px;
    height: 160px;
    background: #ffffff;
    border: 2px solid #86efac;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    flex-shrink: 0;
}

.qr-code-box img,
.qr-code-box canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.btn-copy-bank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    white-space: nowrap;
}

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

.qr-note {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 240px;
}

@media (max-width: 600px) {
    .qr-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .qr-note { max-width: 100%; }
}

/* =========================================
   PAYPHONE / TARJETA — DEMO
========================================= */
.gateway-payphone {
    background: #f0fdf4;
    border-color: #86efac;
}

.gateway-payphone .gateway-logo {
    color: #16a34a;
}

.diferir-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.diferir-chip {
    background: #ffffff;
    border: 1.5px solid #86efac;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.payphone-btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.55;
    cursor: not-allowed;
    margin-bottom: 10px;
}

/* =========================================
   LOGO EN EL HEADER
========================================= */
.nav-logo {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1100;
}

.nav-logo img {
    height: 52px;
    width: auto;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    object-fit: cover;
    background: #fff;
    transform-origin: left top;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(2.6);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    position: relative;
    z-index: 2000;
}

@media (max-width: 768px) {
    .nav-logo { left: 14px; }
    .nav-logo img { height: 42px; }
}

/* =========================================
   QR — LAYOUT DOS COLUMNAS
========================================= */
.qr-preview {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 16px 0;
    flex-wrap: wrap;
}

.qr-col-datos {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-col-datos p {
    color: #2d3748;
    font-size: 0.92rem;
    margin: 0;
}

.qr-col-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qr-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #16a34a;
    margin: 0;
}

.qr-note {
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
    max-width: 160px;
    margin: 0;
}

@media (max-width: 480px) {
    .qr-preview { flex-direction: column; align-items: center; }
    .qr-col-datos { width: 100%; }
}

.red-tt {
    background: #010101;
    color: #ffffff;
}
