/*=========================
      PÁGINA PRINCIPAL
=========================*/

.contenedor{

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:100vh;

}

.card{

    width:600px;

    background:#fff;

    padding:40px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.card h1{

    color:#1565c0;

    margin-bottom:10px;

}

.card p{

    color:#666;

    margin-bottom:30px;

}

.boton{

    display:block;

    text-decoration:none;

    color:white;

    background:#1565c0;

    padding:15px;

    border-radius:8px;

    margin-top:15px;

    transition:.3s;

}

.boton:hover{

    background:#0d47a1;

}

.secundario{

    background:#43a047;

}

.secundario:hover{

    background:#2e7d32;

}



/*=========================
    CONFIGURACIÓN GENERAL
=========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

body{

    background:#eef3f8;

}

/*=========================
    CONTENEDOR
=========================*/

.contenedor-formulario{

    width:100%;
    padding:40px;

    display:flex;
    justify-content:center;

}

.formulario{

    width:100%;
    max-width:1000px;

    background:#fff;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

/*=========================
      ENCABEZADO
=========================*/

.encabezado{

    background:#1565c0;

    color:white;

    padding:25px;

}

.encabezado h1{

    font-size:28px;

}

.encabezado p{

    margin-top:5px;

    opacity:.9;

}

/*=========================
      CUERPO
=========================*/

.contenido{

    padding:35px;

}

h2{

    color:#1565c0;

    margin-bottom:20px;

}

/*=========================
    BARRA
=========================*/

.barra{

    width:100%;

    height:12px;

    background:#ddd;

    border-radius:20px;

    overflow:hidden;

    margin:25px 0 10px;

}

.progreso{

    width:20%;

    height:100%;

    background:#2196f3;

    transition:.4s;

}

#textoPaso{

    margin-bottom:30px;

    color:#666;

}

/*=========================
      GRID
=========================*/

.paso{

    display:none;

    animation:fade .4s;

}

.paso.activo{

    display:block;

}

.grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

}

.grupo{

    display:flex;

    flex-direction:column;

}

.grupo label{

    font-weight:bold;

    margin-bottom:8px;

    color:#444;

}

.grupo input,
.grupo select,
.grupo textarea{

    padding:12px;

    border:1px solid #cfd8dc;

    border-radius:8px;

    font-size:15px;

}

.grupo textarea{

    resize:vertical;

    min-height:90px;

}

.grupo-completo{

    grid-column:1 / 3;

}

/*=========================
       BOTONES
=========================*/

.botones{

    display:flex;

    justify-content:space-between;

    margin-top:35px;

}

.botones button{

    border:none;

    padding:12px 30px;

    border-radius:8px;

    cursor:pointer;

    font-size:15px;

    color:white;

    transition:.3s;

}

#anterior{

    background:#6c757d;

}

#anterior:hover{

    background:#555;

}

#siguiente{

    background:#1565c0;

}

#siguiente:hover{

    background:#0d47a1;

}

#guardar{

    background:#2e7d32;

}

#guardar:hover{

    background:#1b5e20;

}

/*=========================
      ANIMACIÓN
=========================*/

@keyframes fade{

from{

opacity:0;
transform:translateX(20px);

}

to{

opacity:1;
transform:translateX(0);

}

}

/*=========================
     RESPONSIVE
=========================*/

@media(max-width:768px){

.grid{

grid-template-columns:1fr;

}

.grupo-completo{

grid-column:auto;

}

.contenedor-formulario{

padding:10px;

}

}

/*=================================
    TEXTOS DE AYUDA Y SUBTÍTULOS
=================================*/

.descripcion-seccion {
    color: #6c757d;
    margin-top: -12px;
    margin-bottom: 25px;
    font-size: 14px;
}

.subtitulo-seccion {
    color: #37474f;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe5eb;
}

.grupo small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
}

/*=================================
       OPCIONES SÍ Y NO
=================================*/

.opciones-radio {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 45px;
}

.radio-opcion {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
}

.radio-opcion input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/*=================================
       ESTADO DE VALIDACIÓN
=================================*/

.grupo input:focus,
.grupo select:focus,
.grupo textarea:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.grupo input:invalid:not(:placeholder-shown),
.grupo select:invalid:not(:focus) {
    border-color: #dc3545;
}

#guardar:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/*=================================
      CONSULTA DE REGISTROS
=================================*/

.contenedor-consulta {
    width: 100%;
    min-height: 100vh;
    padding: 35px 20px;
}

