*{

    margin:0;

    padding:0;

    box-sizing:border-box;

    font-family:Arial, Helvetica, sans-serif;

}

body{

    background:#020b16;

    color:white;

    padding:40px;

}

.container{

    max-width:1700px;

    margin:auto;

}

.encabezado{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    padding:20px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.logo-area{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo-circulo{

    width:80px;

    height:80px;

    border-radius:50%;

    background:linear-gradient(45deg,#59ff00,#003300);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

    font-weight:bold;

}

.logo-area h2{

    font-size:32px;

}

.logo-area span{

    color:#59ff00;

}

.logo-area p{

    font-size:12px;

    color:#ccc;

}

.titulo-area{

    text-align:center;

}

.titulo-area h1{

    font-size:42px;

    margin-bottom:10px;

}

.titulo-area h3{

    font-size:24px;

    color:#d9d9d9;

}

.datos-area{

    line-height:2;

    font-size:18px;

}

.linea-verde{

    width:100%;

    height:4px;

    background:#59ff00;

    margin:25px 0;

}

.formulario{
    background: linear-gradient(145deg,#091827,#0d2238);
    border: 1px solid rgba(0,153,255,0.15);
    border-radius: 18px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);

    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 18px;
}

.formulario input,
.formulario select{

    width: 100%;

    padding: 14px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(0,153,255,0.18);

    border-radius: 12px;

    color: white;

    font-size: 14px;

    transition: 0.3s;
}

.formulario input:focus,
.formulario select:focus{

    outline: none;

    border-color: #00aaff;

    box-shadow: 0 0 10px rgba(0,170,255,0.35);
}

.botones{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-bottom:30px;

}

.btn{

    padding:18px;

    border:none;

    border-radius:10px;

    color:white;

    font-size:20px;

    cursor:pointer;

    font-weight:bold;

}

.verde{

    background:#3d8b3d;

}

.azul{

    background:#1354d1;

}

.gris{

    background:#4c5563;

}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

thead tr {
    background: linear-gradient(135deg, #0077ff, #00bfff);
}

thead th{
    padding:10px;
    font-size:13px;
    background:linear-gradient(145deg,#009dff,#00c6ff);
    color:white;
    text-transform:uppercase;
    letter-spacing:1px;
}

tbody tr {
    background: rgba(12, 28, 45, 0.95);
    transition: all 0.25s ease;
}

tbody tr:hover {
    transform: scale(1.01);
    background: rgba(0,153,255,0.12);
    box-shadow: 0 0 18px rgba(0,153,255,0.18);
}

tbody td{
    padding:8px;
    font-size:13px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

tr.subtotal-row {
    background: rgba(124,255,0,0.08);
}

tr.subtotal-row td {
    color: #7cff00;
    font-weight: 800;
    text-transform: uppercase;
}

tr.total-general-row td {
    color: #00d9ff;
    font-size: 22px;
    font-weight: bold;
}
.subtotal{

    background:#09111f;

    font-weight:bold;

    font-size:22px;

}

.total-general{

    text-align:right;

    margin-top:30px;

    color:#0b5ed7;

    font-size:42px;

    font-weight:bold;

    padding:15px;

    border-top:3px solid #0b5ed7;

}

#totalIndirectos{

    color:#198754;

    font-size:28px;

    font-weight:bold;

}

#totalDirectos{

    color:#fd7e14;

    font-size:28px;

    font-weight:bold;

}

@media(max-width:900px){

    .formulario{

        grid-template-columns:1fr;

    }

    .botones{

        grid-template-columns:1fr;

    }

    .encabezado{

        flex-direction:column;

        text-align:center;

    }

    .titulo-area h1{

        font-size:30px;

    }

}

.btn-eliminar{

    background:red;

    color:white;

    border:none;

    padding:8px 12px;

    border-radius:6px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

}

.btn-eliminar:hover{

    background:darkred;

}

.indirectos-box{

    margin-top:40px;

    background:#111827;

    padding:20px;

    border-radius:15px;

    border:1px solid #2cff05;

}

.indirectos-box h2{

    color:#2cff05;

    margin-bottom:20px;

}

.fila-indirecto,

.fila-total-indirecto{

    display:flex;

    justify-content:space-between;

    padding:10px 0;

    border-bottom:1px solid rgba(255,255,255,0.1);

    color:white;

}

.fila-total-indirecto{

    color:#2cff05;

    font-weight:bold;

    font-size:20px;

}

.total-directos {

    color: #00ff88;

    font-size: 28px;

    font-weight: bold;

    text-align: right;

    margin-top: 30px;

}

.total-general {

    color: #39ff14;

    font-size: 34px;

    font-weight: bold;

    text-align: right;

    margin-top: 15px;

}

#totalDirectos,

#totalGeneral {

    color: #39ff14;

}

.indirectos-box {

    margin-top: 25px;

    border: 2px solid #39ff14;

    border-radius: 12px;

    padding: 20px;

    background: rgba(255,255,255,0.03);

}

.fila-indirecto {

    display: flex;

    justify-content: space-between;

    padding: 8px 0;

    border-bottom: 1px solid rgba(255,255,255,0.08);

}

.fila-indirecto:last-child {

    border-bottom: none;

}

#totalIndirectos {

    color: #39ff14;

    font-weight: bold;

    font-size: 24px;

}

.btn-secundario{
    background: #1e88ff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-secundario:hover{
    background: #1565c0;
}

#sugerencias{
    background: #0f1e2e;
    border: 1px solid #39ff14;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    width: 360px;
    z-index: 1000;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.sugerencia-item{
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: white;
    font-size: 14px;
}

.sugerencia-item small{
    color: #39ff14;
}

.sugerencia-item:hover{
    background: #1d3550;
}

.catalogo-materiales{
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 30, 46, 0.95);
    border: 1px solid #39ff14;
    border-radius: 12px;
}

.catalogo-materiales h2{
    color: #39ff14;
    margin-bottom: 15px;
}

.form-materiales{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

#tablaMateriales{
    width: 100%;
    border-collapse: collapse;
    color: white;
}

#tablaMateriales th{
    background: #1d3550;
    color: #39ff14;
    padding: 10px;
}

#tablaMateriales td{
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 10px;
    text-align: center;
}

.oculto{
    display: none;
}

/* TABLAS COMPACTAS */
table th,
table td{
    padding: 6px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

table tr{
    height: 32px !important;
}

.bitacora-box{
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 30, 46, 0.95);
    border: 1px solid #39ff14;
    border-radius: 12px;
}

.bitacora-box h2{
    color: #39ff14;
    margin-bottom: 15px;
}

