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

font-family:Arial, Helvetica, sans-serif;

background-image:url("../ASSETS/imagenes/Fondo.jpg");

background-size:cover;
background-position:center center;
background-repeat:no-repeat;
background-attachment: fixed;

min-height:100vh;

display:flex;

justify-content:center;

align-items:center;

font-family:Arial, Helvetica, sans-serif;

height:100vh;

display:flex;

justify-content:center;

align-items:center;

}

.caja-consulta{

    margin-top:30px;

}
 
.contenedor-login{
width:100%;

display:flex;

justify-content:center;

align-items:center;

}

 
.caja-login{

width:50%;

max-width:430px;

background: rgba(10, 12, 26, 0.78);

padding: 36px 28px 30px;

border-radius: 18px;

backdrop-filter:blur(10px);

border: 2px solid rgba(0, 255, 255, 0.7);

box-shadow: 0 0 0 2px rgba(255, 0, 191, 0.35), 0 0 30px rgba(0, 255, 255, 0.18);

}

.password-wrapper {
    position: relative;
    width: 100%;
}

.input-password {
    width: 100%;
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.8);
    background: rgba(18, 25, 38, 0.78);
    color: rgba(154, 215, 255, 0.95);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.2);
    line-height: 1;
    cursor: pointer;
}

.toggle-password:hover {
    background: rgba(125, 211, 252, 0.14);
    color: #eaf7ff;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.4);
}

.toggle-password span {
    display: inline-block;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 3px rgba(125, 211, 252, 0.25));
}

.recordarme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px auto 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.recordarme input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #00FFFF;
    cursor: pointer;
}

.recordarme span {
    line-height: 1;
}

h1{

color: #00FFFF;
text-align:center;

font-size: 24.1px;
margin-bottom:38px;
text-transform: uppercase;
letter-spacing: 1px;
text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);

}

.ttlDatos{

font-size: 24.1px;
margin-top: 15px;
margin-bottom:11px;

}


input{

width:100%;

padding:14px;

margin-bottom:18px;

border:1px solid rgba(255,255,255,0.3);

border-radius:10px;
background: rgba(255,255,255,0.9);
color:#111;
font-weight:600;
box-shadow: inset 0 0 8px rgba(0,0,0,0.08);

}

select{

width:100%;

height:42px;

padding:14px;


margin-bottom:20px;

border:none;

border-radius:5px;

background:white;

color:#555;

font-size:13px;

}

button{

width:55%;

padding:14px;

display: block;

margin: auto;
margin-top: 20px;

background: rgba(0, 0, 0, 0.9);

border: 1px solid #00FFFF;

border-radius: 12px;

color:white;

font-weight:bold;
cursor:pointer;

box-shadow:0 0 10px rgba(0,255,255,0.7);


}

button:hover{

background: linear-gradient(135deg, #00f0ff, #86f7ff);

color:black;

transform:translateY(-1px);

box-shadow:0 0 14px rgba(0,255,255,0.8);

transition:0.25s ease;

}


.btnGps{

width:35%;
padding: 7px;
font-size:12px;
font-weight: bold;

background:#6c6d66;

color:#000000;

border:2px solid #fcfcfc;

display:block;

margin-left: 10px;

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

}

.btnGps:hover{

background:black;

color:wheat;

transform:scale(1.03);

box-shadow:0 0 10px #000000;

transition:0.3s;

}

.btnAtras{

width: 88px;
min-width: 88px;
max-width: 88px;
padding: 8px 10px;
font-size:12px;
font-weight: bold;

background: linear-gradient(135deg, #dfe3e8, #b9bec6);

color:#000000;

border:2px solid rgba(255,255,255,0.9);
border-radius: 10px;

display:block;

margin-left: 2px;

margin-top:3px;
margin-bottom:18px;    
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
transition: all 0.2s ease;

}

.btnAtras:hover{
    background: linear-gradient(135deg, #f0f3f6, #c3c9d1);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.22);
}


#mensajeErrorF1,
#mensajeErrorF2{

    color:#ff4d4d;

    font-weight:bold;

    text-align:center;

    margin-top:20px;

    min-height:25px;
}

.error{

    border:2px solid red !important;

}



table{

    width:100%;

    border-collapse:separate;
    border-spacing:0;

    background:rgba(255,255,255,0.02);

    margin-top:15px;

    border-radius:15px;

    overflow:hidden;

}

.contenedorTabla {
    max-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.45);
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

#tablaRegistros {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

#tablaRegistros thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #00FFFF;
    color: #000000;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    border: none;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
}

#tablaRegistros th,
#tablaRegistros td {
    border: none;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    width:90px;
    min-width:90px;
}

