/* ========================================
   GRUPOS ALUM - ESTILOS ELEGANTES
   Paleta: Blanco, Gris Claro y Dorado
   ======================================== */

/* ============ VARIABLES DE COLOR ============ */
:root {
    /* Paleta dorada elegante */
    --ga-gold-primary: #d4a853;
    --ga-gold-dark: #b8860b;
    --ga-gold-light: #e6be5a;
    --ga-gold-accent: #c9a227;
    
    /* Fondos */
    --ga-bg-white: #ffffff;
    --ga-bg-light: #f8f9fa;
    --ga-bg-subtle: #f5f5f5;
    
    /* Textos */
    --ga-text-dark: #1a1a2e;
    --ga-text-secondary: #4a4a68;
    --ga-text-muted: #8a8aa3;
    
    /* Bordes y sombras */
    --ga-border-light: rgba(212, 168, 83, 0.2);
    --ga-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --ga-shadow-hover: 0 8px 30px rgba(212, 168, 83, 0.15);
}

/* ============ CONTENEDOR PRINCIPAL ============ */
.grupos-alum-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ga-bg-white) 0%, var(--ga-bg-light) 100%);
    padding: 2rem;
}

/* ============ BARRA DE NAVEGACIÓN SUPERIOR ============ */
.ga-top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.ga-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--ga-bg-white);
    border: 1px solid var(--ga-border-light);
    border-radius: 10px;
    color: var(--ga-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--ga-shadow-soft);
}

.ga-btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--ga-shadow-hover);
    border-color: var(--ga-gold-primary);
    color: var(--ga-gold-dark);
}

.ga-btn-back svg {
    transition: transform 0.3s ease;
}

.ga-btn-back:hover svg {
    transform: translateX(-3px);
}

/* ============ ENCABEZADO ============ */
.ga-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ga-text-dark);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.ga-page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ga-gold-primary), transparent);
    margin: 0.75rem auto 0;
}

/* ============ CONTENEDOR DE TABLA ============ */
.ga-table-wrapper {
    background: var(--ga-bg-white);
    border: 1px solid var(--ga-border-light);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--ga-shadow-soft);
    overflow: hidden;
}

.ga-table-container {
    overflow-x: auto;
    border-radius: 12px;
}

/* Scrollbar personalizado */
.ga-table-container::-webkit-scrollbar {
    height: 8px;
}

.ga-table-container::-webkit-scrollbar-track {
    background: rgba(212, 168, 83, 0.05);
    border-radius: 4px;
}

.ga-table-container::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 4px;
}

.ga-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

/* ============ TABLA ELEGANTE ============ */
.ga-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ga-bg-white);
    margin: 0;
}

.ga-table thead {
    background: linear-gradient(135deg, var(--ga-bg-subtle) 0%, var(--ga-bg-light) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ga-table thead th {
    padding: 1rem 0.875rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ga-text-secondary);
    border-bottom: 2px solid var(--ga-border-light);
    white-space: nowrap;
}

.ga-table thead th:first-child {
    border-top-left-radius: 8px;
}

.ga-table thead th:last-child {
    border-top-right-radius: 8px;
}

.ga-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.ga-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.06) 0%, transparent 100%);
    transform: translateX(2px);
}

.ga-table tbody tr:last-child {
    border-bottom: none;
}

.ga-table tbody td {
    padding: 1rem 0.875rem;
    color: var(--ga-text-dark);
    font-size: 0.9rem;
    vertical-align: middle;
}

.ga-table tbody td:first-child {
    font-weight: 700;
    color: var(--ga-gold-dark);
}

/* ============ BOTONES DE ACCIÓN ============ */
.ga-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: linear-gradient(135deg, var(--ga-gold-primary) 0%, var(--ga-gold-dark) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.25);
}

.ga-btn-action:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
    color: white;
}

.ga-btn-action svg {
    transition: transform 0.3s ease;
}

.ga-btn-action:hover svg {
    transform: translateX(2px);
}

/* ============ ESTADO DE CARGA ============ */
.ga-loading-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.ga-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--ga-bg-light);
    border-top-color: var(--ga-gold-primary);
    border-radius: 50%;
    animation: ga-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes ga-spin {
    to { transform: rotate(360deg); }
}

.ga-loading-text {
    color: var(--ga-text-muted);
    font-size: 0.95rem;
}

/* ============ ESTADO VACÍO ============ */
.ga-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ga-text-muted);
}

.ga-empty-icon {
    font-size: 3rem;
    color: var(--ga-gold-light);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.ga-empty-text {
    font-size: 1rem;
    color: var(--ga-text-secondary);
}

/* ============ BADGES ============ */
.ga-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(212, 168, 83, 0.15);
    color: var(--ga-gold-dark);
    border: 1px solid var(--ga-border-light);
}

/* ============ ANIMACIÓN CÍRCULO DORADO ============ */
.ga-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(--ga-gold-primary);
    box-shadow: 
        0 0 30px rgba(212, 168, 83, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.1);
    animation: ga-float 3s ease-in-out infinite;
}

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

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

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

/* ============ INFO CARDS ============ */
.ga-info-card {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.1) 0%, rgba(212, 168, 83, 0.05) 100%);
    border: 1px solid var(--ga-border-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ga-info-icon {
    width: 40px;
    height: 40px;
    background: var(--ga-gold-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.ga-info-content {
    flex: 1;
}

.ga-info-label {
    font-size: 0.75rem;
    color: var(--ga-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.ga-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ga-text-dark);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .grupos-alum-container {
        padding: 1rem;
    }
    
    .ga-page-title {
        font-size: 1.5rem;
    }
    
    .ga-table-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .ga-table thead th,
    .ga-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .ga-btn-back {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .ga-page-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .ga-table thead th {
        font-size: 0.7rem;
        padding: 0.625rem 0.375rem;
    }
    
    .ga-table tbody td {
        font-size: 0.75rem;
        padding: 0.625rem 0.375rem;
    }
    
    .ga-btn-action {
        width: 32px;
        height: 32px;
    }
}

/* ============ ANIMACIONES ============ */
@keyframes ga-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ga-table tbody tr {
    animation: ga-fadeIn 0.3s ease forwards;
}

.ga-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.ga-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.ga-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.ga-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.ga-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

/* ============ PRINT STYLES ============ */
@media print {
    .ga-btn-back {
        display: none;
    }
    
    .ga-table-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .ga-table tbody tr:hover {
        background: none;
        transform: none;
    }
}
