/* ================= VARIABLES Y BASE ================= */
:root {
    --color-black: #111111;
    --color-pink: #E8B0C0;
    --color-blue: #1E94BC;
    --color-white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-black); overflow-x: hidden; }

/* ================= CLASES GENERALES ================= */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 5.5rem 0; }
.bg-light { background-color: #f9f9f9; }
.text-center { text-align: center; }

h2 { font-size: 2rem; color: var(--color-blue); margin-bottom: 1rem; }
.subtitle { font-size: 1rem; color: #666; margin-bottom: 2.5rem; }
.badge { display: inline-block; padding: 0.3rem 0.8rem; background: rgba(232,176,192,0.2); color: var(--color-pink); border-radius: 50px; font-weight: 600; font-size: 0.8rem; margin-bottom: 1rem; }

/* Botones Base */
.btn { padding: 0.5rem 1.3rem; border-radius: 8px; font-family: var(--font-main); font-weight: 600; cursor: pointer; transition: var(--transition-smooth); border: none; font-size: 0.9rem; text-decoration: none; display: inline-block; text-align: center; }
.btn-solid { background: var(--color-pink); color: var(--color-black); }
.btn-solid:hover { background: #d39cae; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--color-blue); color: var(--color-blue); }
.btn-outline:hover { background: var(--color-blue); color: var(--color-white); }
.login-btn-small { padding: 0.4rem 0.9rem; font-size: 0.85rem; margin-left: 0.5rem; }
.w-100 { width: 100%; margin-top: 1rem; padding: 1rem; border-radius: 12px; font-size: 1.05rem; }

/* ================= TOP BAR Y NAVEGACIÓN ================= */
.top-bar { background-color: var(--color-black); color: var(--color-white); font-size: 0.8rem; padding: 0.4rem 0; position: fixed; width: 100%; top: 0; z-index: 1001; }
.top-bar-container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.social-icons { display: flex; gap: 0.1rem; align-items: center; }
.social-icons a { color: var(--color-white); text-decoration: none; font-size: 1rem; transition: var(--transition-smooth); display: inline-block; margin-left: 1.3rem; }
.social-icons a:hover { color: var(--color-pink); transform: translateY(-2px); }

.navbar { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 32px; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 0.8rem 2rem; }
.nav-logo { height: 58px; width: auto; display: block; transition: var(--transition-smooth); }
.nav-logo:hover { opacity: 0.85; }

.nav-links { display: flex; gap: 1.8rem; align-items: center; margin-right: auto; margin-left: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--color-black); font-weight: 500; transition: var(--transition-smooth); font-size: 0.95rem; }
.nav-links a:hover, .nav-links { color: var(--color-pink); }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: var(--color-white); min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-radius: 8px; top: 100%; left: 0; overflow: hidden; padding: 0.5rem 0; }
.dropdown-content a { color: var(--color-black); padding: 0.7rem 1.2rem; display: block; font-size: 0.9rem; }
.dropdown-content a:hover { background-color: rgba(232,176,192,0.1); color: var(--color-blue); }
.dropdown:hover .dropdown-content { display: block; }

.auth-buttons { display: flex; gap: 0.8rem; }
.mobile-menu-btn { 
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px; /* Espacio entre las 3 líneas */
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ================= HERO DE DONACIONES (ALINEADO A LA DERECHA) ================= */
.hero-donaciones {
    position: relative;
    min-height: 75vh; /* Altura generosa para lucir tu foto de fondo */
    display: flex;
    align-items: flex-start; /* Sube el texto hacia la parte superior */
    padding-top: 150px; /* Compensa la barra de navegación */
    
    /* Aquí colocarás tu foto de la mamá con el niño */
    background-image: url('../assets/donaciones/image.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-donaciones-container {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Empuja todo el bloque de texto hacia la derecha */
}

.hero-texto-derecha {
    max-width: 480px;
    text-align: center; /* El texto en sí mismo va centrado dentro de su caja */
    /* Resplandor blanco difuminado detrás del texto para que contraste con la foto */
    background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(227, 219, 219, 0) 70%);
    padding: 2rem;
    border-radius: 50%;
}

.titulo-azul {
    font-family: var(--font-main);
    color: #1b1464; /* Azul oscuro vibrante, igual a la referencia */
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.titulo-cursiva-morado {
    font-family: 'Dancing Script', cursive; /* Tipografía fluida */
    color: #9b59b6; /* Morado/Lila característico */
    font-size: 4.8rem;
    line-height: 0.8;
    display: block;
    margin-top: -5px;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 0px #ffffff; /* Pequeño borde blanco para resaltar */
}

/* El corazoncito al lado de "deja huella" */
.titulo-cursiva-morado i {
    font-size: 2.8rem;
    color: #9b59b6;
    font-weight: 300;
}

.hero-texto-derecha p {
    font-size: 1.15rem;
    color: #310224; /* Texto oscuro en lugar de blanco para que se parezca a la imagen */
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}
/* ================= IMPACTO ================= */
.impacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.impacto-item {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.impacto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.impacto-icon {
    font-size: 2.8rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.impacto-item h4 {
    font-size: 1.25rem;
    color: var(--color-black);
    margin-bottom: 0.8rem;
}

.impacto-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Ajuste perfecto para el Código QR --- */
.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem auto 1.5rem auto;
    background: #ffffff;
    padding: 12px; /* Este espacio empuja el QR hacia el centro */
    border-radius: 12px; /* Bordes redondeados más suaves */
    border: 2px dashed rgba(14, 13, 13, 0.6); 
    width: 140px; /* Tamaño total del marco, más pequeño */
    height: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.qr-img {
    width: 100%; /* Toma exactamente el espacio interior del marco */
    height: 100%;
    object-fit: contain; /* Evita que se deforme y la centra de forma absoluta */
}

/* ================= SELECCIÓN DE PROGRAMA ================= */
.seleccion-programa {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 4rem 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}

.botones-programa {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-prog {
    border-width: 2px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
}

.btn-prog:hover, .btn-prog:focus {
    background: var(--color-pink);
    border-color: var(--color-pink);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 176, 192, 0.4);
}

/* ================= MÉTODOS DE DONACIÓN (FILAS CON IMAGEN) ================= */
.metodos-filas-contenedor {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.metodo-fila {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 3rem;
    align-items: center; 
}

.metodo-imagen {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.metodo-imagen img {
    width: 100%;
    height: auto; /* Permite que la imagen tome su altura natural */
    object-fit: contain; /* IMPORTANTE: Evita cualquier tipo de recorte en los bordes */
    display: block;
    transition: var(--transition-smooth);
}

.metodo-fila:hover .metodo-imagen img {
    transform: scale(1.02); /* Efecto de zoom muy suave */
}

/* El resto de estilos de tarjetas (metodo-card, metodo-header, etc.) se mantienen igual como los tienes */
.metodo-card {
    background: var(--color-white);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ================= MÉTODOS DE DONACIÓN ================= */


.metodo-card {
    background: var(--color-white);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tarjeta-destacada {
    border: 2px solid var(--color-pink);
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(232, 176, 192, 0.2);
}

.tag-recomendado {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-pink);
    color: var(--color-black);
    padding: 0.4rem 1.2rem;
    border-bottom-left-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.metodo-header {
    background-color: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.metodo-header i {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.metodo-header h3 {
    color: var(--color-black);
    font-size: 1.4rem;
    margin: 0;
}

.metodo-body {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.metodo-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.datos-bancarios {
    list-style: none;
    background: #fdfdfd;
    border: 1px dashed #ccc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.datos-bancarios li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #444;
}

.datos-bancarios li:last-child {
    margin-bottom: 0;
}

.datos-bancarios strong {
    color: var(--color-blue);
    display: inline-block;
    width: 110px;
}

.iconos-pagos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 2.5rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.iconos-pagos i {
    transition: var(--transition-smooth);
}

.iconos-pagos i:hover {
    color: var(--color-blue);
}

.btn-comprobante {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-donar-ahora {
    background: linear-gradient(90deg, #d13076 0%, #b82365 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 5px 15px rgba(209, 48, 118, 0.3);
    margin-top: auto;
}

.btn-donar-ahora:hover {
    box-shadow: 0 8px 20px rgba(209, 48, 118, 0.4);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* ================= FOOTER Y WHATSAPP ================= */
.footer-premium { background-color: var(--color-black); color: #cccccc; padding-top: 5rem; font-size: 0.95rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-col h3 { color: var(--color-white); font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 600; }
.footer-logo span { color: var(--color-pink); }
.footer-line { width: 35px; height: 2px; background-color: var(--color-white); margin-bottom: 1.5rem; }
.footer-col p { margin-bottom: 1.5rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 0.8rem; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background-color: #222222; color: var(--color-white); border-radius: 50%; text-decoration: none; transition: var(--transition-smooth); font-size: 1.1rem; }
.footer-socials a:hover { background-color: var(--color-pink); color: var(--color-black); transform: translateY(-3px); }
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 1rem; }
.footer-links a { color: #cccccc; text-decoration: none; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--color-pink); padding-left: 6px; }
.footer-contact li { display: flex; align-items: center; gap: 1rem; }
.footer-contact i { color: var(--color-pink); font-size: 1.1rem; width: 20px; text-align: center; }
.footer-bottom { background-color: #080808; padding: 1.5rem 2rem; text-align: center; font-size: 0.85rem; color: #777; border-top: 1px solid #1a1a1a; }
.footer-bottom p { margin-bottom: 0.4rem; }
.footer-bottom a { color: #c7bebe; text-decoration: none; transition: var(--transition-smooth); font-weight: 500; }
.footer-bottom a:hover { color: var(--color-white); }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 1000; transition: var(--transition-smooth); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #20b858; color: white; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .mobile-menu-btn { 
        display: flex; 
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se coloca justo debajo de la barra blanca */
        left: -100%; /* Oculto fuera de la pantalla por defecto */
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
        margin: 0;
        gap: 2rem;
        text-align: center;
        transition: left 0.4s ease; /* Animación suave al abrir */
    }

    /* La clase que activará JavaScript para mostrar el menú */
    .nav-links.active {
        left: 0;
    } 

    /* --- Ajustes del Submenú (Programas) en Celular --- */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static; /* Quita el efecto flotante */
        box-shadow: none;
        background-color: #f4f6f8; /* Un fondo sutilmente diferente */
        width: 100%;
        margin-top: 10px;
        display: none; /* Se mantiene oculto hasta que JS lo active */
    }
    
    /* Esta clase la activará JavaScript */
    .dropdown-content.mostrar-movil {
        display: block; 
    }
    
    .dropdown-content a {
        padding: 1rem;
        border-bottom: 1px solid #eaeaea;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .auth-buttons, .top-bar { display: none; }
    .navbar { top: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.8rem; }
    
    .hero-donaciones h1 { font-size: 2.2rem; }
    .impacto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .tarjeta-destacada { transform: scale(1); }

    /* Ajustes Métodos de Pago y Selección Celular */
    .seleccion-programa {
        padding: 3rem 1.5rem;
    }

    .botones-programa {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prog {
        width: 100%;
    }

    .metodos-filas-contenedor {
        gap: 4rem;
    }

    .metodo-fila {
        grid-template-columns: 1fr; /* Una sola columna en el teléfono */
        gap: 1.5rem;
    }

    /* Invertimos el orden en el móvil para que la imagen siempre quede arriba de la tarjeta de pago */
    .metodo-fila > .metodo-imagen {
        order: -1; 
        /* Hemos borrado el min-height para que no se deforme en el teléfono */
    }

    /* Ajustes Hero Donaciones Celular */
    .hero-donaciones {
        align-items: center; /* Centra verticalmente en móviles */
        padding-top: 100px;
        min-height: 60vh;
    }
    
    .hero-donaciones-container {
        justify-content: center; /* Centra horizontalmente */
    }
    
    .hero-texto-derecha {
        background: rgba(255, 255, 255, 0.85); /* Fondo blanco sólido suavizado */
        border-radius: 24px; /* Forma de tarjeta redonda en vez de difuminado radial */
        padding: 2.5rem 1.5rem;
    }
    
    .titulo-azul {
        font-size: 2.4rem;
    }
    
    .titulo-cursiva-morado {
        font-size: 3.5rem;
    }
    
    .titulo-cursiva-morado i {
        font-size: 2rem;
    }
    
    .hero-texto-derecha p {
        font-size: 1.05rem;
    }
}