/* ============================================================
   RECEPCIÓN DE REGALOS — Dark Tech Theme
   Paleta: fondos oscuros, acento cian, tipografía limpia
   ============================================================ */

:root {
    /* Superficies (capas de profundidad) */
    --bg-base: #060a14;
    --bg-surface: #0a1020;
    --bg-elevated: #0e1526;
    --bg-sidebar: #04070f;
    --bg-input: #0a1020;
    --bg-input-hover: #0e1526;

    /* Bordes finos */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-accent: rgba(56, 189, 248, 0.35);

    /* Texto */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-faint: rgba(255, 255, 255, 0.28);

    /* Acento (cian frío) */
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-dim: rgba(56, 189, 248, 0.12);
    --accent-dim-hover: rgba(56, 189, 248, 0.18);

    /* Estados */
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.1);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.1);

    /* Radios */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px var(--border-accent), 0 8px 24px rgba(56, 189, 248, 0.08);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid pattern sutil de fondo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-sidebar {
    width: 248px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow-y: auto;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.app-sidebar::-webkit-scrollbar { width: 5px; }
.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.app-main {
    flex: 1;
    margin-left: 248px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-brand {
    padding: 22px 20px 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--border-subtle);
}
.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.05));
    border: 1px solid var(--border-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sidebar-brand span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -0.1px;
}

.sidebar-nav {
    padding: 14px 12px 24px;
    flex: 1;
}

.nav-group {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 18px 12px 8px;
}
.nav-group:first-child { padding-top: 8px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 450;
    transition: background .15s, color .15s;
    margin-bottom: 1px;
    position: relative;
}
.nav-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    transition: color .15s;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}
.nav-item:hover i { color: var(--text-secondary); }

.nav-item.active {
    background: var(--accent-dim);
    color: var(--text-primary);
    font-weight: 500;
}
.nav-item.active i { color: var(--accent); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.app-topbar {
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    padding: 0 22px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-name {
    font-size: 0.82rem;
    font-weight: 450;
    color: var(--text-secondary);
}
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-menu {
    background: transparent;
    border: 1px solid var(--border-default);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: all .15s;
}
.btn-menu:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.app-content {
    padding: 28px;
    flex: 1;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.page-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.page-subtitle {
    color: var(--text-muted);
    margin: 6px 0 0;
    font-size: 0.85rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.page-subtitle .dot-sep { color: var(--text-faint); }
.page-subtitle .text-brand { color: var(--accent); font-weight: 500; }

/* ============================================================
   CARDS
   ============================================================ */
.card-modern {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s;
}
.card-modern:hover { border-color: var(--border-default); }

.card-header-modern {
    padding: 14px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.15);
}
.card-header-modern i {
    color: var(--accent);
    font-size: 0.95rem;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    height: 100%;
    transition: border-color .15s, background .15s;
}
.stat-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}
.stat-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 1.1rem;
    color: var(--text-faint);
    opacity: 0.6;
}
.stat-value {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.stat-primary .stat-icon,
.stat-info .stat-icon,
.stat-success .stat-icon,
.stat-warning .stat-icon,
.stat-danger .stat-icon {
    color: var(--accent);
    opacity: 0.5;
}

/* ============================================================
   MINI CARDS
   ============================================================ */
.mini-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .15s;
}
.mini-card:hover { border-color: var(--border-default); }
.mini-card i {
    font-size: 1.15rem;
    color: var(--accent);
    opacity: 0.7;
}
.mini-value {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}
.mini-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    padding: 56px 24px;
    text-align: center;
}
.empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 14px;
    color: var(--text-faint);
}
.empty-state p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.empty-state-large {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 64px 24px;
    text-align: center;
}
.empty-state-large i {
    font-size: 2.2rem;
    color: var(--text-faint);
    display: block;
    margin-bottom: 18px;
}
.empty-state-large h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}
.empty-state-large p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 18px;
}
.empty-state-mini {
    text-align: center;
    padding: 18px 12px;
    color: var(--text-faint);
    font-size: .82rem;
    background: rgba(255, 255, 255, .02);
    border-radius: 8px;
    border: 1px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.empty-state-mini i { font-size: 1.3rem; opacity: .5; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.4;
    white-space: nowrap;
}
.btn i { font-size: 0.95rem; }

.btn-primary {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--border-accent);
}
.btn-primary:hover {
    background: var(--accent-dim-hover);
    color: var(--accent-hover);
    border-color: var(--accent);
}

