/* ═══════════════════════════════════════════
   GAMESTORE — Dark Gamer Theme
   ═══════════════════════════════════════════ */

/* ═══ Self-hosted fonts ═══ */
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../../fonts/rajdhani-v17-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../fonts/rajdhani-v17-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../fonts/rajdhani-v17-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../fonts/exo-2-v26-latin-regular.woff2') format('woff2');
}

:root {
    /* ── Colores base ── */
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #12121a;
    --bg-card:       #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input:      #1a1a26;
    --bg-elevated:   #1e1e2a;

    /* ── Bordes ── */
    --border-color:     #2a2a3a;
    --border-subtle:    #222233;

    /* ── Texto ── */
    --text-primary:   #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted:     #8a8aa3;

    /* ── Neón / Accent ── */
    --neon-primary:    #00d4ff;
    --neon-secondary:  #7c3aed;
    --neon-success:    #00e676;
    --neon-warning:    #ffab00;
    --neon-danger:     #ff3d71;
    --neon-glow:       rgba(0, 212, 255, 0.15);
    --neon-glow-strong:rgba(0, 212, 255, 0.3);

    /* ── Gradientes ── */
    --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient-brand:   linear-gradient(135deg, #00d4ff, #FFB800);
    --gradient-card:    linear-gradient(145deg, #16161f, #1a1a28);
    --gradient-hero:    linear-gradient(180deg, rgba(0,212,255,0.05) 0%, transparent 60%);

    /* ── Tipografía ── */
    --font-display: 'Rajdhani', sans-serif;
    --font-body:    'Exo 2', sans-serif;

    /* ── Espaciado ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* ── Transiciones ── */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fondo con textura sutil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0,212,255,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(124,58,237,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--neon-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #33dfff; }

img { max-width: 100%; height: auto; }

/* ═══ Tipografía ═══ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* ═══ Layout ═══ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ═══ Navbar ═══ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.navbar-brand img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.navbar-brand .brand-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-links a.active {
    color: var(--neon-primary);
}

/* Buscador navbar */
.nav-search {
    position: relative;
    flex: 0 1 320px;
}

.nav-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.4rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition-fast);
}

.nav-search input:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 0 3px var(--neon-glow);
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-search .search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* ═══ Botones ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-primary, a.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0096b7);
    color: #0a0a1a;
    box-shadow: 0 4px 15px rgba(0,212,255,0.3);
}
.btn-primary:hover, a.btn-primary:hover {
    background: linear-gradient(135deg, #33ddff, #00b8d9);
    box-shadow: 0 6px 25px rgba(0,212,255,0.5);
    transform: translateY(-1px);
    color: #0a0a1a;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    background: var(--neon-glow);
}

.btn-success { background: var(--neon-success); color: #0a0a0f; }
.btn-danger  { background: var(--neon-danger);  color: #fff; }
.btn-warning { background: var(--neon-warning); color: #0a0a0f; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ═══ Cards ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card-body { padding: 1.2rem; }
.card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* ═══ Product Card ═══ */
.product-card {
    position: relative;
}

.product-card .badge-bonus {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--neon-warning);
    color: #0a0a0f;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-card .badge-oferta {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: #e8194b;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    -webkit-font-smoothing: antialiased;
}

.product-card .product-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.product-card .product-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--neon-primary);
}

.product-card .product-price .currency {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══ Grids ═══ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ═══ Hero Section ═══ */
.hero {
    background: var(--gradient-hero);
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero h1 .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ═══ Section Titles ═══ */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ═══ Category Tabs ═══ */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-tab:hover,
.category-tab.active {
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    background: var(--neon-glow);
    box-shadow: 0 0 15px rgba(0,212,255,0.1);
}

/* ═══ Formularios ═══ */
.form-group { margin-bottom: 1.2rem; }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 0 3px var(--neon-glow);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-primary);
}

.form-error {
    color: var(--neon-danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ═══ Alerts ═══ */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: var(--neon-success); }
.alert-danger  { background: rgba(255,61,113,0.1); border-color: rgba(255,61,113,0.3); color: var(--neon-danger); }
.alert-warning { background: rgba(255,171,0,0.1);  border-color: rgba(255,171,0,0.3);  color: var(--neon-warning); }
.alert-info    { background: rgba(0,212,255,0.1);   border-color: rgba(0,212,255,0.3);  color: var(--neon-primary); }

/* ═══ Badges ═══ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.badge-pending    { background: rgba(255,171,0,0.15);  color: var(--neon-warning); }
.badge-processing { background: rgba(0,212,255,0.15);   color: var(--neon-primary); }
.badge-completed  { background: rgba(0,230,118,0.15);  color: var(--neon-success); }
.badge-cancelled  { background: rgba(255,61,113,0.15); color: var(--neon-danger); }

/* ═══ Tables ═══ */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 0.8rem 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table td {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
}

.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ═══ Footer ═══ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.7rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--neon-primary); }

.footer-links span { color: var(--text-muted); }

.footer-disclaimer {
    max-width: 780px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0;
}

