/* styles.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-900: #0b3a7a;
    --blue-700: #133a82;
    --yellow: #ffd200;
    --orange: #ff7a00;
    --teal: #00c1b3;
    --light: #f6f8fb;
    --dark: #222;
    --card: #ffffff;
    --muted: #7a7a7a;
}

html, body {
    height: 100%
}

body {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--light);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

/* HEADER */
.site-header {
    background: #fff;
    box-shadow: 0 1px 6px rgba(10, 10, 10, 0.06);
    position: sticky;
    top: 0;
    z-index: 80;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    height: 60px;
    display: block;
}

.main-nav a {
    margin-left: 22px;
    color: var(--blue-900);
    text-decoration: none;
    font-weight: 600;
}

/* HERO */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

/* CARRUSEL */
.carousel {
    height: 100%;
    position: relative;
}

.carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s;
}

.carousel img.active {
    opacity: 1;
}

/* TEXTO SOBRE IMAGEN */
.hero-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 48px);
}

.hero-text p {
    font-size: clamp(18px, 3vw, 26px);
}


.hero-content {
    position: absolute;
    top: 70%;
    left: 150px; /* Ajusta la distancia desde el borde */
    transform: translateY(-50%);
    text-align: left;
    z-index: 10;
}

/* LOGO */
.logo {
    height: 48px;
    width: auto;
}

/* MENU */
.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    position: relative;
    color: #003a8f;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons img {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* HOVER COLOR */
.main-nav a:hover {
    color: #ff8c00;
}

/* BOTÓN */
.hero-btn {
    background: #00568f;
    color: #fff;
    padding: 15px 58px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: #0b3b7e; /* Hover más oscuro */
}