.btn-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.3);
}
.btn-success:hover {
    background: rgba(74, 222, 128, 0.18);
    border-color: var(--success);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.3);
}
.btn-danger:hover {
    background: rgba(248, 113, 113, 0.18);
    border-color: var(--danger);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent);
    border-color: var(--border-accent);
}
.btn-outline-primary:hover {
    background: var(--accent-dim);
    color: var(--accent-hover);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-default);
}
.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.3);
}
.btn-outline-danger:hover {
    background: var(--danger-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.btn-ghost:disabled,
.btn-ghost[disabled] {
    cursor: not-allowed !important;
    opacity: .35 !important;
    pointer-events: none;
}

.btn-lg {
    padding: 11px 18px;
    font-size: 0.92rem;
}
.btn-sm {
    padding: 5px 9px;
    font-size: 0.78rem;
    border-radius: 5px;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.6;
}
.btn.loading::after {
    content: '';
    width: 11px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    margin-left: 6px;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   TIPO GRID (Recepción)
   ============================================================ */
.tipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
}
.tipo-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 14px 8px;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}
.tipo-btn i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color .15s;
}
.tipo-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-default);
    color: var(--text-primary);
}
.tipo-btn:hover i { color: var(--text-secondary); }
.tipo-btn.active {
    background: var(--accent-dim);
    border-color: var(--border-accent);
    color: var(--text-primary);
}
.tipo-btn.active i { color: var(--accent); }

/* ============================================================
   FIESTA BANNER
   ============================================================ */
.fiesta-banner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(56, 189, 248, 0.02));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.fiesta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%);
    pointer-events: none;
}
.fiesta-banner-content { position: relative; }
.fiesta-banner-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.fiesta-banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.fiesta-banner-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fiesta-banner-meta i { color: var(--text-faint); }
.fiesta-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-default);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.fiesta-banner-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

/* ============================================================
   BOTÓN GRANDE REGISTRAR
   ============================================================ */
.btn-action-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent) !important;
    text-decoration: none !important;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all .18s;
    height: 100%;
    min-height: 92px;
    position: relative;
    overflow: hidden;
}
.btn-action-big::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.btn-action-big:hover {
    background: var(--accent-dim-hover);
    color: var(--accent-hover) !important;
    border-color: var(--accent);
}
.btn-action-big:hover::before { opacity: 1; }
.btn-action-big i {
    font-size: 1.5rem;
    transition: transform .2s;
}
.btn-action-big:hover i { transform: scale(1.08); }
.btn-action-big span {
    text-align: left;
    line-height: 1.3;
}

/* ============================================================
   RECEPTION CARD (móvil)
   ============================================================ */
.reception-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.reception-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
    color: inherit;
}
.reception-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.reception-card-body { display: flex; flex-direction: column; gap: 7px; }
.reception-card-invitado {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}
.reception-card-invitado i {
    color: var(--text-faint);
    font-size: 1rem;
}
.reception-card-detail {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}
.reception-card-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.reception-card-footer i {
    color: var(--text-faint);
    margin-right: 3px;
}

/* ============================================================
   AVATARS
   ============================================================ */
.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.avatar-circle-lg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* ============================================================
   TABLAS
   ============================================================ */
