/* ==========================================
   PALETA DE COLORES - ACADEMIA VIVACE J-50810683-0
   ========================================== */
:root {
    --vivace-purple: #7b2cbf;
    --vivace-magenta: #e0248c;
    --vivace-blue: #0077b6;
    --vivace-cyan: #00b4d8;
    --vivace-orange: #f77f00;
    --vivace-yellow: #fcbf49;
    --vivace-green: #2a9d8f;
    --vivace-dark: #212529;
    --vivace-light: #f8f9fa;
    --vivace-card-bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    padding: 2rem; 
    background: var(--vivace-light); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--vivace-dark); 
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
}

/* Encabezados y Tarjetas */
.header-card { 
    background: var(--vivace-card-bg); 
    padding: 2rem; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.08); 
    text-align: center; 
    margin-bottom: 1.5rem; 
    border-top: 5px solid var(--vivace-magenta); 
}

.academy-logo { 
    max-width: 180px; 
    height: auto; 
    margin-bottom: 0.8rem; 
}

/* Tablas con Gradiente Vivace */
.table-custom { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1rem; 
    background: var(--vivace-card-bg); 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); 
}

.table-custom th { 
    background: linear-gradient(135deg, var(--vivace-purple), var(--vivace-blue)); 
    color: white; 
    text-align: left; 
    padding: 12px; 
    font-size: 0.85rem; 
}

.table-custom td { 
    padding: 12px; 
    border-bottom: 1px solid #dee2e6; 
    font-size: 0.85rem; 
}

/* Botones y Elementos Interactivos */
.btn-primary-vivace { 
    background: linear-gradient(135deg, var(--vivace-magenta), var(--vivace-purple)); 
    color: white; 
    border: none; 
    padding: 10px 18px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: opacity 0.2s; 
}

.btn-primary-vivace:hover { 
    opacity: 0.9; 
}

