/* ============================================================
   VARIABLES GLOBALES 
============================================================ */
:root {
    --primary-color: #1A365D;
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --secondary-color: #2A9D90;
    --accent-color: #4FB0C6;
    --text-color: #2E2E2E;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --border-light: rgba(0, 0, 0, 0.05);
    --font-primary: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    --btn-radius: 50px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   CONTENEDOR STAFF
============================================================ */
.staff-custom-container {
    max-width: 1000px;
    margin: 1.5rem auto;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: 1px solid var(--border-light);
}

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

/* ============================================================
   CABECERA DEL FORMULARIO
============================================================ */
.staff-form-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.staff-form-header h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

/* ============================================================
   TITULO PRINCIPAL
============================================================ */
.staff-custom-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-color);
    margin: 2rem 0;
    position: relative;
}

.staff-custom-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ============================================================
   REJILLA DE FORMULARIO
============================================================ */
.staff-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

.staff-grid-full {
    grid-column: span 2;
}

/* ============================================================
   GRUPOS DE ENTRADA
============================================================ */
.staff-custom-form-group {
    margin-bottom: 0.5rem;
}

.staff-custom-form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.staff-custom-form-group label i {
    width: 20px;
    color: var(--secondary-color);
    margin-right: 8px;
}

.input-container {
    position: relative;
}

.staff-custom-form-group input,
.staff-custom-form-group select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: var(--transition-base);
    color: var(--text-color);
}

.staff-custom-form-group input:focus,
.staff-custom-form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(42, 157, 144, 0.1);
    background-color: #fff;
    outline: none;
}

/* ============================================================
   FOTO DE PERFIL
============================================================ */
.staff-photo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f1f5f9;
    border-radius: 16px;
    margin-top: 1rem;
}

.staff-current-photo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

/* ============================================================
   ACCIONES
============================================================ */
.staff-custom-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
}

.btn-staff {
    padding: 0.8rem 2.5rem;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-staff-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-staff-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-staff-secondary {
    background: white;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.btn-staff-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .staff-form-grid {
        grid-template-columns: 1fr;
    }
    
    .staff-grid-full {
        grid-column: span 1;
    }

    .staff-custom-title {
        font-size: 1.8rem;
    }

    .staff-custom-container {
        margin: 1rem;
    }
}