.table-dark-modern {
    width: 100%;
    margin: 0;
    font-size: 0.86rem;
    border-collapse: separate;
    border-spacing: 0;
}
.table-dark-modern thead th {
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-default);
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}
.table-dark-modern tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}
.table-dark-modern tbody tr {
    transition: background .12s;
}
.table-dark-modern tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}
.table-dark-modern tbody tr:last-child td {
    border-bottom: none;
}
.table-dark-modern .link-code {
    display: inline-block;
    min-width: 88px;
}
.table-dark-modern th:last-child,
.table-dark-modern td:last-child {
    text-align: right;
}

.link-code {
    color: var(--accent);
    text-decoration: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.link-code:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-tipo {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge-dinero    { background: var(--success-bg); color: var(--success); border-color: rgba(74, 222, 128, 0.25); }
.badge-regalo    { background: var(--accent-dim); color: var(--accent); border-color: var(--border-accent); }
.badge-presente  { background: var(--info-bg); color: var(--info); border-color: rgba(96, 165, 250, 0.25); }
.badge-padrinos  { background: var(--warning-bg); color: var(--warning); border-color: rgba(251, 191, 36, 0.25); }
.badge-cerveza   { background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); border-color: var(--border-default); }
.badge-otro      { background: rgba(255, 255, 255, 0.02); color: var(--text-muted); border-color: var(--border-subtle); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}
.badge.bg-success   { background: var(--success-bg); color: var(--success); border-color: rgba(74, 222, 128, 0.25); }
.badge.bg-primary   { background: var(--accent-dim); color: var(--accent); border-color: var(--border-accent); }
.badge.bg-danger    { background: var(--danger-bg); color: var(--danger); border-color: rgba(248, 113, 113, 0.25); }
.badge.bg-warning   { background: var(--warning-bg); color: var(--warning); border-color: rgba(251, 191, 36, 0.25); }
.badge.bg-info      { background: var(--info-bg); color: var(--info); border-color: rgba(96, 165, 250, 0.25); }
.badge.bg-secondary { background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); border-color: var(--border-default); }
.badge.bg-dark      { background: rgba(0, 0, 0, 0.3); color: var(--text-secondary); border-color: var(--border-default); }
.badge.bg-light     { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); border-color: var(--border-default); }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-label-xs {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.form-control,
.form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 500;
    transition: border-color .15s, background .15s;
    font-family: inherit;
    appearance: none;
}
.form-control::placeholder {
    color: var(--text-faint);
    opacity: 1;
}
.form-control:focus,
.form-select:focus {
    outline: none;
    background: var(--bg-input-hover);
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
    color: #ffffff;
}
.form-control-lg,
.form-select-lg {
    padding: 11px 15px;
    font-size: 0.94rem;
    border-radius: var(--radius);
}
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 34px;
}
.form-select option {
    background: var(--bg-surface);
    color: #ffffff;
}
textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Input group search */
.search-dark {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--bg-input);
    transition: border-color .15s;
}
.search-dark:focus-within {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}
.search-dark .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 0 12px;
    display: flex;
    align-items: center;
}
.search-dark .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
}
.search-dark .form-control:focus {
    box-shadow: none;
    background: transparent;
}

/* ============================================================
   ALERTAS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    line-height: 1.5;
}
.alert i {
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}
.alert-success { background: var(--success-bg); border-color: rgba(74, 222, 128, 0.25); color: var(--success); }
.alert-danger  { background: var(--danger-bg); border-color: rgba(248, 113, 113, 0.25); color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: rgba(251, 191, 36, 0.25); color: var(--warning); }
.alert-info    { background: var(--info-bg); border-color: rgba(96, 165, 250, 0.25); color: var(--info); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert .btn-close {
    filter: invert(0.7);
    opacity: 0.5;
    margin-left: auto;
}
.alert .btn-close:hover { opacity: 1; }

/* ============================================================
   CHIPS FILTROS TIPO
   ============================================================ */