.form-bitacora{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.form-bitacora textarea{
    min-height: 80px;
    resize: vertical;
}

#tablaBitacora{
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    color: white;
}

#tablaBitacora th{
    background: #1d3550;
    color: #39ff14;
}

#tablaBitacora td,
#tablaBitacora th{
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* CONTROL DE OBRA */
#controlObra{
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 30, 46, 0.95);
    border: 1px solid #39ff14;
    border-radius: 12px;
}

#controlObra h2{
    color: #39ff14;
    margin-bottom: 15px;
}

#tablaControlObra{
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    color: white;
}

#tablaControlObra th{
    background: #1d3550;
    color: #39ff14;
}

#tablaControlObra td,
#tablaControlObra th{
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
}

/* CRONOGRAMA DE OBRA */
#cronogramaObra{
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 30, 46, 0.95);
    border: 1px solid #39ff14;
    border-radius: 12px;
}

#cronogramaObra h2{
    color: #39ff14;
    margin-bottom: 15px;
}

#tablaCronogramaObra{
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    color: white;
}

#tablaCronogramaObra th{
    background: #1d3550;
    color: #39ff14;
}

#tablaCronogramaObra td,
#tablaCronogramaObra th{
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
}

#contratoObra textarea{

    width: 100%;

    padding: 12px;

    border-radius: 10px;

    border: 1px solid #ccc;

    font-size: 15px;

    resize: vertical;

    background: #fff;

    color: #333;

    box-sizing: border-box;
}

#contratoObra h2{

    margin-bottom: 20px;

    color: #1e3a5f;
}

#contratoObra{

    margin-top: 20px;
}

.dashboard{
    margin-top:20px;
    padding:20px;
    background:white;
    border-radius:12px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
    margin-top:20px;
}

.card-dashboard{
    background:#0f172a;
    color:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    text-align:center;
}

.card-dashboard h3{
    margin-bottom:15px;
    font-size:18px;
}

.card-dashboard p{
    font-size:28px;
    font-weight:bold;
}

/* CONTROL DE OBREROS */
#obrerosBox{
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 30, 46, 0.95);
    border: 1px solid #39ff14;
    border-radius: 12px;
}

#obrerosBox h2{
    color: #39ff14;
    margin-bottom: 15px;
}

#tablaObreros{
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    color: white;
}

#tablaObreros th{
    background: #1d3550;
    color: #39ff14;
}

#tablaObreros td,
#tablaObreros th{
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    text-align: center;
}

#obrerosBox select{
    padding: 10px;
    border-radius: 8px;
    border: none;
}

.btn.eliminar,
button.eliminar {
    background: #ff3b30 !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
}

.btn.eliminar:hover,
button.eliminar:hover {
    background: #c8231a !important;
}

#estadoCuentaBox{
    margin-top:20px;
}

#estadoCuentaBox input{
    width: 100%;
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
    border: none;
    background: #f5f5dc;
}

#tablaEstadoCuenta{
    width:100%;
    border-collapse: collapse;
    margin-top:20px;
}

#tablaEstadoCuenta th{
    background:#008cff;
    color:white;
    padding:10px;
    text-align:center;
}

#tablaEstadoCuenta td{
    padding:10px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,0.1);
    color:white;
}

#tablaEstadoCuenta tr:hover{
    background:rgba(255,255,255,0.05);
}

.fila-capitulo td {
    background: #1f2937;
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding: 12px;
    border-top: 2px solid #77ff33;
    text-transform: uppercase;
}

.fila-subtotal-capitulo td {
    background: #111827;
    color: #77ff33;
    font-weight: bold;
    text-align: right;
    padding: 10px;
    border-top: 1px solid #77ff33;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.03);
}

.btn.verde {
    background: #59ff00;
    color: black;
}

.btn.azul {
    background: linear-gradient(135deg, #007bff, #00aaff);
    color: white;
}

.btn.gris {
    background: #cfd4da;
    color: black;
}

.panel-analisis{
    background: #111827;
    border: 2px solid #00c3ff;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0,195,255,0.3);
}

.panel-analisis h2{
    color: #00c3ff;
    margin-bottom: 20px;
    text-align: center;
}

.grid-analisis{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.grid-analisis input{
    background: #1f2937;
    border: 1px solid #374151;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.grid-analisis input:focus{
    outline: none;
    border-color: #00c3ff;
    box-shadow: 0 0 10px rgba(0,195,255,0.4);
}

#catalogoAPU {
    margin-top: 20px;
}

#catalogoAPU table {
    width: 100%;
    border-collapse: collapse;
}

#catalogoAPU th {
    background: #007bff;
    color: white;
    padding: 10px;
}

#catalogoAPU td {
    padding: 10px;
    border-bottom: 1px solid #374151;
    text-align: center;
}

#catalogoAPU .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.panel-analisis h2 {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.grid-analisis {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-analisis input {
    height: 38px;
    font-size: 14px;
}

#catalogoAPU table {
    font-size: 13px;
}

#catalogoAPU button {
    padding: 4px 8px;
    font-size: 12px;
}

#catalogoAPU {
    background: rgba(15, 25, 45, 0.95);
    border: 2px solid #00d9ff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 0 15px rgba(0,217,255,0.25);
}

#catalogoAPU h2 {
    color: #7cf7ff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
}

#catalogoAPU table {
    width: 100%;
    border-collapse: collapse;
}

#catalogoAPU th {
    background: #00a8ff;
    color: white;
    padding: 6px;
    font-size: 12px;
}

#catalogoAPU td {
    padding: 6px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#catalogoAPU button {
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
}

#catalogoAPU {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
}

#catalogoAPU h2 {
    font-size: 16px;
}

#catalogoAPU table {
    width: 100%;
}

#catalogoAPU th,
#catalogoAPU td {
    padding: 5px;
    font-size: 11px;
}

.panel-analisis,
#catalogoAPU {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    margin: 8px auto;
    padding: 10px;
    box-sizing: border-box;
}

#catalogoAPU h2,
.panel-analisis h2 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

#catalogoAPU table {
    font-size: 11px;
}

#catalogoAPU th,
#catalogoAPU td {
    padding: 4px;
}

.grid-analisis input {
    height: 32px;
    padding: 6px 8px;
    font-size: 12px;
}

.logo-presupuesto-img{
    width:80px;
    height:80px;
    border-radius:15px;
    object-fit:cover;
    margin-right:15px;
}

.container{
    display: flex;
    min-height: 100vh;
    background: #07111f;
}

/* SIDEBAR */

