/* La Casa de Las Liras - Estilos Personalizados */

/* ── SIDEBAR RESPONSIVE ─────────────────────────────────────── */
/*
  < 1024px (portrait + landscape móvil/tablet):
      sidebar oculto por defecto, hamburger visible, overlay al abrir
  ≥ 1024px (desktop/laptop):
      sidebar siempre visible, hamburger oculto
*/
#sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100dvh;
    will-change: transform;
}
#sidebar.sidebar-open { transform: translateX(0); }

#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 39;
    backdrop-filter: blur(2px);
    cursor: pointer; /* iOS necesita esto para disparar click en div */
    -webkit-tap-highlight-color: transparent;
}
#sidebar-overlay.visible { display: block; }

#hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
#hamburger-btn:hover { background: #f1f5f9; }

/* Desktop: sidebar permanente, hamburger oculto */
@media (min-width: 1024px) {
    #sidebar {
        position: relative;
        transform: translateX(0);
        height: 100%;
    }
    #sidebar-overlay { display: none !important; }
    #hamburger-btn { display: none !important; }
}

/* ── TABLAS RESPONSIVE ──────────────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── TOUCH TARGETS ──────────────────────────────────────────── */
@media (max-width: 1023px) {
    .btn-touch { min-height: 44px; min-width: 44px; }
    select, input[type="text"], input[type="number"], input[type="email"], input[type="date"] {
        font-size: 16px; /* evita zoom automático en iOS */
    }
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.15) 0%, transparent 100%);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

.card-hover {
    transition: all 0.2s;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.12);
}