#tablaRegistros tbody td {
    color: #000000;
    background: rgba(255,255,255,0.82);
    font-size: 13px;
    line-height: 1.3;
}

#tablaRegistros tbody tr:nth-child(even) {
    background: rgba(153, 0, 255, 0.10);
}

#tablaRegistros tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.82);
}

#tablaRegistros tbody tr:hover {
    background: rgba(184,255,255,0.8);
    transition: 0.2s;
}

#tablaRegistros td:last-child {
    text-align: center;
}

#tablaRegistros td:last-child .btnDetalle {
    display: inline-block;
    margin: 0 auto;
}



#buscarProyecto{

    width: 33%;
    min-width: 200px;
    max-width: 400px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #00FFFF;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    display: inline-block;
    order: 2;

}

#buscarProyecto:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.25);
}

.cabeceraTabla {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.btnAtras {
    width: 22%;
    max-width: 120px;
    padding: 7px;
    font-size: 12px;
    font-weight: bold;
    background: #6c6d66;
    color: #000000;
    border: 2px solid #fcfcfc;
    display: block;
    margin-left: 2px;
    margin-top: -8px;
    margin-bottom: 12px;
}

#buscarEstadoProyecto {
    width: 36%;
    min-width: 220px;
    max-width: 350px;
    margin: 0 0 14px auto;
    border: 1px solid #00FFFF;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    display: block;
    background: rgba(255,255,255,0.92);
    color: #111;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.08);
}

#buscarEstadoProyecto:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.25);
}

.seguimientoCabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 8px;
}

.seguimientoCabecera h2 {
    margin: 0;
    color: #00f5ff;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.45);
}

.seguimientoCabecera #buscarEstadoProyecto {
    margin: 0;
}

#btnNuevoRegistro {
    width: 33%;
    min-width: 260px;
    max-width: 400px;
    padding: 12px 14px;
    margin: 10px 0 15px auto;
    display: inline-block;
    background: #000000;
    border: 1px solid #00FFFF;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffff;
    order: 2;
}

#btnNuevoRegistro:hover {
    background: #00d4ff;
    color: black;
    transform: scale(1.01);
    box-shadow: 0 0 10px #000000;
    transition: 0.3s;
}

.accionesPanel {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.btnCerrarSesion {
    width: 180px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 0, 170, 0.91);
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 0, 170, 0.35);
}

.btnCerrarSesion:hover {
    background: linear-gradient(135deg, #ff3ebc, #f05ab4);
    color: #170710;
    transform: translateY(-1px);
    transition: 0.25s ease;
}

.btnEstadoProyectos {
    width: 220px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00FFFF;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,255,255,0.6);
    margin-right: 12px;
}

.btnEstadoProyectos:hover {
    background: linear-gradient(135deg, #00d9ff, #aaf7ff);
    color: #001014;
    transform: translateY(-1px);
    transition: 0.25s ease;
}

.caja-estado {
    max-width: 1100px;
}

.panelGraficas {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin: 10px 0 18px;
}

.cardDuracion {
    grid-column: 1 / -1;
    min-height: 150px;
}

.cardGrafica {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(16, 27, 52, 0.92), rgba(5, 10, 27, 0.82));
    border: 1px solid rgba(0, 245, 255, 0.65);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 22px rgba(0, 255, 255, 0.10);
    padding: 15px 18px 12px;
    min-height: 180px;
}

.cardGrafica::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f5ff, #ff37c8, transparent);
    opacity: 0.9;
}

.cardGrafica h3 {
    text-align: center;
    color: #00F5FF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.45);
}

.graficaBarras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 140px;
    padding: 2px 4px 0;
}

.barrasResumenPanel {
    display: flex;
    flex: 0 0 145px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.resumenBarras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(0, 245, 255, 0.45);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.08);
}

