/*CSS Liminal Proyect*/

html {
    scroll-behavior: smooth;
}

p {
    font-size: 17px;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #151515;
    color: #fff7e8;
    cursor: url("../imagenes/cursor.png") 16 16, auto;
}

a,
button,
.galeria-img,
.galeria-img:hover,
.galeria img,
.galeria img:hover,
.whatsapp-float {
    cursor: url("../imagenes/cursor.png") 16 16, pointer !important;
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

p {
    font-family: 'Inter', sans-serif;
}

body.modal-open .whatsapp-float {
    display: none;
}

.navbar {
    background: #151515;
    min-height: 70px;
}

.navbar-logo img {
    width: 120px;
}

.nav-link {
    color: #fff7e8;
    font-weight: 700;
    margin: 0 18px;
    font-size: 14px;
    position: relative;
}

.nav-link:hover {
    color: #d34b2d;
}

.nav-link.activo {
    color: #d34b2d !important;
}

.nav-link.activo::after {
    width: 100%;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #d34b2d;
    transition: .3s;
}

.nav-link:hover::after {
    width: 100%;
}

section[id] {
    scroll-margin-top: 85px;
}

.video {
    position: relative;
    height: 88vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.logo-header {
    position: relative;
    z-index: 2;
    width: 260px;
}

.instagram-link {
    color: #fff7e8;
    font-size: 28px;
    opacity: .8;
    transition: .3s ease;
}

.instagram-link:hover {
    opacity: 1;
    color: #d85c3d;
}

.nosotros {
    min-height: 760px;
    background-image: url("../imagenes/foto-nosotros.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px;
}

.nosotros p,
.mision p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 650px;
}

.nosotros h2,
.mision h2,
.contacto h2,
.galeria h2,
.servicios h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

.galeria img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.modal-cine {
    background: rgba(0, 0, 0, .92);
}

.modal-cine .modal-content {
    background: transparent;
    border: none;
}

.imagen-cine {
    animation: aparecerFoto .25s ease;
}

@keyframes aparecerFoto {
    from {
        opacity: 0;
        transform: scale(.98);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

#imagenModal {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.contenedor-modal {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flecha-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(21, 21, 21, .55);
    border: 1px solid rgba(255, 247, 232, .25);
    color: #fff7e8;
    font-size: 32px;
    cursor: pointer;
    transition: .3s ease;
}

.flecha-modal:hover {
    background: #d34b2d;
    color: #fff7e8;
    transform: translateY(-50%) scale(1.08);
}

.flecha-izquierda {
    left: 15px;
}

.flecha-derecha {
    right: 15px;
}

.mision {
    min-height: 760px;
    background-image: url("../imagenes/foto10.jpg");
    background-size: cover;
    background-position: center;
    padding-top: 90px;
    position: relative;
    overflow: hidden;

}

.mision::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(21, 21, 21, .85) 0%,
            rgba(21, 21, 21, .65) 40%,
            rgba(21, 21, 21, .25) 75%,
            rgba(21, 21, 21, 0) 100%);
    z-index: 1;
}

.mision .container {
    position: relative;
    z-index: 2;
}

.mision h2,
.mision p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
}

.galeria {
    position: relative;
    z-index: 1;
}

.galeria::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom,
            transparent,
            #151515);
}

.mision-texto {
    max-width: 580px;
}

.galeria-img {
    cursor: pointer;
    transition: transform .3s ease, filter .3s ease;
    opacity: 1;
    filter: brightness(1.15) contrast(1.05);
}

.galeria-img:hover {
    transform: scale(1.02);
    filter: brightness(1.18) contrast(1.08);
}

.modal-content img {
    max-height: 90vh;
    object-fit: contain;
}

.servicios img {
    width: 100%;
    margin-top: 20px;
}

.laboratorio {
    border-right: 3px solid #fff7e8;
    padding-right: 40px;
}

.renta {
    padding-left: 60px;
}

.servicios h3 {
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.servicios h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
            #b4382c,
            #d85c3d,
            #c8a14a);
}

.contacto form {
    max-width: 620px;
    position: relative;
    padding: 20px 0;
}

.contacto form::before,
.contacto form::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
}

