/* =========================================================
   ESTILOS GENERALES
========================================================= */

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

html,
body{
    width:100%;
    min-height:100%;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:#333;
    background:#f2f4f8;
}


/* =========================================================
   HEADER
========================================================= */

.registroHeader{

    width:100%;
    height:76px;

    background:#fff;

    position:relative;
    z-index:10;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

}

.registroHeaderContenido{

    width:100%;
    max-width:1400px;
    height:100%;

    margin:0 auto;
    padding:0 30px;

    display:flex;
    align-items:center;

}


/* ==============================
   LOGO
============================== */

.registroLogo{

    display:flex;
    align-items:center;

    gap:12px;

    text-decoration:none;

    color:#003366;

}

.registroLogoIcono{

    width:44px;
    height:44px;

    border-radius:10px;

    background:#003366;
    color:#fff;

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

    font-size:20px;

}

.registroLogoTexto{

    display:flex;
    flex-direction:column;

    line-height:1.1;

}

.registroLogoTexto strong{

    font-size:16px;

    letter-spacing:.3px;

}

.registroLogoTexto span{

    margin-top:4px;

    font-size:11px;

    color:#777;

    letter-spacing:1.5px;

}


/* =========================================================
   ÁREA PRINCIPAL DEL REGISTRO
========================================================= */

.registroMain{

    position:relative;

    min-height:calc(100vh - 76px);

    padding:45px 20px;

    display:flex;

    justify-content:center;

    align-items:flex-start;

    background-image:url("/assets/img/hero-finanzas.png");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

}


/* =========================================================
   CAPA SOBRE LA IMAGEN
========================================================= */

.registroOverlay{

    position:absolute;

    inset:0;

    background:rgba(0,35,70,.58);

}


/* =========================================================
   CONTENEDOR DEL FORMULARIO
========================================================= */

.contenedor{

    z-index:2;

    width:100%;

    max-width:850px;

    margin:40px auto;

    background:rgba(255,255,255,.97);

    padding:40px;

    border-radius:14px;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

}


/* =========================================================
   TÍTULOS
========================================================= */

h2{

    text-align:center;

    margin-bottom:30px;

    color:#003366;

    font-size:28px;

}


/* =========================================================
   ETIQUETAS
========================================================= */

label{

    display:block;

    margin-top:18px;
    margin-bottom:6px;

    font-weight:bold;

    color:#444;

}


/* =========================================================
   INPUTS
========================================================= */

input{

    width:100%;

    padding:12px;

    border:1px solid #ccc;

    border-radius:8px;

    font-size:16px;

    transition:.25s;

    background:#fff;

}

input:focus{

    border-color:#0d6efd;

    outline:none;

    box-shadow:0 0 8px rgba(13,110,253,.25);

}

input[readonly]{

    background:#f5f5f5;

}


/* =========================================================
   SELECT
========================================================= */

select{

    width:100%;

    padding:12px;

    border:1px solid #ccc;

    border-radius:8px;

    background:#fff;

    font-size:16px;

    transition:.25s;

}

select:focus{

    border-color:#0d6efd;

    outline:none;

    box-shadow:0 0 8px rgba(13,110,253,.25);

}


/* =========================================================
   BOTONES GENERALES
========================================================= */

button{

    width:100%;

    margin-top:30px;

    padding:14px;

    border:none;

    border-radius:8px;

    background:#0d6efd;

    color:#fff;

    font-size:17px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}

button:hover{

    background:#0b5ed7;

    transform:translateY(-2px);

}

button:active{

    transform:translateY(0);

}


/* =========================================================
   MENSAJES
========================================================= */

.correcto{

    background:#d4edda;

    color:#155724;

    border-left:5px solid #28a745;

    padding:15px;

    border-radius:6px;

    margin-bottom:20px;

}

.error{

    background:#f8d7da;

    color:#721c24;

    border-left:5px solid #dc3545;

    padding:15px;

    border-radius:6px;

    margin-bottom:20px;

}


/* =========================================================
   BARRA DE PROGRESO
========================================================= */

.progreso{

    width:100%;

    height:10px;

    background:#e9ecef;

    border-radius:20px;

    overflow:hidden;

    margin:20px 0 30px;

    box-shadow:inset 0 1px 2px rgba(0,0,0,.08);

}

#barraProgreso{

    width:25%;

    height:100%;

    background:#198754;

    transition:.3s;

}


/* =========================================================
   PROGRESO - PASOS
========================================================= */

.progreso-container{

    margin:30px 0 40px;

}