.chips-scroll {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tipo-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.tipo-filter i {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.tipo-filter:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-default);
    color: var(--text-primary);
}
.tipo-filter:hover i { color: var(--text-secondary); }
.tipo-filter.active {
    background: var(--accent-dim);
    border-color: var(--border-accent);
    color: var(--accent);
    font-weight: 600;
}
.tipo-filter.active i { color: var(--accent); }

/* ============================================================
   ACTIVITY ICONS
   ============================================================ */
.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.activity-usuario   { background: var(--accent-dim); color: var(--accent); border-color: var(--border-accent); }
.activity-fiesta    { background: var(--success-bg); color: var(--success); border-color: rgba(74, 222, 128, 0.25); }
.activity-reception { background: var(--warning-bg); color: var(--warning); border-color: rgba(251, 191, 36, 0.25); }

/* ============================================================
   LIST GROUP
   ============================================================ */
.list-group { display: flex; flex-direction: column; }
.list-group-item {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
    transition: background .12s;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item-action {
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}
.list-group-item-action:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all .15s;
}
.page-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-default);
    color: var(--text-primary);
}
.page-item.active .page-link,
.page-link.active {
    background: var(--accent-dim);
    border-color: var(--border-accent);
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
}
.toast .toast-body {
    color: var(--text-primary);
    padding: 12px 16px;
}
.toast.text-bg-success { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); }
.toast.text-bg-danger  { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); }

/* ============================================================
   SWEETALERT2 CUSTOM
   ============================================================ */
.swal2-popup {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
    font-family: inherit !important;
    padding: 28px 24px !important;
    box-shadow: var(--shadow-lg) !important;
}
.swal2-title {
    color: var(--text-primary) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
    padding: 0 !important;
}
.swal2-html-container {
    color: var(--text-secondary) !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-top: 8px !important;
}
.swal2-actions { margin-top: 20px !important; gap: 8px !important; }
.swal2-confirm,
.swal2-cancel,
.swal2-styled {
    border-radius: var(--radius-sm) !important;
    padding: 9px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: all .15s !important;
}
.swal2-confirm {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    border-color: var(--border-accent) !important;
}
.swal2-confirm:hover {
    background: var(--accent-dim-hover) !important;
    color: var(--accent-hover) !important;
}
.swal2-cancel {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-default) !important;
}
.swal2-cancel:hover { background: rgba(255, 255, 255, 0.04) !important; }

.swal2-icon { border-width: 1.5px !important; margin: 6px auto 14px !important; }
.swal2-icon.swal2-success { border-color: var(--success) !important; color: var(--success) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(74, 222, 128, 0.3) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--success) !important; }
.swal2-icon.swal2-error { border-color: var(--danger) !important; color: var(--danger) !important; }
.swal2-icon.swal2-warning { border-color: var(--warning) !important; color: var(--warning) !important; }
.swal2-icon.swal2-info { border-color: var(--info) !important; color: var(--info) !important; }
.swal2-timer-progress-bar {
    background: var(--accent) !important;
    height: 2px !important;
}

.swal2-html-container .code-badge {
    display: inline-block;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 12px 0 4px;
}

/* ============================================================
   FIESTA CARD
   ============================================================ */
.fiesta-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, background .15s;
}
.fiesta-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}
.fiesta-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.fiesta-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -.2px;
    line-height: 1.3;
}
.fiesta-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.fiesta-card-meta i { color: var(--text-faint); margin-right: 3px; }
.fiesta-card-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}
.fiesta-card-stats > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: .78rem;
    color: var(--text-muted);
}
.fiesta-card-stats i { color: var(--text-faint); }
.fiesta-card-stats strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: .95rem;
}
.fiesta-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

/* ============================================================
   RECEPCIONISTA CARD
   ============================================================ */
.recepcionista-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 18px;
    height: 100%;
    transition: border-color .15s;
}
.recepcionista-card:hover { border-color: var(--border-default); }

