.faq-page {
    width: min(1120px, 94%);
    margin: 34px auto 64px;
    color: #172033;
}

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 34px 34px;
    margin-bottom: 24px;
    border: 1px solid #dbe7ec;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(34, 197, 204, .16), transparent 30%),
        linear-gradient(135deg, #f8fdfd 0%, #f4f9fb 100%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    text-align: center;
}

.faq-hero::after {
    content: "?";
    position: absolute;
    right: 38px;
    top: -34px;
    color: rgba(21, 156, 162, .07);
    font-size: 13rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.faq-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f8f94;
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.faq-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #20b7bd;
}

.faq-hero h1 {
    position: relative;
    z-index: 1;
    margin: 10px auto 12px;
    max-width: 760px;
    color: #0f172a;
    font-size: clamp(2.15rem, 5vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.faq-hero > p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-tools {
    position: relative;
    z-index: 2;
    width: min(820px, 100%);
    margin: 28px auto 0;
}

.faq-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #cfdde4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.faq-search svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #7c8ca0;
}

.faq-search input {
    width: 100%;
    min-width: 0;
    padding: 15px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e293b;
    font: inherit;
    font-size: .96rem;
}

.faq-search input::placeholder {
    color: #94a3b8;
}

.faq-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.faq-filter {
    border: 1px solid #d6e2e8;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .82);
    color: #536275;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.faq-filter:hover {
    border-color: #9fd9dc;
    color: #0f7f84;
    transform: translateY(-1px);
}

.faq-filter.active {
    border-color: #159ca2;
    background: #159ca2;
    color: #fff;
    box-shadow: 0 6px 16px rgba(21, 156, 162, .2);
}

.faq-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.faq-main {
    min-width: 0;
}

.faq-list-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
}

.faq-list-head h2 {
    margin: 0;
    color: #162033;
    font-size: 1.18rem;
}

.faq-result-count {
    color: #7b8b9d;
    font-size: .84rem;
    font-weight: 700;
}

.faq-accordion {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.faq-item:hover {
    border-color: #c8d8df;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.faq-item.open {
    border-color: #8cd3d6;
    box-shadow: 0 12px 28px rgba(15, 143, 148, .09);
}

.faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border: 0;
    background: #fff;
    color: #1e293b;
    text-align: left;
    font: inherit;
    font-weight: 800;
    line-height: 1.42;
    cursor: pointer;
}

.faq-question:hover,
.faq-item.open .faq-question {
    background: #fbfefe;
}

.faq-question:focus-visible {
    outline: 3px solid rgba(21, 156, 162, .25);
    outline-offset: -3px;
}

.faq-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #effafa;
    color: #0f858a;
    font-size: .76rem;
    font-weight: 900;
}

.faq-question-copy {
    min-width: 0;
}

.faq-topic {
    display: block;
    margin-top: 4px;
    color: #8a9aae;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.faq-icon {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f8f8;
    color: #0f7f84;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    background: #159ca2;
    color: #fff;
}

.faq-answer {
    padding: 0 66px 22px;
    color: #506176;
    line-height: 1.72;
    border-top: 1px solid #eef3f5;
    background: #fcfefe;
}

.faq-answer > *:first-child {
    margin-top: 18px;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ol,
.faq-answer ul {
    margin: 8px 0 14px;
    padding-left: 24px;
}

.faq-answer li + li {
    margin-top: 8px;
}

.faq-empty {
    display: none;
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.faq-empty.visible {
    display: block;
}

.faq-side-card {
    position: sticky;
    top: 112px;
    padding: 22px;
    border: 1px solid #dfe7ec;
    border-radius: 18px;
    background: linear-gradient(160deg, #0f8f94 0%, #126d79 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 112, 119, .16);
}

.faq-side-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .14);
    font-size: 1.25rem;
}

.faq-side-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.14rem;
}

.faq-side-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.6;
    font-size: .9rem;
}

.faq-side-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #0f7479 !important;
    text-decoration: none;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease;
}

.faq-side-card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* Modo noche */
html[data-theme="dark"] .faq-page {
    color: #e6eef7;
}

html[data-theme="dark"] .faq-hero {
    border-color: #26384c;
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 190, 197, .12), transparent 30%),
        linear-gradient(135deg, #111b2b 0%, #0e1826 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .faq-hero::after {
    color: rgba(99, 217, 221, .045);
}

html[data-theme="dark"] .faq-eyebrow {
    color: #63d9dd;
}

html[data-theme="dark"] .faq-hero h1,
html[data-theme="dark"] .faq-list-head h2 {
    color: #f3f7fb !important;
}

