:root{
    --azulapac:#1e3a8a;
    --white:#ffffff;
    --md:16px;
    --black:#000000;

    /* ====== FUENTES FÁCILMENTE EDITABLES (cambiar aquí afecta todo) ====== */
    --font-body: 13px;              /* texto base del sistema */
    --font-controls: 11px;          /* inputs / selects / textareas de módulos */
    --font-label: 12px;             /* etiquetas de formularios */
    --font-login-controls: 16px;    /* inputs de la pantalla de login */
    --font-table: 13px;             /* tablas */
    --font-title: 20px;             /* títulos de módulos */
}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',Arial,sans-serif;
}
body{
    background:#f1f5f9;
    font-size:var(--font-body);
}

/* Layout */

.layout{
    display:flex;
    height:100vh;
}

/* SIDEBAR */

.sidebar{ /*  COLORES DEL MENU PRINCIPAL */
    position:fixed;
    left:0;
    top:0;
    width:216px;
    height:100vh;
    background:#358ecd;
    color:white;
    transition:.3s;
    z-index:1000;
    overflow-y:auto;
}

.sidebar ul{
    margin:0;
    padding:0;
    list-style:none;
}

.buscar-menu{
    padding:6px 12px;
    position:relative;
}
.buscar-menu .bi-search{
    position:absolute;
    left:24px;
    top:16px;
    color:#9ca3af;
    font-size:13px;
    pointer-events:none;
    z-index:2;
}
#buscarMenu{
    width:100%;
    border:0;
    border-radius:8px;
    background:rgba(255,255,255,.18);
    color:#fff;
    padding:8px 10px 8px 30px;
    font-size:13px;
    box-sizing:border-box;
}
#buscarMenu::placeholder{ color:rgba(255,255,255,.75); }
#buscarMenu:focus{ outline:2px solid #fff; background:rgba(255,255,255,.28); }

@media (max-width:768px){
    .buscar-menu{ display:none; }
}

.sidebar li{
    height:45px;
    display:flex;
    align-items:center;
    gap:15px;
    padding:0 20px;
    cursor:pointer;
    box-sizing:border-box;
}
.sidebar li i{
    width:25px;
    text-align:center;}
.sidebar.collapsed{
    width:70px;
}
.sidebar.collapsed .logo span,
.sidebar.collapsed .menu span{
    display:none;
}
.sidebar.collapsed .menu li{
    justify-content:center;
}
.sidebar.collapsed ~ .main{
    margin-left:70px;
    width:calc(100% - 70px);
}
.sidebar.collapsed ~ .main .header{
    left:70px;
}

.logo{
    min-height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
    font-size:22px;
    font-weight:bold;
}
.logo img{
    max-width:100%;
    max-height:77px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}
.sidebar.collapsed .logo img{
    max-height:34px;
}
  .controls {
    width: 80%;
    background: #152c5d;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #e2e3e6;
    font-family: 'calibri';
    font-size: var(--font-login-controls);
    color: rgb(248, 248, 251); 
    align-self: center;
 }
.logoindex{
	margin-top: 10px;
	margin-left: 20px;
	margin-right: 20px;
	margin-bottom: 10px; 
	border-radius: 20px;
	align-self: center;
	width: 80%;
	height: 60%; 	
}

.logo i{
    font-size:28px;
    color:#60a5fa;
}

