/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* @tweakable Professional company color scheme - changes to light and simple colors appropriate for serious business */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'Roboto', sans-serif;
    /* @tweakable Light professional background - controls the professional light background colors */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    color: #1a202c;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* @tweakable Professional landing page design - enhances landing page with professional light colors */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    /* @tweakable Light professional landing background - controls professional landing background */
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-size: 400% 400%;
    animation: modernGradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.landing-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(71, 85, 105, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(148, 163, 184, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* @tweakable Modern gradient animation - creates contemporary background animation */
@keyframes modernGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.landing-content {
    text-align: center;
    max-width: 1400px;
    width: 100%;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* @tweakable Modern landing hero styling - enhances hero section with contemporary design elements */
.landing-hero {
    margin-bottom: 80px;
    position: relative;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    /* @tweakable Professional hero glow effect - controls professional glow behind logo */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: modernPulse 4s ease-in-out infinite alternate;
}

/* @tweakable Modern pulse animation - creates contemporary glow effect */
@keyframes modernPulse {
    0% { opacity: 0.3; transform: translateX(-50%) scale(0.8); }
    100% { opacity: 0.7; transform: translateX(-50%) scale(1.2); }
}

/* @tweakable Professional landing logo design - enhances logo with professional styling and effects */
.landing-logo {
    width: 180px;
    height: 180px;
    margin-bottom: 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        /* @tweakable Professional logo shadows - controls professional subtle shadows */
        0 20px 40px rgba(100, 116, 139, 0.15),
        0 10px 25px rgba(148, 163, 184, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(148, 163, 184, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.landing-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* @tweakable Professional logo shine effect - controls professional shine animation */
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
    animation: modernShine 3s linear infinite;
}

/* @tweakable Modern shine effect - creates contemporary logo shine animation */
@keyframes modernShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.landing-logo:hover {
    transform: scale(1.08) translateY(-12px) rotateY(10deg);
    box-shadow: 
        /* @tweakable Professional logo hover effects - controls professional hover glow */
        0 30px 60px rgba(100, 116, 139, 0.2),
        0 15px 35px rgba(148, 163, 184, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(148, 163, 184, 0.6);
}

/* @tweakable Professional landing titles - controls professional typography with subtle colors */
.landing-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 900;
    /* @tweakable Professional gradient text - ensures title is professional and readable */
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    /* @tweakable Professional text shadow - adds subtle shadow for better readability */
    text-shadow: 0 4px 12px rgba(100, 116, 139, 0.1);
    line-height: 1.1;
}

.landing-hero h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    /* @tweakable Professional title underline - makes underline more professional */
    background: linear-gradient(90deg, transparent, #64748b, transparent);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}

.landing-hero h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 30px;
    font-weight: 600;
    /* @tweakable Professional subtitle readability - enhances subtitle with professional colors */
    color: #475569;
    text-shadow: 0 2px 8px rgba(71, 85, 105, 0.1);
    opacity: 0.9;
}

.landing-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    /* @tweakable Professional subtitle text color - improves description text with professional colors */
    color: #64748b;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(100, 116, 139, 0.1);
    opacity: 0.9;
}

/* @tweakable Professional service cards - controls professional glass morphism cards */
.landing-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.service-card {
    /* @tweakable Professional glass morphism effect - controls professional card backgrounds */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 25px;
    /* @tweakable Professional service card border - controls professional borders */
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    /* @tweakable Professional service card accent line - controls professional accent animation */
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    animation: modernSlide 4s linear infinite;
}

/* @tweakable Modern slide animation - creates contemporary accent line animation */
@keyframes modernSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(5deg);
    /* @tweakable Professional service card hover border - controls professional hover effects */
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 25px 50px rgba(100, 116, 139, 0.15),
        0 10px 30px rgba(148, 163, 184, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    /* @tweakable Professional service icon styling - controls professional gradient icons */
    color: #3b82f6;
}

/* @tweakable Professional service card text readability - enhances service card text with professional colors */
.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 6px rgba(30, 41, 59, 0.1);
}

.service-card p {
    line-height: 1.6;
    color: #64748b;
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(100, 116, 139, 0.1);
    opacity: 0.95;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    /* @tweakable Professional login styling - controls professional glass morphism login */
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-size: 400% 400%;
    animation: modernGradient 15s ease infinite;
}

.login-form {
    /* @tweakable Professional login form styling - controls professional glass morphism login */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 
        0 25px 50px rgba(100, 116, 139, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.login-form > * {
    position: relative;
    z-index: 1;
}

/* @tweakable Professional logo interaction - controls professional clickable logo behavior */
.logo, .header-logo {
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.1);
}

.logo {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
}

.header-logo {
    width: 60px;
    height: 60px;
}

.logo:hover, .header-logo:hover {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 15px 35px rgba(100, 116, 139, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

.login-form h2, .login-form h3 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 6px rgba(30, 41, 59, 0.1);
}

.login-form input {
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 25px;
    /* @tweakable Professional input styling - controls professional glass morphism inputs */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    color: #1e293b;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.login-form input::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

.login-form input:focus {
    outline: none;
    /* @tweakable Professional form focus effect - controls professional form field focus */
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

.login-form button {
    width: 100%;
    padding: 18px;
    /* @tweakable Professional login button - controls professional button styling */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form button::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.6s;
}

.login-form button:hover::before {
    left: 100%;
}

.login-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
}

.error-message {
    color: #ff6b6b;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: none;
    backdrop-filter: blur(10px);
}

/* App Container */
.app-container {
    min-height: 100vh;
    /* @tweakable Professional app background - controls professional app background */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-attachment: fixed;
}

.app-header {
    /* @tweakable Professional app header styling - controls professional glass morphism header */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    padding: 25px 40px;
    box-shadow: 
        0 8px 32px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logout-btn {
    padding: 12px 24px;
    /* @tweakable Professional logout button - controls professional logout button */
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.2);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(100, 116, 139, 0.3);
}

/* Navegación */
.main-nav {
    /* @tweakable Professional navigation styling - controls professional glass morphism nav */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    padding: 0 40px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-btn {
    padding: 18px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px 15px 0 0;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    /* @tweakable Professional navigation accent line - controls professional nav accent animation */
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: modernSlide 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    /* @tweakable Professional navigation hover effect - controls professional nav button hover */
    color: #1e293b;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.1);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn.active {
    /* @tweakable Professional active navigation - controls professional active nav button */
    color: #1e293b;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 -8px 25px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-btn.active::before {
    opacity: 1;
}

/* Contenido principal */
.main-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    display: none;
    animation: modernFadeIn 0.4s ease-out;
}

.section.active {
    display: block;
}

/* @tweakable Modern fade-in animation - creates contemporary page transition */
@keyframes modernFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.section h2 {
    margin-bottom: 40px;
    color: #1e293b;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Configuration Section */
.config-container {
    /* @tweakable Professional configuration styling - controls professional config section */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.1);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.config-section {
    padding: 30px;
}

.config-section h3 {
    margin-bottom: 25px;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Events management section */
.events-management {
    /* @tweakable Professional events management styling - controls professional event management section */
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.events-management h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dashboard */
#dashboard {
    /* @tweakable Professional dashboard styling - enhances dashboard with professional design elements */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    backdrop-filter: blur(25px);
    border-radius: 35px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 
        0 30px 60px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(100, 116, 139, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, rgba(148, 163, 184, 0.02) 0%, rgba(148, 163, 184, 0.01) 100%);
    z-index: 0;
    pointer-events: none;
}

#dashboard h2 {
    /* @tweakable Professional dashboard title - controls professional title styling */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
    font-size: 3rem;
    text-shadow: 0 4px 20px rgba(30, 41, 59, 0.1);
}

/* @tweakable Modern dashboard stats grid - creates contemporary stat cards layout */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* @tweakable Professional stat cards - creates professional glass morphism stat cards */
.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 25px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 40px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    /* @tweakable Professional stat card accent line - controls professional accent animation */
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    animation: modernShimmer 4s linear infinite;
}

/* @tweakable Modern shimmer animation - creates contemporary accent animation */
@keyframes modernShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.03) rotateX(2deg);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 30px 60px rgba(100, 116, 139, 0.15),
        0 0 50px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-card h3 {
    color: #64748b;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(100, 116, 139, 0.1);
}

.stat-card span {
    color: #1e293b;
    font-size: 3rem;
    font-weight: 900;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
}

.stat-card p {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(100, 116, 139, 0.05);
}

/* @tweakable Professional chart section styling - controls professional chart container */
.circular-chart-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 
        0 20px 40px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.circular-chart-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    /* @tweakable Professional chart section accent - controls professional decorative elements */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* @tweakable Professional chart center styling - controls professional chart center appearance */
.chart-center-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.chart-center-modern h3 {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(100, 116, 139, 0.1);
}

.chart-center-modern .total-value {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(30, 41, 59, 0.1);
}

.chart-center-modern .total-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-center-modern .chart-center-sublabel {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

/* @tweakable Professional legend styling - controls professional legend appearance */
.chart-legend-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.12);
    position: relative;
    overflow: hidden;
}

.legend-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(8px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.1);
}

.legend-item:hover::before {
    left: 100%;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.legend-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legend-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}

.legend-value {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* @tweakable Professional chart visualization section - controls professional chart display */
.modern-visualization-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.1);
}

.simple-chart-container {
    width: 100%;
}

.chart-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #636e72;
    padding-bottom: 15px;
}

.chart-header h3 {
    color: #1e293b;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-total {
    font-size: 2.5em;
    font-weight: 800;
    color: #3b82f6;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* @tweakable Modern bar chart styling - controls the horizontal bar chart appearance */
.simple-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-bar-container {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.1);
}

.chart-bar-label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-bar-track {
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(100, 116, 139, 0.1);
}

.chart-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.chart-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px 10px 0 0;
}

