/* ======================================================================
   --- PANEL PRINCIPAL (DASHBOARD Y TARJETAS) ---
   ====================================================================== */

.dashboard-section {
    width: 100%;
    min-height: 100vh;
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.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;
}

.departments-section {
    padding: 4rem 2rem;
    background-color: transparent;
}

.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;
}

/* Tarjetas Giratorias (Flip Cards) */
.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%;
}

/* Botones de Empleados dentro de las tarjetas */
.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);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.employee-btn:hover {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 600;
}

.employee-btn.evaluated {
    border-color: rgba(57, 255, 20, 0.5); 
    background: rgba(57, 255, 20, 0.05); 
    color: #fff;
}

.employee-btn.evaluated::after {
    content: '✓';
    color: #39ff14; 
    font-weight: bold;
    font-size: 1.1em;
}