/* Stereosonique Films - hoja de estilos propia.
   Reproduce el diseño del sitio original (React + Bootstrap) con las mismas medidas,
   pero sin Bootstrap ni librerías externas. Fuentes servidas desde este hosting. */

/* Títulos: Archivo Expanded Black (licencia SIL OFL, ver fuentes/OFL-Archivo.txt).
   Sustituye a Resolve Sans Black Extended del sitio original, que es una fuente comercial sin licencia. */
@font-face { font-family: "Archivo"; font-weight: 900; font-stretch: 125%; src: url(../fuentes/archivo-expanded-black.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 500; src: url(../fuentes/poppins-500.woff) format("woff"); font-display: swap; }

/* ---------- Base (equivalente a lo que aportaba Bootstrap) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Archivo", "Arial Black", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background: #000;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
}
body::-webkit-scrollbar { width: 0; background: transparent; }
h1, h2, h3, h4, h5 { margin: 0 0 .5rem; font-weight: 500; line-height: 1.2; }
h2 { font-size: calc(1.325rem + .9vw); }
h3 { font-size: calc(1.3rem + .6vw); }
h4 { font-size: calc(1.275rem + .3vw); }
@media (min-width: 1200px) { h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } }
p { margin: 0 0 1rem; }
img, video { vertical-align: middle; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; white-space: nowrap; }
pre { margin: 0 0 1rem; font-size: .875em; overflow: auto; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.separador { height: 5vh; }
@media (min-width: 768px) { .separador { height: 10vh; } }
.espacio-60 { height: 60px; }
.espacio-50 { height: 50px; }
.espacio-20vh { height: 20vh; }
.espacio-2vw { height: 2vw; }

/* ---------- Encabezado (logo) ---------- */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 40;
    pointer-events: none;
}
.header a { pointer-events: auto; }
.logo-white { height: 62px; width: auto; }

/* ---------- Menú (botón + panel blanco) ---------- */
.site-hamburger {
    position: fixed;
    top: 4%;
    right: 3%;
    width: 40px;
    height: 1.5vh;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-color: #000;
    mix-blend-mode: difference;
    filter: invert(1);
    z-index: 602;
    transition: height .4s ease, background-color .4s ease;
}
.site-hamburger.clicked { height: 40px; }
.site-hamburger:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.container-menu {
    position: fixed;
    inset: 0;
    z-index: 501;
    padding-left: 28px;
    padding-top: 10vh;
    transform: translate(150%, 0);
    transition: transform .5s ease;
    visibility: hidden;
}
.container2 {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 500;
    transform: translate(100%, 0);
    transition: transform .5s ease;
}
.container-menu.expand-container, .container2.expand-container { transform: none; }
.container-menu.expand-container { visibility: visible; }
.list-drawer { margin: 0; padding-left: 2rem; }
.text-drawer {
    font-family: "Archivo", sans-serif;
    font-size: 2rem;
    line-height: 2.5rem;
    color: #000;
    text-transform: uppercase;
    transition: color .5s ease;
}
.item-drawer:hover .text-drawer, .text-drawer:focus-visible {
    color: transparent;
    -webkit-text-stroke: 2px #000;
    outline: 0;
}
@media (min-width: 768px) {
    .text-drawer { font-size: 5rem; line-height: 4rem; }
}
body.menu-abierto { overflow: hidden; }

/* ---------- HOME ---------- */
.video-main-container { display: flex; justify-content: center; align-items: center; height: 100vh; height: 100svh; width: 100%; }
.video-main { width: 100%; height: 100%; object-fit: cover; }

/* ---------- DIRECTORS ---------- */
.pagina-directores { background: #000; }
.background-text {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #222;
    font-size: 10vw;
    font-weight: 900;
    z-index: 0;
    pointer-events: none;
}
.lista-directores { position: relative; padding: 120px 0; }
.name-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}
.name, .border-name {
    flex: 1;
    margin: 0 0 0 10%;
    font-family: "Archivo", sans-serif;
    font-size: 10vh;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}