/*VENTANA EMERGENTE*/
/* Fondo oscuro */
.modal {
    display: none; /* OCULTO por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);

    align-items: center;
    justify-content: center;
}

/* Caja blanca */
.modal-content {
    background: white;
    width: 360px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.modal-content h2 {
    color: #003a8f;
    margin-bottom: 20px;
}

/* Inputs */
.modal-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.input-group-addon, .input-group-btn {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    display: table-cell;
}

.H1dinefa {
    margin-bottom: 10px;
}

.alert-info {
    color: #0d6aad;
    font-weight: 500;
    font-style: italic;
}

/* Botones */
.btn-login,
.btn-create {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn-login {
    background-color: #003a8f; /* azul sólido */
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background-color: #ff8c00; /* naranja hover */
    transform: translateY(-2px);
}

.btn-create {
    background-color: #003a8f; /* azul sólido */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-create:hover {
    background-color: #ff8c00; /* naranja hover */
    transform: translateY(-2px);
}

/* Links */
.forgot {
    display: block;
    margin: 10px 0;
    color: #003a8f;
    font-size: 14px;
}

.no-account {
    margin-top: 20px;
    color: #003a8f;
}

/* FONDO MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* CAJA */
.login-box {
    background: white;
    width: 360px;
    padding: 40px 30px 30px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


.modal-content {
    position: relative;
}

/* BOTÓN CERRAR */
.close-modal {
    all: unset;
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #ff8c00;
}

/* Animación */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/*FIN DE LA VENTANA EMERGENTE*/


/* ONDA */
.wave {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 170px;
    z-index: 2;
}

/* ======= SECCIÓN 3 PASOS ======= */

/* CONTENEDOR GENERAL */
.steps-modern {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.steps-modern-title {
    font-size: 32px;
    color: #0d3d72;
    margin-bottom: 60px;
    font-weight: 700;
}

.steps-modern-title span {
    color: #25b5e9;
}

/* CONTENEDOR DE CÍRCULOS */
.steps-modern-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* TARJETA CÍRCULO */
.step-circle {
    width: 220px;
    height: 220px;
    perspective: 1000px;
}

.step-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .8s;
    border-radius: 50%;
    cursor: pointer;
}

/* Al pasar el mouse GIRA */
.step-circle:hover .step-inner {
    transform: rotateY(180deg);
}

/* CARA FRONTAL Y TRASERA */
.step-front, .step-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    padding: 30px;
}

/* FRENTE */
.step-front {
    background: #ffd8c2;
    border: 4px solid #ff8f44;
}

.step-front h3 {
    margin-top: 10px;
    color: #000000;
    font-size: 20px;
}

/* DORSO */
.step-back {
    background: #ff8f44;
    transform: rotateY(180deg);
    color: #fff;
}

.step-back h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-back p {
    font-size: 14px;
    max-width: 150px;
}

/* ÍCONOS */
.step-icon {
    width: 70px;
}

/* ======= SECCIÓN REQUISITOS ======= */
.requisitos-section {
    background: #00568f;
    padding: 60px 0;
    text-align: center;
    border-radius: 60px 60px 60px 60px; /* bordes redondeados */
    position: relative;
    z-index: 2;

}

.requisitos-section h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 40px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 90%;
    margin: auto;
}

.arrow-small {
    font-size: 28px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 5px 10px;
    transition: 0.2s;
}

.arrow-small:hover {
    transform: scale(1.2);
}

.requisitosSwiper {
    width: 90%;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 70px;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Ajustar espacio entre tarjetas */
.swiper-slide {
    display: flex;
    justify-content: center;
}

.hidden {
    display: none !important;
}

.right {
    float: right;
}

/* ======= SECCIÓN OPINIONES ======= */
.testimonials-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #00568f;
}

.testimonials {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 40px 0;
}

.testimonial-item {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.testimonial-item .icon {
    position: relative;
    z-index: 1;
}

.name {
    margin-top: 10px;
    font-size: 14px;
}

.opinion {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 180px;
    background: white;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 10;
}

.testimonial-item:hover .opinion {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-120%);
}

/* ======= FOOTER ======= */
.footer {
    background: #101827;
    padding: 40px 5%;
    font-family: "Poppins", sans-serif;
    color: #ffffff;
    border-top: 3px solid #e0e0e0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* ----- COLUMNA IZQUIERDA ----- */

.footer-links a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.footer-links a:hover {
    color: #ffffff;
}

.verified-text {
    margin-top: 20px;
    font-size: 14px;
}

.footer-verificados img.footer-icon {
    width: 80px;
    height: auto;
    margin-right: 10px;
    object-fit: contain;
}

/* ----- COLUMNA CENTRAL ----- */

.footer-center .footer-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-small-icon {
    width: 18px;
    height: auto;
    margin-right: 8px;
    object-fit: contain;
}

/* ----- COLUMNA DERECHA ----- */

.footer-logo1 {
    width: 60px;
    height: auto;
}

.footer-logo2 {
    width: 40px;
    height: auto;
}

.footer-logo3 {
    width: 70px;
    height: auto;
}

.footer-logo4 {
    width: 60px;
    height: auto;
}

.footer-copy {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-legales a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.footer-legales a:hover {
    opacity: 0.7;
}


.prestamo-form {
    background: linear-gradient(135deg, #ffe3cb, #f1b987);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.prestamo-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.col-izq {
    width: 100%;
    max-width: 500px;
}

/*Caja monto*/
.monto-box {
    width: 350px;
    background: linear-gradient(135deg, #0b3b7e, #1081cc);
    border-radius: 20px;
    padding: 40px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.monto-box h2 {
    font-size: 26px;
    margin-bottom: 40px;
}

.monto-box input[type="range"] {
    width: 100%;
    margin-bottom: 20px;
}

.monto {
    background: white;
    color: #333;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 22px;
    font-weight: 700;
    width: fit-content;
}

.mmonto {
    font-size: 24px;
    font-weight: 600;
}
/* Cuotas al lado del slider */
.cuotas-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cuota {
    padding: 6px 15px;
    background: #f2f6ff;
    border: 2px solid #00568f;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    transition: 0.3s;
    line-height: 30px;
}

.cuota:hover, .cuota.active {
    background: #00568f;
    border: 2px solid #003f6b;
    color: white;
    transform: scale(1.05);
}

.cuota span {
    font-weight: bold;
}

.confirmar-box {
    margin-top: 25px;
    text-align: center;
}

.btn-confirmar {
    background: #0b3b7e;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.btn-confirmar:hover {
    background: #ff8c00;
}


@media (max-width: 1024px) {
    .monto-box,
    .cuotas-box,
    .form-box {
        width: 100%;
        max-width: 500px;
    }

    .cuotas-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

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

    .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .hero-btn {
        font-size: 18px;
        padding: 10px 20px;
        border-radius: 30px;
    }

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Header alineado */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Ocultar menú links */
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 0;

        display: none;
    }

    /* Redes + hamburguesa lado derecho */
    .social-icons {
        display: flex;
        gap: 10px;
    }

    .footer-container {
        text-align: center;
        flex-direction: column;
    }

    .footer-item {
        justify-content: center;
    }

    .footer-verificados img.footer-icon {
        margin: 5px;
    }
}



