/* Shortby Stereosonico - hoja de estilos propia
   Rehecha a partir del diseño original (plantilla Inspiro + Slider Revolution) sin usar la plantilla:
   sin Bootstrap, sin jQuery, sin Google Fonts. Todo se sirve desde este hosting. */

/* ---------- FUENTES (auto-alojadas: Poppins SIL OFL, Roboto Apache 2.0) ---------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fuentes/poppins-300.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fuentes/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fuentes/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fuentes/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fuentes/roboto-400.woff) format("woff"); }

:root {
    --sans: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
    --menu: "Roboto", "Segoe UI", Arial, sans-serif;
    --amarillo: #ffc107;
    --amarillo-hover: #d39e00;
    --cyan: #17a2b8;
    --cyan-hover: #117a8b;
    --azul: #007bff;
    --pie: #1e1e1e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65714286;
    color: #fff;
    background: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; letter-spacing: .5px; }
h1 { font-size: 3.14285714em; line-height: 1.31818182; font-weight: 500; }
h3 { font-size: 1.78571429em; line-height: 1.5; font-weight: 500; }
h5 { font-size: 1.175rem; line-height: 1.8; font-weight: 600; }
.lead { font-size: 1.35714286em; line-height: 1.8; font-weight: 400; }
small { font-size: 80%; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ---------- LOGO SUPERIOR ---------- */
.barralogo {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 30;
    text-align: center;
    background: transparent;
    transition: background-color .3s;
}
.barralogo.fixed { background: #000; }
.ellogo { display: inline-block; }
.ellogo img { height: 120px; width: auto; padding: 10px; }

/* ---------- BOTÓN HAMBURGUESA ---------- */
#btn-hamburger {
    position: fixed;
    top: 40px;
    right: 30px;
    z-index: 32;
    padding: .6em;
    background: transparent;
    border: 3px solid #959595;
    border-radius: 50%;
    outline: 0;
    cursor: pointer;
}
#btn-hamburger:focus-visible { box-shadow: 0 0 0 2px #fff; }
#btn-hamburger span {
    display: block;
    width: 33px;
    height: 2px;
    margin: 6px 0;
    background: #fff;
    transition: .4s;
}
#btn-hamburger.animeOpenClose .line-1 { transform: rotate(-45deg) translate(-4px, 6px); }
#btn-hamburger.animeOpenClose .line-2 { opacity: 0; }
#btn-hamburger.animeOpenClose .line-3 { transform: rotate(45deg) translate(-4px, -6px); }