html[data-theme="dark"] .faq-hero > p,
html[data-theme="dark"] .faq-result-count {
    color: #aebdca !important;
}

html[data-theme="dark"] .faq-search {
    border-color: #33465b;
    background: #0d1725;
    box-shadow: none;
}

html[data-theme="dark"] .faq-search input {
    background: transparent !important;
    color: #eaf1f7 !important;
    border: 0 !important;
}

html[data-theme="dark"] .faq-search input::placeholder {
    color: #8092a6 !important;
}

html[data-theme="dark"] .faq-search svg {
    color: #8ea0b4;
}

html[data-theme="dark"] .faq-filter {
    border-color: #33465b;
    background: #142033;
    color: #b7c4d0;
}

html[data-theme="dark"] .faq-filter:hover {
    border-color: #479ca3;
    color: #8fe7ea;
}

html[data-theme="dark"] .faq-filter.active {
    border-color: #159ca2;
    background: #159ca2;
    color: #fff;
}

html[data-theme="dark"] .faq-item {
    background: #111b2b !important;
    border-color: #2d3c50 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14) !important;
}

html[data-theme="dark"] .faq-item:hover,
html[data-theme="dark"] .faq-item.open {
    border-color: #397b82 !important;
}

html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .faq-question:hover,
html[data-theme="dark"] .faq-item.open .faq-question {
    background: #111b2b !important;
    color: #eaf1f7 !important;
}

html[data-theme="dark"] .faq-number {
    background: #15343c;
    color: #8fe7ea;
}

html[data-theme="dark"] .faq-topic {
    color: #7f92a6;
}

html[data-theme="dark"] .faq-icon {
    background: #15343c !important;
    color: #8fe7ea !important;
}

html[data-theme="dark"] .faq-item.open .faq-icon {
    background: #159ca2 !important;
    color: #fff !important;
}

html[data-theme="dark"] .faq-answer {
    background: #0e1826 !important;
    border-top-color: #263447;
    color: #b6c3cf !important;
}

html[data-theme="dark"] .faq-answer p,
html[data-theme="dark"] .faq-answer li {
    color: #b6c3cf !important;
}

html[data-theme="dark"] .faq-answer strong {
    color: #eef5fb !important;
}

html[data-theme="dark"] .faq-empty {
    background: #0e1826;
    border-color: #33465b;
    color: #aebdca;
}

html[data-theme="dark"] .faq-side-card {
    border-color: #2f6870;
    background: linear-gradient(160deg, #123c46 0%, #102c36 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

@media (max-width: 900px) {
    .faq-content-layout {
        grid-template-columns: 1fr;
    }

    .faq-side-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .faq-page {
        width: min(94%, 100%);
        margin-top: 22px;
    }

    .faq-hero {
        padding: 30px 18px 24px;
        border-radius: 19px;
    }

    .faq-hero::after {
        display: none;
    }

    .faq-search {
        min-height: 50px;
    }

    .faq-question {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 16px;
    }

    .faq-number {
        display: none;
    }

    .faq-answer {
        padding: 0 16px 18px;
    }

    .faq-list-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* Formulario de reporte */
.faq-report-card > p {
    margin-bottom: 14px;
}

.faq-report-form {
    display: grid;
    gap: 10px;
}

.faq-report-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .94);
    font-size: .86rem;
    line-height: 1.45;
    cursor: pointer;
}

.faq-report-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #20b7bd;
}

.faq-report-label {
    margin-top: 3px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

.faq-report-form textarea,
.faq-report-form input[type="email"] {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 9px;
    background: rgba(7, 48, 58, .32);
    color: #fff;
    font: inherit;
    font-size: .86rem;
}

.faq-report-form textarea {
    resize: vertical;
}

.faq-report-form textarea::placeholder,
.faq-report-form input::placeholder {
    color: rgba(255, 255, 255, .62);
}

.faq-report-form textarea:focus,
.faq-report-form input[type="email"]:focus {
    outline: 2px solid rgba(255, 255, 255, .65);
    outline-offset: 1px;
}

.faq-report-submit {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #0f7479;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.faq-report-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.faq-report-message {
    padding: 10px 11px;
    border-radius: 9px;
    font-size: .84rem;
    line-height: 1.45;
}

.faq-report-message.success {
    background: rgba(220, 252, 231, .16);
    color: #dcfce7;
}

.faq-report-message.error {
    background: rgba(254, 226, 226, .16);
    color: #fee2e2;
}

.faq-contact-link {
    display: block;
    margin-top: 13px;
    color: rgba(255, 255, 255, .92) !important;
    font-size: .82rem;
    text-align: center;
}

.faq-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