.resumenBarrasEtiqueta {
    font-size: 9px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.resumenBarras strong {
    color: #00f5ff;
    font-size: 17px;
    line-height: 1;
}

.barrasPorcentajes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.barraPorcentajeItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.barraPorcentajeEstado {
    color: rgba(255, 255, 255, 0.7);
}

.barraPorcentajeValor {
    color: #fff;
    font-weight: 700;
}

.barrasVisuales {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 22px;
    flex: 1;
    height: 105px;
    padding-top: 6px;
}

@media (max-width: 640px) {
    .graficaBarras {
        gap: 8px;
    }

    .barrasResumenPanel {
        flex-basis: 125px;
    }

    .barrasVisuales {
        gap: 10px;
    }

    .barraColumna {
        min-width: 54px;
    }
}

.barraColumna {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 70px;
}

.barraValor {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
}

.barraTrack {
    width: 42px;
    height: 92px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px 12px 8px 8px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.barraFill {
    width: 100%;
    border-radius: 12px 12px 8px 8px;
    min-height: 10px;
}

.barraFill.aprobado {
    background: linear-gradient(180deg, #3de58b, #1fae5e);
}

.barraFill.en-revision {
    background: linear-gradient(180deg, #ffd54a, #f7b500);
}

.barraFill.no-aprobado {
    background: linear-gradient(180deg, #ff6b6b, #d63031);
}

.barraLabel {
    margin-top: 8px;
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    max-width: 70px;
}

.graficaDonaWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 140px;
}

.graficaDona {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.18), inset 0 0 14px rgba(0,0,0,0.18);

}

@media screen and (max-width:768px){

    .graficaDona{

        width:140px;

        height:140px;

        margin:auto;

    }

}


.graficaDona::before {
    content: "";
    position: absolute;
    inset: 18px;
    background: rgba(11, 18, 31, 0.95);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}

.leyendaStatus {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 150px;
    max-height: 132px;
    overflow-y: auto;
}

.legendItem {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 2px 0;
    margin: 0;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-family: inherit;
    font-size: 10px;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.legendItem:hover,
.legendItem[aria-pressed="true"] {
    background: rgba(0, 217, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.legendItem:focus-visible {
    outline: 2px solid #00f5ff;
    outline-offset: 2px;
}

.legendColor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legendLabel {
    flex: 1;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legendValue {
    font-weight: 700;
    color: #fff;
    min-width: 16px;
    text-align: right;
}

.legendPercent {
    min-width: 42px;
    color: #00f5ff;
    font-weight: 700;
    text-align: right;
}

.legendEmpty {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    text-align: center;
}

.graficaDuracion {
    min-height: 210px;
}

.medidoresTiempo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    width: 100%;
}


@media screen and (max-width:768px){

    .medidoresTiempo{

        display:flex;

        flex-direction:column;

        gap:20px;

    }

}


.medidorTiempo {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.medidorTiempoTitulo {
    min-height: 24px;
    color: #ff8dde;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-align: center;
    text-transform: uppercase;
}

.medidorTiempo small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    margin-top: 15px;
}

.medidorTiempo .medidorVelocimetro {
    width: min(270px, 100%);
    transform: scale(0.82);
    transform-origin: center top;
    margin-bottom: -25px;
}

@media screen and (max-width:768px){

    .medidorTiempo .medidorVelocimetro{

        transform:scale(0.70);

        margin-bottom:-45px;

    }

}

.medidorVelocimetro {
    position: relative;
    width: min(330px, 90%);
    height: 150px;
    margin: 0 auto;
}

.medidorArco {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 270px;
    height: 135px;
    transform: translateX(-50%);
    border-radius: 270px 270px 0 0;
    background: conic-gradient(from 270deg at 50% 100%, #ff31c8 0deg, #9f4dff 76deg, #491c69 160deg, rgba(255, 255, 255, 0.12) 180deg, transparent 180deg);
    box-shadow: 0 0 18px rgba(255, 49, 200, 0.38), inset 0 0 14px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.medidorArco::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 230px;
    height: 115px;
    border-radius: 230px 230px 0 0;
    background: rgba(8, 12, 29, 0.96);
}

.medidorAguja {
    position: absolute;
    z-index: 2;
    left: calc(50% - 2px);
    bottom: 25px;
    width: 4px;
    height: 110px;
    border-radius: 4px;
    background: linear-gradient(180deg, #fff, #ff31c8 70%, #9f4dff);
    box-shadow: 0 0 10px rgba(255, 49, 200, 0.9);
    transform-origin: 50% 100%;
}

.medidorCentro {
    position: absolute;
    z-index: 3;
    left: calc(50% - 8px);
    bottom: 17px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff31c8;
    border: 3px solid #ffd5f5;
    box-shadow: 0 0 12px rgba(255, 49, 200, 0.9);
}

.medidorEscala {
    position: absolute;
    bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-weight: 700;
}

.medidorEscalaInicio {
    left: 8px;
}

.medidorEscalaMedio {
    left: 50%;
    transform: translateX(-50%);
}

.medidorEscalaFin {
    right: 8px;
}

.medidorLectura {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: -23px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.medidorLectura strong {
    color: #ff8dde;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 49, 200, 0.65);
}

.medidorLectura span,
.duracionSinDatos,
.duracionDetalle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
}

.duracionSinDatos {
    margin: 0;
}

.duracionDetalle {
    margin: 3px 0 0;
}

@media (max-width: 640px) {
    .graficaDuracion {
        min-height: 610px;
    }

    .medidoresTiempo {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .medidorVelocimetro {
        width: 290px;
    }

    .medidorArco {
        width: 245px;
        height: 123px;
    }

    .medidorArco::after {
        width: 207px;
        height: 104px;
    }

    .medidorAguja {
        height: 98px;
    }
}

.contenedorEstado {
    max-height: 500px;
    min-height: 220px;
    overflow-x: auto;
}

#tablaEstadoProyectos {
    width: auto;
    min-width: 2550px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

#tablaEstadoProyectos thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #00FFFF;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    border: none;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
    padding: 10px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

#tablaEstadoProyectos tbody td {
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 13px;
    line-height: 1.3;
    border: none;
    padding: 10px 8px;
    vertical-align: middle;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
}

#tablaEstadoProyectos tbody tr:nth-child(even) {
    background: rgba(153, 0, 255, 0.12);
}

#tablaEstadoProyectos tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.8);
}

#tablaEstadoProyectos tbody tr:hover {
    background: rgba(184,255,255,0.75);
    transition: 0.2s;
}

#tablaEstadoProyectos tbody td:nth-child(9),
#tablaEstadoProyectos thead th:nth-child(9) {
    min-width: 210px;
}

#tablaEstadoProyectos tbody td:nth-child(13),
#tablaEstadoProyectos thead th:nth-child(13) {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 250px;
}

#tablaEstadoProyectos tbody td:nth-child(4),
#tablaEstadoProyectos tbody td:nth-child(5),
#tablaEstadoProyectos tbody td:nth-child(6) {
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

#tablaEstadoProyectos td:nth-child(1),
#tablaEstadoProyectos th:nth-child(1),
#tablaEstadoProyectos td:nth-child(3),
#tablaEstadoProyectos th:nth-child(3),
#tablaEstadoProyectos td:nth-child(4),
#tablaEstadoProyectos th:nth-child(4),
#tablaEstadoProyectos td:nth-child(5),
#tablaEstadoProyectos th:nth-child(5),
#tablaEstadoProyectos td:nth-child(6),
#tablaEstadoProyectos th:nth-child(6),
#tablaEstadoProyectos td:nth-child(7),
#tablaEstadoProyectos th:nth-child(7),
#tablaEstadoProyectos td:nth-child(8),
#tablaEstadoProyectos th:nth-child(8),
#tablaEstadoProyectos td:nth-child(9),
#tablaEstadoProyectos th:nth-child(9),
#tablaEstadoProyectos td:nth-child(10),
#tablaEstadoProyectos th:nth-child(10),
#tablaEstadoProyectos td:nth-child(11),
#tablaEstadoProyectos th:nth-child(11),
#tablaEstadoProyectos td:nth-child(12),
#tablaEstadoProyectos th:nth-child(12),
#tablaEstadoProyectos td:nth-child(13),
#tablaEstadoProyectos th:nth-child(13) {
    text-align: center;
}

.aprobacion-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.aprobacion-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    margin: 0;
}

.aprobacion-estado.en-revision {
    background: #f8db04;
    color: #000000;
}

.aprobacion-estado.aprobado {
    background: #08d35d;
    color: #000000;
}

.aprobacion-estado.no-aprobado {
    background: #ee2812;
    color: #fff;
}

.selectAprobacion {
    width: 5px;
    min-width: 30px;
    max-width: 30px;
    padding: 3px 2px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    background-color: #000000;
    color: #fdfbfb;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    text-indent: -9999px;
    direction: rtl;
}

.selectAprobacion option {
    font-weight: 700;
    text-transform: uppercase;
    text-indent: 0;
}

.selectTipificacion {
    width: 100%;
    min-width: 180px;
    max-width: 225px;
    padding: 6px 24px 6px 8px;
    border: 1px solid #00ffff;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.selectTipificacion option {
    background: #111827;
    color: #ffffff;
    font-weight: 700;
}




#tablaGestionProyectos {
    width: 6200px;
    min-width: 6200px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

#tablaGestionProyectos thead th {

    position: sticky;

    top: 0;

    z-index: 1;

    min-width: 180px;

    padding: 10px 8px;

    background: #00ffff;

    color: #000000;

    font-size: 14px;

    font-weight: 800;

    text-align: center;

    white-space: normal;

}

