/* Card 13 — "Nuestros Servicios Principales" de bbcasita.cl. Tarjeta de 360px (tres por
   fila en 1140px) con sombra suave que crece en hover, foto de 250px con esquinas
   superiores de 20px y etiqueta "Destacado" pegada al borde derecho. */

.gpf-card-item.gpf-card-13 {
    display: flex;
    padding: 10px;
}

.gpf-card-13 .gpf-card-13__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    background-color: #FFFFFF;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.gpf-card-13 .gpf-card-13__inner:hover {
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
}

/* Toda la tarjeta es clickeable; el botón queda por encima para conservar su hover */
.gpf-card-13 .gpf-card-13__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
}

.gpf-card-13 .gpf-card-13__media {
    min-height: 250px;
    margin-bottom: 30px;
    border-radius: 20px 20px 0 0;
    background-color: #EEEEEE;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gpf-card-13 .gpf-card-13__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.gpf-card-13 h5.gpf-card-13__title {
    flex: 0 1 60%;
    padding-left: 20px;
    color: var(--gpf-bbc-primary);
    font-family: var(--gpf-bbc-font-title), sans-serif;
    font-weight: 600;
}

.gpf-card-13 .gpf-card-13__badge {
    flex: 0 0 auto;
    padding: 10px 10px 10px 14px;
    border-radius: 50px 0 0 50px;
    background-color: var(--gpf-bbc-primary);
    color: #FFFFFF;
    font-family: var(--gpf-bbc-font-title), sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
}

.gpf-card-13 .gpf-card-13__text {
    margin: 0;
    padding: 0 20px;
    color: var(--gpf-bbc-text);
    font-family: var(--e-global-typography-deb0209-font-family, var(--gpf-bbc-font-text)), sans-serif;
    font-size: 0.8em;
    font-weight: 400;
    line-height: 1.5;
}

.gpf-card-13 .gpf-card-13__actions {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 45px 10px 10px;
}

/* Encabezado de la grilla ([gpf_section_services_card title="..."]): en bbcasita es un h3
   alineado a la izquierda en media columna. La grilla está fuera de .gpf-bbc, por eso los
   colores se piden directo a los globales de Elementor. */
.gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-cards-head {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 10px 0;
    text-align: left;
}

.gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-cards-head .elementor-heading-title {
    width: 50%;
    margin: 0;
    color: var(--e-global-color-primary, #00A3D7);
    font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif;
    font-size: 2.3em;
    font-weight: 600;
    line-height: 1;
}

.gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-cards-head p {
    width: 50%;
    margin: 10px 0 0;
}

.gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-card-grid {
    padding-bottom: 50px;
}

@media (max-width: 767px) {
    .gpf-card-item.gpf-card-13 {
        flex-basis: 100%;
        width: 100%;
    }

    .gpf-card-13 h5.gpf-card-13__title {
        flex-basis: 70%;
        font-size: 16px;
    }

    .gpf-card-13 .gpf-card-13__badge {
        font-size: 18px;
    }

    .gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-cards-head {
        padding-top: 50px;
        text-align: center;
    }

    .gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-cards-head .elementor-heading-title {
        width: 100%;
        font-size: 2em;
        line-height: 1.2em;
    }

    .gpf-card-grid-wrapper:has(.gpf-card-13) .gpf-cards-head p {
        width: 100%;
    }
}