.dolar-card{
    margin:0 14px 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#ecfdf5;
    border:1px solid #bbf7d0;
    border-radius:12px;
    padding:8px 12px;
    color:#16a34a;
    font-weight:700;
    font-size:13px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.dolar-card i{
    font-size:16px;
}
.sidebar.collapsed .dolar-card-text{
    display:none;
}

/* ===== Botones del header (Atrás / Engranaje) ===== */
.hdr-back,
.header-gear{
    background:transparent;
    border:0;
    cursor:pointer;
    padding:6px;
    border-radius:10px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.hdr-back i,
.header-gear i{ font-size:24px; color:#2563eb; }
.hdr-back:hover,
.header-gear:hover{ background:rgba(37,99,235,.12); }
.header-gear.show{ background:rgba(37,99,235,.18); }
.hdr-back{ margin-right:8px; }
.hdr-back.disabled{ opacity:.35; cursor:default; }
.hdr-back.disabled:hover{ background:transparent; }
.hdr-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    margin-left:6px;
    border:0;
    border-radius:10px;
    background:linear-gradient(135deg,#ef4444,#dc2626);
    color:#fff;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(220,38,38,.28);
    transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.hdr-logout i{ font-size:17px; line-height:1; color:#fff; }
.hdr-logout:hover{
    transform:translateY(-1px);
    filter:brightness(1.05);
    box-shadow:0 4px 10px rgba(220,38,38,.38);
}
.hdr-logout:active{ transform:translateY(0) scale(.96); }
@media (max-width:768px){
    .hdr-logout{ width:30px; height:30px; border-radius:9px; }
    .hdr-logout i{ font-size:16px; }
}

/* ===== Calendario (Veterinaria - Citas) ===== */
.vet-cal-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.vet-cal-nav{ display:flex; align-items:center; gap:14px; }
.vet-cal-nav a{ color:#2563eb; font-size:18px; text-decoration:none; }
.vet-cal-title{ font-size:18px; font-weight:800; color:#1f2937; text-transform:capitalize; }
.vet-cal-today{ font-size:13px; color:#2563eb; text-decoration:none; border:1px solid #bfdbfe; padding:4px 12px; border-radius:20px; }
.vet-cal-today:hover{ background:#eff6ff; }
.vet-cal-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.vet-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; min-width:680px; }
.vet-cal-dow{ text-align:center; font-weight:700; color:#6b7280; font-size:12px; padding:4px 0; text-transform:uppercase; }
.vet-cal-day{ min-height:96px; border:1px solid #e5e7eb; border-radius:10px; padding:6px; background:#fff; cursor:pointer; transition:.15s; }
.vet-cal-day:hover{ border-color:#93c5fd; background:#f8fbff; }
.vet-cal-day.otro{ background:#f8fafc; border-style:dashed; cursor:default; }
.vet-cal-day.hoy{ border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.15); }
.vet-cal-day .num{ font-weight:700; color:#374151; font-size:13px; }
.vet-cal-day.hoy .num{ color:#2563eb; }
.vet-cita-chip{ display:block; margin-top:4px; font-size:11px; padding:2px 6px; border-radius:6px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.vet-cita-chip.PENDIENTE{ background:#f59e0b; }
.vet-cita-chip.ATENDIDA{ background:#16a34a; }
.vet-cita-chip.CANCELADA{ background:#9ca3af; }
.vet-cal-leyenda{ display:flex; gap:16px; margin-top:12px; font-size:12px; color:#6b7280; flex-wrap:wrap; }
.vet-dot{ display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:5px; vertical-align:middle; }
.vet-dot.PENDIENTE{ background:#f59e0b; }
.vet-dot.ATENDIDA{ background:#16a34a; }
.vet-dot.CANCELADA{ background:#9ca3af; }
@media (max-width:768px){ .vet-cal-day{ min-height:74px; } }

/* ===== Menú flotante "Configuración" ===== */
.menu .menu-parent{ position:relative; display:block; padding:0; height:auto; }
.menu-parent-label{
    height:45px;
    display:flex;
    align-items:center;
    gap:15px;
    padding:0 20px;
    cursor:pointer;
    box-sizing:border-box;
    text-decoration:none;
    color:inherit;
}
.menu-parent-label:hover,
.menu-parent-label:focus,
.menu-parent-label:active{
    text-decoration:none;
}
.menu-parent-label i:first-child{ width:25px; text-align:center; }
.menu-parent-label .chev{
    margin-left:auto;
    font-size:12px;
    transition:transform .2s;
}
.menu-parent.open .menu-parent-label{ background:rgba(0,0,0,.12); }
.menu-parent.open .menu-parent-label .chev{ transform:rotate(90deg); }

.cfg-float{
    display:none;
    position:fixed;
    left:220px;
    top:0;
    min-width:200px;
    background:#ffffff;
    color:#1f2937;
    border-radius:12px;
    box-shadow:0 12px 30px rgba(0,0,0,.28);
    padding:6px;
    z-index:5000;
}
.cfg-float::before{
    content:"";
    position:absolute;
    left:-6px; top:16px;
    width:12px; height:12px;
    background:#fff;
    transform:rotate(45deg);
}
.cfg-float-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    white-space:nowrap;
    color:#1f2937;
}
.cfg-float-item i{ width:20px; text-align:center; color:#4b5563; }
.cfg-float-item:hover{ background:#eff6ff; color:#2563eb; }
.cfg-float-item:hover i{ color:#2563eb; }

.menu{
    list-style:none;
    padding:20px;
    margin-top:20px;

}

 .menu li{    /*titulos en el menu principal */
    display:flex;
    align-items:center;
    gap:15px;
    padding:14px 18px;
    margin-bottom:10px;
    border-radius:10px;
    color:#fcfdff;
}
.menu li:hover,
.menu .active{
    background:#2563eb;
}
.menu .menu-section{
    pointer-events:none;
    padding:6px 18px 0;
    margin-bottom:4px;
    font-size:11px;
    letter-spacing:1.5px;
    color:#00e5ff;
    text-shadow:0 0 6px rgba(0,229,255,.55);
    font-weight:800;
    text-transform:uppercase;
}
.menu .menu-section:hover{
    background:transparent;
}
.sidebar .menu > li.sidebar-card{
    display:block;
    height:auto;
    padding:8px;
    margin:8px 4px 14px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.22);
    border-radius:16px;
    box-shadow:0 8px 22px rgba(2,6,23,.16);
    cursor:default;
}
.sidebar .menu > li.sidebar-card:hover{
    background:rgba(255,255,255,.10);
}
.sidebar-card-title{
    display:flex;
    align-items:center;
    gap:10px;
    padding:4px 8px 8px;
    color:#dbeafe;
    font-size:11px;
    font-weight:800;
    letter-spacing:1.5px;
}
.sidebar-card-title i{
    font-size:16px;
    color:#93c5fd;
}
.sidebar .menu .sidebar-card-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.sidebar .menu .sidebar-card-list > li{
    height:auto;
    min-height:38px;
    margin:0;
    padding:9px 10px;
    border-radius:9px;
    gap:12px;
    color:#fff;
    background:transparent;
}
.sidebar .menu .sidebar-card-list > li:hover{
    background:rgba(37,99,235,.92);
}
.sidebar .menu .sidebar-card-subtitle{
    display:flex;
    align-items:center;
    gap:9px;
    height:auto;
    min-height:0;
    padding:10px 10px 4px;
    margin:6px 0 2px;
    border-top:1px solid rgba(255,255,255,.16);
    background:transparent;
    color:#bfdbfe;
    font-size:9px;
    font-weight:800;
    letter-spacing:1.5px;
    pointer-events:none;
}
.sidebar .menu .sidebar-card-subtitle:hover{
    background:transparent;
}
.sidebar .menu .sidebar-card-subtitle i{
    font-size:13px;
    color:#93c5fd;
}
.sidebar.collapsed .menu .sidebar-card-subtitle{
    justify-content:center;
    padding:8px 0 2px;
}
.sidebar.collapsed .menu .sidebar-card-subtitle span{
    display:none;
}
.sidebar .menu .sidebar-card-list > li i{
    font-size:18px;
}
.sidebar.collapsed .menu > li.sidebar-card{
    padding:6px;
    margin:8px 2px;
    border-radius:12px;
}
.sidebar.collapsed .sidebar-card-title{
    justify-content:center;
    padding:2px 0 6px;
}
.sidebar.collapsed .sidebar-card-title span{
    display:none;
}
.sidebar.collapsed .menu .sidebar-card-list > li{
    justify-content:center;
    padding:8px 4px;
}
.sidebar.collapsed .menu .sidebar-card-list > li span{
    display:none;
}
.menu i{
    font-size:20px;
}
.sidebar li.menu-logout{
    color:#ffffff;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,77,79,.55);
    border-radius:12px;
    margin:14px 12px 16px;
    padding:0 16px;
    height:44px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.sidebar li.menu-logout i{
    color:#ffffff;
}
.sidebar li.menu-logout:hover{
    background:rgba(220,38,38,.32);
    color:#ffffff;
    border-color:#ff4d4f;
}
.sidebar li.menu-logout:hover i{
    color:#ffffff;
}

/* MAIN */

.main{
    margin-left:216px;
    width:calc(100% - 216px);
    min-height:100vh;
    transition:.3s;
}    

/* Modo Mesonero: sin sidebar */
body.mesonero .main{
    margin-left:0;
    width:100%;
}
body.mesonero .header{
    left:0;
    width:100%;
}
body.mesonero main#content{
    padding:88px 10px 10px;
}

/* ==========================================================
   COCINA - Tablero de pedidos (tarjetas)
   ========================================================== */
body.cocina .main{ margin-left:0; width:100%; }
body.cocina .header{ left:0; width:100%; }
body.cocina main#content{ padding:88px 12px 12px; }

.cocina-board{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:10px;
}
.cocina-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.07);
    padding:9px 10px;
    display:flex;
    flex-direction:column;
}
.cocina-card-head{ display:flex; justify-content:space-between; align-items:center; gap:6px; margin-bottom:2px; }
.cocina-orden{ font-weight:800; font-size:15px; color:#111827; }
.cocina-tipo{ color:#fff; font-size:10px; font-weight:700; padding:2px 6px; border-radius:20px; white-space:nowrap; }
.cocina-meta{ font-size:11px; color:#6b7280; margin-bottom:5px; }
.cocina-lineas{ list-style:none; padding:0; margin:0 0 6px 0; flex:1; }
.cocina-lineas li{ font-size:13px; line-height:1.25; padding:3px 0; border-bottom:1px dashed #eee; color:#111827; }
.cocina-cant{ font-weight:800; color:#2563eb; margin-right:4px; }
.cocina-lugar{ font-size:9px; background:#eef2ff; color:#3730a3; padding:1px 5px; border-radius:8px; margin-left:4px; }
.cocina-btn-listo{ background:#16a34a; width:100%; height:34px; font-size:13px; margin-top:4px; }
.cocina-cliente{ background:#fef3c7; color:#92400e; border-radius:8px; padding:4px 6px; font-size:12px; font-weight:700; margin-bottom:5px; }
.cocina-btn-nombre{ background:#f59e0b; color:#fff; border:0; border-radius:8px; padding:6px 8px; font-size:12px; font-weight:700; cursor:pointer; margin-bottom:5px; width:100%; }
.cocina-btn-nombre:hover{ background:#d97706; }

.cocina-layout{ display:grid; grid-template-columns:1fr 320px; gap:14px; align-items:start; }
#cocinaListas{
    background:#f8fafc; border:1px solid #e5e7eb; border-radius:14px; padding:12px;
    position:sticky; top:88px; max-height:calc(100vh - 100px); overflow-y:auto;
}
.cocina-listas-vacio{ color:#6b7280; font-size:12px; text-align:center; padding:12px 0; }
.cocina-listas-head{
    font-weight:800; font-size:14px; color:#111827; margin-bottom:8px;
    display:flex; align-items:center; gap:6px;
    border-bottom:1px solid #e5e7eb; padding-bottom:6px;
}
.cocina-lista-card{
    background:#fff; border:1px solid #bbf7d0; border-left:4px solid #16a34a;
    border-radius:8px; padding:7px 8px; margin-bottom:7px; box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.cocina-lista-top{ display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:13px; }
.cocina-lista-tipo{ font-size:10px; background:#eef2ff; color:#3730a3; padding:1px 6px; border-radius:12px; }
.cocina-lista-cliente{ font-size:11px; color:#92400e; background:#fef3c7; border-radius:6px; padding:3px 6px; margin-top:4px; }
.cocina-lista-hora{ font-size:10px; color:#6b7280; margin-top:2px; }
.cocina-btn-entregar{
    background:#16a34a; color:#fff; border:0; border-radius:6px; padding:6px 8px;
    width:100%; font-size:12px; font-weight:700; cursor:pointer; margin-top:6px;
}
.cocina-btn-entregar:hover{ background:#15803d; }
@media (max-width:900px){
    .cocina-layout{ grid-template-columns:1fr; }
    #cocinaListas{ position:static; max-height:none; }
}

/* ==========================================================
   MESONERO - Interfaz para TABLET (pantalla completa, touch)
   ========================================================== */
body.mesonero .module-container{ padding:8px; }
body.mesonero .module-topbar{
    height:auto;
    padding:10px 14px;
    margin-bottom:10px;
    flex-wrap:wrap;
    gap:10px;
}
body.mesonero .module-topbar .module-btn{ padding:12px 16px; }
body.mesonero .module-topbar select{ height:44px; }
body.mesonero .box{ padding:10px; margin-bottom:10px; }
body.mesonero .pos-mesas{
    grid-template-columns:repeat(auto-fill,minmax(70px,1fr));
    max-height:22vh;
    gap:10px;
}
body.mesonero .pos-mesa{ height:64px; }
body.mesonero .pos-layout{
    grid-template-columns:170px 1fr 330px;
    gap:10px;
    margin-top:0;
}
body.mesonero .pos-cats{ gap:8px; }
body.mesonero .pos-cat{ padding:12px 10px; font-size:14px; }
body.mesonero .pos-productos{
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:10px;
}
body.mesonero .pos-producto{
    background:var(--pos-producto-bg) !important;
    color:#111827 !important;
    border:1px solid #2563eb !important;
    border-radius:10px !important;
    padding:8px !important;
    box-shadow:none !important;
    outline:none !important;
}
body.mesonero .pos-producto:hover{
    background:var(--pos-producto-bg) !important;
    color:#111827 !important;
}

@media (max-width:1180px){
    body.mesonero .pos-layout{ grid-template-columns:150px 1fr 300px; }
}
@media (max-width:900px){
    body.mesonero .pos-layout{ grid-template-columns:1fr; }
    body.mesonero .pos-cats{ flex-direction:row; flex-wrap:wrap; }
    body.mesonero .pos-cat{ width:auto; }
    body.mesonero .pos-mesas{ max-height:none; }
}
@media (max-width:768px){
    body.mesonero .pos-productos{ grid-template-columns:repeat(2,1fr); }
}

.mainindex{
    padding: 0px;
}    

/* HEADER */

/* .header{
    position:fixed;
    top:0;
    left:270px;
    right:0;
    height:70px;
    background:white;
    display:flex;
    align-items:center;
    padding:0 30px;
    z-index:900;
    transition:.3s;
} */
.header{
    position:fixed;
    top:0;
    left:216px;
    right:0;
    height:70px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
    z-index:900;
    transition:.3s;
}
.header-left{

    display:flex;
    align-items:center;
    gap:10px;
    margin-left:0;
    padding-left:0;    
}
.header-right{
    display:flex;
    align-items:center;
}
.header-logo{
    max-height:45px;
    max-width:180px;
    object-fit:contain;
}
.header-Barner{
    max-height:60x;
    max-width:550px;
    object-fit:contain;
}
.user{
    display:flex;
    align-items:center;
    gap:12px;
}

.user img{
    border-radius:50%;
}

/* CONTENT */
main{
    padding:96px 14px 14px;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(var(--cards-cols,4),minmax(0,1fr));
    gap:20px;
    margin-top:30px;
}
@media (max-width:1024px){
    .cards{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.card{
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 10px 25px #00000010;
    transition:.3s;
}
.card:hover{
    transform:translateY(-5px);
}
.card i{
    font-size:30px;
    color:#2563eb;
}
.card strong{
    font-size:32px;
    display:block;
    margin-top:15px;
}
.box{
    background:white;
    padding:30px;
    border-radius:15px;
}

/* CONTENEDOR GENERAL DEL MODULO */

 .module-container{
    padding:12px;
}

/* BARRA SUPERIOR */
.module-topbar{
    background:#111827;
    height:70px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    color:white;
    margin-bottom:20px;
}

.module-title{
    font-size:var(--font-title);
    font-weight:bold;
    display:flex;
    align-items:center;
    gap:10px
}
/* BOTONES */
.module-btn{
    border:0;
    padding:10px 15px;
    border-radius:10px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    cursor:pointer;
}
.module-btn:hover{
    background:#1d4ed8;
    color:white;
}
/* TARJETA */
.module-card{
    background:white;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    overflow:hidden;
}
.module-card-header{
    background:#1e293b;
    color:white;
    padding:18px;
    font-size:16px;
    font-weight:bold;
}


/* TABLAS */
.module-table-container{
    padding:20px;
    overflow-x:auto;
}

.module-table{
    width:100%;
    border-collapse:collapse;
}
.module-table th{
    background:#2563eb;
    color:white;
    padding:10px;
    font-size:var(--font-table);
}
.module-table td{
    padding:8px;
    border-bottom:1px solid #ddd;
    text-align:center;
    font-size:var(--font-table);
}

.module-table tr:hover{
    background:#f1f5f9;
}
/* BOTONES DE ACCION */
.action-btn{
    width:35px;
    height:35px;
    border:0;
    border-radius:50%;
    color:white;
    cursor:pointer;
}

.action-copy{
    background:#0891b2;
}
.action-edit{
    background:#16a34a;
}
.action-delete{
    background:#dc2626;
}
.action-view{
    background:#e5e7eb;
    color:#374151;
}

.action-view:hover{
    background:#d1d5db;
    color:#111827;
}

.action-contracto{
    background:#0d6efd;
    color:#ffffff;
}

.action-contracto:hover{
    background:#0b5ed7;
    color:#ffffff;
}

.action-participantes{
    background:#6f42c1;
    color:#ffffff;
}

.action-participantes:hover{
    background:#5a32a3;
    color:#ffffff;
}

/* CONTENEDOR GENERAL DEL FORMULARIO */
.login{
	width: 100%;
	height: 100vh; 
	display: grid;
	place-items: center;        /* centro todo */
}
.form{
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:400px;
    padding:25px;
    background:var(--azulapac);
	box-shadow: 7px 13px 37px #000;
    border-radius:10px;
    align-items:stretch;

}
.login-button{
	color: var(--azulapac) !important;
	margin-top: 14px;
	margin-bottom: 30px; 
}
.primary-button{
	background-color: #3f94c2;
	border-radius: 8px;
	border: none;
	color: var(--white);
	width:100%;
	max-width:200px;
	cursor: pointer;
	font-size: var(--md);
	font-weight: bold;
	height: 50px;
	align-self: center;

}
.form-container{
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

/* TITULO */

.form-title{
    text-align:center;
    font-size:22px;
    font-weight:bold;
    color:#333;
    margin-bottom:25px;
}

/* GRUPOS */

.form-group{
    margin-bottom:18px;
}

/* LABEL */

.form-group label{
    display:block;
    font-weight:600;
    color:#444;
    margin-bottom:6px;
    font-size:var(--font-label);
}


/* INPUTS */
.form-control-custom{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:var(--font-controls);
    transition:.3s;
}
.form-control-custom:focus{
    border-color:#0d6efd;
    box-shadow:0 0 5px rgba(13,110,253,.3);
    outline:none;
}


/* SELECT */

.form-select-custom{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:var(--font-controls);
}
/* SECCIONES */
.form-section{
    background:#f8f9fa;
    padding:15px;
    border-radius:10px;
    margin:20px 0;
}
.form-section-title{
    font-weight:bold;
    color:#0d6efd;
    margin-bottom:15px;
}

/* BOTON */
.btn-save{
    width:100%;
    padding:12px;
    border-radius:8px;
    font-size:16px;
    font-weight:bold;
}
/* ===========================
   MÓVIL
=========================== */
.mob-menu-btn{ display:none; }
.sidebar-overlay{ display:none; }
@media (max-width:768px){
    .sidebar{
        width:230px;
        transform:translateX(-100%);
        transition:transform .3s;
        z-index:2000;
        box-shadow:4px 0 18px rgba(0,0,0,.25);}
    .sidebar.open{
        transform:translateX(0);}
    .sidebar.collapsed{
        width:230px;}
    .sidebar .logo span,
    .sidebar .menu span{
        display:inline;}
    .sidebar.collapsed .logo span,
    .sidebar.collapsed .menu span{
        display:inline;}
    .sidebar .menu li{
        justify-content:flex-start;
        padding:0 20px;}
    .sidebar.collapsed .menu li{
        justify-content:flex-start;}
    .logo{
        justify-content:center;
        padding:16px 0;}
    .logo img{
        max-height:60px;}
    .main{
        margin-left:0;
        width:100%; }
    .sidebar.collapsed ~ .main{
        margin-left:0;
        width:100%; }
    .header{
        left:0;
        width:100%;}
    .sidebar.collapsed ~ .main .header{
        left:0;}
    .cards{
        grid-template-columns:1fr;}
    main{
        padding:90px 15px 15px;}

    .mob-menu-btn{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        background:transparent;
        border:0;
        cursor:pointer;
        margin-right:6px;
        padding:4px;}
    .mob-menu-btn i{
        font-size:28px;
        color:#2563eb;}
    .sidebar-toggle{
        display:none;}
    .sidebar-overlay{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.5);
        z-index:1500;}
    .sidebar-overlay.show{
        display:block;}
}


/* =====================================================
   TARJETAS RESPONSIVE GENERICAS
===================================================== */

.mobile-list{
    display:none;
}
.mobile-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    padding:14px;
    margin-bottom:12px;
    transition:.25s;
}
.mobile-card:hover{
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.mobile-card-title{
    font-size:20px;
    font-weight:bold;
    color:#2563eb;
    margin-bottom:12px;
    padding-bottom:8px;
    border-bottom:1px solid #e5e7eb;
}
.mobile-card-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
    padding:6px 0;
}
.mobile-card-label{
    font-weight:600;
    color:#374151;
}
.mobile-card-value{
    text-align:right;
    color:#111827;
    word-break:break-word;
}
.mobile-card-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid #e5e7eb;
}
@media(max-width:768px){

    .module-table{
        display:table;
        min-width:560px;
    }
    .module-table-container{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }
    .mobile-list{
        display:block;
    }
    /* CSS DEL BOTON DE AGREGAR*/
    .module-topbar{
        flex-direction:column;
        align-items:stretch;
        gap:15px;
        height:auto;
        padding:18px;
    }
    .module-title{
        justify-content:center;
        text-align:center;
        width:100%;
    }
    .module-btn{
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:8px;
    }
    .header{
        padding:0 15px;
    }
    .header-logo{
        max-height:35px;
        max-width:120px;
    }    
}

/*=========================================
=            TARJETA VENTA TOTAL          =
=========================================*/
.report-total{
    display:flex;
    align-items:center;
    gap:20px;
    background:#fff;
    border-radius:15px;
    padding:20px 25px;
    margin:25px 0;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    border-left:6px solid #2563eb;
}

.report-total-icon{
    width:65px;
    height:65px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    font-size:30px;
}
.report-total-info{

    display:flex;
    flex-direction:column;
}
.report-total-title{
    font-size:15px;
    color:#6b7280;
}

.report-total-value{
    font-size:36px;
    font-weight:700;
    color:#111827;
    line-height:1.2;

}

/* VENTAS POR DIA */

.form-grid{
    display:flex;
    gap:20px;
    align-items:flex-end;
    flex-wrap:wrap;
}
.form-group{
    display:flex;
    flex-direction:column;
}

p{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color:#ffffff;
}

/* // modulo de noticias */

.icon-selector{

display:flex;

flex-wrap:wrap;

gap:12px;

margin-top:10px;

margin-bottom:20px;

}

.icon-item{

width:55px;

height:55px;

display:flex;

justify-content:center;

align-items:center;

border:2px solid #DDD;

border-radius:8px;

cursor:pointer;

font-size:24px;

transition:.25s;

background:white;

}

.icon-item:hover{

transform:scale(1.08);

}

.icon-item.active{

border:2px solid #0d6efd;

background:#eef5ff;

}

.color-selector{

display:flex;

gap:15px;

margin-top:10px;

margin-bottom:20px;

}

.color-item{

width:38px;

height:38px;

border-radius:50%;

cursor:pointer;

border:3px solid white;

box-shadow:0 0 4px rgba(0,0,0,.25);

transition:.2s;

}

.color-item.active{

transform:scale(1.20);

border:3px solid black;

}

.dashboard-grid{

display:grid;

grid-template-columns:3fr 1fr;

gap:25px;

}

.dashboard-title{

font-size:22px;

font-weight:bold;

margin-bottom:15px;

}

.news-card{

background:#fff;

border-radius:12px;

padding:18px;

margin-bottom:20px;

box-shadow:0 3px 12px rgba(0,0,0,.08);

}

.news-image{

width:100%;

border-radius:8px;

margin-bottom:15px;

}

.news-header{

display:flex;

align-items:center;

gap:15px;

font-size:28px;

margin-bottom:12px;

}

.news-title{

font-size:22px;

font-weight:bold;

}

.news-version{

font-size:13px;

color:#777;

}

.news-content{

line-height:1.7;

margin-top:10px;

}

.news-footer{

margin-top:15px;

font-size:12px;

color:#999;

}

.news-empty{

padding:50px;

text-align:center;

background:#fafafa;

border-radius:10px;

}

.stat-card{

display:flex;

align-items:center;

gap:15px;

padding:18px;

margin-bottom:15px;

border-radius:12px;

background:white;

box-shadow:0 3px 12px rgba(0,0,0,.08);

}

.stat-card i{

font-size:40px;

color:#0d6efd;

}

.stat-number{

font-size:28px;

font-weight:bold;

}

.stat-text{

font-size:14px;

color:#777;

}

@media(max-width:900px){

.dashboard-grid{

grid-template-columns:1fr;

}

}
.modal-content{
    border:0;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 18px 45px rgba(0,0,0,.25);
}
.modal-header{
    background:linear-gradient(90deg,#0a2540,#0b3aa8);
    color:#fff;
    border-bottom:none;
}

.modal-header .modal-title{
    font-weight:600;
    font-size:1.25rem;
}

.modal-header .btn-close{
    filter:invert(1);
}

.btn.btn-secondary{
    background:#dc2626;
    border-color:#dc2626;
    color:#fff;
}
.btn.btn-secondary:hover,
.btn.btn-secondary:focus{
    background:#b91c1c;
    border-color:#b91c1c;
    color:#fff;
}
.modal-body strong{
    display:block;
    color:#ff7a00;
    font-size:.82rem;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:3px;
}
.modal-body{
    font-size:.97rem;
}
.modal-footer .btn-secondary{
    background:#1f2937;
    border:0;
    border-radius:8px;
    padding:8px 22px;
}
.modal-footer .btn-secondary:hover{
    background:#111827;
}
.user{
    display:flex;
    align-items:center;
    gap:12px;
}
.user-info{
    display:flex;
    flex-direction:column;
}
.user-name{
    font-weight:600;
    font-size:18px;
}
.user-level{
    color:#6b7280;
    font-size:12px;
}

/*==========================
 FLOATING MENU
==========================*/

.floating-menu{
    position:fixed;
    display:none;
    min-width:260px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
    border:1px solid #ddd;
    z-index:99999;
}
.fm-header{
    background:#0d6efd;
    color:white;
    padding:15px;
    font-weight:bold;
}
.fm-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 18px;
    cursor:pointer;
    transition:.25s;
}
.fm-item:hover{
    background:#eef5ff;
}
.fm-item i{
    font-size:18px;
    color:#0d6efd;
}
/*==========================================================
=            DASHBOARD ESTADISTICAS CURSOS
==========================================================*/

.dashboard-estadisticas{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin:25px 0 35px 0;

}

.dashboard-card{

    background:#ffffff;
    border-radius:14px;
    padding:22px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    cursor:pointer;
    transition:.30s;
    text-align:center;
    border-top:5px solid #0d6efd;

}

.dashboard-card:hover{

    transform:translateY(-6px);

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.dashboard-icon{

    font-size:34px;
    margin-bottom:12px;

}

.dashboard-titulo{

    font-size:14px;
    font-weight:600;
    text-transform:uppercase;
    color:#666;

}

.dashboard-numero{

    font-size:38px;
    font-weight:bold;
    margin:10px 0;

}

.dashboard-link{

    margin-top:10px;
    font-size:13px;
    color:#888;

}

.dashboard-card:hover .dashboard-link{

    color:#0d6efd;
    font-weight:600;

}
/*==========================================================
=            COLORES TARJETAS
==========================================================*/

.card-total{

    border-top-color:#0d6efd;

}

.card-pna{

    border-top-color:#198754;

}

.card-taller{

    border-top-color:#20c997;

}

.card-curso{

    border-top-color:#fd7e14;

}

.card-diplomado{

    border-top-color:#6f42c1;

}

.card-activo{

    border-top-color:#198754;

}

.card-inactivo{

    border-top-color:#dc3545;

}
@media(max-width:768px){

.dashboard-estadisticas{
    grid-template-columns:repeat(2,1fr);
}

.dashboard-card{
    padding:18px;
}

.dashboard-numero{
    font-size:30px;
}
}

/* ==========================================================
   POS RESTAURANTE  (todo editable aquí)
   ========================================================== */
:root{
    --pos-cols: 200px 1fr 380px;      /* categorías | productos | orden */
    --pos-mesa-size: 64px;            /* alto de cada mesa */
    --pos-mesa-radio: 10px;
    --pos-mesa-marco: #cbd5e1;        /* color del marco de la mesa */
    --pos-mesa-marco-grosor: 2px;
    --pos-mesa-num-top: 0px;          /* posición del número (arriba del icono) */
    --pos-mesa-sel: #1d4ed8;          /* borde de la mesa seleccionada */
    --pos-cat-activo: #2563eb;
    --pos-cat-inactivo: #e5e7eb;
    --pos-producto-bg: #f1f5f9;
    --pos-producto-precio: #2563eb;
    --pos-producto-img-alto: 72px;
}
.pos-layout{ display:grid; grid-template-columns:var(--pos-cols); gap:15px; margin-top:20px; }
.pos-cats{ display:flex; flex-direction:column; gap:6px; }
.pos-cat{ width:100%; text-align:left; }
.pos-cat.inactivo{ background:var(--pos-cat-inactivo); color:#111827; }
.pos-productos{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; max-height:70vh; overflow-y:auto; }
.pos-producto{ position:relative; background:var(--pos-producto-bg); color:#111827; text-align:left; padding:8px; border:1px solid #2563eb; border-radius:10px; display:flex; flex-direction:column; }
.pos-producto img{ width:100%; aspect-ratio:1 / 1; height:auto; object-fit:cover; border-radius:6px; margin-bottom:6px; }
.pos-producto .sin-img{ width:100%; aspect-ratio:1 / 1; background:#e2e8f0; border-radius:6px; margin-bottom:6px; display:flex; align-items:center; justify-content:center; }
.pos-producto .nombre{ font-weight:600; font-size:12px; }
.pos-producto .precio{ color:var(--pos-producto-precio); font-size:13px; font-weight:bold; }
.pos-mesas{ display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:8px; max-height:38vh; overflow-y:auto; margin-top:14px; }
.pos-lienzo{ position:relative; min-height:400px; height:60vh; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:10px; overflow:auto; margin-top:14px; }
.pos-mesa-abs{ position:absolute; width:60px; height:60px; }
.pos-mesa{ position:relative; height:var(--pos-mesa-size); border:var(--pos-mesa-marco-grosor) solid var(--pos-mesa-marco); border-radius:var(--pos-mesa-radio); cursor:pointer; background:#fff; padding:0; overflow:hidden; }
.pos-mesa.sel{ border-color:var(--pos-mesa-sel); border-width:3px; }
.pos-mesa img{ width:100%; height:100%; object-fit:contain; }
.pos-mesa .num{ position:absolute; top:var(--pos-mesa-num-top); left:50%; transform:translateX(-50%); font-weight:800; font-size:15px; color:#fff; text-shadow:0 1px 2px #000,0 0 6px #000,0 0 3px #000; }
.pos-leyenda{ display:flex; gap:16px; align-items:center; font-size:12px; }
.pos-leyenda img{ height:20px; vertical-align:middle; }

/* POS responsive (tablet) */
@media (max-width:1200px){
    :root{
        --pos-cols: 150px 1fr 300px;
        --pos-mesa-size: 56px;
        --pos-producto-img-alto: 60px;
    }
}
@media (max-width:992px){
    :root{
        --pos-cols: 120px 1fr 260px;
        --pos-mesa-size: 52px;
    }
    .pos-productos{ grid-template-columns:repeat(3,1fr); }
    .pos-mesas{ grid-template-columns:repeat(auto-fill,minmax(54px,1fr)); }
    .module-container{ padding:12px; }
    main{ padding:88px 14px 14px; }
    .module-topbar{ flex-wrap:wrap; gap:10px; height:auto; padding:14px; }
}
@media (max-width:768px){
    .pos-layout{ grid-template-columns:1fr; }
    .pos-cats{ flex-direction:row; flex-wrap:wrap; }
    .pos-cat{ width:auto; }
    .pos-productos{ max-height:none; grid-template-columns:repeat(2,1fr); }
    .pos-mesas{ max-height:none; }
}

/* ==========================================================
   PARÁMETROS - Secciones con color de fondo (colores claros)
   ========================================================== */
.cfg-empresa{ background:#eff6ff; }     /* azul claro */
.cfg-impuestos{ background:#ecfdf5; }   /* verde claro */
.cfg-ventas{ background:#fff7ed; }      /* naranja claro */
.cfg-fiscal{ background:#f5f3ff; }      /* violeta claro */
.cfg-cachea{ background:#fefce8; }      /* amarillo claro */

/* Aviso instalar PWA */
.install-banner{
    position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:2000;
    background:#0f172a;color:#e2e8f0;border-radius:14px;padding:10px 12px;
    display:none;align-items:center;gap:12px;box-shadow:0 12px 34px rgba(0,0,0,.35);
    max-width:94vw;
}
.install-banner.show{display:flex}
.install-banner img{height:38px;width:38px;background:#fff;border-radius:9px;padding:3px;flex:0 0 auto}
.install-banner .txt{font-size:13px;line-height:1.25}
.install-banner .txt strong{color:#7dd3fc}
.install-banner #installBtn{
    border:none;border-radius:9px;padding:9px 16px;font-weight:800;color:#fff;
    background:linear-gradient(135deg,#3b82f6,#2563eb);cursor:pointer;white-space:nowrap;flex:0 0 auto;
}
.install-banner .x{background:transparent;border:none;color:#94a3b8;font-size:20px;line-height:1;cursor:pointer;padding:2px 4px;flex:0 0 auto}
@media (max-width:575.98px){
    .install-banner{left:10px;right:10px;transform:none;max-width:none;bottom:10px}
}

/* Tipografía unificada de botones en todos los módulos */
button,
.module-btn,
.action-btn,
.primary-button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}
/* Pacientes en modo tarjeta (móvil) */
@media (max-width: 768px) {
    .pacientes-table thead { display: none; }
    .pacientes-table tbody tr {
        display: block; background: #fff; border: 1px solid #e5e7eb;
        border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(15,23,42,.05);
    }
    .pacientes-table tbody td {
        display: flex; justify-content: space-between; align-items: center;
        gap: 10px; border: 0; padding: 5px 0; text-align: right !important;
        white-space: normal !important;
    }
    .pacientes-table tbody td::before {
        content: attr(data-label); font-weight: 700; color: #64748b;
        font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
        flex: 0 0 auto; text-align: left;
    }
    .pacientes-table tbody td:last-child {
        justify-content: flex-end; border-top: 1px dashed #e5e7eb;
        margin-top: 6px; padding-top: 8px;
    }
    .pacientes-table tbody td:last-child::before { content: ''; }
    .pacientes-table tbody td[colspan] { display: block; text-align: center !important; }
    .pacientes-table tbody td[colspan]::before { content: ''; }
}

/* ==========================================================
   AJUSTES RESPONSIVE GENERALES (MÓVIL)
   ========================================================== */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .header {
        height: 62px !important;
        padding: 0 8px !important;
        gap: 6px;
    }
    .header-left {
        gap: 4px !important;
        min-width: 0;
        overflow: hidden;
    }
    .header-right {
        gap: 8px !important;
        flex-shrink: 0;
    }
    .header-right > div[title] { margin-right: 0 !important; }
    .header-logo { max-height: 32px; max-width: 95px; }
    .user-data { display: none !important; }
    .user-sucursal { padding-left: 0 !important; }
    .header-left .user { gap: 4px; }
    #selSucursal {
        min-width: 0 !important;
        width: 104px !important;
        max-width: 104px !important;
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
    .header-gear i { font-size: 21px; }
    .mob-menu-btn i { font-size: 26px; }

    main { padding: 78px 8px 12px !important; }
    .module-container { padding: 0 !important; }
    .box { padding: 14px !important; border-radius: 12px; }
    .module-topbar {
        height: auto !important;
        padding: 12px 14px !important;
        margin-bottom: 12px;
    }
    .module-title { font-size: 16px; }
    .module-topbar .module-btn { width: 100%; }

    .form-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .form-grid > .form-group {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .form-grid .form-control-custom,
    .form-control-custom,
    .controls {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 16px !important;
    }
    .form-grid .module-btn,
    .form-grid .btn { width: 100%; }

    .module-table-container { padding: 8px !important; }
    .module-table th, .module-table td { padding: 8px 6px; }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-top: 14px !important;
    }
    .card { padding: 14px !important; border-radius: 14px; }
    .card strong { font-size: 22px; }
    .td-dos-columnas { grid-template-columns: 1fr !important; }
    .report-total { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }

    .modal-dialog { margin: 8px; }
    .modal-body { padding: 14px; }
    .modal-header, .modal-footer { padding: 12px; }
    .modal-header .modal-title { font-size: 1rem; }

    .login .form { max-width: 100%; padding: 18px; }
    .login .controls, .login .pass-wrap { width: 100% !important; }
    .logoindex { width: 100% !important; height: auto !important; margin: 0 0 10px !important; }

    .pos-cat { width: auto !important; }
    .pos-producto { min-width: 0; }
    .action-btn { min-width: 32px; min-height: 32px; }
    .module-btn { min-height: 42px; }
    .modal-footer { flex-wrap: wrap; }
    .modal-footer .btn, .modal-footer .module-btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
    .user-avatar { display: none !important; }
    #selSucursal { width: 96px !important; max-width: 96px !important; }
    .header-logo { max-width: 78px; }
    .header { height: 58px !important; }
    main { padding-top: 72px !important; }
    .cards { grid-template-columns: 1fr !important; }
    .module-title { font-size: 15px; }
    .module-btn { font-size: 13px; }
    .module-table th, .module-table td { font-size: 11px; padding: 7px 5px; }
    .box { padding: 12px !important; }
    .modal-dialog { margin: 4px; }
    .mes-keypad { max-width: 100% !important; }
    .mes-pin-display { height: 46px; font-size: 22px; }
    .mes-keypad button { height: 48px; font-size: 20px; }
}

@media (max-width: 380px) {
    .hdr-back { display: none !important; }
    .header-logo { max-width: 64px; }
    #selSucursal { width: 88px !important; max-width: 88px !important; }
}

/* Norma global de impresión: evita encabezados/pies del navegador. */
@media print {
    @page { margin: 0; }
    html, body { margin: 0 !important; }
}
