@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

/* ðŸŽ¨ Paleta */
:root {
    --primarioO: #00329e;
    --primarioC: #60a5fa;
    --secundarioO: #02760a;
    --secundarioC: #78b67c;    
    --claro1: #e4eff9;
    --claro2: #eafdeb;    
    --grisC: #E9ECEF;
    --grisO: #949494;
    --Blanco: #fff;
    --filaPar: #d1d7e7;
    --hover: #bfdcf9;
    --Verde: #005c31;
    --VerdeC: #98e795;
    --Azul: #0227a0;
    --AzulC: #869ff0;
    --Naranja: #DC7200;
    --Amarillo: #fbff00;
    --Rojo: #A90000;
    --Morado: #a9007f;
    --Negro: #000;
    --Hover: #6181a0;
    --sombra: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif;}

html, body {
    height: 100%; overflow: hidden; padding-top: 33px;
    background: var(--Blanco);color: var(--Negro);
}

.tabbar-container input[type="radio"]{display:none}
.tabbar-container .tabbar {
    position: fixed;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    right: 0;
    height: 35px;
    display: flex;
    align-items: center;
    background: var(--claro2);
    border-top: 2px solid var(--Negro);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-container .tabbar label {
    flex: 1;
    text-align: center;
    padding: 2px 0;
    cursor: pointer;
    user-select: none;
    color: var(--Negro);
    font-size: 18px;
    font-weight: 400;
}
#tab1:checked ~ .tabbar label[for="tab1"],
#tab2:checked ~ .tabbar label[for="tab2"],
#tab3:checked ~ .tabbar label[for="tab3"],
#tab4:checked ~ .tabbar label[for="tab4"],
#tab5:checked ~ .tabbar label[for="tab5"] {
    color: var(--primarioO);
    font-weight: 600;
}
.tabbar-container .main {
    display: none;
    padding-bottom: 90px; /* espacio para la tabbar */
    height: calc(100vh - 60px); /* altura visible */
    overflow-y: auto;
    background: var(--Blanco);
}
#tab1:checked~.tab1,#tab2:checked~.tab2,#tab3:checked~.tab3,#tab4:checked~.tab4,#tab5:checked~.tab5{display:block}
.cardPrin {
    background: var(--grisC);
    border-radius: 1rem 1rem 1rem 1rem;
    width: 100%;
}

.cardPrin-header {
    background: linear-gradient(to right, var(--primarioO), var(--grisC));
    color: var(--Blanco);
    border-radius: 1.2rem 1.2rem 0 0;
    padding: 0.2rem;
    font-weight: Bold;
    font-size: 1.2rem;
}
.cardMovil-header {
    padding: 4px 4px;
    color: var(--Blanco);
    font-weight: bold;
    font-size: 1rem;
    background: linear-gradient(to right, var(--primarioO), var(--secundarioO));
    border-radius: 1rem 1rem 0 0;
    cursor: move;
}
.cardPrin-body {
    background: var(--claro1);
    padding: 0.2rem;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 65px;
}
.cardPrin-footer {
    background: linear-gradient(135deg, var(--primarioC), var(--Negro));
    display: flex;
    border-radius: 0 0 1rem 1rem;
    padding: 4px;
    text-align: center;
}
.cardSec {
    background: var(--Blanco);
    border: 3px solid var(--primarioC);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cardSec-header {
    background: linear-gradient(135deg, var(--secundarioO), var(--Negro));
    display: flex;
    width: 100%;
    padding: 4px;
    text-align: center;
    font-weight: Bold;
    font-size: 0.8rem;
    color: var(--Blanco);
    position: sticky;
    top: 0;
    z-index: 10;    
}

.cardSec-body {
    display: flex;
    max-height: 70vh;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;    
}
.cardSec-footer {
    background: linear-gradient(135deg, var(--Negro), var(--secundarioC));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-top: 1px solid var(--primarioC);
}
.inpSolo,.etiBase,.inpBase,.etiChico,.inpChico {
    border-width: 1px 1px 0 1px;
    border: 1px solid var(--grisO);
    width: 100%;
    font-size: 16px;
}
.etiBase, .etiChico {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.inpBase, .inpChico {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden;
}
.etiBase {background: linear-gradient(to right, var(--primarioC), var(--claro1));
    color: var(--Negro)}
.inpBase {background-color: var(--claro1);color: var(--Negro)}
.inpSolo {border-radius: 5px;}
.etiChico {background: linear-gradient(to right, var(--secundarioC), 
    var(--claro2));color: var(--Negro)}
.inpChico {background-color: var(--claro2);color: var(--Negro);}


.bot {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    padding: 4px 4px;
    font-size: 13px;
    font-weight: bold;
    color: var(--Blanco);
    border: none;
    border-radius: .375rem;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    box-shadow: 
        0 2px 4px rgba(0,0,0,.1),
        inset 0 1px 2px rgba(255,255,255,.25);
}

.bot::before,
.bot::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: inherit;
    pointer-events: none;
    filter: blur(1px);
}
.bot::before {bottom: 0; height: 30%;
    background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);}
.bot::after { top: 0; height: 60%;
    background: linear-gradient(180deg, #fff, rgba(255,255,255,.2) 30%, transparent);}
.bot:hover  { background: var(--Hover);}
.botNegro   { background: var(--Negro); }
.botVerde   { background: var(--Verde); }
.botVerdeC  { background: var(--VerdeC); color: var(--Negro)}
.botNaranja { background: var(--Naranja); }
.botMorado    { background: var(--Morado); }
.botRojo    { background: var(--Rojo); }
.botAzul    { background: var(--Azul); }
.botAzulC   { background: var(--AzulC); color: var(--Negro)}
.botBlanco {background: var(--Blanco); color: var(--Negro)}
.botAmarillo {background: var(--Amarillo); color: var(--Negro)}
.botZoom {
    position: absolute;
    bottom: 15px;
    right: 6px;
    padding: 2px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: .25rem;
    background: rgba(0,0,0,0.35);
    color: white;
}
.botZoom:hover {
    background: rgba(0,0,0,0.6);
}
.botPill {
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.fotoBase {
    display: block;
    margin: 0.5rem auto;
    height: auto; width: auto;
    object-fit: contain;
    border-radius: .25rem;
}
.fotoContenedor {
    position: relative;
    display: inline-block;
}

.tabBase {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.tabBase th,
.tabBase td {
    padding: 1px 1px;
    line-height: 1.2;
    border: 1px solid var(--grisC);
    text-align: left;
    font-size: 16px;
}

.tabBase th {
    background: linear-gradient(to bottom right, var(--Blanco), var(--secundarioC));
    color: var(--Negro);
}
.tabBase thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}
.tabBase td {
    background: var(--Blanco);
}

.tabBase tr:nth-child(even) td {
    background: var(--claro1);
}

.tabBase tr:hover td {
    background: var(--Amarillo);
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.btnCloseOver {
    float: right;
    filter: invert(1);
}

.filtro {
  margin-bottom: .5rem;
}

.filtrosOffcanvas .offcanvas-footer {
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-top: 1px solid #e9ecef;
}

.filtrosChips { display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:.5rem; }
.filtrosChip { background:#eef2ff; border-radius:999px; padding:.28rem .45rem; font-size:.78rem; color:#1f2d6b; }

