/* ═══════════════════════════════════════
   FAQ — página dedicada v2 (faq.php)
   ═══════════════════════════════════════ */

/* ── Hero ── */
.faq-hero-v2 {
    position: relative;
    padding: 2.75rem 0 2.5rem;
    background: linear-gradient(135deg, #0c1222 0%, #152a4a 42%, #0047ab 100%);
    color: #f8fafc;
    overflow: hidden;
    border-bottom: 3px solid #c8102e;
}

.faq-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 90% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 40% 35% at 5% 100%, rgba(200, 16, 46, 0.12), transparent 50%);
    pointer-events: none;
}

.faq-hero-v2__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.faq-hero-v2__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    margin-bottom: 0.85rem;
}

.faq-hero-v2__copy h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.faq-hero-v2__lead {
    margin: 0 0 1.35rem;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.faq-search-wrap--v2 {
    max-width: none;
    margin: 0 0 0.5rem;
}

.faq-hero-v2 .faq-search-hint {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    min-height: 1.2em;
    margin: 0 0 1rem;
}

.faq-hero-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.faq-hero-v2__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-hero-v2__btn--primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35);
}

.faq-hero-v2__btn--primary:hover {
    transform: translateY(-2px);
    color: #0f172a;
}

.faq-hero-v2__btn--wa {
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.45);
    color: #fff;
}

.faq-hero-v2__btn--wa:hover {
    background: rgba(37, 211, 102, 0.28);
    color: #fff;
}

/* Popular questions panel */
.faq-popular {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1.25rem 1.15rem;
    backdrop-filter: blur(10px);
}

.faq-popular__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e2e8f0;
}

.faq-popular__title i {
    color: #fbbf24;
}

.faq-popular__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.faq-popular__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.faq-popular__btn i {
    width: 1.25rem;
    text-align: center;
    color: #93c5fd;
    flex-shrink: 0;
}

.faq-popular__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateX(3px);
}

/* ── Quick bar ── */
.faq-quick-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.faq-quick-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    padding: 0.85rem 0;
}

.faq-quick-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    color: #0047ab;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.faq-quick-bar__link:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #003380;
    transform: translateY(-1px);
}

/* ── Stats ── */
.faq-stats-v2 {
    padding: 1.75rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.faq-stats-v2__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.faq-stats-v2__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 1.1rem 0.75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-stats-v2__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 71, 171, 0.08);
}

.faq-stats-v2__item > i {
    font-size: 1.15rem;
    color: #0047ab;
    margin-bottom: 0.15rem;
}

