/* ============================================================
   12-STAFF.CSS — Staff Command Center
   Genérico para LoL, Valorant y CS2
   Uso: añadir clase al <section> según juego:
     - .staff-lol      → dorado  (#c8aa6e)
     - .staff-valorant → rojo    (#ff4655)
     - .staff-cs2      → amarillo (#e4c269)
   ============================================================ */

/* ── VARIABLES POR JUEGO ── */
.staff-lol      { --staff-accent: #c8aa6e; --staff-accent-rgb: 200,170,110; }
.staff-valorant { --staff-accent: #ff4655; --staff-accent-rgb: 255,70,85;   }
.staff-cs2      { --staff-accent: #e4c269; --staff-accent-rgb: 228,194,105; }

/* ── SECCIÓN PRINCIPAL ── */
.staff-section {
    width: 100%; height: 100vh;
    padding-top: var(--header-height);
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── CABECERA ── */
.staff-header {
    text-align: center;
    padding: 18px 0 10px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.staff-header h2         { font-size: 2.2rem; color: #fff; margin: 0; }
.staff-header .text-accent { color: var(--staff-accent); }
.staff-header .subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-top: 4px;
    font-family: "Courier New", monospace;
}

/* ── GRID DE CARDS ── */
.staff-grid {
    display: flex;
    width: 100%;
    flex: 1;
    overflow: hidden;
    gap: 2px;
    background: #111;
}

/* ── CARD INDIVIDUAL ── */
.staff-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0a;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.staff-card:hover,
.staff-card.active        { flex: 2.5; }

/* ── FOTO ── */
.staff-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: grayscale(100%) brightness(1);
    transition: filter 0.7s ease, transform 0.7s ease;
    display: block;
}
.staff-card:hover .staff-bg,
.staff-card.active .staff-bg {
    filter: grayscale(20%) brightness(0.7);
    transform: scale(1.04);
}

/* ── DEGRADADO INFERIOR ── */
.staff-gradient {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── LÍNEA DE ACENTO SUPERIOR ── */
.staff-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--staff-accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
}
.staff-card:hover::before,
.staff-card.active::before { opacity: 1; }

/* ── NOMBRE VERTICAL (cerrado) ── */
.staff-vertical {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 3;
    text-shadow: 0 0 20px rgba(0,0,0,0.9);
}
.staff-card:hover .staff-vertical,
.staff-card.active .staff-vertical { opacity: 0; }

/* ── INFO PANEL (abierto) ── */
.staff-info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 30px 35px 35px 35px;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.staff-card:hover .staff-info,
.staff-card.active .staff-info {
    opacity: 1;
    transform: translateY(0);
}

/* Badge de rol */
.staff-role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--staff-accent);
    border: 1px solid rgba(var(--staff-accent-rgb), 0.4);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    background: rgba(var(--staff-accent-rgb), 0.08);
    font-family: "Courier New", monospace;
}

/* Nombre */
.staff-name {
    font-size: 3rem;
    color: #fff;
    font-family: var(--font-headings);
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    line-height: 0.9;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* Separador */
.staff-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--staff-accent), transparent);
    margin: 14px 0;
}

/* Bio */
.staff-bio {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    font-family: "Courier New", monospace;
    border-left: 2px solid rgba(var(--staff-accent-rgb), 0.4);
    padding-left: 12px;
    margin-bottom: 18px;
    max-width: 320px;
}

/* Redes sociales */
.staff-socials { display: flex; gap: 12px; }
.staff-socials a {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.staff-socials a:hover {
    color: var(--staff-accent);
    transform: scale(1.2);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .staff-section      { height: auto; min-height: 100vh; overflow-y: auto; display: block; }
    .staff-grid         { flex-direction: column; gap: 2px; height: auto; }
    .staff-card         { height: 120px; flex: none; transition: height 0.5s ease; }
    .staff-card:hover   { flex: none; height: 500px; }
    .staff-bg           { height: 100%; }
    .staff-vertical     { transform: translate(-50%, -50%); rotate: 0deg; font-size: 1.3rem; }
    .staff-name         { font-size: 2rem; }
    .staff-info         { padding: 20px; }
}

/* Móvil (≤ 768px) */
@media (max-width: 768px) {
    .staff-card:hover   { height: 420px; }
    .staff-name         { font-size: 1.6rem; }
    .staff-bio          { font-size: 0.75rem; }
}