/* --- Tipografía --- */
@import url('https://googleapis.com');

/* --- Estilos Globales --- */
html, body {
    background-color: #DDE2E4;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Bloquea el scroll total */
    font-family: "Roboto", sans-serif;
}

/* Ocultar checkbox */
#menu-check { 
    display: none !important; 
}

/* --- Encabezado --- */
header {
    display: flex;
    height: 60px;
    background-color: #010101;
    padding: 0 40px;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.logo img {
    height: 40px;
    display: block;
}

/* --- Menú Lateral (Escritorio) --- */
.sidebar {
    height: auto;
    width: 200px;
    position: fixed;
    top: 100px;
    left: 40px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar a {
    padding: 12px 0;
    display: flex;
    align-items: center;
    color: #010101;
    text-decoration: none;
    transition: 0.3s;
    gap: 15px;
    font-weight: 500;
}

.menu-icon {
    width: 22px;
    height: 22px;
}

.sidebar a:hover { color: #7700ff; }
.sidebar a:hover .menu-icon {
    filter: invert(13%) sepia(90%) saturate(5454%) hue-rotate(273deg) brightness(86%) contrast(110%);
}

/* --- Video Principal (Escritorio) --- */
.contenedor-principal {
    display: flex;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 430px;
    right: 70px;
    overflow: hidden;
    z-index: 10;
}

.video-wrapper {
    width: 100%;
    height: 100%;
}

.media-oso {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Texto "A Creative Studio" (Escritorio) --- */
.texto-superior-footer {
    position: fixed;
    left: 40px;
    bottom: 60px;
    z-index: 10;
    pointer-events: none;
}

.texto-superior-footer p {
    margin: 0;
    line-height: 0.9;
    font-size: 55px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
}

/* --- Texto Vertical Derecho --- */
.texto-vertical-derecha {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    z-index: 100;
}

.texto-vertical-derecha p {
    font-size: 14px;
    letter-spacing: 2px;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}

/* --- Pie de Página (Escritorio) --- */
.footer-content {
    position: fixed;
    bottom: 15px;
    left: 40px;
    font-size: 12px;
    color: #777;
    z-index: 5;
}


/* =========================================================
   --- RESPONSIVO ÚNICO PARA CELULAR (PORTRAIT) ---
   ========================================================= */
@media (max-width: 768px) {

    /* Header Móvil */
    header { 
        padding: 0 20px; 
    }

    .logo img { 
        height: 35px; 
    }

    /* Hamburguesa */
    .hamburguesa {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: fixed;
        top: 18px;
        right: 20px;
        z-index: 1100;
    }

    .hamburguesa span {
        width: 25px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

    /* Menú Desplegable */
    .sidebar {
        left: 0;
        top: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        justify-content: center;
        padding-left: 40px;
        transition: 0.6s ease-in-out;
    }

    #menu-check:checked ~ .sidebar { 
        top: 0; 
    }

    .sidebar a {
        font-size: 2.5rem;
        color: #f3f6f5;
        font-weight: 900;
    }

    .sidebar a:hover, .sidebar a:active { 
        color: #7800FF !important; 
    }

    .menu-icon { 
        display: none; 
    }

    /* Contenedor del Video Móvil (Ajustado entre Header y la Franja Gris del Texto) */
    .contenedor-principal {
        position: fixed !important;
        top: 60px !important;
        bottom: 165px !important; /* Límite exacto para no invadir la frase fija de abajo */
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        overflow: hidden !important;
        z-index: 10;
    }

    .media-oso {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Texto Fijo Inferior "A CREATIVE STUDIO..." */
    .texto-superior-footer {
        position: fixed !important;
        left: 20px !important;
        right: 20px !important;
        bottom: 38px !important;
        width: auto !important;
        z-index: 20 !important;
        pointer-events: none;
    }

    .texto-superior-footer p { 
        font-size: 32px !important; 
        line-height: 0.95 !important; /* Previene el solapamiento de líneas */
        font-weight: 900 !important;
        color: #000 !important;
    }

    /* Footer Copyright Fijo */
    .footer-content { 
        position: fixed !important;
        left: 20px !important; 
        bottom: 14px !important; 
        font-size: 11px !important;
        z-index: 20 !important;
    }

    .texto-vertical-derecha { 
        display: none !important; 
    }
}


/* =========================================================
   --- MODO HORIZONTAL (LANDSCAPE) ---
   ========================================================= */
@media (max-height: 500px) and (orientation: landscape) {
    html, body {
        overflow: hidden !important;
        height: 100vh;
    }

    .sidebar {
        display: flex !important;
        position: fixed;
        top: 80px;
        left: 40px;
        width: 150px;
        z-index: 1000;
        background: transparent;
    }

    .texto-superior-footer {
        position: fixed;
        left: 40px;
        bottom: 30px;
        width: 300px;
        z-index: 1001;
    }

    .texto-superior-footer p {
        font-size: 30px !important;
        line-height: 0.9;
    }

    .contenedor-principal {
        position: fixed;
        top: 60px;
        height: calc(100vh - 60px);
        margin-left: 380px;
        margin-right: 80px;
        left: 0;
        right: 0;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .media-oso {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .texto-vertical-derecha {
        position: fixed;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        writing-mode: vertical-rl;
        display: block !important;
    }

    .texto-vertical-derecha p {
        font-size: 12px !important;
        letter-spacing: 2px;
    }

    .footer-content {
        position: fixed;
        bottom: 0px;
        left: 40px;
        font-size: 10px;
    }
}