.filtroDesplegable {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding: 6px 7px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    background: #ffffff;
    color: #111827;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filtroDesplegable:hover {
    background: #e4fbfc;
    color: #111827;
    box-shadow: none;
    transform: none;
}

.filtroDesplegable::after {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.filtroDesplegable[aria-pressed="true"] {
    border-color: #007f8b;
    background: #e4fbfc;
}

.filtroDesplegable:focus-visible,
#limpiarFiltrosTabla:focus-visible {
    outline: 2px solid #007f8b;
    outline-offset: 2px;
}

.menuFiltroColumna {
    position: fixed;
    inset: auto;
    z-index: 10000;
    box-sizing: border-box;
    width: min(280px, calc(100vw - 16px));
    max-height: 320px;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #536477;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.menuFiltroColumna.abierto {
    display: block;
}

.busquedaMenuFiltro {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 8px;
    border: 1px solid #aab6c3;
    border-radius: 4px;
    color: #111827;
    font-size: 12px;
    box-shadow: none;
}

.accionesMenuFiltro {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    padding: 4px 0;
}

.accionesMenuFiltro button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 3px 6px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #006b75;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.accionesMenuFiltro button:hover {
    background: #e7f7f8;
    color: #004f57;
    box-shadow: none;
    transform: none;
}

