/* Contenedor principal */
#hero-cinematico {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* background: #000; Eliminado para ver el vídeo z-index -2 */
}

/* Vídeo de fondo fijo */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    /* Al fondo del todo */
    pointer-events: none;
    /* Permite hacer clic en lo que haya "debajo" (o encima técnicamente) */
}

/* Capa de oscuridad */
#overlay-negro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: -1;
    /* Justo encima del vídeo pero debajo del contenido */
    pointer-events: none;
    transition: opacity 0.1s linear;
    /* Suaviza ligeramente el cambio de opacidad */
}

/* Logo inicialmente en el centro */
#logo-centrado {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    z-index: 100;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

#logo-centrado img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estado del logo cuando se hace scroll */
#logo-centrado.subido {
    top: 78px;
    /* Ajustado al centro matemático del menú */
    transform: translate(-50%, -50%) scale(0.45);
}

/* Menú escondido arriba */
#menu-superior {
    position: fixed;
    top: -140px;
    /* Esconderlo más arriba */
    left: 0;
    width: 100%;
    height: 140px;
    /* Aumentamos altura */
    z-index: 90;
    background: transparent;
    padding: 15px 40px 0 40px;
    /* Menos padding superior para subir el contenido */
    transition: top 0.5s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

#menu-superior.visible {
    top: 0;
    /* Gradiente ajustado */
    background: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
    backdrop-filter: none;
}

/* Disposición de columnas del menú */
.menu-left,
.menu-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.menu-center-spacer {
    flex: 0 0 120px;
    /* Espacio reservado para el logo */
}

.menu-left {
    justify-content: flex-start;
    gap: 30px;
}

.menu-right {
    justify-content: flex-end;
    gap: 20px;
}

/* Estilos botones izquierda (Trabajos / Música) */
.sliding-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s;
    display: inline-block;
    /* Asegura suavidad en transform */
}

.sliding-btn:hover {
    transform: scale(1.2);
    /* Efecto de zoom igual que los iconos */
    color: #a8a8a8;
    /* Gris elegante al hacer hover */
}

/* Estilos iconos derecha */
.menu-right a img {
    width: 30px;
    /* Iconos más grandes */
    height: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    /* Asegura que sean blancos si no lo son */
}

.menu-right a:hover img {
    transform: scale(1.2);
}

/* Texto deslizante sobre el vídeo */
/* Texto deslizante sobre el vídeo */
#texto-deslizante {
    position: fixed;
    /* Fijo para controlar entrada/salida */
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50px);
    /* Empieza un poco más abajo */
    z-index: 10;
    /* Estilos de texto sugeridos, ajusta según necesidad */
    width: 50%;
    /* Aún más estrecho para centrarlo más */
    padding: 0 40px;
    color: #fff;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    /* Mejoras de nitidez */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Sombra MUY sutil, casi invisible */
}

#texto-deslizante h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 3px;
    font-weight: 400;
    /* Bebas es única, pero con sombra y antialiasing se verá mejor */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    /* Sombra sutil para el título */
}

#texto-deslizante p {
    margin-bottom: 15px;
    text-align: justify;
    /* O center, según gusto. Justificado suele quedar limpio en bloques */
    text-align-last: center;
    /* La última línea centrada queda bien en diseños centrados */
}

#texto-deslizante {
    /* Propiedades de animación que quedaron fuera */
    opacity: 0;
    /* Invisible al principio */
    transition: all 0.5s ease-out;
    /* Transición suave */
    pointer-events: none;
    /* Que no moleste al ratón */
}

/* Clases de estado para JS */
#texto-deslizante.aparecer {
    opacity: 1;
    transform: translate(-50%, -50%);
    /* Se coloca en el centro */
}

#texto-deslizante.desvanecer {
    opacity: 0;
    transform: translate(-50%, -150%);
    /* Se va hacia arriba */
}

/* Blur para fondos */
.vidrio {
	backdrop-filter: blur(6px);	
}