﻿/* ================================================
   MASCOTAQR — FAQ
   Estilos específicos de /faq
   Usa variables de site.css — no las redefine
   Reutiliza: cfq-breadcrumb, cfq-hero__*, mqr-faq-item__*
   ================================================ */

/* ================================================
   HERO
   ================================================ */
.faq-hero {
    background: var(--gradient-hero);
    padding: 52px 0 72px;
    position: relative;
    overflow: hidden;
}

    .faq-hero::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 40px;
        background: var(--bg-cream);
        clip-path: ellipse(55% 100% at 50% 100%);
    }

/* ================================================
   BUSCADOR
   ================================================ */
.faq-search {
    max-width: 520px;
    margin: 0 auto;
}

.faq-search__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.faq-search__icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.faq-search__input {
    width: 100%;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 14px 52px 14px 50px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    outline: none;
}

    .faq-search__input::placeholder {
        color: var(--text-muted);
    }

    .faq-search__input:focus {
        border-color: var(--primary-light);
        box-shadow: var(--shadow-xl), 0 0 0 3px rgba(45,138,78,0.12);
    }

.faq-search__clear {
    position: absolute;
    right: 16px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

    .faq-search__clear:hover {
        background: var(--primary);
        color: #fff;
    }

/* ================================================
   CONTENIDO PRINCIPAL
   ================================================ */
.faq-content {
    padding: 0 0 80px;
}

/* ================================================
   FILTROS
   ================================================ */
.faq-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 40px 0 40px;
    position: sticky;
    top: 68px; /* altura navbar */
    background: var(--bg-cream);
    z-index: 10;
    border-bottom: 1px solid rgba(45,138,78,0.08);
    margin-bottom: 40px;
}

.faq-filtro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid rgba(45,138,78,0.15);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

    .faq-filtro:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--bg-light);
    }

.faq-filtro--active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

    .faq-filtro--active:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #fff;
    }

.faq-filtro [data-lucide] {
    flex-shrink: 0;
}

/* ================================================
   GRUPOS DE PREGUNTAS
   ================================================ */
.faq-lista {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.faq-grupo--oculto {
    display: none;
}

.faq-grupo__titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(45,138,78,0.12);
}

    .faq-grupo__titulo [data-lucide] {
        flex-shrink: 0;
    }

/* Items individuales */
.faq-item {
    transition: var(--transition);
}

.faq-item--oculto {
    display: none;
}

.faq-item--highlight .mqr-faq-item__q {
    background: rgba(245,130,31,0.06);
    color: var(--primary);
}

    .faq-item--highlight .mqr-faq-item__q mark {
        background: rgba(245,130,31,0.3);
        color: var(--text-dark);
        border-radius: 3px;
        padding: 0 2px;
    }

/* Reutiliza mqr-faq-item de site/Index */
.faq-item .mqr-faq-item__q {
    border-radius: var(--border-radius);
}

.faq-item .mqr-faq-item__a {
    padding: 4px 22px 18px;
    font-size: 0.9rem;
    line-height: 1.75;
}

    .faq-item .mqr-faq-item__a a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .faq-item .mqr-faq-item__a a:hover {
            color: var(--primary-dark);
        }

/* ================================================
   SIN RESULTADOS
   ================================================ */
.faq-sin-resultados {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}

    .faq-sin-resultados [data-lucide] {
        color: rgba(45,138,78,0.25);
        margin-bottom: 16px;
    }

    .faq-sin-resultados p {
        font-size: 1rem;
        margin-bottom: 20px;
        color: var(--text-muted);
    }

        .faq-sin-resultados p span {
            color: var(--text-dark);
            font-weight: 700;
        }

.faq-sin-resultados__reset {
    background: var(--gradient-hero);
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

    .faq-sin-resultados__reset:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ================================================
   CTA FINAL
   ================================================ */
.faq-cta-final {
    background: var(--bg-dark);
    padding: 56px 0;
}

.faq-cta-final__inner {
    max-width: 900px;
    margin: 0 auto;
}

.faq-cta-final__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.faq-cta-final__sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.faq-cta-final__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

    .faq-cta-final__actions .btn-cta-primary,
    .faq-cta-final__actions .btn-cta-secondary {
        font-size: 0.9rem;
        padding: 12px 24px;
        white-space: nowrap;
        text-align: center;
    }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
    .faq-hero {
        padding: 40px 0 64px;
    }

    .faq-filtros {
        top: 60px;
    }

    .faq-cta-final__actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .faq-content {
        padding: 0 0 56px;
    }

    .faq-filtros {
        gap: 6px;
        padding: 24px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        .faq-filtros::-webkit-scrollbar {
            display: none;
        }

    .faq-filtro {
        flex-shrink: 0;
    }

    .faq-cta-final {
        padding: 40px 0;
    }

    .faq-cta-final__actions {
        flex-direction: column;
        align-items: stretch;
    }

        .faq-cta-final__actions .btn-cta-primary,
        .faq-cta-final__actions .btn-cta-secondary {
            width: 100%;
        }
}
