/* ======================================================= */
/* 1. ESTILOS GENERALES Y ESTRUCTURA                       */
/* ======================================================= */
body { 
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif; 
}

.section { display: none; }
.section.active { display: block; }

.contenedor-principal {
    max-width: 500px;
    margin: 40px auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.encabezado-azul {
    background-color: #0b3b70; /* Azul oscuro corporativo */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-header {
    max-height: 60px;
    max-width: 80%;
    color: white; 
    font-style: italic;
}

.cuerpo-formulario {
    padding: 30px;
}

.titulo-principal {
    color: #20569c;
    font-size: 26px;
    font-weight: 300;
    text-align: center;
    margin: 0 0 10px 0;
}

.subtitulo {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 0 0 25px 0;
}

/* ======================================================= */
/* 2. FORMULARIOS E INPUTS                                 */
/* ======================================================= */
.fila-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.caja-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    background-color: #fcfcfc;
}

.caja-input label {
    font-size: 11px;
    color: #777;
    margin-bottom: 3px;
}

.caja-input input {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    width: 100%;
    background: transparent;
}

.bdb-input {
    border: 1px solid #CCCCCC;
    transition: all 0.2s ease;
}

.bdb-input:focus {
    border-color: #002D72;
    box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.1);
}

/* ======================================================= */
/* 3. LISTA DE BANCOS                                      */
/* ======================================================= */
.lista-bancos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.opcion-banco input[type="radio"] {
    display: none;
}

