:root {
    --primary-color: #3066BE;
    --secondary-color: #119DA4;
    --accent-color: #6D9DC5;
    --light-color: #F2F5F7;
    --dark-color: #2A3D45;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para los logos y el texto central */
.logos-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.logo-item {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    margin: 0 20px;
    color: #333;
}

.logo-additional {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
}

.logo {
    display: flex;
    align-items: center;
    /* Asegurar espacio suficiente para el logo */
    min-height: 60px;
}

.header-logo-img {
    /* Garantizar tamaño natural de la imagen */
    width: auto;
    height: auto;
    /* Tamaño mínimo para asegurar visibilidad */
    min-width: 120px;
    min-height: 40px;
    /* Desactivar cualquier restricción */
    max-width: none;
    max-height: none;
}

.language-selector {
    display: flex;
    gap: 15px;
}

.language-selector a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-selector a:hover, .language-selector a.active {
    background-color: var(--primary-color);
    color: white;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
}

#error-container {
    margin-top: 15px;
}

.main-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-column {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-column img:hover {
    transform: scale(1.05);
}

.form-column {
    flex: 1;
    padding: 40px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(48, 102, 190, 0.2);
}

.date-selector {
    display: flex;
    gap: 10px;
}

.date-selector select {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.media-tests {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.media-test {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.media-test-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.media-content {
    margin: 20px 0;
    display: none;
}

.media-content.active {
    display: block;
}

audio, video {
    width: 100%;
    border-radius: 8px;
}

.exit-button {
    display: block;
    margin-top: 30px;
    text-align: center;
}

/* Estilos específicos para el examen */
.navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.prueba-info {
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prueba-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.content-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.single-part {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.dual-part {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.options {
    margin-left: 20px;
}

.option {
    margin-bottom: 12px;
}

.option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.part-content {
    margin-bottom: 30px;
}

h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Indicador de carga */
.cargando {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--primary-color);
}

.cargando::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .image-column {
        height: 250px;
    }
    
    .form-column {
        padding: 20px;
    }
    
    .media-tests {
        flex-direction: column;
    }
    
    .logos-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-text {
        margin: 10px 0;
    }
    
    .content-container {
        flex-direction: column;
    }
    
    .dual-part, .single-part {
        max-height: none;
        padding: 20px;
    }
    
    .logo-img {
        min-width: 60px;
        min-height: 40px;
    }
    .success-message {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
        padding: 10px 15px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }
    
    .success-message i {
        margin-right: 10px;
        font-size: 18px;
    }
}