/* ============================================================================
   Tarjetas de características (las arma js/app/caracteristicas.js).
   Se usan en la sección "¿Sabías que...?" de la landing y en caracteristicas/index.html.
   ============================================================================ */

#sabias-que {
    background: linear-gradient(180deg, #eef7fc 0%, #ffffff 100%);
}

#sabias-que .post-heading-center p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.feat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
}

/* ---------------------------------- Tarjeta --------------------------------- */
.feat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 362px;
    margin: 13px;
    padding: 38px 30px 30px;
    background: #ffffff;
    border: 1px solid #e7eef4;
    border-radius: 22px;
    box-shadow: 0 14px 34px -20px rgba(18, 62, 92, 0.28);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}
.feat-card,
.feat-card:visited,
.feat-card:hover,
.feat-card:focus {
    color: #6b7a86;
    text-decoration: none;
}
.feat-card:hover,
.feat-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 30px 54px -24px rgba(12, 88, 138, 0.4);
    border-color: #d2e6f3;
}
.feat-card:focus-visible {
    outline: 3px solid #3ebcfa;
    outline-offset: 3px;
}

/* barra de acento superior */
.feat-card__accent {
    position: absolute;
    top: 0;
    left: 30px;
    width: 56px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #00bdfc, #0072c6);
    transition: width 0.45s ease;
}
.feat-card:hover .feat-card__accent {
    width: 130px;
}

.feat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin-bottom: 22px;
    background: #e3f6ff;
    color: #0091cf;
    font-size: 25px;
}

/* logo de una integración (ej. ARCA) en lugar del ícono */
.feat-card__icon--logo {
    background: none;
}
.feat-card__icon--logo img {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    box-shadow: 0 8px 18px -10px rgba(16, 43, 83, 0.6);
}

.feat-card__title {
    font-family: Poppins, Arial, sans-serif;
    color: #202020;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 12px;
}

.feat-card__text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px;
}

.feat-card__more {
    font-family: Poppins, Arial, sans-serif;
    color: #0091cf;
    font-size: 14px;
    font-weight: 600;
}
.feat-card__more .fa {
    margin-left: 6px;
    transition: transform 0.3s ease;
}
.feat-card:hover .feat-card__more .fa {
    transform: translateX(5px);
}

/* ---------------------------------- Ver todas ------------------------------- */
.feat-all {
    text-align: center;
    padding: 26px 0 10px;
}
.feat-all__btn,
.feat-all__btn:visited {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid #3ebcfa;
    border-radius: 30px;
    color: #0091cf;
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.feat-all__btn:hover,
.feat-all__btn:focus {
    background: #3ebcfa;
    color: #ffffff;
    text-decoration: none;
}
.feat-all__btn .fa {
    margin-left: 6px;
}

/* --------------------------- Responsive -------------------------------- */
@media (max-width: 640px) {
    .feat-card {
        margin: 9px 0;
        padding: 32px 22px 24px;
    }
    .feat-card__title { font-size: 19px; }
}

@media (hover: none) {
    .feat-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .feat-card,
    .feat-card__accent,
    .feat-card__more .fa {
        transition: none;
    }
    .feat-card:hover { transform: none; }
}