.badge-bcv { 
    display: inline-block; 
    background: #e0fbfc; 
    color: var(--vivace-blue); 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 0.85rem; 
    margin-top: 0.5rem; 
    border: 1px solid var(--vivace-cyan); 
    body { padding: 2rem; background: #f4f6f9; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; box-sizing: border-box; }
.container { max-width: 950px; margin: 0 auto; }
.header-card { background: white; padding: 2rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center; margin-bottom: 1.5rem; border-top: 5px solid #1e3c72; }
.academy-logo { max-width: 180px; height: auto; margin-bottom: 0.8rem; }
.portal-title { color: #1e3c72; font-size: 1.6rem; margin-bottom: 0.2rem; }
.portal-subtitle { color: #666; font-size: 0.95rem; }
.logout-container { margin-top: 0.8rem; }
.logout-link { color: #e0248c; text-decoration: none; font-weight: bold; font-size: 0.85rem; }

.hermanos-nav { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: center; }
.hermano-tab-btn { background: white; border: 2px solid #ddd; padding: 12px 20px; border-radius: 12px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 10px; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.hermano-tab-btn.active { border-color: #1e3c72; background: #faf5ff; transform: translateY(-2px); }
.dot-status { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-green { background: #27ae60; }
.dot-red { background: #c0392b; }
.hermano-nombre { color: #333; font-size: 0.95rem; }
.hermano-inst { color: #666; font-size: 0.75rem; }

.student-card { background: white; border-radius: 14px; padding: 1.8rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: none; }
.student-card.active { display: block; }

.student-header-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; border-bottom: 2px solid #f1f3f5; padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.student-name { color: #1e3c72; font-size: 1.4rem; margin-bottom: 0.3rem; }
.student-info { color: #555; font-size: 0.9rem; }
.student-rep { color: #777; font-size: 0.82rem; margin-top: 2px; }

.table-custom { width: 100%; border-collapse: collapse; margin-top: 0.8rem; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.table-custom th { background: #1e3c72; color: white; text-align: left; padding: 10px 12px; font-size: 0.82rem; }
.table-custom td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 0.82rem; }
.table-responsive { overflow-x: auto; margin-bottom: 1.5rem; }

.badge-solvente { display: inline-block; background: #d4edda; color: #155724; padding: 6px 14px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; border: 1px solid #c3e6cb; }
.badge-moroso { display: inline-block; background: #f8d7da; color: #721c24; padding: 6px 14px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; border: 1px solid #f5c6cb; }

.btn-action { background: #2980b9; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 0.85rem; }
.btn-action:hover { opacity: 0.9; }

.section-title { color: #1e3c72; font-size: 1.1rem; margin-bottom: 0.6rem; margin-top: 1.2rem; }
.status-pagado { color: #27ae60; font-weight: bold; }
.status-revision { color: #f39c12; font-weight: bold; }
.status-pendiente { color: #c0392b; font-weight: bold; }
.form-reportar { display: flex; gap: 6px; align-items: center; }
.input-ref { padding: 5px 8px; font-size: 0.8rem; border: 1px solid #ccc; border-radius: 4px; width: 130px; }

.solsitos-banner { background: #fffdf4; border: 2px dashed #f39c12; padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.solsitos-title { color: #d35400; font-size: 1rem; margin-bottom: 0.2rem; }
.solsitos-desc { font-size: 0.8rem; color: #666; }
.solsitos-badge { font-size: 1.1rem; font-weight: bold; color: #e67e22; background: #fef5d1; padding: 6px 16px; border-radius: 50px; }

.catedras-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cat-btn { padding: 7px 14px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.82rem; }
.cat-btn.activo { background: #1e3c72; color: white; }
.cat-btn.inactivo { background: #e9ecef; color: #555; }

.cat-content-box { background: #fafbfc; padding: 1.2rem; border-radius: 10px; border: 1px solid #e1e8ed; margin-bottom: 1rem; }
.asistencia-box { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px 14px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 1rem; }
.asis-label { font-weight: bold; color: #333; font-size: 0.85rem; }
.asis-badge { background: #e0fbfc; color: #1e3c72; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.82rem; }
.eval-title { color: #1e3c72; font-size: 0.9rem; margin-bottom: 0.5rem; }
.nota-val { color: #27ae60; font-weight: bold; font-size: 0.9rem; }

.bloqueo-box { background: #fdf2f2; border: 1px solid #f5c6cb; color: #721c24; padding: 1.2rem; border-radius: 8px; text-align: center; margin-top: 1rem; }
.bloqueo-text { font-size: 0.85rem; margin-top: 4px; }
.text-center { text-align: center; }
.text-muted { color: #888; }
.text-italic { color: #777; font-size: 0.82rem; font-style: italic; padding: 0.4rem 0; }

/* Estilos generales del Portal del Representante */
.portal-title { color: #1e3c72; font-size: 1.6rem; margin-bottom: 0.2rem; }
.portal-subtitle { color: #666; font-size: 0.95rem; }
.logout-container { margin-top: 0.8rem; }
.logout-link { color: #e0248c; text-decoration: none; font-weight: bold; font-size: 0.85rem; }

.hermanos-nav { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: center; }
.hermano-tab-btn { background: white; border: 2px solid #ddd; padding: 12px 20px; border-radius: 12px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 10px; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.hermano-tab-btn.active { border-color: #1e3c72; background: #faf5ff; transform: translateY(-2px); }
.dot-status { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-green { background: #27ae60; }
.dot-red { background: #c0392b; }
.hermano-nombre { color: #333; font-size: 0.95rem; }
.hermano-inst { color: #666; font-size: 0.75rem; }

.student-card { background: white; border-radius: 14px; padding: 1.8rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: none; }
.student-card.active { display: block; }

.student-header-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; border-bottom: 2px solid #f1f3f5; padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.student-name { color: #1e3c72; font-size: 1.4rem; margin-bottom: 0.3rem; }
.student-info { color: #555; font-size: 0.9rem; }
.student-rep { color: #777; font-size: 0.82rem; margin-top: 2px; }

.table-custom { width: 100%; border-collapse: collapse; margin-top: 0.8rem; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.table-custom th { background: #1e3c72; color: white; text-align: left; padding: 10px 12px; font-size: 0.82rem; }
.table-custom td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 0.82rem; }
.table-responsive { overflow-x: auto; margin-bottom: 1.5rem; }

.badge-solvente { display: inline-block; background: #d4edda; color: #155724; padding: 6px 14px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; border: 1px solid #c3e6cb; }
.badge-moroso { display: inline-block; background: #f8d7da; color: #721c24; padding: 6px 14px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; border: 1px solid #f5c6cb; }

.btn-action { background: #2980b9; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 0.85rem; }
.btn-action:hover { opacity: 0.9; }

.section-title { color: #1e3c72; font-size: 1.1rem; margin-bottom: 0.6rem; margin-top: 1.2rem; }
.status-pagado { color: #27ae60; font-weight: bold; }
.status-revision { color: #f39c12; font-weight: bold; }
.status-pendiente { color: #c0392b; font-weight: bold; }
.form-reportar { display: flex; gap: 6px; align-items: center; }
.input-ref { padding: 5px 8px; font-size: 0.8rem; border: 1px solid #ccc; border-radius: 4px; width: 130px; }

.solsitos-banner { background: #fffdf4; border: 2px dashed #f39c12; padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.solsitos-title { color: #d35400; font-size: 1rem; margin-bottom: 0.2rem; }
.solsitos-desc { font-size: 0.8rem; color: #666; }
.solsitos-badge { font-size: 1.1rem; font-weight: bold; color: #e67e22; background: #fef5d1; padding: 6px 16px; border-radius: 50px; }

.catedras-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cat-btn { padding: 7px 14px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.82rem; }
.cat-btn.activo { background: #1e3c72; color: white; }
.cat-btn.inactivo { background: #e9ecef; color: #555; }

.cat-content-box { background: #fafbfc; padding: 1.2rem; border-radius: 10px; border: 1px solid #e1e8ed; margin-bottom: 1rem; }
.asistencia-box { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px 14px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 1rem; }
.asis-label { font-weight: bold; color: #333; font-size: 0.85rem; }
.asis-badge { background: #e0fbfc; color: #1e3c72; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.82rem; }
.eval-title { color: #1e3c72; font-size: 0.9rem; margin-bottom: 0.5rem; }
.nota-val { color: #27ae60; font-weight: bold; font-size: 0.9rem; }

.bloqueo-box { background: #fdf2f2; border: 1px solid #f5c6cb; color: #721c24; padding: 1.2rem; border-radius: 8px; text-align: center; margin-top: 1rem; }
.bloqueo-text { font-size: 0.85rem; margin-top: 4px; }
.text-center { text-align: center; }
.text-muted { color: #888; }
.text-italic { color: #777; font-size: 0.82rem; font-style: italic; padding: 0.4rem 0; }
}