.footer-copy {
    color: #ffffff;
    font-size: 0.85rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    background: var(--neon-glow);
    transform: translateY(-2px);
}

/* ═══ Auth Pages ═══ */
.auth-container {
    max-width: 420px;
    margin: 3rem auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ═══ Stepper ═══ */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.stepper-step.active .stepper-circle {
    background: var(--neon-primary);
    border-color: var(--neon-primary);
    color: #0a0a1a;
    box-shadow: 0 0 15px var(--neon-glow);
}

.stepper-step.completed .stepper-circle {
    background: var(--neon-success);
    border-color: var(--neon-success);
    color: #0a0a0f;
}

.stepper-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: none;
}

.stepper-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.3rem;
}

.stepper-step.completed + .stepper-line,
.stepper-step.completed ~ .stepper-line {
    background: var(--neon-success);
}

/* ═══ Paquete seleccionable ═══ */
.package-option {
    display: block;
    position: relative;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.package-option:hover {
    border-color: var(--neon-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 12px var(--neon-glow);
}

.package-option:hover .pkg-chevron {
    color: var(--neon-primary);
    transform: translateX(3px);
}

.package-option.selected {
    border-color: var(--neon-primary);
    background: rgba(0,212,255,0.05);
    box-shadow: 0 0 20px var(--neon-glow);
}

.package-option .pkg-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.package-option .pkg-bonus {
    display: block;
    font-size: 0.75rem;
    color: var(--neon-warning);
    font-weight: 600;
    margin-top: 0.2rem;
}

.package-option .pkg-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--neon-primary);
}

.package-option .pkg-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

/* ═══ Timer countdown ═══ */
.timer-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255,61,113,0.08);
    border: 1px solid rgba(255,61,113,0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--neon-danger);
}

.timer-countdown.warning {
    animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ═══ Wallet / Level indicator ═══ */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.level-bronce   { background: rgba(205,127,50,0.15);  color: #cd7f32; border: 1px solid rgba(205,127,50,0.3); }
.level-plata    { background: rgba(192,192,192,0.15); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.3); }
.level-oro      { background: rgba(255,215,0,0.15);   color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.level-diamante { background: rgba(0,212,255,0.15);   color: var(--neon-primary); border: 1px solid rgba(0,212,255,0.3); }

/* ═══ Admin sidebar ═══ */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.admin-sidebar .sidebar-item:hover,
.admin-sidebar .sidebar-item.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--neon-primary);
}

.admin-content {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-x: hidden;
}

/* ═══ Paginación ═══ */
.pagination {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    margin-top: 1.5rem;
    list-style: none;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.pagination a:hover { border-color: var(--neon-primary); color: var(--neon-primary); }
.pagination .active span { background: var(--gradient-primary); color: #fff; border-color: var(--neon-primary); }

/* ═══ Utilidades ═══ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-neon   { color: var(--neon-primary); }
.text-success { color: var(--neon-success); }
.text-danger  { color: var(--neon-danger); }
.text-warning { color: var(--neon-warning); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }

/* ═══ Animaciones ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ═══ Admin Mobile Drawer ═══ */
.admin-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast);
}
.admin-mobile-toggle:hover { border-color: var(--neon-primary); color: var(--neon-primary); }

.admin-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.admin-drawer-overlay.open { opacity: 1; visibility: visible; }

.admin-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    z-index: 160;
    padding: 0 0 2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}
.admin-drawer.open { transform: translateX(0); }

.admin-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.admin-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.5rem;
}
.admin-drawer-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}
.admin-drawer-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.admin-drawer-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-drawer-user-role {
    font-size: 0.7rem;
    color: var(--neon-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.admin-drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.admin-drawer-close:hover { color: var(--neon-primary); background: rgba(255,255,255,0.05); }

.admin-drawer .sidebar-item {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    min-height: 44px;
    border-left: 3px solid transparent;
}
.admin-drawer .sidebar-item:hover,
.admin-drawer .sidebar-item.active {
    border-left-color: var(--neon-primary);
    background: rgba(0, 212, 255, 0.05);
}
.admin-drawer .sidebar-item.active {
    color: var(--neon-primary);
    font-weight: 600;
}

.drawer-section-label {
    padding: 0.6rem 1.25rem 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 0.75rem;
}
.drawer-section-label:first-of-type {
    border-top: none;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-search { flex: 1; }
    .admin-sidebar { display: none; }
    .admin-mobile-toggle { display: flex; }
    .admin-nav-user { display: none; }
    .admin-content { padding: 1rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .stepper-label { display: none; }
    .stepper-line { width: 20px; }
    .hero { padding: 2rem 0 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 0 0.8rem; }
    .admin-nav-label { display: none; }
}

/* ═══ Mobile nav overlay ═══ */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav .close-nav {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ═══ PWA install prompt ═══ */
.pwa-install-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 300;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.pwa-install-banner.show { display: flex; }

/* ═══ Scrollbar custom ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══ Loading skeleton ═══ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ═══ Spinner de procesamiento ═══ */
.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--neon-primary);
    border-right-color: var(--neon-secondary);
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 16px rgba(0,212,255,0.35);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