.chart-bar-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    text-align: right;
}

/* @tweakable Professional dashboard fallback message - controls professional error state appearance */
.dashboard-fallback {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, rgba(253, 230, 138, 0.8) 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
}

.fallback-message h3 {
    color: #92400e;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.fallback-message p {
    color: #3b82f6;
    margin: 0;
    font-weight: 500;
}

/* @tweakable Modern preview modal - controls the modern professional appearance of document previews */
.preview-content {
    /* @tweakable Professional preview container - controls how document previews are displayed */
    border: 2px solid rgba(148, 163, 184, 0.1);
    border-radius: 15px;
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.1);
    backdrop-filter: blur(10px);
}

.preview-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 116, 139, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* @tweakable Professional expense form styling - controls the professional appearance of expense file upload */
.form-group input[type="file"] {
    /* @tweakable Professional file input styling - controls professional file upload appearance */
    border: 2px dashed rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    /* @tweakable Professional file input text color - controls professional file input text */
    color: #475569;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.form-group input[type="file"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    /* @tweakable Professional file input accent line - controls professional accent animation */
    background: linear-gradient(90deg, transparent, #64748b, transparent);
    animation: professional-slide 3s linear infinite;
}

.form-group input[type="file"]:hover {
    /* @tweakable Professional file input hover - controls professional file input hover effects */
    border-color: #64748b;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.1);
}

/* Items de presupuesto/factura */
.budget-items, .invoice-items {
    margin: 25px 0;
    padding: 25px;
    /* @tweakable Professional form sections styling - controls professional form sections appearance */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(5px);
}

.budget-items h4, .invoice-items h4 {
    margin-bottom: 15px;
    color: #333;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding: 20px;
    /* @tweakable Professional item row styling - controls professional item row appearance */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.05);
    backdrop-filter: blur(5px);
}

