* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
}


/* ================================
   SLIDER PRINCIPAL
================================ */

.galeria-cinematica {
    width: 100%;
    background: #111;
}

.slider-principal {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
}

.slider-principal > img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        opacity .5s ease,
        transform 1.2s ease;
}

.slider-principal:hover > img {
    transform: scale(1.03);
}


/* OSCURECER IMAGEN */

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.9),
            rgba(0,0,0,.15) 65%
        );
}


/* TEXTO */

.contenido-slide {
    position: absolute;

    left: 7%;
    bottom: 12%;

    max-width: 650px;

    color: white;

    z-index: 3;
}

.categoria {
    font-size: 13px;

    letter-spacing: 3px;

    opacity: .8;
}

.contenido-slide h2 {
    margin: 12px 0;

    font-size: clamp(35px, 5vw, 70px);

    line-height: 1;
}

.contenido-slide p {
    font-size: 18px;

    opacity: .85;

    margin-bottom: 25px;
}


/* BOTÓN */

#btnGaleria {
    border: 1px solid rgba(255,255,255,.8);

    background: rgba(0,0,0,.3);

    color: white;

    padding: 14px 28px;

    text-transform: uppercase;

    letter-spacing: 2px;

    cursor: pointer;

    transition: .3s;
}

#btnGaleria:hover {
    background: white;

    color: black;
}


/* ================================
   FLECHAS
================================ */

.flecha {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 55px;
    height: 70px;

    border: 0;

    background: rgba(0,0,0,.35);

    color: white;

    font-size: 30px;

    cursor: pointer;

    transition: .3s;
}

.flecha:hover {
    background: rgba(0,0,0,.75);
}

.anterior {
    left: 20px;
}

.siguiente {
    right: 20px;
}


/* CONTADOR */

.contador-slide {
    position: absolute;

    right: 7%;
    bottom: 12%;

    color: white;

    font-size: 17px;

    letter-spacing: 3px;

    z-index: 4;
}


/* ================================
   MINIATURAS
================================ */

.miniaturas {
    display: flex;

    gap: 12px;

    padding: 20px 7%;

    overflow-x: auto;

    background: #111;
}

.miniatura {
    flex: 0 0 160px;

    height: 95px;

    cursor: pointer;

    opacity: .45;

    border: 2px solid transparent;

    transition: .3s;
}

.miniatura img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.miniatura:hover {
    opacity: .8;
}

.miniatura.activa {
    opacity: 1;

    border-color: white;
}


/* ================================
   FULLSCREEN
================================ */

.fullscreen {
    position: fixed;

    inset: 0;

    z-index: 9999;

    background: rgba(0,0,0,.98);

    display: flex;

    align-items: center;

    justify-content: center;

    visibility: hidden;

    opacity: 0;

    transition: opacity .4s ease;
}

.fullscreen.activo {
    visibility: visible;

    opacity: 1;
}


/* CONTENIDO FULLSCREEN */

.fullscreen-contenido {
    width: 85%;

    height: 88vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}

.fullscreen-contenido img {
    max-width: 100%;

    max-height: 75vh;

    object-fit: contain;

    transition: opacity .3s ease;
}


/* INFORMACIÓN */

.fullscreen-info {
    text-align: center;

    color: white;

    margin-top: 18px;
}

.fullscreen-info h2 {
    margin: 0 0 6px;

    font-size: 25px;
}

.fullscreen-info p {
    margin: 0;

    opacity: .7;
}

.fullscreen-contador {
    margin-top: 12px;

    letter-spacing: 3px;

    opacity: .8;
}


/* BOTÓN CERRAR */

.cerrar {
    position: absolute;

    top: 20px;
    right: 30px;

    border: 0;

    background: transparent;

    color: white;

    font-size: 45px;

    cursor: pointer;

    z-index: 10;
}


/* FLECHAS FULLSCREEN */

.fullscreen-flecha {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 60px;
    height: 80px;

    border: 0;

    background: rgba(255,255,255,.08);

    color: white;

    font-size: 32px;

    cursor: pointer;

    transition: .3s;
}

.fullscreen-flecha:hover {
    background: rgba(255,255,255,.2);
}

.fullscreen-anterior {
    left: 25px;
}

.fullscreen-siguiente {
    right: 25px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {

    .slider-principal {
        height: 70vh;
        min-height: 500px;
    }

    .contenido-slide {
        left: 25px;
        right: 25px;
        bottom: 80px;
    }

    .contenido-slide h2 {
        font-size: 35px;
    }

    .contenido-slide p {
        font-size: 16px;
    }

    .flecha {
        width: 45px;
        height: 55px;
    }

    .anterior {
        left: 5px;
    }

    .siguiente {
        right: 5px;
    }

    .contador-slide {
        right: 25px;
        bottom: 30px;
    }

    .miniaturas {
        padding: 15px;
    }

    .miniatura {
        flex-basis: 110px;
        height: 70px;
    }

    .fullscreen-contenido {
        width: 95%;
    }

    .fullscreen-flecha {
        width: 40px;
        height: 60px;
    }

    .fullscreen-anterior {
        left: 5px;
    }

    .fullscreen-siguiente {
        right: 5px;
    }
}