/* Farmamol - Tarjetas con ícono
   Valores por defecto; todo se personaliza desde la pestaña Estilo del
   widget "Tarjetas con ícono" en Elementor, sin tocar este archivo. */

.fbf-ic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .fbf-ic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .fbf-ic-grid { grid-template-columns: 1fr; }
}

.fbf-ic-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 2px solid #fff;
    border-radius: 18px;
    overflow: hidden;
}

.fbf-ic-imagen {
    position: relative;
    flex: 0 0 auto;
    height: 150px;
}

.fbf-ic-imagen > img:first-child {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El ícono redondo se monta sobre el borde inferior de la imagen. */
.fbf-ic-imagen .fbf-ic-icono {
    position: absolute;
    right: 12px;
    bottom: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    transform: translateY(50%);
}

.fbf-ic-contenido {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px 20px 24px;
}

.fbf-ic-titulo {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: #1f4f9e;
}

.fbf-ic-subtitulo {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.35;
    color: #1f4f9e;
}

.fbf-ic-descripcion {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f4f9e;
}

.fbf-ic-contenido > :last-child {
    margin-bottom: 0;
}

/* Selector reforzado (.fbf-ic-card .fbf-ic-boton) para ganarle a los estilos
   globales del tema sobre enlaces/botones (incluido su :hover/:focus), sin
   !important, para no bloquear los controles de Estilo del widget. */
.fbf-ic-card .fbf-ic-boton,
.fbf-ic-card .fbf-ic-boton:focus {
    align-self: flex-start;
    display: inline-block;
    margin-top: auto;
    padding: 6px 18px;
    border: 1px solid #c0314f;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #c0314f;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fbf-ic-card .fbf-ic-boton:hover {
    background: #c0314f;
    color: #fff;
    text-decoration: none;
}