.contacto form::before {
    top: 0;
    background: linear-gradient(to right,
            #d12b2b 0%,
            #f56b2a 50%,
            #7a6419 100%);
}

.contacto form::after {
    bottom: 0;
    background: linear-gradient(to right,
            #d12b2b 0%,
            #f56b2a 50%,
            #7a6419 100%);
}

.contacto label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

.contacto input,
.contacto textarea {
    width: 100%;
    border: none;
    padding: 10px;
    background: #f2f2f2;
}

.contacto textarea {
    height: 120px;
}

.contacto button {
    margin-top: 15px;
    background: #d84b28;
    color: #fff7e8;
    border: none;
    border-radius: 20px;
    padding: 5px 25px;
    font-weight: 700;
}

.footer {
    background: #151515;
    padding: 80px 20px 35px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-frase {
    margin-top: 25px;
    color: #fff7e8;
    opacity: .8;
}

.footer-links {
    margin: 35px 0 25px;
}

.footer-links a {
    color: #fff7e8;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: .3s;
}

.footer-links a:hover {
    color: #d34b2d;
}

.footer-social a {
    color: #fff7e8;
    font-size: 26px;
    transition: .3s;
}

.footer-social a:hover {
    color: #d34b2d;
}

.footer-copy {
    margin-top: 30px;
    font-size: 13px;
    opacity: .6;
}

.footer img {
    width: 355px;
    max-width: 100%;
}

.animar {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(8px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #b4382c, #d85c3d, #c8a14a);
    color: #fff7e8;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .35);
    font-weight: 700;
    white-space: nowrap;
    transition: .3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff7e8;
}

.whatsapp-float img {
    width: 45px;
    height: 45px;
}

.volver-arriba {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .3s;
}

.volver-arriba.mostrar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.modal-open .volver-arriba {
    display: none;
}

/* RESPONSIVE MÓVIL */

@media (max-width: 1199px) {

    .laboratorio {
        border-right: none;
        padding-right: 0;
        margin-bottom: 50px;
    }

    .renta {
        padding-left: 0;
    }
}

@media (max-width: 992px) {

    .servicios img {
        margin-bottom: 45px;
    }

    .renta {
        margin-top: 40px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        padding: 0;

        border-radius: 50%;

        justify-content: center;

        right: 15px;
        bottom: 15px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }

        .mision::before {
        background: rgba(0, 0, 0, .45);
    }

}

@media (max-width: 768px) {
    .nosotros {
        min-height: 650px;
        padding: 320px 18px 35px;
        background-size: cover;
        background-position: center top;
    }

    .mision {
        min-height: 650px;
        padding: 35px 18px 320px;
        background-size: cover;
        background-position: center bottom;
    }

    .galeria img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .renta {
        padding-left: 0;
    }

    .logo-header {
        width: 190px;
    }

    .navbar-logo img {
        width: 95px;
    }

    .video {
        height: 70vh;
    }

    h3 {
        margin-top: 25px;
    }

    .laboratorio {
        border-right: none;
        border-bottom: 3px solid #fff7e8;
        padding-right: 0;
        padding-bottom: 35px;
        margin-bottom: 35px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }

    .instagram-link {
        margin-top: 15px;
        display: inline-block;
    }

    .footer-links a {
        display: block;
        margin: 12px 0;
    }

    .flecha-modal {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .flecha-izquierda {
        left: 10px;
    }

    .flecha-derecha {
        right: 10px;
    }

    .imagen-cine {
        max-width: 90vw;
        max-height: 70vh;
    }

    .volver-arriba {
        display: flex;
        align-items: center;
        justify-content: center;

        position: fixed;
        left: 15px;
        bottom: 15px;
        z-index: 9999;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: linear-gradient(135deg,
                #b4382c,
                #d85c3d,
                #c8a14a);
        color: #fff7e8;
        text-decoration: none;
        font-size: 28px;
        font-weight: bold;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .35);
        transition: .3s ease;
    }

    .volver-arriba:hover {
        transform: translateY(-3px);
        color: #fff7e8;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .volver-arriba {
        display: flex;
        align-items: center;
        justify-content: center;

        position: fixed;
        left: 20px;
        bottom: 20px;
        z-index: 9999;

        width: 65px;
        height: 65px;

        border-radius: 50%;

        background: linear-gradient(135deg, #b4382c, #d85c3d, #c8a14a);

        color: #fff7e8;
        text-decoration: none;

        font-size: 32px;
        font-weight: bold;

        box-shadow: 0 4px 15px rgba(0, 0, 0, .35);
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

@media (min-width: 1200px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
        background: rgba(21, 21, 21, .95);
        backdrop-filter: blur(10px);
    }

    .header {
        padding-top: 70px;
    }
}

/* Ajuste iPad / tablets */
@media (max-width: 1366px) and (pointer: coarse) {
    .servicios .row {
        display: flex !important;
        flex-direction: column !important;
    }

    .servicios .laboratorio,
    .servicios .renta {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .servicios .laboratorio {
        border-right: none !important;
        border-bottom: none !important;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .servicios .renta {
        padding-left: 0 !important;
        margin-top: 70px !important;
    }

    .servicios img {
        margin-bottom: 70px !important;
    }
}