.item-row input {
    margin: 0;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.remove-item:hover {
    background: #c0392b;
}

/* Totales */
.budget-totals, .invoice-totals {
    /* @tweakable Professional totals section styling - controls professional totals section appearance */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: right;
    border: 2px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.1);
}

.budget-totals p, .invoice-totals p {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Calendario */
#calendar-container {
    /* @tweakable Professional calendar styling - controls professional calendar appearance */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.1);
    margin-top: 20px;
    border: 2px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.fc {
    height: 600px;
}

.fc-event {
    border: none !important;
    /* @tweakable Professional calendar event styling - controls professional calendar event appearance */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
}

.fc-event:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* @tweakable Professional logo preview styling in forms - controls how logo previews appear in client forms */
.logo-preview {
    padding: 15px;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 12px;
    border: 2px dashed rgba(148, 163, 184, 0.2);
    text-align: center;
    margin-top: 10px;
}

.logo-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.1);
}

/* @tweakable Professional form styling - creates professional glass morphism forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 15px;
    color: #1e293b;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(100, 116, 139, 0.6);
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

/* @tweakable Professional button system - creates comprehensive professional button design system */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.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.6s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.2);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* @tweakable Professional modal design - creates professional glass morphism modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: modernModalFade 0.3s ease-out;
}

