:root {
    /* Brand Colors */
    --accent-yellow: #FCD225;
    --accent-yellow-glow: #FCD22566;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.particle {
    position: absolute;
    pointer-events: none;
    z-index: 1; /* Para que queden detrás del texto pero sobre el fondo */
    transition: transform 0.1s ease-out; /* Suaviza el movimiento */
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.logo-text span,
.logo-text-small span {
    color: var(--accent-yellow);
}

.logo-text-small {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* Buttons */
.primary-btn {
    background-color: var(--accent-yellow);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.primary-btn:hover {
    box-shadow: 0 0 15px var(--accent-yellow-glow);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--accent-yellow);
    color: #000;
}

/* --- LOGIN SCREEN --- */
.login-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    /* background image animated via JS or CSS */
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-darker) 100%);
}

.login-glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
}

.tagline {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

/* --- DASHBOARD --- */
.dashboard-section {
    width: 100%;
    min-height: 100vh;
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* HERO */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-visual-wrapper {
    animation: float 6s ease-in-out infinite;
    margin: 0 auto;
}

.hero-visual-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* DEPARTMENTS CARD GRID */
.departments-section {
    padding: 4rem 2rem;
    background-color: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* FLIP CARD */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.3s ease;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
    box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.flip-card-front {
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(to top, rgba(252, 210, 37, 0.4), transparent);
    text-align: center;
}

.card-overlay h4 {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.flip-card-back {
    background-color: #1a1a1a;
    transform: rotateY(180deg);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.flip-card-back h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-yellow);
}

.employee-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.employee-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.employee-btn:hover {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 600;
}


/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-glass-container.report-container {
    max-width: 700px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--accent-yellow);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.employee-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-yellow);
}

.employee-dept {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Sliders */
.slider-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.slider-group label {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.slider {
    -webkit-appearance: none;
    width: 80%;
    height: 8px;
    background: #333;
    outline: none;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-yellow);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-yellow-glow);
}

.slider-val {
    width: 15%;
    text-align: right;
    font-weight: bold;
}

.master-slider-group {
    background: rgba(252, 210, 37, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent-yellow);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.master-slider-group label {
    width: 100%;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--accent-yellow);
}

.divider {
    border: none;
    border-top: 1px solid #444;
    margin-bottom: 2rem;
}

.modal-actions {
    margin-top: 2rem;
}

/* Report Styles */
.chart-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.feedback-box {
    background: #1a1a1a;
    border-left: 4px solid var(--accent-yellow);
    padding: 1rem;
    border-radius: 4px;
}

.feedback-box h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-yellow);
}