/* ============================================
   RESET Y VARIABLES GLOBALES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colores dinámicos (se sobrescriben por centro) */
    --color-primary: #3B82F6;
    --color-primary-dark: #1E40AF;
    --color-primary-light: #DBEAFE;
    --color-accent: #F59E0B;

    /* Colores neutros */
    --color-bg: #F1F5F9;
    --color-surface: #FFFFFF;
    --color-border: #E2E8F0;
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-text-light: #94A3B8;

    /* Estados */
    --color-success: #10B981;
    --color-success-bg: #D1FAE5;
    --color-danger: #EF4444;
    --color-danger-bg: #FEE2E2;
    --color-warning: #F59E0B;
    --color-warning-bg: #FEF3C7;
    --color-info: #3B82F6;
    --color-info-bg: #DBEAFE;

    /* Espaciado */
    --sidebar-width: 260px;
    --navbar-height: 62px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .1), 0 6px 10px rgba(0, 0, 0, .05);
}

html, body {
    height: 100%;
}

body.app-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVBAR SUPERIOR
   ============================================ */
.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.app-title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s, transform .15s;
    text-decoration: none;
    flex-shrink: 0;
}
.icon-btn:hover {
    background: rgba(255, 255, 255, .25);
}
.icon-btn:active {
    transform: scale(.95);
}

/* ============================================
   SIDEBAR
   ============================================ */
.app-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 900;
    display: flex;
    flex-direction: column;
}

.app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8px;
}
.sidebar-brand strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.2px;
}
.sidebar-brand small {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all .15s ease;
    line-height: 1.2;
}

.sidebar-nav a:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.sidebar-nav a.active {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.sidebar-nav a.logout {
    margin-top: auto;
    color: var(--color-danger);
}
.sidebar-nav a.logout:hover {
    background: var(--color-danger-bg);
}

/* Overlay cuando sidebar está abierto en mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 899;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.app-main {
    padding: 22px 18px;
    padding-top: calc(var(--navbar-height) + 22px);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.app-main h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--color-text);
    margin-bottom: 6px;
}

.app-main > p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================
   PAGE HEADER (título + botón)
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, .3);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(59, 130, 246, .4);
}

.btn-danger {
    background: var(--color-surface);
    border-color: #FCA5A5;
    color: var(--color-danger);
}
.btn-danger:hover {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

.card-centro {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .15s, box-shadow .15s;
}
.card-centro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-centro-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.avatar-fallback {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.card-centro-info {
    flex: 1;
    min-width: 0;
}
.card-centro-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}
.card-centro-info small {
    color: var(--color-text-light);
    font-size: 12.5px;
    display: block;
    margin-top: 2px;
}

.card-centro-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.card-centro-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-centro-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    line-height: 1.4;
}
.badge-success { background: var(--color-success-bg); color: #065F46; }
.badge-muted   { background: #F1F5F9; color: var(--color-text-muted); }
.badge-open    { background: #DCFCE7; color: #166534; }
.badge-closed  { background: #FEE2E2; color: #991B1B; }
.badge-info    { background: var(--color-info-bg); color: #1E40AF; }

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-surface);
    padding: 20px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    line-height: 1.1;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 12.5px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.form-card fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 18px;
    margin-bottom: 20px;
    background: #FCFDFE;
}
.form-card fieldset:last-of-type {
    margin-bottom: 0;
}

.form-card legend {
    padding: 0 10px;
    font-weight: 700;
    color: var(--color-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
    .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
}

.form-card label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 14px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="number"],
.form-card input[type="time"],
.form-card input[type="date"],
.form-card input[type="file"],
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 11px 13px;
    margin-top: 6px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    background: white;
    transition: border-color .15s, box-shadow .15s;
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.form-card input[type="color"] {
    height: 44px;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.form-card textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-card small,
.form-card .help {
    display: block;
    color: var(--color-text-light);
    font-size: 12px;
    margin-top: 5px;
    font-weight: 400;
    line-height: 1.5;
}

.fieldset-admin {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-color: #BAE6FD !important;
}
.fieldset-admin legend {
    color: var(--color-primary-dark);
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* ============================================
   ALERTS (mensajes flash)
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid;
    animation: slideIn .3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-title {
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 6px;
}
.alert-detail {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .6);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.8;
}
.alert-detail code {
    background: rgba(0, 0, 0, .08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 12.5px;
}

.alert-success {
    background: var(--color-success-bg);
    color: #065F46;
    border-color: var(--color-success);
}
.alert-error {
    background: var(--color-danger-bg);
    color: #991B1B;
    border-color: var(--color-danger);
}
.alert-info {
    background: var(--color-info-bg);
    color: #1E40AF;
    border-color: var(--color-info);
}
.alert-warning {
    background: var(--color-warning-bg);
    color: #92400E;
    border-color: var(--color-warning);
}

/* ============================================
   LOGIN
   ============================================ */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
}
.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
.login-card p {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 26px;
}
.login-card label {
    display: block;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}
.login-card input {
    width: 100%;
    padding: 13px 14px;
    margin-top: 6px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all .15s;
}
.login-card input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.login-card button {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all .15s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
}
.login-card button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, .4);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 70px 24px;
    background: var(--color-surface);
    border-radius: var(--radius);
    color: var(--color-text-muted);
    box-shadow: var(--shadow);
}
.empty-state p {
    margin-bottom: 18px;
    font-size: 15px;
}