.opcionesMenuFiltro {
    max-height: 205px;
    overflow-y: auto;
    border-top: 1px solid #d8dee5;
}

.opcionMenuFiltro {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 2px 4px;
    color: #1f2937;
    font-size: 12px;
    cursor: pointer;
}

.opcionMenuFiltro:hover {
    background: #e7f7f8;
}

.opcionMenuFiltro input {
    appearance: none;
    box-sizing: border-box;
    position: relative;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    accent-color: #007f8b;
    cursor: pointer;
}

.opcionMenuFiltro input::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg);
}

.opcionMenuFiltro input:checked::after {
    border-color: #007f8b;
}

.opcionMenuFiltro input:focus-visible {
    outline: 2px solid #007f8b;
    outline-offset: 2px;
}

.barraResumenTabla {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 8px;
    border-top: 1px solid rgba(0, 245, 255, 0.25);
    border-bottom: 1px solid rgba(0, 245, 255, 0.25);
    background: rgba(12, 22, 31, 0.78);
}

.datosResumenTabla {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.datosResumenTabla > strong {
    color: #ffffff;
    font-size: 12px;
}

.totalesProyectos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.totalesProyectos strong {
    color: #00e1d2;
    font-size: 10px;
}

.filtrosActivosTabla {
    color: #aab7c5;
    overflow-wrap: anywhere;
}

#limpiarFiltrosTabla {
    order: -1;
    flex: 0 0 120px;
    align-self: flex-start;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    min-height: 24px;
    margin: 0;
    padding: 4px 6px;
    border: 1px solid rgba(0, 245, 255, 0.5);
    border-radius: 3px;
    background: transparent;
    color: #e9ffff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#limpiarFiltrosTabla:hover:not(:disabled) {
    background: rgba(0, 217, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

#limpiarFiltrosTabla:disabled {
    opacity: 0.45;
    cursor: default;
}

@media screen and (max-width: 768px) {
    .barraResumenTabla {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .datosResumenTabla {
        gap: 8px 12px;
    }
}

.filaSinResultados td {
    padding: 14px;
    text-align: center;
    font-weight: 700;
}


#tablaGestionProyectos tbody td {
    min-width: 180px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
}

#tablaGestionProyectos tbody tr:nth-child(even) td {
    background: rgba(225, 214, 235, 0.92);
}