.contenido-banco {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.placeholder-img {
    width: 40px;
    height: 25px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #888;
}

.nombre-banco {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.opcion-banco:hover .contenido-banco {
    background-color: #f9f9f9;
}

.opcion-banco input[type="radio"]:checked + .contenido-banco {
    border-color: #20569c;
    background-color: #f0f5fa;
}

/* ======================================================= */
/* 4. BOTONES                                              */
/* ======================================================= */
.contenedor-botones {
    display: flex;
    gap: 15px;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover:not(:disabled) { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-volver {
    background-color: #e9ecef;
    color: #333;
}

.btn-continuar {
    background-color: #fada7a;
    color: #786016;
    width: 100%;
}

.bdb-btn-primary {
    background-color: #002D72;
    border: 2px solid #002D72;
    transition: all 0.2s ease;
}
.bdb-btn-primary:hover {
    background-color: #001D4A;
    border-color: #001D4A;
}

.bdb-btn-secondary {
    background-color: white;
    border: 2px solid #002D72;
    color: #002D72;
    transition: all 0.2s ease;
}
.bdb-btn-secondary:hover {
    background-color: #002D72;
    color: white;
}

.btn-azul {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.btn-azul:hover {
    background-color: #0056b3;
}

/* ======================================================= */
/* 5. MENÚ DE NAVEGACIÓN                                   */
/* ======================================================= */
.menu-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container img {
    height: 45px;
    object-fit: contain;
}

.enlaces-menu {
    display: flex;
    gap: 30px;
}

.enlace {
    text-decoration: none;
    color: #666666;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}
.enlace:hover {
    color: #16D2B1;
}

.nav-link { transition: all 0.2s ease; }
.nav-link.active {
    border-bottom: 2px solid #FFB600;
    color: #FFB600;
}

.contenedor-acciones {
    display: flex;
    align-items: center;
    background-color: #F4F6F9;
    padding: 5px 5px 5px 20px;
    border-radius: 50px;
    gap: 15px;
}

.ajuste-texto {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 30px;
    padding: 8px 15px;
    gap: 15px;
}

.btn-texto {
    background: none;
    border: none;
    color: #999999;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.btn-texto:hover {
    color: #333333;
}

.btn-ingresar {
    background-color: #FFD200;
    color: #000000;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}
.btn-ingresar:hover {
    background-color: #E6BD00;
}

.navToggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* ======================================================= */
/* 6. MENÚ MÓVIL                                           */
/* ======================================================= */
.mobileMenu {
    display: none;
    background-color: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 20px;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.mobileMenu a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
}

.mobileMenu .mobileCta a {
    display: inline-block;
    background-color: #FFD200;
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
}

.btn-ingresar-movil {
    background-color: #FFD200;
    color: #000000;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}
.btn-ingresar-movil:hover {
    background-color: #E6BD00;
}

.mobileMenu .mobileCta a.btn-ingresar-movil {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFD200 !important;
    color: #000000 !important;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    width: max-content;
}

.mobileMenu .mobileCta a.btn-ingresar-movil svg {
    display: block !important;
    stroke: #000000 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
}
.mobileMenu .mobileCta a.btn-ingresar-movil:hover {
    background-color: #E6BD00 !important;
}

/* ======================================================= */
/* 7. PANTALLA DE CARGA (LOADER) Y COMPONENTES             */
/* ======================================================= */
.bdb-card { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.loading { display: none; }
.loading.active { display: inline-flex; }

/* Estilos base para el overlay (oculto por defecto) */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    display: none; /* <--- Clave: oculto al principio */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
}

/* Cuando JavaScript añade la clase 'active', se muestra */
.loader-overlay.active {
    display: flex; /* <--- Cambia a flex para centrar el spinner y textos */
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255,255,255,0.2);
    border-top-color: #FFB600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-dots { display: flex; gap: 10px; }
.loader-dots span {
    width: 14px;
    height: 14px;
    background: #FFB600;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ======================================================= */
/* 8. AVISO DE COOKIES                                     */
/* ======================================================= */
.aviso-cookies {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 15px 20px;
    box-sizing: border-box;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.aviso-cookies p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ======================================================= */
/* 9. DISEÑO RESPONSIVO (MEDIA QUERIES)                    */
/* ======================================================= */
@media (min-width: 768px) {
    .aviso-cookies p {
        margin: 0;
        text-align: left;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .enlaces-menu,
    .contenedor-acciones {
        display: none;
    }
    .navToggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .fila-inputs {
        flex-direction: column;
        gap: 10px;
    }
}

/* Ocultamos todas las secciones por defecto */
.section {
    display: none;
}

/* Solo mostramos la que tenga la clase 'active' */
.section.active {
    display: block !important;
}



/* CUADRADO AMARILLO */
@keyframes floatSquare {
    0% {
        transform: rotate(12deg) translate(0, 0);
    }
    25% {
        transform: rotate(18deg) translate(-8px, -12px);
    }
    50% {
        transform: rotate(12deg) translate(6px, -18px);
    }
    75% {
        transform: rotate(20deg) translate(-10px, -8px);
    }
    100% {
        transform: rotate(12deg) translate(0, 0);
    }
}

/* CIRCULO */
@keyframes floatCircle {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(12px, -8px) scale(1.05);
    }
    50% {
        transform: translate(20px, 10px) scale(1.1);
    }
    75% {
        transform: translate(8px, 18px) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.floating-square {
    animation: floatSquare 5s ease-in-out infinite;
    transition: all .4s ease;
}

.floating-circle {
    animation: floatCircle 6s ease-in-out infinite;
    transition: all .4s ease;
}

/* CONTENEDOR DE LA IMAGEN */
.hero-image-wrap:hover .floating-square {
    animation-duration: 1.2s;
    transform: scale(1.15);
    filter: brightness(1.15);
}

.hero-image-wrap:hover .floating-circle {
    animation-duration: 1.4s;
    transform: scale(1.25);
}

.hero-card {
    transition: all .4s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
}

.hero-card img {
    transition: transform .6s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
}

/* BADGES */
.hero-card .badge-top,
.hero-card .badge-bottom {
    transition: all .4s ease;
}

.hero-card:hover .badge-top {
    transform: translateY(-6px);
}

.hero-card:hover .badge-bottom {
    transform: translateY(6px);
}

/* SECCIÓN QUÉ ES TUPLÚS */

@keyframes aboutSquareFloat {
    0% {
        transform: rotate(12deg) translate(0,0);
    }
    25% {
        transform: rotate(18deg) translate(-10px,-12px);
    }
    50% {
        transform: rotate(10deg) translate(8px,-18px);
    }
    75% {
        transform: rotate(20deg) translate(-6px,-8px);
    }
    100% {
        transform: rotate(12deg) translate(0,0);
    }
}

@keyframes aboutCircleFloat {
    0% {
        transform: translate(0,0) scale(1);
    }
    25% {
        transform: translate(12px,-8px) scale(1.05);
    }
    50% {
        transform: translate(18px,10px) scale(1.1);
    }
    75% {
        transform: translate(8px,18px) scale(1.05);
    }
    100% {
        transform: translate(0,0) scale(1);
    }
}

.floating-about-square{
    animation: aboutSquareFloat 5s ease-in-out infinite;
}

.floating-about-circle{
    animation: aboutCircleFloat 6s ease-in-out infinite;
}

/* Efecto hover */

.about-image-wrap:hover .floating-about-square{
    animation-duration: 1.5s;
    filter: brightness(1.15);
}

.about-image-wrap:hover .floating-about-circle{
    animation-duration: 1.3s;
}

.about-image-wrap img{
    transition: all .6s ease;
}

.about-image-wrap:hover img{
    transform: scale(1.04);
}

/* Tarjeta flotante */

.about-image-wrap:hover .absolute.bottom-6.left-6{
    transform: translateY(-6px);
}

.absolute.bottom-6.left-6{
    transition: all .4s ease;
}

footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: white;
    transition: .3s;
}

footer a:hover::after {
    width: 100%;
}

.mobileMenu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    padding: 18px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    border-top: 1px solid #eee;
}

.mobileMenu.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobileMenu a {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 0;
}

.mobileCta {
    margin-top: 8px;
}

@media (min-width: 901px) {
    .mobileMenu {
        display: none !important;
    }
}