/* *********************************************************** */
/* Desarrollado por Herlin R. Espinosa G. (herlin25@gmail.com) */
/* *********************************************************** */

/* Páginas públicas de funcionalidad (/features/{slug}).
   Se carga DESPUÉS de welcome.css y solo agrega lo propio de esta pantalla:
   el layout público (topbar, hero, botones, footer) sigue saliendo de allí,
   incluidas las variables --wel-* que se reutilizan más abajo. */

/* ===================== Qué incluye ===================== */
/* Tarjeta horizontal (icono a la izquierda, texto a la derecha): a diferencia
   de las tarjetas centradas de la landing, aquí el texto es más largo y se lee
   mejor alineado a la izquierda. */
.ftr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    /* Sin esto, una fila estira todas sus tarjetas a la altura de la más alta
       y las de texto corto quedan medio vacías. */
    align-items: start;
}

.ftr-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    background: var(--wel-surface);
    border: 1px solid var(--wel-border);
    border-radius: 16px;
    box-shadow: var(--wel-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ftr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wel-shadow-hover);
    border-color: #cfe0f5;
}

.ftr-card-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--wel-blue);
    background: linear-gradient(135deg, #eef4fc, #dfeaf9);
}

.ftr-card-title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wel-navy);
}

.ftr-card-desc {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--wel-muted);
}

/* ===================== Además ===================== */
.ftr-highlights {
    margin-top: 2rem;
    padding: 1.5rem 1.6rem;
    background: #f7f9fc;
    border: 1px solid var(--wel-border);
    border-radius: 16px;
}

.ftr-highlights-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wel-navy);
}

.ftr-highlights-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .85rem 1.5rem;
}

.ftr-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .94rem;
    line-height: 1.5;
    color: var(--wel-ink);
}

/* El check en su propio círculo, para que la lista no dependa de la viñeta. */
.ftr-highlights-list li > i {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: .1rem;
    border-radius: 50%;
    font-size: .7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--wel-primary) 0%, var(--wel-blue) 100%);
}

/* ===================== Otras funcionalidades ===================== */
.ftr-others-title {
    margin: 2.25rem 0 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wel-navy);
}

.ftr-others {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.ftr-other-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    border-radius: 999px;
    background: var(--wel-surface);
    border: 1px solid var(--wel-border);
    box-shadow: var(--wel-shadow);
    color: var(--wel-navy);
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.ftr-other-link:hover,
.ftr-other-link:focus {
    transform: translateY(-2px);
    box-shadow: var(--wel-shadow-hover);
    border-color: #cfe0f5;
    color: var(--wel-blue);
    text-decoration: none;
}

.ftr-other-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.ftr-other-link > i {
    font-size: .7rem;
    color: var(--wel-muted);
}

/* ===================== Cierre ===================== */
.ftr-cta {
    margin-top: 2.25rem;
    padding: 1.9rem 1.5rem;
    text-align: center;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--wel-navy) 0%, var(--wel-blue) 100%);
    box-shadow: 0 12px 28px rgba(11, 37, 69, .22);
}

.ftr-cta-title {
    margin: 0 0 .4rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.ftr-cta-text {
    margin: 0 auto 1.25rem;
    max-width: 560px;
    font-size: .98rem;
    line-height: 1.5;
    color: #fff;
    opacity: .92;
}

/* Sobre el degradado, el gris de welcome.css no contrasta. */
.ftr-cta .welcome-back-home {
    color: rgba(255, 255, 255, .85);
}

.ftr-cta .welcome-back-home:hover {
    color: #fff;
}

/* ===================== Responsive ===================== */
@media (max-width: 575.98px) {
    /* Los chips son objetivos táctiles: solo con el padding se quedan en 43px
       (medido a 390px), por debajo del mínimo de 44px que fija la barra de
       /notification para toda la app.
       ⚠️ El box-sizing es OBLIGATORIO: estas páginas públicas sobrescriben la
       sección adminlte_css, así que NO cargan Bootstrap y no hay border-box
       global; con content-box el min-height se SUMA al padding y el chip se
       iría a 65px. */
    .ftr-other-link {
        box-sizing: border-box;
        min-height: 44px;
    }

    .ftr-card {
        padding: 1.15rem 1.2rem;
        gap: .85rem;
    }

    .ftr-highlights {
        padding: 1.25rem 1.2rem;
    }

    .ftr-cta {
        padding: 1.6rem 1.2rem;
    }

    .ftr-cta-title {
        font-size: 1.2rem;
    }
}