.sidebar{
    width: 260px;
    background: linear-gradient(180deg,#081520,#0b1d30);
    border-right: 1px solid rgba(0,153,255,0.25);
    padding: 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

.sidebar-logo{
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-logo img{
    width: 90px;
    margin-bottom: 10px;
}

.sidebar-logo h2{
    color: white;
    font-size: 28px;
    line-height: 1.1;
}

.sidebar-logo span{
    color: #00aaff;
}

.sidebar-menu{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-menu button{
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,153,255,0.15);
    color: white;
    padding: 14px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
}

.sidebar-menu button:hover{
    background: #008cff;
    transform: translateX(5px);
}

/* PANEL PRINCIPAL */

.main-panel{
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* ENCABEZADO */

.encabezado{
    background: linear-gradient(90deg,#081521,#0c2035);
    border: 1px solid rgba(0,153,255,0.15);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.kpi-container{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    align-items:center;
}

.kpi-card{
    background: linear-gradient(145deg,#0b1b2b,#102b45);
    border: 1px solid rgba(0,153,255,0.25);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.kpi-card span{
    display: block;
    color: #9fb8cc;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.kpi-card strong{
    color: #8cff00;
    font-size: 26px;
}

/* TABLA PROFESIONAL */

#tablaPartidas{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 25px;
    background: transparent;
}

#tablaPartidas thead tr{
    background: linear-gradient(90deg,#004aad,#0077ff);
}

#tablaPartidas th{
    padding: 14px;
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

#tablaPartidas td{
    background: rgba(255,255,255,0.035);
    padding: 14px;
    color: #eaf6ff;
    border-top: 1px solid rgba(0,153,255,0.08);
    border-bottom: 1px solid rgba(0,153,255,0.08);
}

#tablaPartidas tbody tr{
    transition: 0.25s;
}

#tablaPartidas tbody tr:hover td{
    background: rgba(0,153,255,0.12);
}

#tablaPartidas tbody tr td:first-child{
    border-left: 1px solid rgba(0,153,255,0.12);
    border-radius: 10px 0 0 10px;
}

#tablaPartidas tbody tr td:last-child{
    border-right: 1px solid rgba(0,153,255,0.12);
    border-radius: 0 10px 10px 0;
}

.fila-capitulo td{
    background: rgba(140,255,0,0.10) !important;
    color: #b6ff38 !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fila-subtotal-capitulo td,
.subtotal td{
    background: rgba(0,153,255,0.12) !important;
    color: #8cff00 !important;
    font-weight: bold;
    border-top: 1px solid rgba(140,255,0,0.5);
}

/* BOTONES PREMIUM */

button,
.btn,
.btn-azul,
.btn-verde,
.btn-gris,
.btn-secundario {
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.btn-verde {
    background: linear-gradient(135deg, #7cff00, #4fbf00);
    color: #06101d;
}

.btn-azul {
    background: linear-gradient(135deg, #00aaff, #005eff);
    color: white;
}

.btn-gris,
.btn-secundario {
    background: linear-gradient(135deg, #dce7ef, #b9c7d1);
    color: #15202b;
}

button:hover,
.btn:hover,
.btn-azul:hover,
.btn-verde:hover,
.btn-gris:hover,
.btn-secundario:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 12px 25px rgba(0,153,255,0.25);
}

button:active,
.btn:active,
.btn-azul:active,
.btn-verde:active,
.btn-gris:active,
.btn-secundario:active {
    transform: scale(0.98);
}

.toolbar-presupuesto{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    background:linear-gradient(90deg,#071827,#0b243a);
    border:1px solid rgba(0,153,255,0.18);
    border-radius:14px;
    padding:12px;
    margin:18px 0 10px;
    box-shadow:0 0 18px rgba(0,0,0,0.28);
}

.toolbar-presupuesto button{
    padding:10px 14px;
    border-radius:10px;
    font-size:13px;
    box-shadow:none;
}

.toolbar-presupuesto{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:20px 0;
    padding:12px;
    background:#132033;
    border:1px solid rgba(0,153,255,0.25);
    border-radius:12px;
}

.toolbar-presupuesto button{
    background:linear-gradient(145deg,#1b75d0,#38a3ff);
    border:none;
    color:white;
    padding:10px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.toolbar-presupuesto button:hover{
    transform:translateY(-2px);
    box-shadow:0 0 15px rgba(0,153,255,0.5);
}

.app-layout{
    display:flex;
    min-height:100vh;
    background:#081520;
}

.glass-sidebar{
    width:260px;
    background:linear-gradient(
        180deg,
        #0b1726,
        #10243d
    );
    border-right:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(15px);
}

.topbar{
    height:75px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 25px;
    background:#0f1e30;
    border-bottom:1px solid rgba(255,255,255,0.08);
    margin-bottom:20px;
}

.topbar-left h2{
    color:white;
    font-size:24px;
}

.topbar-right{
    display:flex;
    gap:12px;
}

.top-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:#132842;
    color:white;
    cursor:pointer;
    transition:0.3s;
    font-size:18px;
}

.top-btn:hover{
    background:#1d4d7a;
    transform:translateY(-2px);
}

/* COMPACTAR HEADER PRINCIPAL */

.encabezado{
    padding:18px !important;
    margin-bottom:14px !important;
}

.encabezado .logo-area img,
.logo-presupuesto-img{
    width:58px !important;
    height:58px !important;
}

.encabezado h1{
    font-size:32px !important;
    margin:8px 0 !important;
}

.encabezado h2{
    font-size:24px !important;
    margin:0 !important;
}

.kpi-grid{
    margin:12px 0 10px !important;
    gap:12px !important;
}

.kpi-card{
    padding:14px !important;
}

.kpi-card strong{
    font-size:20px !important;
}

.datos-area{
    font-size:14px !important;
    line-height:1.45 !important;
}

/* TABLA ESTILO PRESTO */

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    margin-top:14px;
    overflow:hidden;
    border-radius:12px;
    background:#0f1722;
}

thead{
    background:linear-gradient(145deg,#00aaff,#00d4ff);
}

thead th{
    padding:12px;
    font-size:13px;
    color:white;
    text-transform:uppercase;
    letter-spacing:1px;
    border:none;
}

tbody td{
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,0.05);
    font-size:14px;
    color:#dfefff;
}

tbody tr{
    transition:0.25s ease;
}

tbody tr:hover{
    background:rgba(0,153,255,0.08);
    transform:scale(1.002);
}

.subtotal{
    background:linear-gradient(145deg,#0b2740,#123d63);
    color:#d6ff00;
    font-weight:bold;
    font-size:15px;
}

.total-general{
    background:linear-gradient(145deg,#0047ff,#0099ff);
    color:white;
    font-size:18px;
    font-weight:bold;
}

/* BOTONES SIDEBAR ERP */
.sidebar-menu{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:25px;
}

.sidebar-menu button{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 16px;
    border-radius:12px;
    background:rgba(255,255,255,0.06);
    color:#eaf6ff;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:none;
    text-align:left;
    font-size:14px;
    font-weight:700;
}

.sidebar-menu button:hover{
    background:linear-gradient(135deg,#0c6ff0,#00c6ff);
    color:white;
    transform:translateX(4px);
    box-shadow:0 0 18px rgba(0,153,255,0.35);
}

/* FORZAR ESTILO SIDEBAR */
aside.sidebar button,
.sidebar button,
.glass-sidebar button,
.sidebar-menu button {
    background: rgba(255,255,255,0.06) !important;
    color: #eaf6ff !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: none !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

aside.sidebar button:hover,
.sidebar button:hover,
.glass-sidebar button:hover,
.sidebar-menu button:hover {
    background: linear-gradient(135deg,#0c6ff0,#00c6ff) !important;
    color: white !important;
    transform: translateX(4px) !important;
    box-shadow: 0 0 18px rgba(0,153,255,0.35) !important;
}

.formulario{
    display:none !important;
}

.encabezado{
    display:grid !important;
    grid-template-columns: 1fr auto !important;
    align-items:flex-start !important;
}

.toolbar-presupuesto{
    justify-content:flex-end !important;
    margin-top:10px !important;
    margin-bottom:14px !important;
}

.toolbar-presupuesto button{
    padding:10px 16px !important;
    font-size:13px !important;
}

table{
    margin-top:8px !important;
}

.indirectos-box{
    display:none !important;
}

.total-directos,
.total-general{
    text-align:right !important;
    font-size:20px !important;
}

.toolbar-presupuesto{
    position:absolute;
    top:28px;
    right:28px;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    display:flex;
    gap:10px;
}

.encabezado{
    position:relative !important;
}

.toolbar-presupuesto button{
    padding:10px 16px !important;
    border-radius:9px !important;
    background:linear-gradient(135deg,#1b75ff,#00aaff) !important;
    color:white !important;
    font-size:13px !important;
}

.toolbar-presupuesto{
    top:22px !important;
    right:24px !important;
    transform:scale(0.88);
    transform-origin:right top;
}

.encabezado{
    padding-top:28px !important;
}

.encabezado h1{
    display:none !important;
}

.encabezado{
    padding-top:10px !important;
    min-height:auto !important;
}

.main-panel{
    width:100% !important;
    max-width:100% !important;
    padding:20px 28px !important;
}

.encabezado{
    width:100% !important;
    max-width:100% !important;
}

.tabla-container{
    width:100% !important;
    max-width:100% !important;
}

table{
    width:100% !important;
    font-size:14px !important;
}

.sidebar{
    width:220px !important;
}

.app-layout{
    display:grid !important;
    grid-template-columns:220px 1fr !important;
    gap:20px !important;
}

html, body{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow-x:hidden !important;
}

.container{
    width:100vw !important;
    max-width:100vw !important;
    margin:0 !important;
    padding:0 !important;
}

.app-layout{
    width:100vw !important;
    max-width:100vw !important;
    display:grid !important;
    grid-template-columns:220px calc(100vw - 240px) !important;
    gap:20px !important;
}

.main-panel{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:20px !important;
}

#modulo-presupuesto,
.modulo{
    width:100% !important;
    max-width:none !important;
}

.encabezado,
table,
.toolbar-presupuesto{
    max-width:none !important;
}

.encabezado{
    padding:14px 18px !important;
    margin-bottom:12px !important;
}

.logo-area{
    display:none !important;
}

.kpi-card{
    min-width:210px !important;
}

.toolbar-presupuesto{
    top:18px !important;
    right:18px !important;
}

table{
    margin-top:4px !important;
}

tbody td{
    padding:9px 10px !important;
}

thead th{
    padding:10px !important;
}

.toolbar-presupuesto{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
    margin-bottom:16px;
}

.info-proyecto{
    min-width:260px;
}

.resumen-superior{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.encabezado{
    display:grid !important;
    grid-template-columns: 220px 1fr 260px !important;
    grid-template-areas:
        "titulo kpis datos"
        "titulo botones datos" !important;
    align-items:center !important;
    gap:14px !important;
    padding:18px !important;
    min-height:170px !important;
}

.logo-area{
    display:block !important;
    grid-area:titulo !important;
}

.kpi-container,
.kpi-grid{
    grid-area:kpis !important;
    display:flex !important;
    flex-direction:row !important;
    gap:12px !important;
}

.datos-area{
    grid-area:datos !important;
}

.toolbar-presupuesto{
    grid-area:botones !important;
    position:static !important;
    transform:none !important;
    display:flex !important;
    justify-content:flex-start !important;
    gap:8px !important;
}

.kpi-card{
    min-width:150px !important;
}

.encabezado{
    min-height:120px !important;
    padding:14px 18px !important;
    align-items:center !important;
}

.logo-area{
    transform:scale(0.85);
    transform-origin:left center;
}

.kpi-card{
    min-width:130px !important;
    padding:12px !important;
}

.toolbar-presupuesto button{
    padding:8px 12px !important;
    font-size:12px !important;
}

.datos-area{
    font-size:13px !important;
    line-height:1.3 !important;
}

.linea-verde{
    margin:10px 0 !important;
}

.vista-comercial-presupuesto .encabezado{
    display:none !important;
}

.header-comercial{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.header-logo{
    display:flex;
    align-items:center;
    gap:15px;

    min-width:220px;
}

.header-logo h2{
    color:white;
    font-size:38px;
    line-height:1;
    margin:0;
}

.header-logo span{
    color:#7CFF00;
}

.header-centro{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-totales{
    display: flex;
    gap: 15px;
    align-items: center;
}

.card-total{
    background:#243447;

    padding:18px 25px;

    border-radius:16px;

    min-width:180px;

    border:1px solid rgba(255,255,255,0.08);
}

.card-total span{
    color:#cbd5e1;
    font-size:14px;
}

.card-total h3{
    color:white;
    font-size:30px;
    margin-top:10px;
}

.card-total.verde{
    background:#1f5134;
}

.card-total.azul{
    background:#1d4ed8;
}

.toolbar-presupuesto{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 0;
}

.toolbar-presupuesto button{
    background:#2563eb;

    color:white;

    border:none;

    padding:12px 18px;

    border-radius:10px;

    font-weight:600;

    cursor:pointer;
}

.header-info{
    min-width:260px;

    color:white;

    font-size:15px;

    line-height:1.8;
}

.header-info p{
    margin:0;
}

.form-partidas-premium{
    display:grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
    gap:10px;
    background:#1b2431;
    padding:14px;
    border-radius:14px;
    margin-top:15px;
    margin-bottom:15px;
}

.form-partidas-premium input,
.form-partidas-premium select{
    height:42px;
    background:#111827;
    border:none;
    border-radius:8px;
    color:white;
    padding:0 12px;
    font-size:13px;
    outline:none;
}

.form-partidas-premium input::placeholder{
    color:#9ca3af;
}

.form-partidas-premium select{
    cursor:pointer;
}

.form-partidas-premium input,
.form-partidas-premium select{
    background:#0f172a;
    color:white;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:10px;
    padding:12px;
    font-size:14px;
}

.form-partidas-premium input::placeholder{
    color:#94a3b8;
}

.modulo-presupuesto{
    padding: 28px;
}

.presupuesto-header{
    display: grid;
    grid-template-columns: 1.2fr 2fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
}

.presupuesto-info h1{
    color: #f8fafc;
    font-size: 26px;
    margin-bottom: 14px;
}

.presupuesto-info p{
    color: #cbd5e1;
    font-size: 14px;
    margin: 6px 0;
}

.acciones-superiores{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 60px 10px 0;
}

.acciones-superiores button{
    background: #128cff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.resumen-cards{
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin: 0 60px 20px 0;
}

.resumen-card{
    min-width: 190px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #253b57;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.resumen-card.verde{
    background: #254c43;
}

.resumen-card span{
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #8fd3ff;
    margin-bottom: 6px;
}

.resumen-card strong{
    font-size: 22px;
    color: #fff;
    font-weight: 800;
}

.acciones-superiores{
    display:flex;
    gap:10px;
    margin-left:auto;
    align-items:center;
}

.acciones-superiores button{
    background:#1d8fff;
    color:white;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
    transition:0.3s;
}

.acciones-superiores button:hover{
    background:#0b6fd6;
}

.acciones-presupuesto{

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-left: auto;
}

.acciones-presupuesto button{

    background: linear-gradient(
        145deg,
        #0d8bff,
        #0066cc
    );

    border: none;

    color: white;

    padding: 10px 18px;

    border-radius: 10px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.acciones-presupuesto button:hover{

    transform: scale(1.03);
}

.acciones-superiores{
    display: flex;
    gap: 10px;
}

.acciones-superiores button{
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* ===============================
   TABLA ERP - ESTILO OSCURO PRO
=============================== */

.tabla-erp {
    width: 100%;
    border-collapse: collapse;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.tabla-erp thead th {
    background: #1e293b;
    color: #f8fafc;
    padding: 12px;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tabla-erp tbody tr {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
}

.tabla-erp tbody td {
    padding: 11px 12px;
    font-size: 13px;
    color: #e5e7eb;
}

.fila-capitulo {
    background: #1e3a8a !important;
    color: #ffffff !important;
    font-weight: 700;
}

.fila-capitulo td {
    color: #ffffff !important;
}

.fila-subtotal {
    background: #1e293b !important;
    color: #38bdf8 !important;
    font-weight: 700;
}

.fila-subtotal td {
    color: #e0f2fe !important;
}

.fila-seleccionada {
    background: rgba(56, 189, 248, 0.22) !important;
    outline: 2px solid #38bdf8 !important;
}

.fila-seleccionada td {
    color: #ffffff !important;
    font-weight: 700;
}

.modulo-presupuesto{
    padding: 28px 32px !important;
}

.modulo-presupuesto .presupuesto-header{
    display: grid !important;
    grid-template-columns: 220px 1fr 220px !important;
    align-items: start !important;
    gap: 28px !important;
    margin-bottom: 18px !important;
}

.modulo-presupuesto .presupuesto-info{
    grid-column: 1 !important;
}

.modulo-presupuesto .resumen-cards{
    grid-column: 2 !important;
    display: flex !important;
    gap: 16px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    margin-top: 6px !important;
}

.modulo-presupuesto .acciones-superiores{
    grid-column: 3 !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    margin-top: 0 !important;
}

.modulo-presupuesto .tabla-erp{
    margin-top: 14px !important;
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:22px;
    padding:10px 8px;
}

.sidebar-brand img{
    width:34px;
    height:34px;
    border-radius:50%;
    object-fit:cover;
}

.sidebar-brand h2{
    font-size:15px;
    color:#f8fafc;
    margin:0;
    font-weight:800;
}

.sidebar-brand h2 span{
    color:#38bdf8;
}

.sidebar button.activo{
    background:#2563eb !important;
    color:#fff !important;
    box-shadow:0 0 14px rgba(37,99,235,.45);
}

.dashboard-header h1{
    font-size:28px;
    margin-bottom:4px;
}

.dashboard-header p{
    color:#94a3b8;
    margin-bottom:22px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
    margin-bottom:24px;
}

.dashboard-card{
    background:#1e293b;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:18px;
}

.dashboard-card span{
    color:#93c5fd;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
}

.dashboard-card h2{
    margin-top:8px;
    font-size:28px;
    color:#f8fafc;
}

.dashboard-card.verde span{
    color:#84cc16;
}

.dashboard-card.azul span{
    color:#38bdf8;
}

.dashboard-paneles{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.panel-dashboard{
    background:#111827;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:20px;
}

.panel-dashboard h2{
    margin-bottom:12px;
}

.panel-dashboard p{
    color:#cbd5e1;
    margin-bottom:8px;
}

.btn-dashboard{
    background:#2563eb;
    color:white;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.form-proyectos{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:12px;
    margin-bottom:18px;
}

.form-proyectos input{
    background:#111827;
    border:1px solid rgba(255,255,255,.12);
    color:#fff;
    padding:12px;
    border-radius:10px;
}

.form-proyectos button{
    background:#2563eb;
    color:white;
    border:none;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

.contenedor-proyectos{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.card-proyecto-form{
    background:#111827;
    border-radius:18px;
    padding:20px;

    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
}

.card-proyecto-form input,
.card-proyecto-form select{
    background:#1f2937;
    border:none;
    padding:14px;
    border-radius:12px;
    color:white;
}

.card-proyecto-form button{
    background:#2563eb;
    color:white;
    border:none;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
}

.lista-proyectos{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}

.card-proyecto{
    background:#111827;
    border-radius:18px;
    padding:20px;
    color:white;
}

.card-proyecto h3{
    margin-bottom:10px;
}

.estado-proyecto{
    margin-top:10px;
    display:inline-block;
    padding:6px 12px;
    border-radius:10px;
    background:#2563eb;
    font-size:12px;
}

.contenedor-proyectos {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.card-proyecto {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card-proyecto h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #ffffff;
}

.card-proyecto p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.4;
}

.card-proyecto button {
    margin-top: 15px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}

.card-proyecto button:hover {
    opacity: 0.85;
}

.contenedor-proyectos {
    margin-top: 25px;
}

.card-proyecto-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 180px 180px;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.card-proyecto-form input,
.card-proyecto-form select {
    height: 48px;
    border-radius: 12px;
    border: none;
    padding: 0 15px;
}

.card-proyecto-form button {
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #2196f3;
    color: white;
    font-weight: bold;
}

.lista-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card-proyecto {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 18px;
}

.card-proyecto h3 {
    margin-bottom: 10px;
}

.card-proyecto button {
    margin-top: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
}

.card-proyecto-form {
    position: relative;
    z-index: 10;
}

.card-proyecto-form input,
.card-proyecto-form select,
.card-proyecto-form button {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.lista-proyectos {
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.card-proyecto {
    position: relative;
    z-index: 1;
}

#modulo-proyectos .contenedor-proyectos {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    width: 100% !important;
}

#modulo-proyectos .card-proyecto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 180px 180px !important;
    gap: 15px !important;
    width: 100% !important;
    position: relative !important;
}

#modulo-proyectos .card-proyecto-form input,
#modulo-proyectos .card-proyecto-form select,
#modulo-proyectos .card-proyecto-form button {
    height: 48px !important;
    position: relative !important;
    z-index: 5 !important;
}

#modulo-proyectos .lista-proyectos {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

#modulo-proyectos .card-proyecto {
    position: relative !important;
    width: auto !important;
    min-height: auto !important;
}

#modulo-proyectos .card-proyecto-form {
    grid-template-columns: 1fr 1fr 1fr 160px 170px !important;
    background: rgba(255,255,255,0.06) !important;
    padding: 18px !important;
    border-radius: 18px !important;
}

#modulo-proyectos .lista-proyectos {
    display: block !important;
}

#modulo-proyectos .card-proyecto {
    max-width: 520px !important;
    margin-top: 10px !important;
    padding: 22px !important;
}

#modulo-proyectos .card-proyecto h3 {
    font-size: 22px !important;
}

#modulo-proyectos .card-proyecto p {
    margin: 6px 0 !important;
    line-height: 1.4 !important;
}

#modulo-proyectos .contenedor-proyectos{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#modulo-proyectos .card-proyecto-form{
    display: grid;
    grid-template-columns: repeat(4, 1fr) 180px;
    gap: 14px;
    align-items: center;
}

#modulo-proyectos .card-proyecto-form input,
#modulo-proyectos .card-proyecto-form select{
    height: 48px;
}

#modulo-proyectos .card-proyecto-form button{
    height: 48px;
    border-radius: 12px;
    font-weight: bold;
}

#modulo-proyectos .card-proyecto{
    width: 100%;
    max-width: 700px;
    min-height: 180px;
}

#modulo-proyectos .card-proyecto button{
    margin-top: 12px;
}

.dashboard-footer{
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.dashboard-footer h2{
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

#listaProyectos{
    margin-bottom: 20px;
}

.modal-partida {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-contenido {
    width: 420px;
    background: #1f2937;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.modal-contenido h2 {
    margin-bottom: 18px;
    color: white;
}

.modal-contenido input {
    width: 100%;
    height: 45px;
    margin-bottom: 12px;
    border: none;
    border-radius: 10px;
    padding: 0 12px;
}

.modal-botones {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.modal-botones button {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #2196f3;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.modal-botones .btn-cancelar {
    background: #ef4444;
}

#modulo-presupuesto .tabla-erp{
    width: 100%;
    min-width: 850px;
}

#modulo-presupuesto{
    overflow-x: auto;
}

#modulo-presupuesto .acciones-superiores{
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#modulo-presupuesto .resumen-cards{
    margin-bottom: 20px;
}

#modulo-presupuesto .presupuesto-header{
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

#modulo-presupuesto select{
    width: 100%;
    height: 34px;
}

#modulo-presupuesto .resumen-cards{
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

#modulo-presupuesto .acciones-superiores{
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

#modulo-presupuesto .tabla-erp{
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ORGANIZAR MÓDULO PRESUPUESTO */

#modulo-presupuesto .presupuesto-header{
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    gap: 25px !important;
    align-items: start !important;
    margin-bottom: 25px !important;
}

#modulo-presupuesto .resumen-cards{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 18px !important;
    margin: 20px 0 !important;
}

#modulo-presupuesto .acciones-superiores{
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

#modulo-presupuesto .tabla-erp{
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    table-layout: auto !important;
}

#modulo-presupuesto{
    padding-right: 10px !important;
}

.fila-capitulo{
    background: #1d4ed8 !important;
    color: white !important;
    font-weight: bold;
}

#modulo-presupuesto .tabla-erp{
    width: 98% !important;
    max-width: 1700px !important;
    margin: 25px auto !important;
}

#modulo-presupuesto .tabla-erp th,
#modulo-presupuesto .tabla-erp td{
    padding: 14px 18px !important;
    font-size: 15px !important;
}

#modulo-presupuesto .tabla-erp td:nth-child(2),
#modulo-presupuesto .tabla-erp th:nth-child(2){
    width: 35% !important;
}

#modulo-presupuesto .tabla-erp td:nth-child(5),
#modulo-presupuesto .tabla-erp th:nth-child(5),
#modulo-presupuesto .tabla-erp td:nth-child(6),
#modulo-presupuesto .tabla-erp th:nth-child(6){
    min-width: 160px !important;
}

#modulo-presupuesto .tabla-erp th,
#modulo-presupuesto .tabla-erp td{
    padding: 12px 16px !important;
}

#modulo-presupuesto .tabla-erp td:nth-child(2),
#modulo-presupuesto .tabla-erp th:nth-child(2){
    min-width: 300px !important;
}

#modulo-presupuesto{
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 10px !important;
}

