body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
    background-color: #000000;
    color: #ffffff;
}

/* Escenario principal centrado en fondo negro profundo */
.landing-stage {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1rem, 3.5vw, 2.5rem);
    box-sizing: border-box;
    gap: clamp(1.25rem, 2.8vh, 2.25rem);
    background-color: #000000;
    position: relative;
    overflow-x: hidden;
    animation: fadeInStage 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Contenedor central que sostiene el video */
.video-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

/* Enlace envoltorio del video */
.video-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card-link:hover {
    transform: translateY(-3px) scale(1.006);
}

/* Marco rectangular del video sin bordes redondeados y 100% responsivo */
.video-rectangle {
    width: min(88vw, calc(52vh * (16 / 9)), 880px);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important; /* Bordes rectos sin redondez */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #000000;
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.video-card-link:hover .video-rectangle {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 24px 60px -10px rgba(0, 0, 0, 0.98),
        0 0 25px rgba(255, 255, 255, 0.06);
}

.video-rectangle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

/* Capa sutil de viñeta sobre el video con bordes rectos */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.video-card-link:hover .video-overlay {
    opacity: 0.1;
}

/* Bloque centrado: Marca, subtítulo y llamado a entrar */
.brand-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
    animation: slideUpText 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.enter-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    cursor: pointer;
    max-width: 90vw;
}

/* Logo Second Nature: blanco puro, centrado, tipografía ligera */
.logo {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 200 !important;
    letter-spacing: -2px;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    margin: 0;
    text-align: center;
    line-height: 1.08;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.enter-link:hover .logo {
    transform: translateY(-2px);
    text-shadow: 0 6px 30px rgba(255, 255, 255, 0.25);
}

/* Subtítulo descriptivo centrado */
.brand-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    text-align: center;
    line-height: 1.35;
}

/* Botón / llamado a entrar en texto normal como las letras, centrado */
.brand-cta {
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.4px;
    margin-top: 0.25rem;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 5px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease, transform 0.25s ease;
}

.enter-link:hover .brand-cta {
    color: #ffffff;
    text-decoration-color: #ffffff;
    transform: translateY(-1px);
}

/* Animaciones de entrada suave */
@keyframes fadeInStage {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUpText {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adaptación a dispositivos móviles y orientación vertical */
@media (max-width: 768px) {
    .landing-stage {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .logo {
        letter-spacing: -1.5px;
    }
}

@media (orientation: portrait) and (max-width: 650px) {
    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }

    .video-rectangle {
        /* Proporción estilizada 4:5 para el video vertical móvil sin bordes redondos */
        width: min(84vw, calc(46vh * (4 / 5)), 340px);
        aspect-ratio: 4 / 5;
        border-radius: 0 !important;
    }
}
