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

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

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

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

/* ==============================
   CONTENEDOR
============================== */

.contenedor{

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

    margin:40px auto;

    background:#fff;

    padding:40px;

    border-radius:12px;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

/* ==============================
   TITULOS
============================== */

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;

}

/* ==============================
   BOTON
============================== */

button{

    width:100%;

    margin-top:30px;

    padding:14px;

    border:none;

    border-radius:8px;

    background:#0d6efd;

    color:white;

    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;

}

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

@media (max-width:768px){

    body{

        padding:15px;

    }

    .contenedor{

        margin:20px auto;

        padding:22px;

    }

    h2{

        font-size:24px;

    }

    input{

        font-size:16px;

    }

    button{

        font-size:16px;

    }

}

@media (max-width:480px){

    body{

        padding:10px;

    }

    .contenedor{

        margin:10px auto;

        padding:18px;

        border-radius:10px;

    }

    h2{

        font-size:22px;

    }

    label{

        font-size:15px;

    }

    input{

        padding:11px;

        font-size:15px;

    }

    button{

        padding:13px;

        font-size:16px;

    }

}

/* ===========================
   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;

}

/* ===========================
   INPUT ERROR
=========================== */


.input-error{

    border:2px solid #dc3545 !important;

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

}

.mensaje-correcto{

    font-size:13px;

    color:#198754;

    margin-top:6px;

    display:block;

}


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

.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;

}



/* ==============================
   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
============================== */

.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;

}


/* ==============================
   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);

}

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

.acciones{

    display:flex;

    justify-content:space-between;

    gap:15px;

    margin-top:30px;

}

.acciones button{

    width:100%;

    margin-top:0;

}

/* ==============================
   PASOS
============================== */

.paso{

    animation:fade .25s ease;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==============================
   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);

    }

}