.faq-stats-v2__item strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.faq-stats-v2__item span {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

/* ── Main layout ── */
.faq-main-v2 {
    padding: 2.5rem 0 4rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.faq-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.faq-sidebar {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-sidebar__panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.faq-sidebar__title {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.faq-cats--sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    position: static;
    background: none;
    backdrop-filter: none;
    justify-content: flex-start;
}

.faq-cats--sidebar .faq-cat {
    width: 100%;
    justify-content: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f8fafc;
    gap: 0;
}

.faq-cats--sidebar .faq-cat__icon {
    width: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.faq-cats--sidebar .faq-cat__label {
    flex: 1;
    text-align: left;
    font-size: 0.84rem;
}

.faq-cats--sidebar .faq-cat__count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    min-width: 1.5rem;
    text-align: center;
}

.faq-cats--sidebar .faq-cat:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #0047ab;
}

.faq-cats--sidebar .faq-cat:hover .faq-cat__icon {
    color: #0047ab;
}

.faq-cats--sidebar .faq-cat.active {
    background: linear-gradient(135deg, #0047ab, #0066cc);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 71, 171, 0.28);
}

.faq-cats--sidebar .faq-cat.active .faq-cat__icon,
.faq-cats--sidebar .faq-cat.active .faq-cat__count {
    color: #fff;
}

.faq-cats--sidebar .faq-cat.active .faq-cat__count {
    background: rgba(255, 255, 255, 0.22);
}

.faq-sidebar__help {
    background: linear-gradient(145deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 1.15rem;
    text-align: center;
}

.faq-sidebar__help > i {
    font-size: 1.5rem;
    color: #059669;
    margin-bottom: 0.35rem;
}

.faq-sidebar__help strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.faq-sidebar__help p {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
}

.faq-sidebar__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-sidebar__wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    color: #fff;
}

/* Content area */
.faq-content {
    min-width: 0;
}

.faq-group-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0047ab;
}

.faq-group {
    margin-bottom: 2rem;
}

.faq-item-new {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 0.65rem !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.faq-item-new:hover {
    border-color: #bfdbfe !important;
}

.faq-item-new.open {
    border-color: #93c5fd !important;
    box-shadow: 0 10px 28px rgba(0, 71, 171, 0.1) !important;
}

.faq-q-btn {
    padding: 1rem 1.25rem !important;
    font-size: 0.94rem !important;
}

.faq-item-new.open .faq-arrow {
    background: linear-gradient(135deg, #0047ab, #0066cc) !important;
    color: #fff !important;
}

/* Acordeón sin límite de altura fijo */
.faq-ans {
    display: grid;
    grid-template-rows: 0fr;
    max-height: none !important;
    padding: 0 1.25rem !important;
    transition: grid-template-rows 0.35s ease, padding 0.25s ease;
    overflow: hidden;
}

.faq-item-new.open .faq-ans {
    grid-template-rows: 1fr;
    padding: 0 1.25rem 1.25rem !important;
}

.faq-ans-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-check-icon {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.faq-ans-cards--4 {
    grid-template-columns: repeat(2, 1fr);
}

.faq-ans a.faq-inline-link,
.faq-ans a.faq-ans-link {
    color: #0047ab;
    font-weight: 700;
}

/* No results */
.faq-no-results[hidden] {
    display: none !important;
}

.faq-no-results:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin: 1rem 0 2rem;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #cbd5e1;
}

.faq-no-results__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.faq-no-results h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.faq-no-results p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.faq-no-results__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.faq-no-results__btn:hover {
    color: #fff;
}

/* CTA final */
.faq-cta-v2 {
    position: relative;
    margin-top: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 55%, #f0fdf4 100%);
}

.faq-cta-v2__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(0, 71, 171, 0.08), transparent 60%);
    pointer-events: none;
}

.faq-cta-v2__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.75rem 1.5rem;
}

.faq-cta-v2__icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0047ab, #0066cc);
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-cta-v2__text h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.faq-cta-v2__text p {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

.faq-cta-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.faq-cta-v2__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-cta-v2__btn--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.faq-cta-v2__btn--wa:hover {
    transform: translateY(-2px);
    color: #fff;
}

.faq-cta-v2__btn--contact {
    background: #fff;
    border: 1px solid #dbeafe;
    color: #0047ab;
}

.faq-cta-v2__btn--contact:hover {
    background: #eff6ff;
    color: #003380;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .faq-hero-v2__grid {
        grid-template-columns: 1fr;
    }

    .faq-hero-v2__aside {
        order: -1;
    }

    .faq-popular__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: static;
    }

    .faq-cats--sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .faq-cats--sidebar::-webkit-scrollbar {
        display: none;
    }

    .faq-cats--sidebar .faq-cat {
        width: auto;
        flex-shrink: 0;
    }

    .faq-cats--sidebar .faq-cat__label {
        white-space: nowrap;
    }

    .faq-sidebar__help {
        display: none;
    }

    .faq-stats-v2__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-cta-v2__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-cta-v2__icon {
        margin: 0 auto;
    }

    .faq-cta-v2__actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .faq-hero-v2 {
        padding: 2rem 0 1.75rem;
    }

    .faq-popular__list {
        grid-template-columns: 1fr;
    }

    .faq-search-input-new {
        font-size: 0.95rem;
        padding: 0.85rem 2.75rem 0.85rem 2.5rem;
    }

    .faq-ans-cards--4 {
        grid-template-columns: 1fr;
    }

    .faq-stats-v2__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    .faq-stats-v2__item {
        padding: 0.85rem 0.5rem;
    }

    .faq-quick-bar__inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .faq-quick-bar__inner::-webkit-scrollbar {
        display: none;
    }

    .faq-quick-bar__link {
        flex-shrink: 0;
    }
}