#tablaGestionProyectos tbody tr:hover td {
    background: rgba(184, 255, 255, 0.8);
}

.controlGestion {
    box-sizing: border-box;
    width: 100%;
    min-width: 160px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #00bcd4;
    border-radius: 5px;
    background: #101827;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    font-size: 12.7px;
}

textarea.controlGestion {
    min-height: 54px;
    resize: vertical;
    text-align: left;
}

#tablaGestionProyectos input[type="date"].controlGestion {
    min-width: 140px;
}

#buscarEstadoProyecto {
    width: 33%;
    min-width: 200px;
    max-width: 400px;
    margin-left: auto;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #00FFFF;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

#buscarEstadoProyecto:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.25);
}

.estadoCabecera {
    justify-content: flex-start;
    align-items: center;
}




.caja-consulta{

    width:100%;

    max-width:1350px;

    background:rgba(13, 0, 21, 0.842);

    padding:50px;

    border-radius:25px;

    backdrop-filter:blur(10px);

}

@media screen and (max-width:768px){

    .caja-consulta{

        overflow-x:auto;

    }

    table{

        min-width:1400px;

    }

}


@media screen and (max-width:768px){

    .caja-consulta{

        overflow-x:auto;

    }

    #tablaRegistros{

        min-width:1200px;

    }

}


.btnDetalle{

    width:80px;

    padding:6px;

    margin:0;

    background:#000000;

    color:white;

    border:none;

    border-radius:5px;

    font-weight:bold;

    cursor:pointer;

    text-align:center;

}

.btnDetalle:hover{

    background:#00ffff;

    color:rgb(7, 7, 7);

}


.modal{

    display:none;

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,0.8);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.modalContenido{

    width:700px;

    max-width:90%;

    background:rgba(13,0,21,0.95);

    color:white;

    padding:30px;

    border-radius:20px;

    border:2px solid #00FFFF;

    box-shadow:0 0 20px #00FFFF;

}

.modalContenido h2{

    color:#00FFFF;

    text-align:center;

    margin-bottom:20px;

    max-height: 80vh;

    overflow-y: auto;

}

#detalleContenido{

    line-height:2;

}

#btnCerrarModal{

    margin-top:0;
    margin-left:0;
    color:black;
    border: 2.5px solid #ff00d0;
    border-radius: 10px;
    background: #00ffffca;
    padding: 10px 18px;
    width: auto;
    display: inline-block;

}

.accionesDetalle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.btnMapa {
    background: #8a00fa;
    color: #fefefe;
    border: 2px solid #ff00d0;
    border-radius: 8px;
    padding: 10px 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.btnMapa:hover {
    background: #ccc9c9;
    transform: translateY(-1px);
}

.fichaDetalle{

    display:flex;

    flex-direction:column;

    gap:15px;

}


@media screen and (max-width:768px){

    .fichaDetalle{

        max-height:75vh;

        overflow-y:auto;

        padding:15px;

    }

}


@media screen and (max-width:768px){

    .campoDetalle{

        padding:12px;

        margin-bottom:10px;

    }

    .tituloDetalle{

        font-size:18px;

    }

    .valorDetalle{

        font-size:16px;

    }

}


@media screen and (max-width:768px){

    .modalContenido{

        width:90% !important;

        max-height:80vh;

        overflow-y:auto;

        padding:15px;

    }

}



@media screen and (max-width:768px){

    .accionesDetalle{

        position:sticky;

        bottom:0;

        background:#120022;

        padding-top:10px;

    }

}



.campoDetalle{

    background:rgba(255,255,255,0.06);

    border-left:4px solid #00FFFF;

    padding:12px;

    border-radius:8px;

}

.tituloDetalle{

    display:block;

    color:#00FFFF;

    font-size:12px;

    font-weight:bold;

    letter-spacing:1px;

    margin-bottom:5px;

}

.valorDetalle{

    display:block;

    color:white;

    font-size:15px;

    word-break:break-word;

}


.encabezadoFicha{

    text-align:center;

    margin-bottom:25px;

    padding-bottom:15px;

    border-bottom:1px solid #00FFFF;

}

.encabezadoFicha h3{

    color:#00FFFF;

    font-size:24px;

    margin-bottom:5px;

}





.caja-menu{

    width:90%;

    max-width:700px;

    padding:40px;

    border-radius:20px;

    background:rgba(13,0,21,0.85);

    backdrop-filter:blur(12px);

}

#contenedorMenuPrincipal{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.btnMenuPrincipal{

    width:100%;

    padding:15px;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

}