/* ---------- MENÚ LATERAL ---------- */
.contienemenu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 31;
    margin: 120px 20px 0 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width .3s ease, opacity .3s ease;
}
.contienemenu.expanded { width: 300px; opacity: 1; }
.elementomenu { margin-top: 10px; text-align: right; white-space: nowrap; }
.contienemenu a {
    display: inline-block;
    padding: 5px;
    font-family: var(--menu);
    font-size: 21px;
    line-height: 1.5;
    color: #fff;
    background: #000;
}
.contienemenu a:hover, .contienemenu a:focus-visible { background: #fff; color: var(--azul); outline: 0; }

/* ---------- BOTONES (como .btn de la plantilla) ---------- */
.btn {
    display: inline-block;
    padding: 12px 18px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: .42rem;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}
.btn-warning { background: var(--amarillo); border-color: var(--amarillo); color: #000; }
.btn-warning:hover { background: var(--amarillo-hover); border-color: var(--amarillo-hover); }
.btn-info { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.btn-info:hover { background: var(--cyan-hover); border-color: var(--cyan-hover); }

/* ---------- CAPA OSCURA SOBRE VIDEOS ---------- */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    pointer-events: none;
}

/* ---------- HOME: SLIDER DE VIDEOS ---------- */
.slider-inicio {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 420px;
    overflow: hidden;
    background: #000;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0s linear 1s;
}
.slide.activo { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
.slide video, .cabecera-work video, .seccion-contacto video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.slider-bullets {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bullet {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0);
    cursor: pointer;
    transition: box-shadow .3s;
}
.bullet span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transform: scale(.4);
    transition: background-color .3s, transform .3s;
}
.bullet:hover span { background: rgba(255, 255, 255, .5); transform: scale(.4); }
.bullet.activo { box-shadow: 0 0 0 2px #fff; }
.bullet.activo span { background: #fff; transform: scale(.4); }

/* ---------- WORK ---------- */
.seccion-work { padding: 190px 0 40px; background: #000; }
.page-title { text-align: center; margin-bottom: 70px; }
.grid-work {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.post-item-wrap { border: 1px solid #f2f2f2; background: #000; height: 100%; }
.post-image { display: block; overflow: hidden; }
.post-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.post-image:hover img { transform: scale(1.04); }
.post-item-description { padding: 24px; line-height: 28px; background: #000; }
.post-item-description h2 {
    font-size: 18px;
    line-height: 23px;
    font-weight: 600;
    letter-spacing: -.1px;
    margin-bottom: 16px;
}
.post-item-description h2 a:hover { opacity: .75; }

/* ---------- DETALLE DE UN TRABAJO (ver.php) ---------- */
.cabecera-work {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.slide-captions {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 15px 14vh;
    max-width: 1240px;
}
.slide-captions h2 { font-size: 60px; line-height: 68px; font-weight: 700; margin-bottom: 30px; color: #fff; }
.slide-captions h2.text-lg { font-size: 90px; line-height: 100px; letter-spacing: -.02em; margin-bottom: 10px; }

.seccion-negra { background: #000; padding: 40px 0; }
.informacion .col-info { max-width: 380px; }
.informacion h5 { color: #fff; }
.informacion p { font-size: 14px; letter-spacing: normal; margin-top: 1em; }
.seccion-video { padding-top: 0; }
.container-video { max-width: 1280px; margin: 0 auto 20px; padding: 0 15px; }

/* Video externo: solo se conecta a YouTube/Vimeo cuando el visitante presiona play */
.video-externo {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.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;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    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%); }

/* ---------- ABOUT ---------- */
.seccion-about { background: #000; padding: 0 15px 200px; }
.fila-about { display: flex; gap: 0; }
.about-texto { flex: 0 0 58.333%; max-width: 58.333%; padding: 166px 15px 0; text-align: justify; }
.about-texto h1 { color: #fff; margin-bottom: 0; }
.about-imagen { flex: 0 0 33.333%; max-width: 33.333%; margin-left: 8.333%; padding: 240px 15px 30px; }
.about-imagen img { width: 100%; height: auto; }
.botones-about {
    display: flex;
    padding-top: 24px;
    margin-left: 8.333%;
}
.botones-about .btn { flex: 0 0 auto; }
.botones-about .btn + .btn { margin-left: calc(33.333% - 64px); }

/* ---------- ORIGINAL CONTENT ---------- */
.seccion-content { background: #000; padding: 150px 15px 64px; }
.grid-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.content-item { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.content-poster img { width: 100%; height: auto; }
.content-texto { text-align: center; }
.content-texto h3 { color: #fff; }
.content-texto .lead { text-align: justify; margin-top: 8px; }
.content-texto p { margin-top: 24px; }
.botones-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; justify-items: center; }

/* ---------- REEL ---------- */
.seccion-reel { padding: 170px 0 6rem; }
.heading-text { text-align: center; margin-bottom: 30px; }
.heading-text h2 { font-size: 60px; line-height: 66px; letter-spacing: -.7px; font-weight: 600; color: #fff; }

/* ---------- CONTACT ---------- */
.fullscreen {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
}
.seccion-contacto .icon-box {
    position: relative;
    z-index: 2;
    margin-left: 16.666%;
    padding: 0 15px;
    margin-bottom: 18vh;
}
.icon-box a { display: block; width: max-content; margin-bottom: 18px; }
.imagenes_accion { width: 70px; height: auto; padding: 5px; transition: transform .2s; }
.icon-box a:hover .imagenes_accion { transform: scale(1.08); }

/* Contacto en pantallas verticales (celular / tablet): el video empieza debajo del logo
   y se encuadra sobre la persona (su rostro está al 66% del ancho, arriba);
   los íconos pasan a una fila centrada abajo, sobre la zona oscura del piso. */
@media (orientation: portrait) {
    .seccion-contacto { --tope: 140px; align-items: flex-end; justify-content: center; }
    .seccion-contacto video { top: var(--tope); height: calc(100% - var(--tope)); object-position: 66% 0; }
    .seccion-contacto::before,
    .seccion-contacto::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
    .seccion-contacto::before { top: var(--tope); height: 50px; background: linear-gradient(#000, rgba(0, 0, 0, 0)); }
    .seccion-contacto::after { bottom: 0; height: 35%; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .65)); }
    .fullscreen.seccion-contacto .icon-box {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin: 0 auto 8vh;
        padding: 0;
    }
    .seccion-contacto .icon-box a { margin-bottom: 0; }
    .seccion-contacto .imagenes_accion { width: 64px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
}
@media (orientation: portrait) and (max-width: 575px) {
    .seccion-contacto { --tope: 110px; }
}

/* ---------- PIE ---------- */
#footer {
    min-height: 80px;
    padding: 30px 15px;
    background: var(--pie);
    font-size: 13px;
    line-height: 32px;
    text-align: center;
    color: #fff;
}

/* ---------- SUBIR ---------- */
#scrollTop {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background: rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { background: rgba(0, 0, 0, .6); }
#scrollTop svg { width: 20px; height: 20px; }

/* ---------- ANIMACIONES AL APARECER (equivalentes a animate.css) ---------- */
.js .anim { opacity: 0; }
.js .anim.visible { opacity: 1; animation-duration: 1s; animation-fill-mode: both; }
.anim.visible[data-animate="fadeIn"] { animation-name: fadeIn; }
.anim.visible[data-animate="fadeInUp"] { animation-name: fadeInUp; }
.anim.visible[data-animate="bounce"] { animation-name: bounce; transform-origin: center bottom; }
.anim.visible[data-animate="bounceInLeft"] { animation-name: bounceInLeft; }
.anim.visible[data-animate="bounceInRight"] { animation-name: bounceInRight; }
.anim.visible[data-animate="flipInY"] { animation-name: flipInY; backface-visibility: visible; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes bounce {
    from, 20%, 53%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); transform: translate3d(0, 0, 0); }
    40%, 43% { animation-timing-function: cubic-bezier(.755, .05, .855, .06); transform: translate3d(0, -30px, 0) scaleY(1.1); }
    70% { animation-timing-function: cubic-bezier(.755, .05, .855, .06); transform: translate3d(0, -15px, 0) scaleY(1.05); }
    80% { transform: translate3d(0, 0, 0) scaleY(.95); }
    90% { transform: translate3d(0, -4px, 0) scaleY(1.02); }
}
@keyframes bounceInLeft {
    from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
    0% { opacity: 0; transform: translate3d(-3000px, 0, 0) scaleX(3); }
    60% { opacity: 1; transform: translate3d(25px, 0, 0) scaleX(1); }
    75% { transform: translate3d(-10px, 0, 0) scaleX(.98); }
    90% { transform: translate3d(5px, 0, 0) scaleX(.995); }
    to { transform: none; }
}
@keyframes bounceInRight {
    from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
    from { opacity: 0; transform: translate3d(3000px, 0, 0) scaleX(3); }
    60% { opacity: 1; transform: translate3d(-25px, 0, 0) scaleX(1); }
    75% { transform: translate3d(10px, 0, 0) scaleX(.98); }
    90% { transform: translate3d(-5px, 0, 0) scaleX(.995); }
    to { transform: none; }
}
@keyframes flipInY {
    from { transform: perspective(400px) rotate3d(0, 1, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
    40% { transform: perspective(400px) rotate3d(0, 1, 0, -20deg); animation-timing-function: ease-in; }
    60% { transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }
    to { transform: perspective(400px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .anim, .js .anim.visible { opacity: 1; animation: none !important; }
    .slide { transition: none; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1240px) {
    .slide-captions h2.text-lg { font-size: 70px; line-height: 80px; }
    .slide-captions h2 { font-size: 46px; line-height: 54px; }
}
@media (max-width: 1023px) {
    .slider-bullets { display: none; }
}
@media (max-width: 991px) {
    .fila-about { flex-direction: column; }
    .about-texto, .about-imagen { flex: none; max-width: 100%; margin-left: 0; }
    .about-texto { padding-top: 150px; }
    .about-imagen { padding: 30px 15px; max-width: 400px; }
    .botones-about { margin-left: 0; padding: 0 15px; gap: 20px; }
    .botones-about .btn + .btn { margin-left: 0; }
    .seccion-about { padding-bottom: 80px; }
    .grid-content { grid-template-columns: 1fr; }
    .seccion-contacto .icon-box { margin-left: 0; }
}
@media (max-width: 767px) {
    .grid-work { grid-template-columns: 1fr; }
    .seccion-work { padding-top: 150px; }
    .page-title { margin-bottom: 40px; }
    .slide-captions h2.text-lg { font-size: 44px; line-height: 50px; }
    .slide-captions h2 { font-size: 26px; line-height: 32px; }
    .heading-text h2 { font-size: 40px; line-height: 44px; }
    .seccion-reel { padding-top: 140px; }
}
@media (max-width: 575px) {
    .ellogo img { height: 90px; }
    #btn-hamburger { top: 24px; right: 16px; }
    .contienemenu { margin-top: 96px; margin-right: 12px; }
    .contienemenu.expanded { width: calc(100vw - 24px); max-width: 300px; }
    .contienemenu a { font-size: 19px; }
    .content-item { grid-template-columns: 1fr; }
    .content-poster { max-width: 360px; margin: 0 auto; }
    .lead { font-size: 1.15em; }
    h1 { font-size: 2.4em; }
    #scrollTop { right: 16px; bottom: 16px; }
}