/* @tweakable Modern modal fade animation - creates contemporary modal transition */
@keyframes modernModalFade {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    margin: 3% auto;
    padding: 40px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 25px;
    width: 85%;
    max-width: 650px;
    box-shadow: 
        0 30px 60px rgba(100, 116, 139, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #1e293b;
    /* @tweakable Scrollable modal content - makes modal content scrollable for long forms */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modernModalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* @tweakable Modern modal slide animation - creates contemporary modal entrance */
@keyframes modernModalSlide {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-content.large {
    max-width: 950px;
    /* @tweakable Large modal scrolling - ensures large modals are scrollable */
    max-height: 95vh;
    overflow-y: auto;
}

.close {
    color: #64748b;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.1);
}

.close:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1) rotate(90deg);
}

/* @tweakable Professional data items - controls professional list item styling */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 25px rgba(100, 116, 139, 0.05);
    position: relative;
    overflow: hidden;
}

.data-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    transition: left 0.6s ease;
}

.data-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.1);
}

.data-item:hover::before {
    left: 100%;
}

.item-info h4 {
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.item-info p {
    color: #64748b;
    margin: 6px 0;
    font-size: 14px;
    font-weight: 500;
}

.item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 12px;
}

/* @tweakable Professional status badges - creates professional status indicators */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.1);
    backdrop-filter: blur(10px);
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.status-converted {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* @tweakable Work orders professional styling - adds professional styling for work orders management */
.work-order-item {
    position: relative;
    border-left: 4px solid #3b82f6;
}

.work-order-item.priority-urgent {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.work-order-item.priority-high {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* @tweakable Work order status badges - controls professional status badge styling */
.status-badge.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.status-in-progress {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.status-cancelled {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

/* @tweakable Work orders priority badges - controls professional priority badge styling */
.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.1);
}

.priority-badge.priority-low {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.priority-badge.priority-medium {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.priority-badge.priority-high {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.priority-badge.priority-urgent {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: priority-urgent-pulse 2s infinite;
}

/* @tweakable Priority urgent animation - creates attention-grabbing animation for urgent priority */
@keyframes priority-urgent-pulse {
    0% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
    100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2); }
}

/* @tweakable Work orders filters styling - controls professional filter controls styling */
.work-orders-filters {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.05);
}

.work-orders-filters select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.work-orders-filters select:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

/* @tweakable Pie controls styling - lightweight styles for monthly/quarterly selector */
.pie-controls .btn-sm { min-height: 32px; }
.pie-controls select { border-radius: 12px; padding: 6px 10px; border: 1px solid rgba(148,163,184,.3); }

/* Animaciones */
/* @tweakable Modern animation keyframes - controls contemporary animations */
@keyframes modernSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes modernShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse-glow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* @tweakable Professional animation keyframes - controls modern sliding animation for accent lines */
@keyframes professional-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes modern-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section.active {
    animation: fadeIn 0.3s ease-out;
}

.data-item {
    animation: fadeIn 0.3s ease-out;
}

/* Tweakable valores */
/* @tweakable Professional color variables - controls the professional elegant color scheme */
:root {
    --primary-gradient-start: #3b82f6;
    --primary-gradient-end: #2563eb;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --secondary-color: #64748b;
    --light-bg: rgba(255, 255, 255, 0.95);
    --light-bg-secondary: rgba(248, 250, 252, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    /* @tweakable Modern landing page mobile layout - controls responsive behavior for landing page */
    .landing-hero h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .landing-hero h2 {
        font-size: 1.6rem;
    }
    
    .landing-subtitle {
        font-size: 1.1rem;
    }
    
    .landing-services {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .landing-logo {
        width: 140px;
        height: 140px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        padding: 0 20px;
        gap: 4px;
    }
    
    .nav-btn {
        padding: 15px 20px;
        font-size: 12px;
        margin-right: 4px;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px;
        min-width: auto;
    }
    
    .circular-chart {
        width: 250px;
        height: 250px;
    }
    
    .chart-center-value {
        font-size: 2.5em;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 25px;
        border-radius: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .data-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .main-content { padding: 24px; }
    .dashboard-stats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .circular-chart-section { flex-direction: column; gap: 20px; }
}

@media (max-width: 1200px) {
    .futuristic-dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }
    
    .dashboard-stats.futuristic {
        grid-column: 1;
        grid-row: 1;
    }
    
    .central-chart-container {
        grid-column: 1;
        grid-row: 2;
    }
    
    .side-metrics.left,
    .side-metrics.right {
        grid-column: 1;
        grid-row: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .circular-chart {
        width: 280px;
        height: 280px;
    }
    
    .pie-chart-dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }
    
    .dashboard-stats.futuristic {
        grid-column: 1;
        grid-row: 1;
    }
    
    .central-pie-container {
        grid-column: 1;
        grid-row: 2;
    }
    
    .side-metrics.left,
    .side-metrics.right {
        grid-column: 1;
        grid-row: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pie-chart {
        width: 280px;
        height: 280px;
    }
}

@media print {
    .no-print {
        display: none !important;
    }
    
    .print-content {
        padding: 20px;
        font-family: Arial, sans-serif;
        /* @tweakable Print background - ensures high contrast for printing */
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #000;
        padding-bottom: 20px;
    }
    
    .print-details {
        margin-bottom: 20px;
    }
    
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .print-table th, .print-table td {
        border: 1px solid #000;
        padding: 8px;
        text-align: left;
        /* @tweakable Print table text - ensures high contrast text in print */
        color: black !important;
    }
    
    .print-table th {
        background: #f0f0f0 !important;
        font-weight: bold;
        /* @tweakable Print table headers - ensures visible headers in print */
        color: black !important;
    }
    
    .print-totals {
        text-align: right;
        margin-top: 20px;
        /* @tweakable Print totals section - ensures total is visible in print */
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
        padding: 10px !important;
        font-weight: bold !important;
    }
    
    .print-totals p {
        /* @tweakable Print total text - ensures total price is clearly visible */
        color: black !important;
        font-size: 14px !important;
        margin: 3px 0 !important;
    }
    
    .total-final {
        /* @tweakable Print final total - ensures final total stands out in print */
        font-weight: bold !important;
        font-size: 16px !important;
        color: black !important;
        border-top: 2px solid black !important;
        padding-top: 5px !important;
        margin-top: 5px !important;
    }
}

/* @tweakable Modern accessibility enhancements - improves accessibility with contemporary focus indicators */
*:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.btn:focus,
.nav-btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* @tweakable Modern performance optimizations - ensures smooth animations and transitions */
* {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.landing-container,
.service-card,
.stat-card,
.data-item,
.modal-content {
    will-change: transform;
}

/* @tweakable Modern scrollbar styling - creates contemporary scrollbar design */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #475569, #334155);
}