/* ===========================================
   FARESTAIE — Bloques Gutenberg — Frontend
   =========================================== */

/* -----------------------------------------------
   BLOQUE 1: Banner con Texto
   image bg full-width + overlay box + richtext
   ----------------------------------------------- */

.farestaie-banner-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.farestaie-banner-wrap.no-image {
    background-color: #c8c8c8;
}

.farestaie-banner-overlay {
    position: absolute;
    /* Figma: left 363.63/1400 ≈ 26%, width 952.74/1400 ≈ 68%, top 268/500 ≈ 53.6% centrado */
    left: 26%;
    top: 50%;
    transform: translateY(-50%);
    width: 68%;
    min-height: 289px;
    border-top-left-radius: 65px;
    border-bottom-right-radius: 65px;
    padding: 40px 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.farestaie-banner-richtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 27.17px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0;
    text-align: center;
    color: #ffffff;
    margin: 0;
}

.farestaie-banner-richtext strong,
.farestaie-banner-richtext b {
    font-weight: 500;
    font-size: 31px;
    line-height: 40px;
}

/* -----------------------------------------------
   BLOQUE 2: Lista + Imagen
   left: title + list items | right: image
   ----------------------------------------------- */

.farestaie-lista-wrap {
    display: flex;
    width: 100%;
    min-height: 350px;
    align-items: stretch;
    font-family: 'Montserrat', sans-serif;
}

.farestaie-lista-col-text {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.farestaie-lista-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.farestaie-lista-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.farestaie-lista-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.farestaie-lista-col-image {
    flex: 1;
    overflow: hidden;
}

.farestaie-lista-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.farestaie-lista-no-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* -----------------------------------------------
   BLOQUE 3: Imagen + Panel de Color
   left: image | right: solid color + deco + text
   ----------------------------------------------- */

.farestaie-imgcolor-wrap {
    display: flex;
    width: 100%;
    min-height: 350px;
    align-items: stretch;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid #3b5bdb;
    box-sizing: border-box;
    overflow: hidden;
}

.farestaie-imgcolor-col-image {
    flex: 0 0 45%;
    overflow: hidden;
    position: relative;
}

.farestaie-imgcolor-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.farestaie-imgcolor-no-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.farestaie-imgcolor-col-content {
    flex: 1;
    position: relative;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.farestaie-imgcolor-asterisk {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    user-select: none;
    opacity: 0.9;
}

.farestaie-imgcolor-line {
    height: 1px;
    margin: 14px 0;
    width: 65%;
    opacity: 0.55;
    flex-shrink: 0;
}

.farestaie-imgcolor-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
}

/* -----------------------------------------------
   RESPONSIVE
   ----------------------------------------------- */

@media (max-width: 900px) {
    .farestaie-banner-overlay {
        width: 88%;
        left: 6%;
        padding: 30px 28px;
    }

    .farestaie-banner-richtext {
        font-size: 20px;
        line-height: 32px;
    }

    .farestaie-banner-richtext strong,
    .farestaie-banner-richtext b {
        font-size: 23px;
    }

    .farestaie-lista-wrap,
    .farestaie-imgcolor-wrap {
        flex-direction: column;
    }

    .farestaie-imgcolor-col-image {
        flex: 0 0 260px;
    }

    .farestaie-lista-col-text {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .farestaie-banner-wrap {
        height: 380px;
    }

    .farestaie-banner-overlay {
        width: 94%;
        left: 3%;
        border-top-left-radius: 40px;
        border-bottom-right-radius: 40px;
        padding: 24px 20px;
    }
}
