@font-face {
    font-family: 'Aptos';
    src: url('Aptos.ttf') format('truetype');
}
/* Estilos generales */
body {
    background-image: url(https://img.freepik.com/free-vector/white-rhombus-pattern_1053-249.jpg);
   
    font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
}

/* Contenedor principal */
.container {
    max-width: 840px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cabecera */
header {
    background-color: #0056b3;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
    position: relative; /* Para posicionar el logo de forma absoluta */
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.header-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 90px; /* Ajusta la altura según necesites */
    width: auto;
}

.logo-left { left: 1.5rem; }
.logo-right { right: 1.5rem; }

/* Contenido principal */
main {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos para los botones de acción */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem; /* Espacio antes de las pestañas */
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem; /* Tamaño mediano */
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    color: #ffffff;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);
    transform: translateY(1px);
    cursor: default;
}

.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0069d9; }

.btn-secondary { background-color: #27bd2fff; }
.btn-secondary:hover { background-color: #13a132ff; }

/* Nueva sección: Cuadro de Honor */
.top-performers {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.podium {
    display: flex;
    margin: 1rem;
    justify-content: center;
    align-items: stretch; /* Alinea los items para que tengan la misma altura */
    gap: 1.2rem;
    flex-wrap: wrap; /* Para que se vea bien en móviles */
}

.podium-item {
    flex-basis: 160px;
    flex-grow: 1;
    max-width: 240px;
    padding: 1.5rem 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.podium-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.podium-name {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 600;
    color: #003d7c;
}

.podium-grade {
    font-size: 1rem;
    color: #555;
    margin: 0 0 0.5rem 0;
}

.trophy {
    width: 100px;
    height: 100px;
    margin-bottom: 0.5rem;
}

/* Colores y orden para el podio */
.podium-item.place-1 {
    border-width: 2px;
    border-color: #ffd700;
    background-color: #fffbeb; /* Sutil dorado */
}

.podium-item.place-2 {
    border-width: 2px;
    border-color: #c0c0c0;
    background-color: #f8f9fa; /* Sutil plateado */
}

.podium-item.place-3 {
    border-width: 2px;
    border-color: #cd7f32;
    background-color: #fff5eb; /* Sutil bronce */
}

/* Tabla de estudiantes */
.student-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.student-table th, .student-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.student-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.student-table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Estilos para las estrellas */
.stars {
    color: #ffc107; /* Color para estrellas llenas */
    font-size: 1.2rem;
    white-space: nowrap; /* Evita que las estrellas se separen en dos líneas */
}

.stars .empty {
    color: #e0e0e0; /* Color para estrellas vacías */
}

/* Pie de página */
footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Estilos para las Pestañas (Tabs) - Estilo Chrome */
.tabs-nav {
    display: flex;
    justify-content: center; /* Centra las pestañas horizontalmente */
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.tab-link {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-bottom: none;
    background-color: #f1f3f5; /* Color de pestaña inactiva */
    font-size: 1rem;
    color: #495057;
    text-decoration: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 4px;
    position: relative;
    top: 2px; /* Baja ligeramente las pestañas inactivas */
    transition: background-color 0.2s, top 0.2s, color 0.2s;
}

.tab-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.tab-link.active {
    background-color: #ffffff; /* Mismo color que el fondo del contenido */
    color: #0056b3;
    font-weight: 600;
    border-color: #dee2e6;
    border-bottom-color: #ffffff; /* El borde inferior es blanco para "cortar" la línea */
    top: 0;
    z-index: 2;
}

.tabs-content-wrapper {
    position: relative;
    overflow: hidden; /* Oculta el contenido que se desborda */
    
    text-align: center;
}

.tabs-slider {
    display: flex;
    width: 400%; /* 100% por cada pestaña (4 pestañas = 400%) */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animación de deslizamiento */
}

.tab-pane {
    width: 25%; /* Cada panel ocupa 1/4 del slider (que es 400%) */
    flex-shrink: 0; /* Evita que los paneles se encojan */
    /* La clase 'active' ya no controla la visibilidad con 'display' */
}