.pasos{

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.paso-item{

    display:flex;

    flex-direction:column;

    align-items:center;

    width:80px;

}

.circulo{

    width:45px;
    height:45px;

    border-radius:50%;

    background:#dee2e6;

    color:#6c757d;

    display:flex;

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

    font-size:18px;

    transition:.3s;

}

.paso-item span{

    margin-top:8px;

    font-size:13px;

    color:#666;

    text-align:center;

}

.paso-item.activo .circulo{

    background:#0d6efd;

    color:#fff;

}

.linea{

    flex:1;

    height:4px;

    background:#dee2e6;

    margin:0 10px;

    border-radius:20px;

}


/* =========================================================
   SUBTÍTULOS
========================================================= */

h3{

    color:#003366;

    font-size:24px;

    margin-bottom:6px;

}

h3 i{

    color:#0d6efd;

    margin-right:8px;

}

h4{

    color:#555;

    margin-bottom:15px;

    font-size:18px;

    font-weight:normal;

}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.descripcion{

    color:#666;

    margin-bottom:20px;

    line-height:1.5;

}


/* =========================================================
   LEYENDA
========================================================= */

.leyenda{

    margin-bottom:25px;

    color:#666;

    font-size:14px;

}

.requerido{

    color:#dc3545;

    font-weight:bold;

}


/* =========================================================
   FILAS Y CAMPOS
========================================================= */

.fila{

    display:flex;

    gap:20px;

    margin-bottom:18px;

}

.campo{

    flex:1;

    display:flex;

    flex-direction:column;

}

.campo small{

    font-size:12px;

    margin-top:6px;

    line-height:1.4;

}


/* =========================================================
   ACCIONES
========================================================= */

.acciones{

    display:flex;

    justify-content:space-between;

    gap:15px;

    margin-top:30px;

}

.acciones button{

    width:100%;

    margin-top:0;

}


/* =========================================================
   PASOS DEL FORMULARIO
========================================================= */

.paso{

    animation:fade .25s ease;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/* =========================================================
   VALIDACIONES
========================================================= */

.input-error{

    border:2px solid #dc3545 !important;

    box-shadow:0 0 8px rgba(220,53,69,.20);

}

.input-correcto{

    border:2px solid #198754 !important;

    box-shadow:0 0 8px rgba(25,135,84,.20);

}

.mensaje-validacion,
.mensaje-correcto{

    display:block;

    margin-top:5px;
    margin-bottom:10px;

    font-size:13px;

}

.mensaje-validacion{

    color:#dc3545;

}

.mensaje-correcto{

    color:#198754;

}


/* =========================================================
   CONFIRMACIÓN
========================================================= */

.confirmacion{

    text-align:center;

}

.icono-confirmacion{

    font-size:80px;

    color:#198754;

    margin-bottom:20px;

}

.codigo-solicitud{

    background:#f8f9fa;

    border:1px solid #dee2e6;

    border-radius:10px;

    padding:20px;

    margin:30px 0;

}

.codigo-solicitud h3{

    margin-bottom:10px;

    color:#003366;

}

.codigo-solicitud strong{

    display:block;

    font-size:30px;

    color:#198754;

    letter-spacing:2px;

    margin-bottom:10px;

}

.codigo-solicitud small{

    display:block;

    color:#666;

}

.btn-regresar{

    display:inline-block;

    background:#0d6efd;

    color:#fff;

    padding:14px 28px;

    border-radius:8px;

    text-decoration:none;

    font-weight:bold;

    transition:.25s;

}

.btn-regresar:hover{

    background:#0b5ed7;

}


/* =========================================================
   PANTALLA DE CARGA
========================================================= */

.pantalla-carga{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(255,255,255,.85);

    z-index:9999;

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

}

.caja-carga{

    text-align:center;

}

.spinner{

    width:60px;
    height:60px;

    border:6px solid #e5e5e5;

    border-top:6px solid #0F4C81;

    border-radius:50%;

    animation:girar 1s linear infinite;

    margin:auto auto 20px;

}

@keyframes girar{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* =========================================================
   PÁGINA DE CONFIRMACIÓN
========================================================= */

.pagina-confirmacion{

    width:100%;
    min-height:100vh;

    display:flex;

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

    padding:20px;

}

.pagina-confirmacion .confirmacion{

    width:100%;
    max-width:850px;

    margin:0;

}



/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width:768px){

    .registroHeader{

        height:68px;

    }

    .registroHeaderContenido{

        padding:0 18px;

    }

    .registroLogoIcono{

        width:40px;
        height:40px;

        font-size:18px;

    }

    .registroLogoTexto strong{

        font-size:14px;

    }

    .registroLogoTexto span{

        font-size:10px;

    }

    .registroMain{

        min-height:calc(100vh - 68px);

        padding:25px 12px;

    }

    .contenedor{

        padding:25px 20px;

        border-radius:10px;

    }

    h2{

        font-size:24px;

    }

    input,
    select{

        font-size:16px;

    }

    button{

        font-size:16px;

    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width:480px){

    .registroHeader{

        height:64px;

    }

    .registroHeaderContenido{

        padding:0 12px;

    }

    .registroLogo{

        gap:9px;

    }

    .registroLogoIcono{

        width:37px;
        height:37px;

        border-radius:8px;

        font-size:16px;

    }

    .registroLogoTexto strong{

        font-size:12px;

    }

    .registroLogoTexto span{

        font-size:9px;

        letter-spacing:1px;

    }

    .registroMain{

        min-height:calc(100vh - 64px);

        padding:15px 8px;

    }

    .contenedor{

        padding:20px 15px;

        border-radius:9px;

    }

    h2{

        font-size:22px;

        margin-bottom:22px;

    }

    h3{

        font-size:21px;

    }

    h4{

        font-size:17px;

    }

    label{

        font-size:15px;

    }

    input,
    select{

        padding:11px;

        font-size:15px;

    }

    button{

        padding:13px;

        font-size:16px;

    }

    .fila{

        flex-direction:column;

        gap:0;

    }

    .acciones{

        flex-direction:column;

        gap:10px;

    }

    .pasos{

        width:100%;

    }

    .paso-item{

        width:55px;

    }

    .circulo{

        width:38px;
        height:38px;

        font-size:15px;

    }

    .paso-item span{

        font-size:11px;

    }

    .linea{

        margin:0 4px;

        height:3px;

    }

}