.recepcionista-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}
.recepcionista-nombre {
    font-size: .98rem;
    font-weight: 600;
    color: var(--text-primary);
}
.recepcionista-email {
    color: var(--text-muted);
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recepcionista-email i { color: var(--text-faint); font-size: .74rem; }
.min-width-0 { min-width: 0; }

.recepcionista-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}
.recepcionista-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}
.recepcionista-stat > i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(56, 189, 248, .08);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: .88rem;
    flex-shrink: 0;
}
.rs-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.rs-label {
    color: var(--text-muted);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 1px;
}

.recepcionista-asignaciones { padding-top: 2px; }

.fiestas-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.fiesta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, .06);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: 6px 8px 6px 10px;
    font-size: .78rem;
}
.fiesta-chip-finalizada {
    background: rgba(255, 255, 255, .02);
    border-color: var(--border-subtle);
    opacity: .7;
}
.fiesta-chip-cancelada {
    background: rgba(248, 113, 113, .05);
    border-color: rgba(248, 113, 113, .25);
    opacity: .75;
}
.fiesta-chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.fiesta-chip-nombre {
    font-weight: 600;
    color: var(--text-primary);
    font-size: .8rem;
}
.fiesta-chip-meta {
    color: var(--text-muted);
    font-size: .68rem;
    display: flex;
    align-items: center;
    gap: 3px;
}
.fiesta-chip-meta i { color: var(--text-faint); font-size: .66rem; }
.fiesta-chip-remove {
    background: transparent;
    border: none;
    color: var(--text-faint);
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
    font-size: .72rem;
}
.fiesta-chip-remove:hover {
    background: var(--danger-bg);
    color: var(--danger);
}
.fiesta-chip-remove:disabled {
    cursor: not-allowed !important;
    opacity: .35 !important;
    background: transparent !important;
}
.fiesta-chip-bloqueado {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
}

/* ============================================================
   ASIGNAR PANEL (inline)
   ============================================================ */
.asignar-panel {
    background: rgba(56, 189, 248, .04);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    animation: slideDown .2s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.asignar-form .form-select-sm,
.asignar-form .form-control-sm {
    font-size: .82rem;
    padding: 6px 10px;
}
.asignar-form .form-label-xs {
    margin-bottom: 4px;
    font-size: .65rem;
}

/* ============================================================
   MODAL DARK
   ============================================================ */
.modal-dark {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
}
.modal-dark .modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
}
.modal-dark .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-dark .modal-title i { color: var(--accent); }
.modal-dark .modal-body { padding: 20px; }
.modal-dark .modal-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 14px 20px;
    gap: 8px;
}
.modal-dark .btn-close { filter: invert(1); opacity: .5; }
.modal-dark .btn-close:hover { opacity: 1; }

/* ============================================================
   DASHBOARD HERO
   ============================================================ */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(56, 189, 248, .08) 0%, rgba(56, 189, 248, .02) 60%, transparent 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, .1);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -.5px;
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: .9rem;
    margin: 0 0 20px;
}
.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #001a3a;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .88rem;
    transition: all .18s;
    border: none;
}
.btn-hero-primary:hover {
    background: var(--accent-hover);
    color: #001a3a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, .4);
}
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: .88rem;
    border: 1px solid var(--border-default);
    transition: all .18s;
}
.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, .2);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat-label {
    font-size: .68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-bottom: 4px;
}
.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

.dashboard-hero-admin {
    background: linear-gradient(135deg, rgba(248, 113, 113, .06) 0%, rgba(56, 189, 248, .03) 60%, transparent 100%) !important;
    border-color: rgba(248, 113, 113, .25) !important;
}
.dashboard-hero-admin .hero-badge {
    background: rgba(248, 113, 113, .1);
    border-color: rgba(248, 113, 113, .35);
    color: #f87171;
}
.dashboard-hero-admin .btn-hero-primary {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
}
.dashboard-hero-admin .btn-hero-primary:hover {
    box-shadow: 0 8px 24px rgba(248, 113, 113, .4);
    color: #fff;
}

