:root {
    /* Urban Modern Palette */
    --bg-primary: #0a0a0a; /* Deep Black */
    --bg-secondary: #141414; /* Charcoal */
    --bg-card: #1c1c1c;
    --bg-elevated: #242424;
    --text-primary: #f5f5f5; /* Clean White */
    --text-secondary: #b8b8b8; /* Light Grey */
    --text-muted: #808080;
    --accent: #ff6b35; /* Urban Orange */
    --accent-hover: #e55a2b;
    --accent-secondary: #ffa726; /* Warm Orange */
    --accent-light: rgba(255, 107, 53, 0.1);
    --highlight: #2a2a2a; /* Dark Grey */
    --highlight-active: #353535;
    
    /* Functional Colors */
    --success: #4caf50; /* Modern Green */
    --success-light: rgba(76, 175, 80, 0.1);
    --warning: #ff9800; /* Amber */
    --warning-light: rgba(255, 152, 0, 0.1);
    --error: #f44336; /* Modern Red */
    --error-light: rgba(244, 67, 54, 0.1);
    --info: #2196f3; /* Blue */
    --info-light: rgba(33, 150, 243, 0.1);

    /* Typography */
    --font-heading: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --border-width: 1px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 20px rgba(255, 107, 53, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--highlight);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Glass Effect */
.glass {
    background: rgba(28, 28, 28, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Buttons - Urban Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* Card Style */
.card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--highlight);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card:hover::before {
    opacity: 1;
}

/* Inputs */
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-elevated);
    border: 2px solid var(--highlight);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 53, 0.1);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.navbar-brand a {
    text-decoration: none;
}

.navbar-brand h1 {
    font-size: 1.9rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    max-height: 100px;
    opacity: 1;
}

.navbar-menu.collapsed {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Botón Colapsar Navbar */
.navbar-collapse-btn {
    position: relative;
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 16px;
}

.navbar-collapse-btn:hover {
    opacity: 1;
    background: rgba(255, 107, 53, 0.25);
    transform: scale(1.05);
}

.collapse-icon {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.navbar-menu:not(.collapsed) + .navbar-collapse-btn {
    opacity: 1;
    background: rgba(255, 107, 53, 0.2);
}

.navbar-menu:not(.collapsed) + .navbar-collapse-btn .collapse-icon {
    transform: rotate(90deg);
}

.navbar-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.navbar-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navbar-link:hover {
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.navbar-link:hover::before {
    width: 80%;
}

.navbar-link.admin {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-accent);
    border: none;
}

.navbar-link.admin::before {
    display: none;
}

.navbar-link.admin:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: white;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.navbar-link.logout {
    color: var(--error);
    border: 1px solid var(--error);
}

.navbar-link.logout:hover {
    background: var(--error-light);
    color: var(--error);
    border-color: var(--error);
}

/* Enlace de Roles - Siempre visible y destacado */
.navbar-link-roles {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 167, 38, 0.15));
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.navbar-link-roles::before {
    display: none;
}

.navbar-link-roles:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.navbar-link-roles .roles-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
}

.navbar-link-roles:hover .roles-icon {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Enlace de Salir - Siempre visible */
.navbar-link-logout {
    display: inline-flex !important;
    margin-left: 8px;
}

.navbar-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.main-content {
    padding: 40px 24px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 75px);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .navbar-brand h1 {
        font-size: 1.4rem;
    }
    
    .navbar-collapse-btn {
        width: 28px;
        height: 28px;
        margin-left: 12px;
    }
    
    .collapse-icon {
        font-size: 1.1rem;
    }
    
    .navbar-menu {
        gap: 12px;
    }
    
    .navbar-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .navbar-link-roles {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 0 4px;
    }
    
    .navbar-link-roles .roles-text {
        display: none;
    }
    
    .navbar-link-roles .roles-icon {
        font-size: 1.4rem;
    }
    
    .navbar-user {
        display: none;
    }
}
