/* =====================================================
   DEMOKA CORE - HOME
===================================================== */

/* PORTADA PRINCIPAL */

.demoka-home-hero-code {
    position: relative;
    width: 100%;
    height: 78vh;
    max-height: 78vh;
    min-height: 560px;
    overflow: hidden;
    background: #000;
}

.demoka-home-hero-poster,
.demoka-home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demoka-home-hero-poster {
    z-index: 1;
}

.demoka-home-hero-video {
    z-index: 2;
    opacity: 0;
    background: transparent;
    transition: opacity .35s ease;
}

.demoka-home-hero-video.is-loaded {
    opacity: 1;
}

.demoka-home-hero-code::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: rgba(0,0,0,.28);
}

.demoka-home-hero-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 3%;
}

.demoka-home-hero-text {
    width: min(100%, 980px);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TITULARES */

.demoka-home-hero-code .texto-barrido {
    position: relative;
    display: block;
    width: fit-content;
    min-height: .9em;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.demoka-home-hero-content h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 .04em;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(44px, 7.1vw, 112px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.052em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 3px 16px rgba(0,0,0,.34);
    white-space: nowrap;
}

.demoka-home-hero-code .texto-barrido h2::before {
    content: none;
}

.demoka-home-hero-code
.texto-barrido--franja h2::before {
    content: "";
    position: absolute;
    left: -.03em;
    right: -.03em;
    top: 54%;
    height: .9em;
    background: #f7b817;
    transform: translateY(-50%);
    z-index: -1;
}

.demoka-home-hero-content h1 {
    max-width: 720px;
    margin: 18px 0 0;
    padding: 0;
    font-family: Avenir, Montserrat, Arial, sans-serif;
    font-size: clamp(16px, 1.55vw, 25px);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.38);
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .demoka-home-hero-code {
        height: 58vh;
        max-height: 58vh;
        min-height: 390px;
    }

    .demoka-home-hero-video {
        display: none;
    }

    .demoka-home-hero-poster {
        z-index: 2;
        opacity: 1;
    }

    .demoka-home-hero-content {
        padding: 0 18px;
    }

    .demoka-home-hero-text {
        width: 100%;
        min-height: 190px;
    }

    .demoka-home-hero-content h2 {
        max-width: 100%;
        font-size: clamp(30px, 10.3vw, 43px);
        line-height: .98;
        letter-spacing: -.055em;
        padding: 0 .08em;
    }

    .demoka-home-hero-code
    .texto-barrido--franja h2::before {
        top: 55%;
        height: .9em;
    }

    .demoka-home-hero-content h1 {
        max-width: 92%;
        margin-top: 14px;
        font-size: 16px;
    }

    /* AJUSTES GENERALES DE HOME */

    .demoka-subtexto {
        font-size: 18px !important;
        line-height: 1.45 !important;
        text-align: left !important;
    }

    .dmk-home-service-box__top small {
        font-size: 13px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.045em !important;
    }

    .dmk-home-service-box__content strong {
        font-size: 28px !important;
        line-height: 0.95 !important;
    }

    .dmk-home-service-box__content em {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 390px) {
    .demoka-home-hero-content h2 {
        font-size: clamp(31px, 11.5vw, 48px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .demoka-home-hero-video {
        transition: none;
    }
}