/* ============================================================
   STAT CARDS DASHBOARD
   ============================================================ */
.stat-card-dashboard {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 18px 20px;
    height: 100%;
    transition: all .2s;
}
.stat-card-dashboard:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
}
.stat-card-dinero {
    border-color: rgba(74, 222, 128, .25);
    background: linear-gradient(135deg, rgba(74, 222, 128, .04), transparent);
}
.sc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.sc-head i {
    color: var(--accent);
    font-size: .95rem;
}
.stat-card-dinero .sc-head i { color: var(--success); }
.sc-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1.2px;
    line-height: 1;
    margin-bottom: 10px;
}
.sc-footer {
    color: var(--text-muted);
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.section-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i {
    color: var(--accent);
    font-size: 1rem;
}
.section-link {
    font-size: .78rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover { color: var(--accent-hover); }

/* ============================================================
   TYPE CARDS (dashboard)
   ============================================================ */
.type-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}
.type-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, .15);
}
.type-card-link {
    margin-left: auto;
    font-size: .75rem;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.type-icon-gift     { background: rgba(56, 189, 248, .1); color: var(--accent); border: 1px solid var(--border-accent); }
.type-icon-present  { background: rgba(96, 165, 250, .1); color: #60a5fa; border: 1px solid rgba(96, 165, 250, .25); }
.type-icon-padrinos { background: rgba(251, 191, 36, .1); color: var(--warning); border: 1px solid rgba(251, 191, 36, .25); }
.type-icon-cerveza  { background: rgba(255, 255, 255, .04); color: var(--text-secondary); border: 1px solid var(--border-default); }
.type-icon-fiesta   { background: rgba(74, 222, 128, .1); color: var(--success); border: 1px solid rgba(74, 222, 128, .25); }
.type-icon-history  { background: rgba(56, 189, 248, .1); color: var(--accent); border: 1px solid var(--border-accent); }

.type-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: .9rem;
    letter-spacing: -.2px;
}
.type-count {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.type-empty {
    padding: 24px 18px;
    text-align: center;
    color: var(--text-faint);
    font-size: .82rem;
}

.type-list { display: flex; flex-direction: column; }
.type-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
}
.type-list-item:last-child { border-bottom: none; }
.type-list-link { transition: background .12s; }
.type-list-link:hover {
    background: rgba(255, 255, 255, .02);
    color: inherit;
}
.type-list-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.type-list-title {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.type-list-sub {
    font-size: .72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.type-list-date {
    font-size: .72rem;
    color: var(--text-faint);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.beer-grid {
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.beer-item {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}
.beer-qty {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.5px;
    line-height: 1;
}
.beer-label {
    font-size: .68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
}

/* ============================================================
   LOGIN — Dark tech minimalista
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background: #04070f;
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
    pointer-events: none;
}

.login-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}
.login-bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
    top: -180px;
    right: -150px;
    animation: loginFloat 14s ease-in-out infinite;
}
.login-bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
    bottom: -150px;
    left: -120px;
    animation: loginFloat 18s ease-in-out infinite reverse;
}
@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(10, 16, 32, 0.7);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 20px;
    padding: 40px 36px 28px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 80px rgba(56, 189, 248, 0.08);
    animation: loginSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
    font-size: 1.65rem;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}
.login-logo::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.12);
    filter: blur(12px);
    z-index: -1;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 18px;
    line-height: 1.5;
    animation: loginShake 0.4s ease-out;
}
@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.login-alert i {
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}
.login-alert-danger {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #f87171;
}

.login-form { margin-bottom: 22px; }

.login-field { margin-bottom: 16px; }

.login-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-faint);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.15s;
    z-index: 2;
}

.login-input {
    width: 100%;
    background: rgba(4, 7, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.18s;
    outline: none;
}
.login-input::placeholder { color: var(--text-faint); }
.login-input:focus {
    background: rgba(4, 7, 15, 0.85);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.1),
        0 0 20px rgba(56, 189, 248, 0.08);
}
.login-input-wrap:focus-within .login-input-icon {
    color: var(--accent);
}

.login-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-faint);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.95rem;
    padding: 0;
    z-index: 3;
}
.login-toggle-password:hover {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
}

.login-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    color: #001a3a;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    box-shadow:
        0 4px 16px rgba(56, 189, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-family: inherit;
}
.login-submit:hover {
    background: linear-gradient(135deg, var(--accent-hover), #38bdf8);
    box-shadow:
        0 8px 28px rgba(56, 189, 248, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.login-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}
.login-submit i {
    font-size: 1.05rem;
    transition: transform 0.2s;
}
.login-submit:hover i {
    transform: translateX(3px);
}
.login-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}
.login-submit.loading span::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.login-hint {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.login-hint-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 10px;
}
.login-hint-title i {
    color: var(--accent);
    font-size: 0.85rem;
}

.login-hint-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-hint-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: 0.78rem;
}
.login-hint-btn:hover {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.2);
}

.login-hint-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 2px 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-hint-email {
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.login-hint-pass {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}
.login-hint-pass code {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 4px;
}

.login-footer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-faint);
    padding-top: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .app-sidebar { transform: translateX(-105%); }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .btn-menu { display: flex; }
    .app-content { padding: 18px; }
    .page-title { font-size: 1.25rem; }
    .user-name { display: none; }

    .table-dark-modern thead th,
    .table-dark-modern tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 767.98px) {
    .app-content { padding: 14px; }
    .page-title { font-size: 1.15rem; }
    .page-subtitle { font-size: 0.8rem; }
    .stat-card { padding: 14px 16px; }
    .stat-value { font-size: 1.3rem; }
    .stat-label { font-size: 0.66rem; }
    .stat-icon { font-size: 1rem; right: 14px; top: 14px; }
    .card-header-modern { padding: 12px 14px; font-size: 0.76rem; }
    .card-modern { border-radius: 8px; }
    .fiesta-banner { padding: 18px; border-radius: 12px; }
    .fiesta-banner-title { font-size: 1.05rem; }
    .tipo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .tipo-btn { padding: 10px 4px; font-size: 0.7rem; }
    .tipo-btn i { font-size: 1.05rem; }
    .btn-action-big { padding: 18px; font-size: 0.88rem; min-height: 78px; }
    .btn-action-big i { font-size: 1.25rem; }
    .table-dark-modern { font-size: 0.8rem; }
    .table-dark-modern thead th { padding: 9px 12px; font-size: 0.62rem; }
    .table-dark-modern tbody td { padding: 10px 12px; }

    .chips-scroll {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        margin-right: -14px;
        margin-left: -14px;
        padding-left: 14px;
        padding-right: 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .chips-scroll::-webkit-scrollbar { display: none; }

    .dashboard-hero { padding: 22px; }
    .hero-title { font-size: 1.35rem; }
    .hero-stats { width: 100%; justify-content: space-around; padding: 12px; }
    .hero-stat-value { font-size: 1.4rem; }
    .sc-value { font-size: 1.5rem; }

    .swal2-popup {
        padding: 22px 18px !important;
        width: calc(100% - 32px) !important;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 22px;
        border-radius: 16px;
    }
    .login-title { font-size: 1.3rem; }
    .login-logo {
        width: 54px;
        height: 54px;
        font-size: 1.45rem;
    }
    .login-hint-role {
        min-width: 56px;
        font-size: 0.62rem;
    }
    .login-hint-email { font-size: 0.68rem; }
    .login-bg-glow-1,
    .login-bg-glow-2 { opacity: 0.3; }
}

/* ============================================================
   SCROLLBARS
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}