/* Reset básico */
* { box-sizing: border-box; }

@font-face {
    font-family: 'NeoSans';
    src: url('fonts/NeoSans.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}

body {
    margin: 0; padding: 0;
    font-family: 'NeoSans', Arial, sans-serif;
    background-color: #c3c3c3;
    display: flex; justify-content: center;
}

.main-container {
    width: 100%; max-width: 1280px;
    background-color: #ffffff; min-height: 100vh;
}

.header-logo a {
    display: block;      /* Hace que todo el rectángulo del logo sea clicable */
    text-decoration: none;
}

.header-logo img {
    width: 100%; 
    height: 90px;
    object-fit: cover; 
    display: block;
    border: none;        /* Evita bordes azules en algunos navegadores al ser enlace */
}

/* --- NAVEGACIÓN Y TEXTOS DE IDIOMA --- */
.nav-bar {
    background-color: #f1f1f1;
    padding: 10px 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #ddd;
}

/* Forzamos alineación central perfecta para el bloque de idiomas e icono */
.languages {
    display: flex;
    align-items: center; 
}

.languages a {
    text-decoration: none;
    color: #666;
    margin-left: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    line-height: 1; /* Resetea alturas de línea que puedan desfasar el icono */
}

.languages a:hover {
    color: #0078ae;
    text-decoration: none;
}

.languages a.active {
    color: #0078ae;
    border-bottom: 2px solid #0078ae;
    padding-bottom: 2px;
}

/* Icono de descarga: Eliminamos bordes y ajustamos alineación */
.download-icon {
    text-decoration: none;
    margin-left: 15px;
    display: flex;
    align-items: center;
    border: none !important;
    padding: 0 !important;
}

.download-icon svg {
    fill: #666; 
    width: 20px; /* Tamaño optimizado para que no pese más que el texto */
    height: 20px;
    display: block;
    transition: fill 0.3s ease;
}

.download-icon:hover svg {
    fill: #0078ae;
}

/* --- SECCIÓN LOGIN (PC) --- */
.login-section {
    margin-top: 150px;
    text-align: center;
    padding: 20px;
}

.intro-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #444;
}

.login-form input[type="text"] {
    padding: 12px;
    width: 220px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1rem;
    text-align: center;
}

.btn-entrar {
    background-color: #0078ae;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-entrar:hover {
    background-color: #005f8a;
}

/* --- REPRODUCTOR (PC) --- */
.video-container {
    width: 100%; background: #000;
}

.video-js {
    width: 100% !important;
    height: 720px !important;
}

.info-cerimonia {
    height: 140px;
    background: linear-gradient(to bottom, #bcd3dd, #ffffff);
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 40px;
}

.info-cerimonia h1 { font-size: 1.8rem; color: #0078ae; margin: 0; }

/* --- AJUSTES PARA MÓVIL --- */
@media screen and (max-width: 768px) {
    .nav-bar {
        flex-direction: column; padding: 15px; text-align: center; gap: 10px;
    }

    .languages { 
        margin-top: 5px; 
        justify-content: center;
    }
    
    .languages a { margin: 0 10px; }

    .login-section { margin-top: 50px; }
    .login-form { display: flex; flex-direction: column; align-items: center; }

    .btn-entrar {
        margin-top: 20px !important;
        margin-left: 0 !important;
        width: 100%;
        max-width: 250px;
    }

    .video-js { height: auto !important; }
    .video-js.vjs-fluid { padding-top: 56.25% !important; }

    .info-cerimonia { height: auto; padding: 20px; text-align: center; }
}