#modulo-presupuesto .main-panel{
    width: 100% !important;
    max-width: 100% !important;
}

#modulo-presupuesto .tabla-erp{
    width: 99% !important;
    max-width: 1900px !important;
    margin: 20px auto !important;
}

.fila-subtotal{
    background: #1b365d !important;
    font-weight: bold;
    color: #fff;
}

.fila-subtotal td{
    padding: 14px !important;
    font-size: 15px;
}

.tabla-erp td:last-child,
.tabla-erp th:last-child{
    width: 70px !important;
    min-width: 70px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.tabla-erp tr{
    height: 52px !important;
}

.tabla-erp td{
    vertical-align: middle !important;
}

.tabla-erp td:last-child button{
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 auto !important;
}

.acciones-tabla{
    display: flex;
    gap: 6px;
    justify-content: center;
}

.acciones-tabla button{
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    border: none;
    cursor: pointer;
}

.tabla-erp th:last-child,
.tabla-erp td:last-child{
    min-width: 95px !important;
    width: 95px !important;
    text-align: center !important;
}

.acciones-tabla{
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
}

#modulo-presupuesto .tabla-erp{
    margin-right: 60px !important;
    width: calc(100% - 80px) !important;
}

.tabla-erp th:last-child,
.tabla-erp td:last-child{
    min-width: 120px !important;
    width: 120px !important;
}

