
/* =========================================
   NEXORA - PORTADA CINEMATOGRAFICA
========================================= */

.nexora-portada {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: #071426;
    color: #fff;
}

/* Fondos del carrusel */

.nexora-fondos {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.nexora-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease, transform 9s ease;
}

.nexora-slide.activo {
    opacity: 1;
    transform: scale(1);
}

.nexora-slide:nth-child(1) {
    background-image: url('../../img/hero/hero-1.jpg');
    background-position: center 45%;
}

.nexora-slide:nth-child(2) {
    background-image: url('../../img/hero/hero-2.jpg');
    background-position: center 40%;
}

.nexora-slide:nth-child(3) {
    background-image: url('../../img/hero/hero-3.jpg');
    background-position: center 50%;
}

.nexora-slide:nth-child(4) {
    background-image: url('../../img/hero/hero-4.jpg');
    background-position: center 50%;
}

/* Capa para mejorar la lectura del texto */

.nexora-portada::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(3, 12, 26, .85) 0%,
        rgba(3, 12, 26, .45) 48%,
        rgba(3, 12, 26, .08) 100%
    ),
    linear-gradient(
        180deg,
        rgba(3, 12, 26, .50),
        transparent 25%,
        transparent 75%,
        rgba(3, 12, 26, .45)
    );
}

/* Navbar integrado con el fondo */

.nexora-portada .navbar {
    position: relative;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 22px 6%;
    z-index: 100;
}

.nexora-portada .logo {
    color: white;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 5px;
}

.nexora-portada .menu a,
.nexora-portada .btn-ingresar,
.nexora-portada .nombre-usuario,
.nexora-portada .cuenta-flecha {
    color: white;
}

.nexora-portada .menu a {
    transition: color .3s;
}

.nexora-portada .menu a:hover {
    color: #93c5fd;
}

.nexora-portada .btn-registro {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.nexora-portada .btn-registro:hover {
    background: white;
    color: #10233d;
}

.nexora-portada .cuenta-boton:hover {
    background: rgba(255,255,255,.15);
}

/* Contenido principal */

.nexora-portada .hero {
    position: relative;
    min-height: calc(100vh - 90px);
    padding: 90px 8% 120px;
    display: flex;
    align-items: center;
    background: transparent;
}

.nexora-portada .hero-contenido {
    max-width: 800px;
}

.nexora-portada .etiqueta {
    display: inline-block;
    color: #dbeafe;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 12px;
}

.nexora-portada .hero h1 {
    font-size: clamp(38px, 5vw, 76px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
    color: #fff;
    margin: 18px 0 25px;
    text-shadow: 0 4px 25px rgba(0,0,0,.2);
}

.nexora-portada .hero p {
    font-size: 18px;
    line-height: 1.8;
    color: #e2e8f0;
    max-width: 610px;
}

.nexora-portada .hero-botones {
    margin-top: 35px;
    gap: 18px;
}

.nexora-portada .btn-principal {
    background: #fff;
    color: #10233d;
    border-radius: 8px;
    padding: 17px 30px;
    transition: .3s;
}

.nexora-portada .btn-principal:hover {
    background: #dbeafe;
    transform: translateY(-3px);
}

.nexora-portada .btn-secundario {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 17px 30px;
    transition: .3s;
}

.nexora-portada .btn-secundario:hover {
    background: rgba(255,255,255,.2);
}

/* Animacion de las frases */

.nexora-animacion {
    animation: nexoraEntrada .9s ease both;
}

@keyframes nexoraEntrada {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicadores del carrusel */

.nexora-indicadores {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nexora-indicador {
    width: 32px;
    height: 5px;
    border: none;
    border-radius: 20px;
    padding: 0;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: .4s ease;
}

.nexora-indicador.activo {
    width: 65px;
    background: white;
}

/* Adaptacion a celulares */

@media (max-width: 700px) {

    .nexora-portada .navbar {
        padding: 20px;
        gap: 18px;
    }

    .nexora-portada .logo {
        font-size: 23px;
        letter-spacing: 3px;
    }

    .nexora-portada .hero {
        min-height: 75vh;
        padding: 65px 7% 100px;
    }

    .nexora-portada .hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .nexora-portada .hero p {
        font-size: 15px;
    }

    .nexora-portada::before {
        background: rgba(3,12,26,.55);
    }

    .nexora-portada .hero-botones a {
        padding: 14px 20px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexora-slide,
    .nexora-indicador {
        transition: none;
        transform: none;
    }

    .nexora-animacion {
        animation: none;
    }
}