/* ============================================
   FILTROS — Buscador
   ============================================ */
.filters-bar {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-search {
    position: relative;
    display: flex;
    align-items: center;
}
.filter-search .filter-icon {
    position: absolute;
    left: 16px;
    font-size: 15px;
    opacity: .5;
    pointer-events: none;
}
.filter-search input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #F8FAFC;
    color: var(--color-text);
    transition: all .15s;
}
.filter-search input:focus {
    outline: none;
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.filter-search .filter-clear {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: all .15s;
}
.filter-search .filter-clear:hover {
    background: #CBD5E1;
    color: #334155;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.chip {
    padding: 8px 15px;
    border-radius: 999px;
    background: #F1F5F9;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chip:hover {
    background: #E2E8F0;
    color: #334155;
}
.chip-active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, .25);
}
.chip-active:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* ============================================
   HORARIOS
   ============================================ */
.horario-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}
.horario-row:last-child {
    border-bottom: none;
}
@media (min-width: 640px) {
    .horario-row {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .horario-dia {
        width: 110px;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }
}
.horario-dia {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
    margin-bottom: 0;
}
.horario-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}
.time-input {
    padding: 9px 11px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    width: 115px;
    margin: 0;
}
.time-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.time-input:disabled {
    background: #F1F5F9;
    cursor: not-allowed;
}
.horario-sep {
    color: var(--color-text-light);
    font-size: 13px;
}
.horario-cerrado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 500;
}
.horario-cerrado input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--color-danger);
    cursor: pointer;
}
.horario-cerrado span {
    margin: 0;
}

/* ============================================
   DETALLE / VER
   ============================================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}
@media (min-width: 768px) {
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid .detail-card.full { grid-column: 1 / -1; }
}

.detail-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.detail-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.detail-list {
    list-style: none;
    font-size: 14px;
}
.detail-list li {
    padding: 8px 0;
    color: #475569;
    border-bottom: 1px solid #F8FAFC;
    line-height: 1.5;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list code {
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    color: #334155;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.color-swatches {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.color-swatches > div {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    cursor: help;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
}
.mini-card img,
.mini-card .avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.mini-card strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
}
.mini-card small {
    font-size: 12px;
    color: var(--color-text-light);
}
.mini-card > div:last-child {
    flex: 1;
    min-width: 0;
}

/* ============================================
   BANNER DEL CENTRO (dashboard)
   ============================================ */
.center-banner {
    border-radius: var(--radius-lg);
    padding: 22px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.center-banner-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.center-banner-info img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    object-fit: cover;
}
.center-banner-info h2 {
    font-size: 19px;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}
.center-banner-info small {
    opacity: .9;
    font-size: 13px;
}
.center-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-banner {
    padding: 9px 15px;
    background: rgba(255, 255, 255, .22);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: background .15s;
}
.btn-banner:hover { background: rgba(255, 255, 255, .35); }

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    margin-top: 30px;
}
.quick-actions h3 {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
    font-weight: 700;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.quick-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--color-surface);
    padding: 20px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
    border: 1.5px solid transparent;
}
.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.quick-card span {
    font-size: 28px;
    margin-bottom: 6px;
}
.quick-card b {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.quick-card small {
    color: var(--color-text-light);
    font-size: 12.5px;
}

/* ============================================
   STATUS BANNER (ver.php tiendas)
   ============================================ */
.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.status-open {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #14532D;
}
.status-closed {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #7F1D1D;
}
.status-banner .status-icon { font-size: 30px; }
.status-banner strong {
    font-size: 15px;
    display: block;
    font-weight: 700;
}
.status-banner small {
    font-size: 13px;
    opacity: .85;
}

/* ============================================
   HORARIOS EN VER.PHP
   ============================================ */
.horarios-lista {
    margin-top: 10px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.horario-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid var(--color-border);
}
.horario-item:last-child { border-bottom: none; }
.horario-hoy {
    color: var(--color-primary);
    font-weight: 700;
}
.horario-hoy span:first-child::before {
    content: "▶ ";
    font-size: 10px;
}

/* ============================================
   DANGER BOX (eliminar)
   ============================================ */
.danger-box {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1.5px solid #FECACA;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.danger-box h2 {
    font-size: 17px;
    color: #991B1B;
    margin-bottom: 10px;
    font-weight: 700;
}
.danger-box .detail-list li {
    color: #7F1D1D;
    border-bottom-color: #FEE2E2;
}
.danger-text {
    margin-top: 14px;
    padding: 12px 16px;
    background: #FEE2E2;
    color: #991B1B;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-left: 4px solid var(--color-primary);
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: #1E40AF;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--color-text-light);
    font-size: 12.5px;
    margin-top: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1024px) {
    .app-sidebar {
        transform: translateX(0);
    }
    .app-main {
        margin-left: var(--sidebar-width);
        padding-left: 26px;
        padding-right: 26px;
        max-width: none;
    }
    #menu-toggle {
        display: none;
    }
    .app-title {
        font-size: 18px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }