@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --nav-bg:      #0f172a;
    --nav-accent:  #f59e0b;
    --bg:          #f1f5f9;
    --radius:      14px;
    --shadow:      0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.06);
    --border:      #e2e8f0;
    --text-muted:  #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg);
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    min-height: 100vh;
}

/* ── NAVBAR ── */
.app-nav {
    background: var(--nav-bg);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 12px rgba(0,0,0,0.25);
}
.app-nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    max-width: 1200px;
    margin: 0 auto;
}
.app-nav .brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nav-accent);
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.app-nav .links { display: flex; align-items: center; gap: 2px; }
.app-nav .nav-link {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.app-nav .nav-link:hover  { color: #fff; background: rgba(255,255,255,0.09); }
.app-nav .nav-link.active { color: var(--nav-accent); background: rgba(245,158,11,0.1); }
.app-nav .btn-salir {
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 7px;
    border: 1.5px solid rgba(239,68,68,0.6);
    color: #f87171;
    background: transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.app-nav .btn-salir:hover { background: #ef4444; color: white; border-color: #ef4444; }

/* hamburger mobile */
.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .app-nav .links {
        display: none;
        flex-direction: column;
        gap: 2px;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: var(--nav-bg);
        padding: 0.75rem 1rem 1rem;
        z-index: 199;
        border-top: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }
    .app-nav .links.open { display: flex; }
    .app-nav .nav-link { padding: 0.6rem 1rem; border-radius: 8px; }
}

/* ── CONTENT WRAPPER ── */
.page { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.page-sm { max-width: 680px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }

/* ── PAGE HEADER ── */
.page-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-title { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0; }

/* ── CARDS ── */
.card {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    background: white;
}
.card-header {
    background: white !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-weight: 600;
    padding: 0.9rem 1.25rem !important;
    font-size: 0.95rem;
}

/* ── STAT CARDS ── */
.stat-card {
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
}
.stat-card h6 {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.6px; opacity: 0.85; margin: 0 0 0.5rem; font-weight: 600;
}
.stat-card h3, .stat-card h4 { margin: 0; font-weight: 700; }

.stat-pasadas  { background: linear-gradient(135deg,#ff6b6b,#ee5a24); }
.stat-curso    { background: linear-gradient(135deg,#00d2a0,#00a86b); }
.stat-futuras  { background: linear-gradient(135deg,#4d79ff,#2040c9); }
.stat-semana   { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#1a0a00; }
.stat-semana h6{ opacity:0.7; }
.stat-mes      { background: linear-gradient(135deg,#a78bfa,#6c5ce7); }
.stat-futuros  { background: linear-gradient(135deg,#f472b6,#ec4899); }
.stat-total    { background: linear-gradient(135deg,#374151,#111827); }

/* ── FORMS ── */
.form-label { font-weight: 500; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.form-control, .form-select {
    border-radius: 8px !important;
    border: 1.5px solid var(--border) !important;
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: #4d79ff !important;
    box-shadow: 0 0 0 3px rgba(77,121,255,0.12) !important;
}
.input-group-text { border-radius: 8px 0 0 8px !important; border: 1.5px solid var(--border) !important; background: #f8fafc; font-weight: 600; }
.input-group .form-control { border-radius: 0 8px 8px 0 !important; }

/* ── BUTTONS ── */
.btn { border-radius: 8px !important; font-weight: 500; font-size: 0.875rem; transition: transform 0.1s, box-shadow 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-lg { font-size: 1rem !important; padding: 0.7rem 1.5rem !important; }

/* ── GUEST CARDS ── */
.huesped-card { border-left: 4px solid #4d79ff !important; }
.nac-input[readonly] { background: #f8fafc !important; color: var(--text-muted); }

/* ── ALERTS ── */
.alert { border: none !important; border-radius: 12px !important; }
.alert-warning { background: #fef9ee; color: #92400e; }
.alert-info    { background: #eff8ff; color: #1e40af; }
.alert-secondary { background: #f8fafc; color: #334155; }

/* ── TABLE ── */
.table-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table { margin: 0 !important; }
.table thead th {
    background: #f8fafc; font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); border-bottom: 2px solid var(--border) !important;
    padding: 0.85rem 1rem !important;
}
.table tbody td { padding: 0.85rem 1rem !important; vertical-align: middle; font-size: 0.9rem; border-color: var(--border) !important; }
.table tbody tr:last-child td { border-bottom: none !important; }
.table-hover tbody tr:hover { background: #f8fafc !important; }

/* ── PROGRESS ── */
.progress { height: 8px; border-radius: 99px; background: #e2e8f0; }
.progress-bar { border-radius: 99px; }

/* ── MISC ── */
.badge { font-weight: 500; }
.section-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.75rem; }