.panel-consulta {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.encabezado-consulta {
    background: #1565c0;
    color: #ffffff;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.encabezado-consulta h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.encabezado-consulta p {
    margin: 0;
    opacity: 0.9;
}

.acciones-encabezado {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.boton-enlace {
    display: inline-block;
    text-decoration: none;
    background: #ffffff;
    color: #1565c0;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.25s;
}

.boton-enlace:hover {
    background: #e3f2fd;
}

.boton-enlace.boton-gris {
    background: #607d8b;
    color: #ffffff;
}

.boton-enlace.boton-gris:hover {
    background: #455a64;
}

.contenido-consulta {
    padding: 30px;
}

.buscador-contenedor {
    margin-bottom: 20px;
}

.buscador-contenedor > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #37474f;
}

.buscador-fila {
    display: flex;
    gap: 10px;
}

.buscador-fila input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    font-size: 15px;
}

.buscador-fila input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.buscador-fila button {
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    background: #1565c0;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
}

.buscador-fila button:hover {
    background: #0d47a1;
}

.buscador-fila .boton-limpiar {
    background: #6c757d;
}

.buscador-fila .boton-limpiar:hover {
    background: #545b62;
}

.resumen-registros {
    margin: 15px 0;
    color: #546e7a;
    font-size: 14px;
}

.mensaje-consulta {
    display: none;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
}