.flatpickr-calendar {

    background: #101827;

    border: 1px solid #00ffff;

}

.flatpickr-months .flatpickr-month {

    color: white;

}

.flatpickr-current-month input.cur-year {

    color: white;

}

.flatpickr-weekday {

    color: #00ffff;

}

.flatpickr-day {

    color: white;

}

.flatpickr-day.selected {

    background: #00ffff;

    border-color: #00ffff;

    color: black;

}

.flatpickr-day:hover {

    background: rgba(0,255,255,0.2);

}

.flatpickr-current-month .cur-year {

    width: 75px !important;

    font-size: 14px !important;

    color: #ffffff !important;

}


.flatpickr-current-month {

    display: flex !important;

    align-items: center;

    gap: 8px;
}


/* NOMBRE DEL PROYECTO */
#tablaGestionProyectos th:nth-child(3),
#tablaGestionProyectos td:nth-child(3) {

    min-width: 400px;

}


/* FASE */
#tablaGestionProyectos th:nth-child(6),
#tablaGestionProyectos td:nth-child(6) {

    min-width: 248px;

}

/* STATUS */
#tablaGestionProyectos th:nth-child(7),
#tablaGestionProyectos td:nth-child(7) {

    min-width: 250px;

}

/* SUB STATUS */
#tablaGestionProyectos th:nth-child(8),
#tablaGestionProyectos td:nth-child(8) {

    min-width: 240px;

}

/* OBSERVACIONES */
#tablaGestionProyectos th:nth-child(9),
#tablaGestionProyectos td:nth-child(9) {

    min-width: 500px;

}

    #tablaGestionProyectos td:nth-child(9) {
white-space: normal !important;
word-break: break-word;
}


/* NOMBRE CLIENTE */
#tablaGestionProyectos th:nth-child(11),
#tablaGestionProyectos td:nth-child(11) {

    min-width: 280px;

}

/* CORREO */
#tablaGestionProyectos th:nth-child(13),
#tablaGestionProyectos td:nth-child(13) {

    min-width: 290px;

}

/* DIRECCION */
#tablaGestionProyectos th:nth-child(17),
#tablaGestionProyectos td:nth-child(17) {

    min-width: 450px;

}

/* RANGO DE PERMISOS */
#tablaGestionProyectos th:nth-child(37),
#tablaGestionProyectos td:nth-child(37) {

    min-width: 280px;

}


.flatpickr-current-month .cur-year {

    width: 90px !important;

    font-size: 14px !important;

    color: #ffffff !important;

    font-weight: bold;

}

.flatpickr-current-month {

    display: flex !important;

    align-items: center;

    gap: 10px;

}

.flatpickr-months {

    background: #101827;

}

.flatpickr-monthDropdown-months {

    background: #101827;

    color: white;

    border: 1px solid #00ffff;

}



/* =======================================
   VERSION MOVIL Y TABLET
======================================= */

@media screen and (max-width:768px){

    .caja-login{

        width:90% !important;

        max-width:500px;

        padding:25px 20px;

    }

    .caja-login h1{

        font-size:48px !important;

        line-height:1.1;

    }

    .caja-login input{

        width:100% !important;

        box-sizing:border-box;

    }

    .caja-login button{

        width:100%;

    }

}


