/*
 * Aproscom Hero
 * Hero con vídeo de fondo.
 */


/* =========================================================
   Contenedor principal
   ========================================================= */

.aproscom-video-hero {
    position: relative;

    width: 100%;
    height: 650px;
    min-height: 500px;

    overflow: hidden;

    background: #222;
}


/* =========================================================
   Vídeo
   ========================================================= */

.aproscom-video-hero__video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    z-index: 1;
}


/* =========================================================
   Capa oscura
   ========================================================= */

.aproscom-video-hero__overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.42);

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   Contenido
   ========================================================= */

.aproscom-video-hero__content {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 40px;

    text-align: center;
}


/* =========================================================
   Título
   ========================================================= */

.aproscom-video-hero__title {
    margin: 0;

    color: #fff;

    font-size: clamp(2rem, 3.3vw, 3.7rem);

    font-weight: 300;

    line-height: 1.2;

    letter-spacing: 0;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   Flecha inferior
   ========================================================= */

.aproscom-video-hero__scroll {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    z-index: 4;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #fff;

    font-size: 32px;
    line-height: 1;

    text-decoration: none;

    opacity: 0.95;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.aproscom-video-hero__scroll:hover {
    color: #fff;

    opacity: 1;

    transform: translateX(-50%) translateY(3px);
}


/* =========================================================
   Responsive tablet
   ========================================================= */

@media (max-width: 1024px) {

    .aproscom-video-hero {
        height: 600px;
    }

    .aproscom-video-hero__content {
        padding: 35px;
    }

}


/* =========================================================
   Responsive móvil
   ========================================================= */

@media (max-width: 768px) {

    .aproscom-video-hero {
        height: 520px;
        min-height: 420px;
    }

    .aproscom-video-hero__content {
        padding: 25px;
    }

    .aproscom-video-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);

        line-height: 1.15;
    }

    .aproscom-video-hero__scroll {
        bottom: 12px;

        font-size: 28px;
    }

}


/* =========================================================
   Pantallas pequeñas
   ========================================================= */

@media (max-width: 480px) {

    .aproscom-video-hero {
        height: 460px;
        min-height: 400px;
    }

    .aproscom-video-hero__content {
        padding: 20px;
    }

}


/* =========================================================
   Accesibilidad:
   reducir movimiento si el usuario lo solicita
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .aproscom-video-hero__scroll {
        transition: none;
    }

}

/* =========================================================
   Videos en Youtube:
   Embeded
   ========================================================= */

.aproscom-video-hero__youtube {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 177.77777778vh;
    height: 56.25vw;

    min-width: 100%;
    min-height: 100%;

    transform: translate(-50%, -50%);

    border: 0;

    pointer-events: none;

    z-index: 1;
}