/* ============================================================
   Contenedor principal
   ============================================================ */
.apf-featured {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* Imagen de fondo, ocupa TODO el contenedor (no solo la derecha) */
.apf-featured__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* Degradado: blanco/gris sólido donde va el texto (izquierda),
   transparente hacia la derecha para que se vea la imagen.
   Este es el efecto clave del diseño. */
.apf-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to right,
            #ffffff 0%,
            #ffffff 30%,
            rgba(255, 255, 255, 0.85) 45%,
            rgba(200, 200, 200, 0.3) 60%,
            transparent 75%
    );
}


/* ============================================================
   Contenido de texto (sobre el degradado)
   ============================================================ */
.apf-featured__content {
    position: relative;
    z-index: 2;
    width: 55%;
    padding: 40px 30px 40px 50px;
    box-sizing: border-box;
}

.apf-featured__badge {
    display: inline-block;
    background: #0d8de3;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.apf-featured__title {
    color: #14539a;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 4px;
}

.apf-featured__marca {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.apf-featured__categoria {
    color: #777;
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.apf-featured__detail-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 14px;
    color: #14539a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.apf-featured__detail-link span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.apf-featured__detail-link:hover {
    color: #0e3f78;
}

.apf-featured__detail-link:hover span {
    transform: translateX(3px);
}

.apf-featured__detail-link:focus-visible {
    border-radius: 3px;
    outline: 2px solid #0d8de3;
    outline-offset: 3px;
}

.apf-featured__descripcion {
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 460px;
}

.apf-featured__descripcion p {
    margin: 0;
}


/* ============================================================
   Botones
   ============================================================ */
.apf-featured__acciones {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.apf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.apf-btn--solido {
    background: #14539a;
    color: #fff;
    border: 1px solid #14539a;
}

.apf-btn--solido:hover {
    background: #0e3f78;
    color: #fff;
}

.apf-btn--outline {
    background: transparent;
    color: #14539a;
    border: 1px solid #b9c6d6;
}

.apf-btn--outline:hover {
    background: #f2f6fa;
    color: #14539a;
}


/* ============================================================
   Responsivo: en mobile, apila texto arriba e imagen abajo
   ============================================================ */
/*@media (max-width: 768px) {
    .apf-featured {
        flex-direction: column;
        min-height: auto;
    }

    .apf-featured::before {
        background: linear-gradient(
                to bottom,
                #ffffff 0%,
                #ffffff 60%,
                rgba(255, 255, 255, 0.85) 75%,
                transparent 100%
        );
    }

    .apf-featured__content {
        width: 100%;
        padding: 30px 24px;
    }

    .apf-featured__image {
        position: relative;
        height: 220px;
    }

    .apf-featured__acciones {
        flex-direction: column;
    }

    .apf-btn {
        justify-content: center;
    }
}*/

/* ============================================================
   TABLET
   768px - 1023px
   ============================================================ */
@media (max-width: 1023px) {

    .apf-featured {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        overflow: hidden;
    }

    /*
     * En tablet la imagen deja de ser background absoluto.
     * Se coloca debajo del contenido.
     */
    .apf-featured__image {
        position: relative;
        inset: auto;

        width: 100%;
        height: 320px;

        background-size: cover;
        background-position: center;
    }

    /*
     * Ya no necesitamos el degradado porque
     * texto e imagen están separados.
     */
    .apf-featured::before {
        display: none;
    }

    .apf-featured__content {
        width: 100%;
        padding: 35px 40px 35px;
    }

    .apf-featured__acciones {
        gap: 12px;
    }

}


/* ============================================================
   MOBILE
   < 768px
   ============================================================ */
@media (max-width: 767px) {

    .apf-featured {
        border-radius: 8px;
    }

    .apf-featured__content {
        width: 100%;
        padding: 30px 25px;
    }

    .apf-featured__badge {
        font-size: 0.65rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .apf-featured__title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .apf-featured__marca {
        font-size: 0.85rem;
    }

    .apf-featured__categoria {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

        .apf-featured__detail-link {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

.apf-featured__descripcion {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    /*
     * En móvil los botones ocupan todo el ancho.
     * Es mucho más cómodo para tocar.
     */
    .apf-featured__acciones {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .apf-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 13px 18px;
    }

    /*
     * Imagen debajo del contenido.
     */
    .apf-featured__image {
        height: 260px;
        background-position: center;
    }

}


/* ============================================================
   MOBILE PEQUEÑO
   < 480px
   ============================================================ */
@media (max-width: 480px) {

    .apf-featured__content {
        padding: 25px 20px;
    }

    .apf-featured__title {
        font-size: 1.45rem;
    }

    .apf-featured__image {
        height: 230px;
    }

}