/* =================================================================
   CINESTREAM - HOJA DE ESTILOS PRINCIPAL
   ================================================================= */

/* -------------------------------
   1. Variables globales
--------------------------------*/
:root {
    --color-primario: #e50914;
    --color-primario-hover: #f40612;
    --color-texto-principal: #fff;
    --color-texto-secundario: rgba(255, 255, 255, 0.9);
    --fuente-principal: 'Arial', 'Helvetica', sans-serif;
    --color-exito: #46d369;
    --color-error: #e87c03;
}

/* -------------------------------
   2. Reset base
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------
   3. Sección HERO con fondo
--------------------------------*/
.seccion-hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Imagen de fondo */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Oscurece el fondo */
.seccion-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* -------------------------------
   4. Contenido principal
--------------------------------*/
.barra-navegacion,
.contenido-hero {
    position: relative;
    z-index: 1;
}

.barra-navegacion {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

/* -------------------------------
   Logo como imagen responsive
--------------------------------*/
.logo {
    width: auto;
    height: auto;
}

.logo img {
    display: block;
    max-width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 100px;
    }
}

/* -------------------------------
   5. Texto hero
--------------------------------*/
.contenido-hero {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.titulo-principal {
    font-size: 56px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.subtitulo {
    font-size: 22px;
    margin: 15px 0;
}

.descripcion {
    font-size: 18px;
    color: var(--color-texto-secundario);
    margin-bottom: 30px;
}

/* -------------------------------
   6. Formulario
--------------------------------*/
.formulario-email {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.campo-email {
    flex: 1;
    min-width: 260px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.campo-email:focus {
    outline: none;
    border-color: var(--color-primario);
    background: rgba(0, 0, 0, 0.8);
}

.campo-email::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.boton-comenzar {
    padding: 15px 30px;
    background: var(--color-primario);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.boton-comenzar:hover {
    background: var(--color-primario-hover);
}

.boton-comenzar:disabled {
    background: #666;
    cursor: not-allowed;
}

.icono-flecha {
    margin-left: 5px;
    font-size: 20px;
}

/* ========================================
   MENSAJES DE RESPUESTA (NUEVO)
   ======================================== */
.mensaje-respuesta {
    display: none;
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.4s ease;
}

.mensaje-respuesta.exito {
    background: rgba(70, 211, 105, 0.2);
    border: 2px solid var(--color-exito);
    color: var(--color-exito);
}

.mensaje-respuesta.error {
    background: rgba(232, 124, 3, 0.2);
    border: 2px solid var(--color-error);
    color: var(--color-error);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CONTENEDOR DE NAVEGACIÓN DERECHA
   ======================================== */
.navegacion-derecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

/* ========================================
   SELECTOR DE IDIOMAS
   ======================================== */
.selector-idioma {
    padding: 6px 30px 6px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    box-sizing: border-box;
}

.selector-idioma:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.selector-idioma:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    background-color: rgba(0, 0, 0, 0.8);
}

.selector-idioma option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* ========================================
   BOTÓN INICIAR SESIÓN
   ======================================== */
.boton-iniciar-sesion {
    padding: 6px 14px;
    background: var(--color-primario);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.boton-iniciar-sesion:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.boton-iniciar-sesion:active {
    transform: translateY(0);
    box-shadow: none;
}

.boton-iniciar-sesion:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVIDAD
   ======================================== */

/* Móviles muy pequeños (< 360px) */
@media (max-width: 359px) {
    .navegacion-derecha {
        top: 50%;
        transform: translateY(-50%);
        gap: 6px;
        right: 10px;
    }
    
    .selector-idioma {
        padding: 5px 25px 5px 8px;
        font-size: 11px;
        height: 30px;
        background-size: 9px;
    }
    
    .boton-iniciar-sesion {
        padding: 5px 10px;
        font-size: 11px;
        height: 30px;
    }
}

/* Móviles pequeños (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .navegacion-derecha {
        top: 50%;
        transform: translateY(-50%);
        gap: 8px;
        right: 15px;
    }
    
    .selector-idioma {
        padding: 6px 28px 6px 9px;
        font-size: 12px;
        height: 32px;
        background-size: 10px;
    }
    
    .boton-iniciar-sesion {
        padding: 6px 12px;
        font-size: 12px;
        height: 32px;
    }
}

/* Móviles grandes (≥ 480px) */
@media (min-width: 480px) {
    .navegacion-derecha {
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;
        right: 20px;
    }
    
    .selector-idioma {
        padding: 7px 30px 7px 10px;
        font-size: 13px;
        height: 36px;
        background-size: 11px;
    }
    
    .boton-iniciar-sesion {
        padding: 7px 16px;
        font-size: 13px;
        height: 36px;
    }
}

/* Tablets medianas (≥ 768px) */
@media (min-width: 768px) {
    .navegacion-derecha {
        top: 50%;
        transform: translateY(-50%);
        gap: 12px;
        right: 30px;
    }
    
    .selector-idioma {
        padding: 8px 32px 8px 12px;
        font-size: 14px;
        height: 38px;
        background-size: 12px;
        background-position: right 10px center;
    }
    
    .boton-iniciar-sesion {
        padding: 8px 18px;
        font-size: 14px;
        height: 38px;
    }
}

/* Tablets grandes y escritorios pequeños (≥ 1024px) */
@media (min-width: 1024px) {
    .navegacion-derecha {
        top: 50%;
        transform: translateY(-50%);
        gap: 15px;
        right: 40px;
    }
    
    .selector-idioma {
        padding: 9px 35px 9px 14px;
        font-size: 15px;
        height: 42px;
        background-size: 12px;
    }
    
    .boton-iniciar-sesion {
        padding: 9px 22px;
        font-size: 15px;
        height: 42px;
    }
}

/* Escritorios grandes (≥ 1440px) */
@media (min-width: 1440px) {
    .navegacion-derecha {
        top: 50%;
        transform: translateY(-50%);
        gap: 18px;
        right: 50px;
    }
    
    .selector-idioma {
        padding: 10px 38px 10px 16px;
        font-size: 16px;
        height: 46px;
        background-size: 13px;
    }
    
    .boton-iniciar-sesion {
        padding: 10px 26px;
        font-size: 16px;
        height: 46px;
    }
}

/* Hover solo en dispositivos con mouse */
@media (hover: hover) {
    .boton-iniciar-sesion:hover {
        filter: brightness(0.9);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .selector-idioma:hover {
        background-color: rgba(0, 0, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* -------------------------------
   7. Responsive
--------------------------------*/
@media (max-width: 768px) {
    .titulo-principal { font-size: 36px; }
    .subtitulo { font-size: 18px; }
    .descripcion { font-size: 16px; }
}