@charset "UTF-8";
/* CSS Document */

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #000;
}


/* =========================
   VIDEO
========================= */

.video-bg {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    /* Evita pequeños espacios o comportamientos raros */
    display: block;
}


/* =========================
   DEGRADADO
========================= */

.overlay {
    position: fixed;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.00) 35%,
            rgba(0, 0, 0, 0.05) 60%,
            rgba(0, 0, 0, 0.55) 100%
        );
}


/* =========================
   CONTENIDO
========================= */

.contenido {
    position: relative;

    width: 100%;
    height: 100dvh;

    z-index: 2;
}


/* =========================
   LOGO
========================= */

.logo {
    position: absolute;

    top: 40px;
    left: 47px;

    display: block;

    text-decoration: none;

    animation: aparecerLogo 0.8s ease-out both;
}

.logo img {
    display: block;

    width: 243px;
    height: auto;

    max-width: 30vw;
}


/* =========================
   REDES
========================= */

.redes {
    position: absolute;

    left: 50%;
    bottom: max(50px, env(safe-area-inset-bottom));

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 30px;

    animation: aparecerRedes 0.8s 0.2s ease-out both;
}


/* =========================
   BOTONES
========================= */

.social {
    width: 62px;
    height: 62px;

    border-radius: 50%;

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

    background: rgba(0, 0, 0, 0.88);

    color: #fff;

    text-decoration: none;

    font-size: 27px;

    /* Para que no se vea demasiado "botón web" */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


/* Hover únicamente en dispositivos que tienen mouse */

@media (hover: hover) {

    .social:hover {
        transform: translateY(-5px) scale(1.08);

        background: rgba(0, 0, 0, 1);
    }

}


/* =========================
   ANIMACIONES
========================= */

@keyframes aparecerLogo {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes aparecerRedes {

    from {
        opacity: 0;
        transform: translate(-50%, 15px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .logo {
        top: 30px;
        left: 30px;
    }

    .logo img {
        width: 190px;
        max-width: 40vw;
    }

    .redes {
        gap: 22px;
    }

    .social {
        width: 56px;
        height: 56px;

        font-size: 24px;
    }

}


/* =========================
   MÓVIL
========================= */

@media (max-width: 600px) {

    .overlay {
        background:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.35) 0%,
                rgba(0, 0, 0, 0.00) 40%,
                rgba(0, 0, 0, 0.65) 100%
            );
    }


    .logo {
        top: max(24px, env(safe-area-inset-top));
        left: 24px;
    }

    .logo img {
        width: 155px;
        max-width: 45vw;
    }


    .redes {
        bottom: max(25px, env(safe-area-inset-bottom));

        gap: 14px;
    }


    .social {
        width: 48px;
        height: 48px;

        font-size: 21px;
    }

}


/* =========================
   MÓVIL MUY PEQUEÑO
========================= */

@media (max-width: 380px) {

    .logo {
        left: 18px;
    }

    .logo img {
        width: 135px;
    }

    .redes {
        gap: 10px;
    }

    .social {
        width: 44px;
        height: 44px;

        font-size: 19px;
    }

}