@media print {

    .acciones-tabla,
    .tabla-erp th:last-child,
    .tabla-erp td:last-child {
        display: none !important;
    }

    .tabla-erp {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

.datos-presupuesto{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.grupo-input{
    display: flex;
    flex-direction: column;
}

.grupo-input label{
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
}

.grupo-input input{
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.grupo-input input:focus{
    border-color: #1e90ff;
    box-shadow: 0 0 10px rgba(30,144,255,0.25);
}

#modulo-presupuesto .presupuesto-header{
    display: block !important;
    width: 100% !important;
}

.datos-presupuesto{
    width: 100% !important;
    max-width: 1200px !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.grupo-input input{
    width: 100% !important;
}

.titulo-presupuesto{

    text-align: center;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ffffff;
}

.menu-superior{
    height: 34px;
    background: #1b2735;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 3000;
}

.menu-item{
    position: relative;
    display: inline-flex !important;
    align-items: center;
    color: #dbeafe;
    font-size: 14px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    white-space: nowrap;
}

.menu-item:hover{
    background: rgba(255,255,255,0.12);
    color: white;
}

.submenu{
    display: none;
    position: absolute;
    top: 34px;
    left: 0;
    background: #1f2f40;
    min-width: 220px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    z-index: 5000;
    pointer-events: auto;
}

.menu-item:hover .submenu{
    display: flex;
    flex-direction: column;
}

.submenu button{
    width: 100%;
    background: transparent;
    color: white;
    border: none;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.submenu button:hover{
    background: rgba(255,255,255,0.12);
}

.fila-seleccionada{
    outline: 2px solid #ffd166 !important;
    background: rgba(255, 209, 102, 0.18) !important;
}

/* =====================================================
   BIMetra ERP - TEMA OSCURO LIMPIO DEFINITIVO
===================================================== */

#modulo-presupuesto,
.modulo-presupuesto {
    background: #0f172a !important;
    color: #e5e7eb !important;
}

.tabla-erp {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #111827 !important;
    color: #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.tabla-erp thead,
.tabla-erp thead tr,
.tabla-erp thead th {
    background: #1e293b !important;
    color: #f8fafc !important;
}

.tabla-erp tbody tr,
.tabla-erp tbody tr td {
    background: #111827 !important;
    color: #e5e7eb !important;
}

.tabla-erp tbody tr.fila-capitulo,
.tabla-erp tbody tr.fila-capitulo td {
    background: #1e293b !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
}

.tabla-erp tbody tr.fila-subtotal,
.tabla-erp tbody tr.fila-subtotal td {
    background: #26384d !important;
    color: #e5e7eb !important;
    font-weight: 700 !important;
}

.tabla-erp tbody tr.fila-seleccionada,
.tabla-erp tbody tr.fila-seleccionada td {
    background: rgba(56, 189, 248, 0.18) !important;
    outline: 2px solid #38bdf8 !important;
    color: #ffffff !important;
}

.tabla-erp tbody tr:hover td {
    background: #182235 !important;
}

.tabla-erp tfoot,
.tabla-erp tfoot tr,
.tabla-erp tfoot td {
    background: #0f172a !important;
    color: #f8fafc !important;
    font-weight: 800 !important;
}

/* =====================================================
   BIMetra ERP - MEJORAS VISUALES SEGURAS
   Se puede borrar completo si no gusta.
===================================================== */

.tabla-erp tbody tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.tabla-erp tbody tr:hover td {
    background: rgba(255,255,255,0.045) !important;
}

.tabla-erp tbody tr.fila-seleccionada td {
    background: rgba(59,130,246,0.22) !important;
    box-shadow: inset 4px 0 0 #38bdf8;
}

/* =====================================================
   TABLA ERP PROFESIONAL
===================================================== */

.tabla-erp {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.tabla-erp thead th {
    background: #1e293b;
    color: #f8fafc;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.tabla-erp tbody td {
    padding: 14px 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

/* COLUMNAS NUMÉRICAS */
.tabla-erp td:nth-child(1),
.tabla-erp td:nth-child(3),
.tabla-erp td:nth-child(4),
.tabla-erp td:nth-child(5),
.tabla-erp td:nth-child(6){
    text-align: center;
}

/* CAPÍTULOS */
.fila-capitulo td{
    background: rgba(59,130,246,.18) !important;
    color: #f8fafc;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* SUBTOTALES */
.fila-subtotal td{
    background: rgba(255,255,255,.03) !important;
    font-weight: 700;
    color: #93c5fd;
}

/* TOTAL GENERAL */
.total-general td{
    background: #2563eb !important;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* =====================================================
   MODAL ERP EDITAR PARTIDA
===================================================== */

.modal-editar-erp {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-editar-contenido {
    width: 420px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 24px;
    color: #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.modal-editar-contenido h2 {
    margin-bottom: 18px;
    color: #ffffff;
}

.modal-editar-contenido label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.modal-editar-contenido input {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #1e293b;
    color: #ffffff;
}

.modal-editar-botones {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-editar-botones button {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:25px;
}

.sidebar-brand img{
    width:55px;
    height:auto;
}

.sidebar-brand h2{
    color:white;
    margin:0;
    font-size:24px;
    font-weight:700;
}

.sidebar-brand small{
    color:#8fa3b8;
    font-size:11px;
    letter-spacing:1px;
    display:block;
    margin-top:2px;
}

.subtitulo-estimacion{
    color:#8fa3b8;
    font-size:14px;
    margin-top:-10px;
    margin-bottom:25px;
    letter-spacing:1px;
}

/* =========================
   BIMETRA PREMIUM BUTTONS
========================= */

.bimetra-btn{
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.bimetra-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,140,255,0.35);
    background: linear-gradient(135deg,#2563eb,#3b82f6);
}

.bimetra-btn:active{
    transform: scale(0.98);
}

/* =========================
   BIMETRA KPI CARDS
========================= */

.resumen-card{
    border-radius:18px;
    padding:20px;
    position:relative;
    overflow:hidden;
    transition:0.3s ease;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 8px 25px rgba(0,0,0,0.25);
}

.resumen-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,140,255,0.25);
}

.resumen-card span{
    font-size:13px;
    letter-spacing:1px;
    opacity:0.9;
}

.resumen-card strong{
    display:block;
    margin-top:10px;
    font-size:32px;
    font-weight:700;
}

.azul{
    background:linear-gradient(135deg,#2563eb,#1e3a8a);
}

.verde{
    background:linear-gradient(135deg,#10b981,#065f46);
}

#modulo-apu {
    display: block;
    padding: 25px;
    color: white;
}

#modulo-apu .datos-presupuesto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#modulo-apu .grupo-input {
    display: flex;
    flex-direction: column;
}

#modulo-apu input {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #1f2937;
    color: white;
}

#modulo-apu .acciones-superiores {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#modulo-apu .bimetra-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

#modulo-apu .bimetra-btn:hover {
    transform: scale(1.03);
}

/* ========================================
   BIMetra APU
======================================== */

#modulo-apu {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.datos-presupuesto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.grupo-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-input label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.grupo-input input {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 14px;
}

.acciones-superiores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.bimetra-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.bimetra-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* ==============================
   RESUMEN APU
============================== */

.resumen-apu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.resumen-apu div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px;
}

.resumen-apu span {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.resumen-apu strong {
    font-size: 18px;
    color: #ffffff;
}

.resumen-apu .total-final-apu {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.apu-accion-btn {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px !important;
    min-width: 85px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.apu-accion-btn:hover {
    background: #dc2626 !important;
    transform: translateY(-1px);
}

.apu-cargar-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    min-width: 85px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.apu-cargar-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#modulo-inventario .datos-presupuesto {
    margin-bottom: 25px;
}

#modulo-inventario .tabla-presupuesto {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
}

#modulo-inventario .tabla-presupuesto th {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    color: #ffffff;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
}

#modulo-inventario .tabla-presupuesto td {
    padding: 12px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

#modulo-inventario .acciones-superiores {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.acciones-tabla {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.acciones-tabla button {
    min-width: 70px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.capitulo-presupuesto {
    text-align: left !important;
    padding-left: 28px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.fila-capitulo td,
.fila-capitulo .capitulo-presupuesto {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 35px !important;
}

.estado-pagado{
    background: #1f8b4c;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.estado-pendiente{
    background: #c0392b;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.apu-accion-btn{
    background: linear-gradient(135deg, #ff5f57, #ff2d55);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(255, 45, 85, 0.25);
}

.apu-accion-btn:hover{
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 14px rgba(255, 45, 85, 0.45);
}

.apu-accion-btn:active{
    transform: scale(0.96);
}

.estado-proceso{
    background: #d68910;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.img-bitacora{
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.btn-eliminar{
    background: #ff6b4a;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    min-width: 90px;
}

.btn-eliminar:hover{
    background: #ff3b1a;
    transform: scale(1.05);
}

.panel-plano-bimetra{
    background:#111827;
    padding:20px;
    border-radius:14px;
    margin-top:20px;
    border:1px solid #1f2937;
}

.panel-plano-bimetra h3{
    color:#fff;
    margin-bottom:15px;
}

.grid-plano-bimetra{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
    margin-bottom:15px;
}

.grid-plano-bimetra input,
.grid-plano-bimetra select,
.panel-plano-bimetra textarea{
    background:#1f2937;
    border:none;
    padding:12px;
    border-radius:10px;
    color:white;
}

.panel-plano-bimetra textarea{
    width:100%;
    min-height:120px;
    resize:vertical;
}

.mediciones-bimetra{
    background:#111827;
    margin-top:20px;
    padding:20px;
    border-radius:14px;
    border:1px solid #1f2937;
}

.mediciones-bimetra h3{
    color:white;
    margin-bottom:15px;
}

.grid-mediciones{
    display:grid;
    grid-template-columns:
    2fr 1fr 1fr 1fr;
    gap:10px;
    margin-bottom:20px;
}

.grid-mediciones input,
.grid-mediciones select{
    background:#1f2937;
    border:none;
    padding:12px;
    border-radius:10px;
    color:white;
}

.tabla-mediciones{
    width:100%;
    border-collapse:collapse;
}

.tabla-mediciones th,
.tabla-mediciones td{
    border-bottom:1px solid #1f2937;
    padding:12px;
    text-align:left;
    color:white;
}

.grid-mediciones select,
.grid-mediciones input,
.grid-mediciones button{
    height: 46px;
    line-height: 46px;
    box-sizing: border-box;
}

.grid-mediciones select{
    padding-top: 0;
    padding-bottom: 0;
}

#tipoPlano,
#nivelPlano,
#areaPlano,
#escalaPlano,
#arquitectoPlano,
#observacionesPlano{
    height: 46px;
    box-sizing: border-box;
}

#tipoPlano{
    padding-top: 0;
    padding-bottom: 0;
}

#observacionesPlano{
    min-height: 120px;
    padding: 12px;
}

.tabla-erp td:first-child,
.tabla-erp th:first-child{
    width: 90px;
    font-size: 10px;
    white-space: nowrap;
}

.footer-bimetra{
    margin-top:40px;
    padding:20px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,0.1);
}

.footer-links{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:15px;
}

.footer-links a{
    color:#38bdf8;
    text-decoration:none;
    font-size:14px;
}

.footer-links a:hover{
    color:#60a5fa;
}

.footer-bimetra p{
    color:#9ca3af;
    font-size:13px;
}

.footer-bimetra{
    margin-top:40px;
    padding:20px;
    text-align:center;
    width:100%;
}

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.footer-bimetra{
    margin-top:60px;
    padding:25px 20px;
    text-align:center;
    width:100%;
    border-top:1px solid rgba(255,255,255,0.08);
}

.footer-links a{
    color:#38bdf8;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.footer-links a:hover{
    color:#60a5fa;
}

.footer-bimetra p{
    color:#d1d5db;
    font-size:13px;
    line-height:1.5;
}

.logo-box{
    text-align: center;
    margin-top: 5px;
    margin-bottom: -20px;
}

.logo-box img{
    width: 240px;
    max-width: 80%;
}