.mensaje-consulta.error {
    display: block;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.mensaje-consulta.exito {
    display: block;
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e6eb;
    border-radius: 10px;
}

.tabla-registros {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
}

.tabla-registros th,
.tabla-registros td {
    padding: 13px 12px;
    border-bottom: 1px solid #e8edf1;
    text-align: left;
    vertical-align: top;
}

.tabla-registros th {
    background: #f2f6fa;
    color: #37474f;
    font-size: 14px;
    white-space: nowrap;
}

.tabla-registros td {
    color: #455a64;
    font-size: 14px;
}

.tabla-registros tbody tr:hover {
    background: #f8fbfd;
}

.tabla-registros tbody tr:last-child td {
    border-bottom: none;
}

.estado {
    display: inline-block;
    min-width: 45px;
    padding: 5px 10px;
    border-radius: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.estado-activo {
    background: #d1e7dd;
    color: #0f5132;
}

.estado-inactivo {
    background: #f8d7da;
    color: #842029;
}

.acciones-tabla {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.accion {
    display: inline-block;
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}

.accion.ver {
    background: #0288d1;
}

.accion.editar {
    background: #f9a825;
}

.accion.eliminar {
    background: #c62828;
}

.accion.ver:hover {
    background: #0277bd;
}

.accion.editar:hover {
    background: #f57f17;
}

.accion.eliminar:hover {
    background: #b71c1c;
}

@media (max-width: 768px) {

    .contenedor-consulta {
        padding: 10px;
    }

    .encabezado-consulta {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .contenido-consulta {
        padding: 20px 15px;
    }

    .buscador-fila {
        flex-direction: column;
    }

    .buscador-fila button {
        width: 100%;
    }

}

/*=================================
       DETALLE DEL REGISTRO
=================================*/

.contenedor-detalle {
    width: 100%;
    min-height: 100vh;
    padding: 35px 20px;
}

.panel-detalle {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.encabezado-detalle {
    background: #1565c0;
    color: #ffffff;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.encabezado-detalle h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.encabezado-detalle p {
    margin: 0;
    opacity: 0.9;
}

.contenido-detalle {
    padding: 30px;
}

.cargando-detalle {
    padding: 40px 15px;
    text-align: center;
    color: #607d8b;
}

.seccion-detalle {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
}

.seccion-detalle:last-child {
    margin-bottom: 0;
}

.seccion-detalle h2 {
    margin: 0 0 22px;
    color: #1565c0;
    font-size: 21px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce4ea;
}

.grid-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dato-detalle {
    min-width: 0;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8ed;
    border-radius: 9px;
}

.dato-detalle.dato-completo {
    grid-column: 1 / 3;
}

.etiqueta-detalle {
    display: block;
    margin-bottom: 8px;
    color: #546e7a;
    font-size: 13px;
    font-weight: 700;
}

.valor-detalle {
    display: block;
    color: #263238;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {

    .contenedor-detalle {
        padding: 10px;
    }

    .encabezado-detalle {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .contenido-detalle {
        padding: 15px;
    }

    .seccion-detalle {
        padding: 18px 14px;
    }

    .grid-detalle {
        grid-template-columns: 1fr;
    }

    .dato-detalle.dato-completo {
        grid-column: auto;
    }

}

.accion:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.accion.eliminar:disabled {
    background: #9e9e9e;
}

/*=================================
          DASHBOARD
=================================*/

.dashboard {
    min-height: 100vh;
    background: #eef3f8;
}

.dashboard-header {
    min-height: 120px;
    padding: 28px 6%;
    background: #1565c0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.dashboard-header h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.9;
}

.dashboard-header-fecha {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    font-size: 14px;
}

.dashboard-contenido {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 32px 20px 45px;
}

.bienvenida-dashboard {
    margin-top:-25px;
    margin-bottom:25px;
    padding:28px 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.etiqueta-dashboard {
    display: inline-block;
    margin-bottom: 7px;
    color: #1565c0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.bienvenida-dashboard h2 {
    margin: 0 0 8px;
    color: #263238;
    font-size: 25px;
}

.bienvenida-dashboard p {
    max-width: 700px;
    margin: 0;
    color: #607d8b;
    line-height: 1.6;
}

.dashboard-boton-principal {
    flex-shrink: 0;
    padding: 13px 20px;
    background: #2e7d32;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s;
}

.dashboard-boton-principal:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}

.mensaje-dashboard {
    display: none;
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 8px;
}

.mensaje-dashboard.error {
    display: block;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.tarjetas-estadisticas {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.tarjeta-estadistica {
    min-width: 0;
    padding: 21px;
    background: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tarjeta-icono {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #e3f2fd;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.tarjeta-titulo {
    display: block;
    margin-bottom: 5px;
    color: #607d8b;
    font-size: 13px;
}

.tarjeta-numero {
    display: block;
    color: #263238;
    font-size: 27px;
    line-height: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.dashboard-panel {
    min-width: 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.06);
}

.dashboard-panel-encabezado {
    margin-bottom: 20px;
}

.dashboard-panel-encabezado h3 {
    margin: 0 0 5px;
    color: #263238;
    font-size: 20px;
}

.dashboard-panel-encabezado p {
    margin: 0;
    color: #78909c;
    font-size: 14px;
}

.acciones-dashboard {
    display: grid;
    gap: 13px;
}

.accion-dashboard {
    padding: 16px;
    border: 1px solid #e0e7ec;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.25s;
}

.accion-dashboard:hover {
    border-color: #90caf9;
    background: #f5faff;
    transform: translateX(3px);
}

.accion-dashboard-icono {
    flex: 0 0 41px;
    width: 41px;
    height: 41px;
    border-radius: 9px;
    background: #1565c0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 700;
}

.accion-dashboard strong {
    display: block;
    margin-bottom: 4px;
    color: #263238;
}

.accion-dashboard span:not(
    .accion-dashboard-icono
) {
    color: #78909c;
    font-size: 13px;
}

.lista-sectores {
    display: grid;
    gap: 22px;
}

.sector-info {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #455a64;
}

.sector-info strong {
    color: #1565c0;
}

.sector-barra {
    width: 100%;
    height: 10px;
    background: #e8edf1;
    border-radius: 20px;
    overflow: hidden;
}

.sector-progreso {
    width: 0;
    height: 100%;
    background: #1565c0;
    border-radius: 20px;
    transition: width 0.65s ease;
}

@media (max-width: 1100px) {

    .tarjetas-estadisticas {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {

    .dashboard-header {
        min-height: 160px;
        padding: 24px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header-fecha {
        align-self: flex-start;
    }

    .bienvenida-dashboard {
        margin-top: -45px;
        padding: 24px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .tarjetas-estadisticas {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .dashboard-contenido {
        padding-right: 12px;
        padding-left: 12px;
    }

    .dashboard-header h1 {
        font-size: 25px;
    }

    .tarjetas-estadisticas {
        grid-template-columns: 1fr;
    }

    .tarjeta-estadistica {
        padding: 18px;
    }

}

/*=============================
      BOTÓN PANEL PRINCIPAL
=============================*/

.encabezado-superior{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

}

.btn-panel{

    background:#1565c0;

    color:white;

    text-decoration:none;

    padding:12px 22px;

    border-radius:8px;

    font-weight:600;

    transition:.25s;

    white-space:nowrap;

}

.btn-panel:hover{

    background:#0d47a1;

    transform:translateY(-2px);

}

@media(max-width:768px){

    .encabezado-superior{

        flex-direction:column;

        align-items:flex-start;

    }

    .btn-panel{

        width:100%;

        text-align:center;

    }

}

.boton-enlace.boton-excel {
    background: #217346;
    color: #ffffff;
}

.boton-enlace.boton-excel:hover {
    background: #185c37;
}

.texto-opcional {
    color: #607d8b;
    font-size: 13px;
    font-weight: 500;
}

.descripcion-opcional {
    margin-top: -8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #f4f7f9;
    border-left: 4px solid #90a4ae;
    border-radius: 5px;
    color: #546e7a;
    font-size: 13px;
    line-height: 1.5;
}

/*=================================
        TAMAÑOS DE CAMPOS
=================================*/

.input-xs{
    width:120px !important;
}

.input-sm{
    width:220px !important;
}

.input-md{
    width:420px !important;
}

.input-lg{
    width:700px !important;
}

.input-full{
    width:100% !important;
}

textarea.input-md{
    width:700px !important;
}

textarea.input-lg{
    width:100% !important;
}