/* =========================================================
   HIGH VOLTAGE
   PORTADA
   Sustituye a los estilos .hero-hv de styles.css
   ========================================================= */

.hv-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    min-height: 100vh;
    min-height: 100svh;
    padding-top: 80px;              /* alto de la cabecera fija */

    color: #fff;
    background-color: #000;
    overflow: hidden;
}

/* Foto de fondo */
.hv-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;
    max-width: none;

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

/* Oscurecido para que el texto se lea siempre */
.hv-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 32%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, 0) 65%);
}


/* =========================
   TEXTO
   ========================= */

.hv-hero__content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 0 56px;
}

.hv-hero__title {
    display: flex;
    flex-direction: column;

    font-size: clamp(4rem, 8vw, 8.5rem);
    line-height: .8;
    letter-spacing: -.02em;

    color: #fff;
}

.hv-hero__line:nth-child(2) {
    color: var(--rojo);
}

.hv-hero__lead {
    max-width: 440px;
    margin-top: 28px;

    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.45;

    color: #e6e6e6;
}

.hv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}

.hv-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 26px 13px;

    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: .04em;
    text-decoration: none;

    border: 2px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.hv-hero__btn--primary {
    color: #fff;
    background-color: var(--rojo);
    border-color: var(--rojo);
}

.hv-hero__btn--primary:hover,
.hv-hero__btn--primary:focus-visible {
    color: #000;
    background-color: #fff;
    border-color: #fff;
}

.hv-hero__btn--ghost {
    color: #fff;
    border-color: #fff;
}

.hv-hero__btn--ghost:hover,
.hv-hero__btn--ghost:focus-visible {
    color: #000;
    background-color: #fff;
}

.hv-hero__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}


/* =========================
   BARRA DE DATOS
   ========================= */

.hv-hero__facts {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    list-style: none;
    margin: 0;
    padding: 0 calc((100% - min(90%, 1180px)) / 2);

    background-color: #000;
    border-top: 4px solid var(--rojo);
}

.hv-hero__facts li {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 22px 24px 20px;

    border-left: 1px solid rgba(255, 255, 255, .15);
}

.hv-hero__facts li:first-child {
    padding-left: 0;
    border-left: 0;
}

.hv-hero__facts span {
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;

    color: #a39e93;
}

.hv-hero__facts strong {
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;

    color: #fff;
}


/* =========================
   ENTRADA: el título se enciende con un chispazo
   (solo al cargar, una vez)
   ========================= */

@keyframes hvSurge {
    0%        { opacity: 0; }
    6%        { opacity: 1; }
    10%       { opacity: .1; }
    16%       { opacity: 1; }
    22%       { opacity: .35; }
    28%, 100% { opacity: 1; }
}

@keyframes hvRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.hv-hero__line {
    animation: hvSurge 1.2s linear both;
}

.hv-hero__line:nth-child(2) {
    animation-delay: .25s;
}

.hv-hero__lead,
.hv-hero__actions {
    animation: hvRise .6s ease 1s both;
}

.hv-hero__actions {
    animation-delay: 1.15s;
}

@media (prefers-reduced-motion: reduce) {
    .hv-hero__line,
    .hv-hero__lead,
    .hv-hero__actions {
        animation: none;
    }
}


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

@media (max-width: 1000px) {

    .hv-hero__facts strong {
        font-size: 1.35rem;
    }

    .hv-hero__facts li {
        padding: 18px 16px 16px;
    }
}


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

@media (max-width: 768px) {

    .hv-hero {
        padding-top: 70px;
    }

    .hv-hero__bg {
        object-position: 58% center;
    }

    .hv-hero__content {
        width: 92%;
        padding: 40px 0 36px;
    }

    .hv-hero__title {
        font-size: clamp(3.2rem, 14vw, 5rem);
    }

    .hv-hero__lead {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .hv-hero__actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 26px;
    }

    .hv-hero__btn {
        font-size: 1.35rem;
    }

    .hv-hero__facts {
        grid-template-columns: 1fr;
        padding: 0 4%;
    }

    .hv-hero__facts li,
    .hv-hero__facts li:first-child {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;

        padding: 14px 0 12px;

        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .hv-hero__facts li:first-child {
        border-top: 0;
    }

    .hv-hero__facts strong {
        font-size: 1.3rem;
        text-align: right;
    }
}