@media screen and (max-width:768px){

    .panelGraficas{

        grid-template-columns:1fr;

    }

}


@media screen and (max-width:768px){

    input,
    select,
    textarea{

        width:100% !important;

        box-sizing:border-box;

        font-size:16px;

    }

}


@media screen and (max-width:768px){

    #btnGPS{

        width:100%;

        height:50px;

        margin-bottom:10px;

    }

}


@media screen and (max-width:768px){

    .caja-consulta{

        overflow-x:auto;

    }

    table{

        min-width:1200px;

    }

}

@media screen and (max-width:768px){

    .togglePassword{

        right:15px;

        width:40px;

        height:40px;

    }

}


@media screen and (max-width:768px){

    .panelGraficas{

        grid-template-columns:1fr !important;

    }

    .cardGrafica{

        width:100%;

    }

}

@media screen and (max-width:768px){

    .legendLabel{

        font-size:12px;

        word-break:break-word;

    }

}

@media screen and (max-width:768px){

    #togglePassword{

        right:15px !important;

        top:50%;

        transform:translateY(-50%);

        width:40px;

        height:40px;

        background:transparent;

        border:none;

        z-index:1000;

    }

}


@media screen and (max-width:768px){

    .caja-login h1{

        font-size:50px !important;

        line-height:1.1;

    }

}


@media screen and (max-width:768px){

    .cabeceraTabla{

        display:flex;

        flex-direction:column;

        gap:12px;

        align-items:center;

    }

    .cabeceraTabla input{

        width:100% !important;

    }

    .cabeceraTabla button{

        width:100%;

    }

}


@media screen and (max-width:768px){

    #btnCerrarModal{

        width:100%;

        position:sticky;

        bottom:0;

        z-index:999;

    }

}

@media screen and (max-width:768px){

    .accionesPanel{

        display:flex;

        flex-direction:column;

        gap:12px;

    }

    .accionesPanel button{

        width:100%;

    }

}



@media screen and (max-width:768px){

    .contenedorTabla{

        overflow-x:auto;

        width:100%;

    }

    #tablaRegistros{

        min-width:950px;

    }

}

#tablaRegistros th:first-child,
#tablaRegistros td:first-child{

    width:50px;
}

#tablaRegistros th:last-child,
#tablaRegistros td:last-child{

    width:55px;
}


@media screen and (max-width:768px){

    .cardGrafica{

        display:block !important;

        width:100% !important;

        visibility:visible !important;

    }

}


@media screen and (max-width:768px){

    .medidoresTiempo{

        display:flex;

        flex-direction:column;

        align-items:center;

    }

    .medidorTiempo{

        width:100%;

        display:flex;

        flex-direction:column;

        align-items:center;

    }

}


@media screen and (max-width:768px){

    .medidorTiempo{

        width:100%;

        align-items:center;

    }

    .medidorTiempo .medidorVelocimetro{

        width:260px;

        transform:none;

        margin:0 auto;

    }

}

@media screen and (max-width:768px){

    .cardGrafica{

        overflow: visible !important;

        

    }

}

@media screen and (max-width:768px){

    .contenedor-login{

        overflow:visible !important;
    }

    .caja-consulta{

        overflow:visible !important;
    }

}


@media screen and (max-width:768px){

    .medidoresTiempo{

        display:flex;

        flex-direction:column;

        align-items:center;

        justify-content:center;

    }

    .medidorTiempo{

        width:100%;

        display:flex;

        align-items:center;

        justify-content:center;

    }

}


@media screen and (max-width:768px){

    .graficaDona{

        width:150px !important;

        height:150px !important;

        margin:auto;

    }

}


@media screen and (max-width:768px){

    .panelGraficas{

        display:grid !important;

        grid-template-columns:1fr !important;

    }

    .cardBarras{

        display:block !important;

    }

    .cardDona{

        display:block !important;

    }

    .cardDuracion{

        display:block !important;

    }

}

@media screen and (max-width:768px){

    .contenedor-login{

        align-items:flex-start !important;

    }

    .caja-consulta{

        margin-top:80px !important;

    }

}

@media screen and (max-width:768px){

    body{

        display:block !important;

        height:auto !important;

    }

}