/* ========================================
   MATERIAS PROFESORES - ESTILOS ELEGANTES
   Paleta: Blanco, Gris Claro y Dorado
   ======================================== */

/* ============ VARIABLES DE COLOR ============ */
:root {
    /* Paleta dorada elegante */
    --mp-gold-primary: #d4a853;
    --mp-gold-dark: #b8860b;
    --mp-gold-light: #e6be5a;
    --mp-gold-accent: #c9a227;
    
    /* Fondos */
    --mp-bg-white: #ffffff;
    --mp-bg-light: #f8f9fa;
    --mp-bg-subtle: #f5f5f5;
    
    /* Textos */
    --mp-text-dark: #1a1a2e;
    --mp-text-secondary: #4a4a68;
    --mp-text-muted: #8a8aa3;
    
    /* Bordes y sombras */
    --mp-border-light: rgba(212, 168, 83, 0.2);
    --mp-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --mp-shadow-hover: 0 8px 30px rgba(212, 168, 83, 0.15);
}

/* ============ CONTENEDOR PRINCIPAL ============ */
.materias-profesores-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--mp-bg-white) 0%, var(--mp-bg-light) 100%);
    padding: 2rem;
    position: relative;
}

.materias-profesores-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mp-gold-primary), var(--mp-gold-light), var(--mp-gold-primary));
}

/* ============ ENCABEZADOS ============ */
.mp-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mp-text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.mp-main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--mp-gold-primary), transparent);
    margin: 0.75rem auto 0;
}

.mp-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mp-gold-dark);
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mp-section-title i {
    color: var(--mp-gold-primary);
}

.mp-info-header {
    background: var(--mp-bg-white);
    border: 1px solid var(--mp-border-light);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--mp-shadow-soft);
}

.mp-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--mp-text-secondary);
    font-size: 0.95rem;
}

.mp-info-item:last-child {
    margin-bottom: 0;
}

.mp-info-label {
    font-weight: 600;
    color: var(--mp-gold-dark);
    min-width: 80px;
}

.mp-info-value {
    color: var(--mp-text-dark);
    font-weight: 500;
}

/* ============ TARJETAS DE SECCIÓN ============ */
.mp-section-card {
    background: var(--mp-bg-white);
    border: 1px solid var(--mp-border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--mp-shadow-soft);
    transition: all 0.3s ease;
}

.mp-section-card:hover {
    box-shadow: var(--mp-shadow-hover);
}

.mp-section-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mp-border-light);
}

.mp-section-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(212, 168, 83, 0.08) 100%);
    border: 1px solid var(--mp-border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-gold-primary);
    font-size: 1.25rem;
}

.mp-section-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mp-text-dark);
    margin: 0;
}

/* ============ TABLA ELEGANTE ============ */
.mp-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--mp-border-light);
}

.mp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--mp-bg-white);
    margin: 0;
}

.mp-table thead {
    background: linear-gradient(135deg, var(--mp-bg-subtle) 0%, var(--mp-bg-light) 100%);
}

.mp-table thead th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mp-text-secondary);
    border-bottom: 2px solid var(--mp-border-light);
    white-space: nowrap;
}

.mp-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.mp-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.05) 0%, transparent 100%);
}

.mp-table tbody tr:last-child {
    border-bottom: none;
}

.mp-table tbody td {
    padding: 0.875rem 0.75rem;
    color: var(--mp-text-dark);
    font-size: 0.9rem;
    vertical-align: middle;
}

.mp-table tbody td:first-child {
    font-weight: 600;
    color: var(--mp-gold-dark);
}

/* ============ BOTONES ELEGANTES ============ */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.mp-btn-gold {
    background: linear-gradient(135deg, var(--mp-gold-primary) 0%, var(--mp-gold-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

.mp-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
    color: white;
}

.mp-btn-outline {
    background: transparent;
    color: var(--mp-gold-dark);
    border: 1px solid var(--mp-gold-primary);
}

.mp-btn-outline:hover {
    background: rgba(212, 168, 83, 0.1);
    color: var(--mp-gold-dark);
    transform: translateY(-2px);
}

.mp-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
}

.mp-action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============ ESTADO VACÍO ============ */
.mp-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--mp-text-muted);
}

.mp-empty-icon {
    font-size: 3rem;
    color: var(--mp-gold-light);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.mp-empty-text {
    font-size: 1rem;
    color: var(--mp-text-secondary);
}

/* ============ LOADING STATE ============ */
.mp-loading {
    text-align: center;
    padding: 2rem;
}

.mp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mp-bg-light);
    border-top-color: var(--mp-gold-primary);
    border-radius: 50%;
    animation: mp-spin 0.8s linear infinite;
}

@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

/* ============ BADGES ============ */
.mp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mp-badge-gold {
    background: rgba(212, 168, 83, 0.15);
    color: var(--mp-gold-dark);
    border: 1px solid var(--mp-border-light);
}

/* ============ ANIMACIÓN CÍRCULO DORADO ============ */
.mp-brand-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(212, 168, 83, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mp-gold-primary);
    box-shadow: 
        0 0 30px rgba(212, 168, 83, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.1);
    animation: mp-float 3s ease-in-out infinite;
}

.mp-brand-icon-container i {
    font-size: 2.5rem;
    color: var(--mp-gold-primary);
    filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.4));
}

.mp-brand-icon-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.4));
}

@keyframes mp-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .materias-profesores-container {
        padding: 1rem;
    }
    
    .mp-main-title {
        font-size: 1.5rem;
    }
    
    .mp-section-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .mp-table thead th,
    .mp-table tbody td {
        padding: 0.625rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .mp-action-group {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .mp-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mp-info-header {
        padding: 1rem;
    }
    
    .mp-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
