* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    
    max-height: 250px;
    height: auto;
    width: auto;
    object-fit: contain;
   
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.form-section {
    padding: 40px;
}

.form-section h2 {
    color: #265A99;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 3px solid #265A99;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #265A99;
    box-shadow: 0 0 0 3px rgba(38, 90, 153, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(38, 90, 153, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Navegación entre criterios */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.navigation-buttons .btn-primary,
.navigation-buttons .btn-secondary {
    flex: 1;
    max-width: 300px;
    margin: 0;
}

.navigation-buttons .btn-primary {
    margin-left: auto;
}

.navigation-buttons .btn-secondary {
    margin-right: auto;
}

/* Sección de docentes */
.teachers-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #265A99;
}

.teachers-info p {
    margin: 8px 0;
    font-size: 1.05em;
}

.teachers-info strong {
    color: #265A99;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.teacher-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.teacher-card:hover {
    border-color: #265A99;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 90, 153, 0.2);
}

.teacher-card .teacher-name {
    font-size: 1em;
    color: #555;
    margin: 0;
    font-weight: 500;
    display: block;
    padding: 5px 0;
    border-bottom: none !important;
    text-decoration: none !important;
}

/* Sección de evaluación */
.info-text {
    background: #e8f0f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #265A99;
    font-weight: 500;
}

.scale-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.scale-info span {
    padding: 8px 15px;
    background: white;
    border-radius: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

/* Indicador de progreso */
.progress-indicator {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #265A99;
    margin: 0;
    font-size: 1.1em;
}

/* Páginas de criterios */
.criterio-page {
    display: none !important;
    min-height: 400px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.criterio-page.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-evaluation {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.teacher-name {
    color: #265A99;
    font-size: 1.5em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #265A99;
    text-align: center;
}

.criterio-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #1a4a7a;
}

.criterio-title {
    color: #1a4a7a;
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: 600;
    padding: 20px;
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(38, 90, 153, 0.3);
}

.question-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.question-item:last-child {
    border-bottom: none;
}

.question-text {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #265A99;
}

.teachers-rating-container {
    margin-top: 15px;
}

.teacher-rating-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.teacher-rating-row:hover {
    background: #e8f0f8;
    transform: translateX(5px);
}

.teacher-name-inline {
    min-width: 250px;
    font-weight: 600;
    color: #265A99;
    font-size: 0.95em;
}

.rating-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.rating-label {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.rating-label input[type="radio"] {
    display: none;
}

.rating-value {
    display: block;
    padding: 12px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #666;
    font-size: 1.1em;
}

.rating-label input[type="radio"]:checked + .rating-value {
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    color: white;
    border-color: #265A99;
    transform: scale(1.1);
}

.rating-label:hover .rating-value {
    border-color: #265A99;
    background: #e8f0f8;
}

/* Mensaje de éxito */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    color: white;
}

.success-message h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
    border: none;
}

.success-message p {
    font-size: 1.3em;
    opacity: 0.9;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        max-width: 350px;
        
    }

    header h1 {
        font-size: 1.8em;
    }

    .form-section {
        padding: 25px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .rating-group {
        max-width: 100%;
    }

    .teacher-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .teacher-name-inline {
        min-width: auto;
        width: 100%;
    }

    .scale-info {
        flex-direction: column;
    }

    .scale-info span {
        width: 100%;
        text-align: center;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .navigation-buttons .btn-primary,
    .navigation-buttons .btn-secondary {
        max-width: 100%;
        width: 100%;
    }

    .progress-indicator {
        padding: 15px;
    }

    .progress-text {
        font-size: 1em;
    }
}