.name { position: relative; z-index: 1; color: #fff; }
.border-name {
    position: absolute;
    left: 0;
    z-index: 3;
    opacity: 0;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    pointer-events: none;
}
.name-container:hover .border-name, .name-container:focus-visible .border-name { opacity: 1; }
.name-container:focus-visible { outline: 0; }
.image-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transform: translate(25%, 30%);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
    overflow: hidden;
}
.image-overlay.show { opacity: 1; transform: translate(25%, 10%); }
.image-container { width: 50%; position: relative; overflow: hidden; }
.image { width: 100%; height: auto; display: block; }

/* ---------- Página de director ---------- */
.director-page-background {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    width: 100%;
    overflow: hidden;
}
.director-page-name { font-family: "Archivo", sans-serif; white-space: nowrap; color: #fff; text-transform: uppercase; margin: 0; }
.navbar-container { display: flex; width: 100%; align-items: center; justify-content: center; }
.navbar-subContainer { display: flex; }
.navbar-item { margin: 0 2vw; color: #fff; font-family: "Archivo", sans-serif; }
.navbar-link { font-size: 2vw; text-transform: uppercase; transition: all .3s ease; }
.navbar-item:hover .navbar-link, .navbar-item:focus-visible .navbar-link { color: transparent; -webkit-text-stroke: 2px #fff; }
.navbar-item:focus-visible { outline: 0; }

/* ---------- MUSIC VIDEOS ---------- */
.music-video-director {
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: "Archivo", sans-serif;
    font-weight: 500;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    text-transform: uppercase;
}
.cards-container { display: flex; flex-wrap: wrap; justify-content: center; }
.video-list { display: flex; flex-direction: column; gap: 20px; margin: 0 5vw 10vh; }
.video-item { position: relative; width: 30vw; min-width: 400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.video-thumbnail { position: relative; display: block; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; }
.video-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.video-thumbnail:hover img, .video-thumbnail:focus-visible img { transform: scale(1.04); }
.card-title, .card-subtitle {
    width: 35vw;
    min-width: 410px;
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: "Archivo", sans-serif;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .5);
    text-transform: uppercase;
}

/* ---------- Detalle de video ---------- */
.selected-video-container { background: #000; }
.video-preview-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    font-family: "Archivo", sans-serif;
}
.video-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-text { position: relative; z-index: 3; color: #fff; text-align: center; text-shadow: 2px 2px 4px #000; text-transform: uppercase; padding: 0 2vw; }
.video-title { font-size: 11vw; margin-bottom: .5rem; }
.video-client { font-size: 1.75rem; }
.ficha-tecnica {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 7vh 10vw 10vh;
    font-family: "Archivo", sans-serif;
    color: #fff;
    text-transform: uppercase;
}
.credits { font-family: "Archivo", sans-serif; font-size: .875em; white-space: pre-wrap; overflow: visible; text-transform: uppercase; }
.video-youtube-container { position: relative; display: flex; justify-content: center; align-items: center; height: 100vh; height: 100svh; background: #000; }
.video-youtube { position: absolute; inset: 0; }

/* Video externo: solo se conecta a YouTube/Vimeo cuando el visitante presiona play */
.video-externo { position: relative; background: #000; overflow: hidden; }
.video-externo:not(.video-youtube) { aspect-ratio: 16 / 9; }
.video-externo img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-externo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.video-play svg { width: 68px; height: 48px; transition: transform .2s; }
.video-play:hover svg, .video-play:focus-visible svg { transform: scale(1.12); }
.video-play:hover path:first-child { fill: #f00; fill-opacity: 1; }
.video-enlace { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: #fff; }

/* ---------- REEL ---------- */
.reel-container { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 90px 0 40px; }
.reel-director { font-family: "Archivo", sans-serif; font-weight: 500; color: transparent; -webkit-text-stroke: 2px #fff; text-transform: uppercase; margin: 0; text-align: center; }
.separador-video { height: 0; }
.vimeo-player-container { position: relative; width: 60vw; min-width: 700px; }

/* ---------- ABOUT ---------- */
.backgroundtext {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
    z-index: -1;
}
.backgroundtext-text { position: fixed; width: 100%; text-align: center; color: #222; font-size: 18vw; font-weight: 900; }
.about-title-container { display: flex; justify-content: space-between; align-items: center; flex-direction: column; height: 100vh; height: 100svh; }
.about-director-name {
    width: 100%;
    margin: 0;
    padding: 10vh 0;
    display: flex;
    justify-content: center;
    text-align: center;
    background: #000;
    color: #fff;
    font-family: "Archivo", sans-serif;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .5s ease-in-out;
}
.about-director-name.visible { opacity: 1; }
.flecha-abajo img { height: 20vh; width: auto; }
.about-bio-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.about-img-container { width: 50vw; }
.about-img { margin-left: 10vw; width: 50vw; height: auto; }
.about-text {
    font-family: "Poppins", sans-serif;
    font-size: 1.4vw;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
    margin-right: 10vw;
    text-align: justify;
}

/* ---------- CONTACT ---------- */
.contact-background {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}
.contact-logo { width: 70%; height: auto; }
.contact-social-media { display: flex; flex-direction: row; }
.social-media-logo { width: 7vw; height: auto; transition: transform .2s; }
.contact-social-media a:hover .social-media-logo { transform: scale(1.08); }
.social-media-logo-separator { width: 5vw; }

/* ---------- 404 ---------- */
.notfound-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Archivo", sans-serif;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    animation: aparecer .3s ease 1s forwards;
}
.notfound-title { font-size: calc(1.325rem + .9vw); }
.notfound-subtitle { font-size: calc(1.3rem + .6vw); }
.notfound-back { color: #fff; }
@keyframes aparecer { to { opacity: 1; } }

/* ---------- Responsivo (mismas reglas del original + ajustes para celular) ---------- */
@media (max-width: 1000px) {
    .about-bio-container { flex-direction: column; min-height: 0; padding-bottom: 10vh; }
    .about-media-separador { height: 10vh; }
    .about-text { font-family: "Archivo", sans-serif; font-size: 1rem; margin: 0 10vw; }
    .about-img-container { width: 90vw; }
    .about-img { margin-left: 0; width: 90vw; }
}
@media (max-width: 768px) {
    .name, .border-name { font-size: 2.5rem; margin-left: 1rem; }
    .image-container { width: 90%; }
    .image-overlay { transform: translate(5%, 30%); }
    .image-overlay.show { transform: translate(5%, 10%); }
    .navbar-link { font-size: .9rem; }
    .navbar-item { margin: 0 1rem; }
    .ficha-tecnica { font-size: small; }
    .credits { font-size: small; }
    .video-client { font-size: 3vw; }
    .vimeo-player-container { width: 95vw; min-width: 0; }
    .container-menu { padding-left: 0; }
}
@media (max-width: 600px) {
    .video-item { width: 90vw; min-width: 0; }
    .card-title, .card-subtitle { width: 90vw; min-width: 0; }
    .card-title { font-size: 1.15rem; }
    .card-subtitle { font-size: 1rem; }
    .video-list { margin: 0 5vw 7vh; }
    main > .espacio-60:first-child { height: 100px; }
    .music-video-director, .reel-director { -webkit-text-stroke-width: 1px; }
    .logo-white { height: 48px; }
    .site-hamburger { width: 32px; height: 10px; top: 32px; right: 18px; }
    .site-hamburger.clicked { height: 32px; }
    .social-media-logo { width: 16vw; }
    .contact-logo { width: 86%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .notfound-container, .about-director-name { opacity: 1; }
}
