/* =========================================================
   HIGH VOLTAGE
   SOBRE HIGH VOLTAGE: UN CENTRO DE BARRIO
   Sustituye a los estilos .about-hv de styles.css
   ========================================================= */

.hv-about {
    position: relative;
    background-color: #e4e4e4;
    color: #000;
    padding: 110px 0 120px;
}

.hv-about .wrapper-main {
    max-width: 1180px;
}


/* =========================
   INTRO
   ========================= */

.hv-about__intro {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 70px;
}

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

    font-size: 7.5rem;
    line-height: .78;
    letter-spacing: -.02em;

    color: #000;
}

.hv-about__title span:last-child {
    color: var(--rojo);
}

.hv-about__description {
    max-width: 380px;
    padding-bottom: 10px;

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

    color: #1d1d1b;
}


/* =========================
   FOTOS + MAPA
   Foto grande a la izquierda; a la derecha, la gente y el barrio
   ========================= */

.hv-about__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 18px;
}

.hv-about__photo--main {
    grid-row: 1 / span 2;
}

.hv-about__photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    background-color: #1d1d1b;
}

.hv-about__photo img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Hueco sin foto todavía */
.hv-about__photo.is-empty {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath d='M38 2 L4 58 H27 L18 98 L56 38 H33 Z' fill='none' stroke='%23bd1622' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px auto no-repeat,
        #1d1d1b;
}


/* Mapa del barrio */
.hv-about__map {
    position: relative;
    overflow: hidden;
    background-color: #cfcfcf;
}

.hv-about__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;

    /* En blanco y negro para que vaya con la web */
    filter: grayscale(1) contrast(1.05);
}

/* Etiqueta con la dirección encima del mapa */
.hv-about__place {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;

    padding: 16px 18px;

    color: #fff;
    background-color: #000;
    border-left: 5px solid var(--rojo);
}

.hv-about__place > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hv-about__place-kicker {
    font-family: 'Roboto', sans-serif;
    font-size: .8rem;
    font-weight: 700;

    color: #a39e93;
}

.hv-about__place-name {
    font-size: 2rem;
    line-height: .95;
}

.hv-about__place-area {
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;

    color: #e6e6e6;
}

.hv-about__place-link {
    flex-shrink: 0;

    padding: 10px 14px 8px;

    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;

    color: #fff;
    background-color: var(--rojo);
    transition: background-color .25s ease, color .25s ease;
}

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

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


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

@media (max-width: 1000px) {

    .hv-about__title {
        font-size: 6rem;
    }

    .hv-about__intro {
        grid-template-columns: 1fr .8fr;
        gap: 35px;
    }

    .hv-about__grid {
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: 240px 240px;
    }

    .hv-about__place {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hv-about__place-name {
        font-size: 1.7rem;
    }
}


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

@media (max-width: 768px) {

    .hv-about {
        padding: 80px 0 100px;
    }

    .hv-about__intro {
        display: block;
        margin-bottom: 45px;
    }

    .hv-about__title {
        font-size: 5.5rem;
        margin-bottom: 30px;
    }

    .hv-about__description {
        font-size: 1.15rem;
    }

    .hv-about__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 380px 240px 300px;
        gap: 12px;
    }

    .hv-about__photo--main {
        grid-row: auto;
    }

    .hv-about__place {
        flex-direction: row;
        align-items: flex-end;
    }
}


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

@media (max-width: 550px) {

    .hv-about {
        padding: 65px 0 85px;
    }

    .hv-about__title {
        font-size: 4.2rem;
        line-height: .8;
    }

    .hv-about__grid {
        grid-template-rows: 300px 220px 300px;
    }

    .hv-about__place {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}