/* =========================================================
   MOTOGRAPHIX V9 — PREGUNTAS FRECUENTES
   ========================================================= */

.mgx-faq {
    --faq-red: #e30613;
    --faq-red-dark: #b9000a;
    --faq-black: #070707;
    --faq-dark: #101010;
    --faq-dark-2: #171717;
    --faq-text: #151515;
    --faq-muted: #6e6e73;
    --faq-line: #e6e6e8;
    --faq-soft: #f4f4f5;
    --faq-white: #ffffff;
    background: #fff;
    color: var(--faq-text);
    overflow: clip;
}

.mgx-faq *,
.mgx-faq *::before,
.mgx-faq *::after {
    box-sizing: border-box;
}

.mgx-faq [hidden] {
    display: none !important;
}

.mgx-faq .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   HERO
   ========================================================= */

.mgx-faq-hero {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 76% 45%, rgba(227, 6, 19, .17), transparent 24%),
        linear-gradient(125deg, #050505 0%, #0b0b0b 58%, #121212 100%);
    color: #fff;
    overflow: hidden;
}

.mgx-faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .26;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to right, transparent 0%, #000 42%, #000 100%);
}

.mgx-faq-hero::after {
    content: "";
    position: absolute;
    width: 44vw;
    height: 2px;
    right: -7vw;
    bottom: 68px;
    z-index: -1;
    background: linear-gradient(90deg, transparent, var(--faq-red));
    transform: rotate(-13deg);
    box-shadow: 0 0 28px rgba(227, 6, 19, .65);
}

.mgx-faq-hero__grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 70px;
    padding-top: 88px;
    padding-bottom: 88px;
}

.mgx-faq-hero__content {
    max-width: 710px;
}

.mgx-faq-kicker,
.mgx-faq-group__heading > div > span,
.mgx-faq-help__content > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mgx-faq-kicker {
    color: #fff;
    margin-bottom: 20px;
}

.mgx-faq-kicker::before,
.mgx-faq-group__heading > div > span::before,
.mgx-faq-help__content > span::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--faq-red);
}

.mgx-faq-hero h1 {
    margin: 0;
    max-width: 750px;
    font-size: clamp(46px, 5.2vw, 78px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 900;
    text-transform: uppercase;
}

.mgx-faq-hero__content > p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 18px;
    line-height: 1.7;
}

.mgx-faq-hero__actions,
.mgx-faq-help__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.mgx-faq-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.mgx-faq-btn:hover {
    transform: translateY(-2px);
}

.mgx-faq-btn--primary {
    background: var(--faq-red);
    color: #fff;
}

.mgx-faq-btn--primary:hover {
    background: var(--faq-red-dark);
    color: #fff;
}

.mgx-faq-btn--ghost {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.035);
    color: #fff;
}

.mgx-faq-btn--ghost:hover {
    border-color: #fff;
    background: #fff;
    color: #090909;
}

.mgx-faq-btn--dark {
    background: #111;
    color: #fff;
}

.mgx-faq-btn--light {
    background: #fff;
    color: #111;
}

.mgx-faq-hero__visual {
    position: relative;
    min-height: 350px;
    display: grid;
    place-items: center;
}

.mgx-faq-question-mark {
    position: relative;
    z-index: 3;
    width: 190px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.12), transparent 28%),
        linear-gradient(145deg, #1c1c1c, #070707);
    box-shadow:
        0 35px 75px rgba(0,0,0,.48),
        inset 0 0 60px rgba(227,6,19,.08),
        0 0 0 18px rgba(255,255,255,.015);
    color: #fff;
    font-size: 112px;
    line-height: 1;
    font-weight: 900;
}

.mgx-faq-question-mark::after {
    content: "";
    position: absolute;
    width: 74px;
    height: 5px;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    background: var(--faq-red);
    box-shadow: 0 0 24px rgba(227,6,19,.75);
}

.mgx-faq-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mgx-faq-orbit--one {
    width: 290px;
    height: 290px;
}

.mgx-faq-orbit--two {
    width: 410px;
    height: 410px;
    border-style: dashed;
    border-color: rgba(227,6,19,.22);
}

.mgx-faq-float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 7px;
    background: rgba(17,17,17,.84);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
}

.mgx-faq-float-card i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(227,6,19,.14);
    color: var(--faq-red);
}

.mgx-faq-float-card--top {
    top: 45px;
    right: 0;
}

.mgx-faq-float-card--bottom {
    left: 0;
    bottom: 46px;
}

/* =========================================================
   SEARCH + FILTERS
   ========================================================= */

.mgx-faq-tools {
    position: relative;
    z-index: 8;
    margin-top: -38px;
}

.mgx-faq-search-card {
    border: 1px solid var(--faq-line);
    border-radius: 9px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.075);
}

.mgx-faq-search {
    position: relative;
    display: flex;
    align-items: center;
}

.mgx-faq-search > i {
    position: absolute;
    left: 19px;
    color: #9a9a9f;
    pointer-events: none;
}

.mgx-faq-search input {
    width: 100%;
    height: 58px;
    border: 1px solid #dcdce0;
    border-radius: 5px;
    outline: none;
    padding: 0 56px 0 50px;
    background: #fafafa;
    color: #111;
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mgx-faq-search input:focus {
    border-color: var(--faq-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227,6,19,.08);
}

.mgx-faq-search__clear {
    position: absolute;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: #ededee;
    color: #555;
    cursor: pointer;
}

.mgx-faq-search__clear.is-visible {
    display: grid;
}

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

.mgx-faq-filter {
    min-height: 36px;
    border: 1px solid #dedee1;
    border-radius: 4px;
    padding: 0 13px;
    background: #fff;
    color: #55555a;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    transition: .2s ease;
}

.mgx-faq-filter:hover,
.mgx-faq-filter.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.mgx-faq-filter.is-active {
    border-color: var(--faq-red);
    background: var(--faq-red);
}

.mgx-faq-result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #eeeeef;
    color: #88888d;
    font-size: 12px;
}

.mgx-faq-result-line [data-faq-count] {
    color: #171719;
    font-weight: 800;
}

/* =========================================================
   FAQ CONTENT
   ========================================================= */

.mgx-faq-content {
    padding: 82px 0 108px;
}

.mgx-faq-group + .mgx-faq-group {
    margin-top: 76px;
}

.mgx-faq-group__heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.mgx-faq-group__number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
}

.mgx-faq-group__heading > div > span {
    color: var(--faq-red);
    margin: 2px 0 7px;
    font-size: 10px;
}

.mgx-faq-group__heading > div > span::before {
    display: none;
}

.mgx-faq-group__heading h2 {
    margin: 0;
    color: #111;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 900;
}

.mgx-faq-list {
    border-top: 1px solid #dadade;
}

.mgx-faq-item {
    border-bottom: 1px solid #dadade;
    background: #fff;
}

.mgx-faq-item summary {
    list-style: none;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 24px;
    padding: 0 4px;
    color: #171719;
    cursor: pointer;
    user-select: none;
}

.mgx-faq-item summary::-webkit-details-marker {
    display: none;
}

.mgx-faq-item summary > span {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    transition: color .2s ease;
}

.mgx-faq-item summary > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--faq-soft);
    color: #666;
    font-size: 12px;
    transition: transform .25s ease, background .2s ease, color .2s ease;
}

.mgx-faq-item summary:hover > span,
.mgx-faq-item[open] summary > span {
    color: var(--faq-red);
}

.mgx-faq-item[open] summary > i {
    transform: rotate(45deg);
    background: var(--faq-red);
    color: #fff;
}

.mgx-faq-item.is-search-match {
    border-left: 3px solid var(--faq-red);
}

.mgx-faq-answer {
    max-width: 940px;
    padding: 0 70px 25px 4px;
    color: var(--faq-muted);
    font-size: 15px;
    line-height: 1.75;
}

.mgx-faq-answer p {
    margin: 0;
}

.mgx-faq-answer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #111;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.mgx-faq-answer a:hover {
    color: var(--faq-red);
}

.mgx-faq-empty {
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed #d7d7da;
    border-radius: 8px;
    background: #fafafa;
}

.mgx-faq-empty__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
}

.mgx-faq-empty h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.mgx-faq-empty p {
    margin: 10px auto 22px;
    color: var(--faq-muted);
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.mgx-faq-help {
    padding: 0 0 100px;
    background: #fff;
}

.mgx-faq-help__card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 220px;
    padding: 40px 44px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 38%, rgba(227,6,19,.28), transparent 28%),
        #090909;
    color: #fff;
}

.mgx-faq-help__card::after {
    content: "?";
    position: absolute;
    right: 28%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.03);
    font-size: 230px;
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
}

.mgx-faq-help__icon {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--faq-red);
    color: #fff;
    font-size: 32px;
    box-shadow: 0 0 0 10px rgba(227,6,19,.12);
}

.mgx-faq-help__content,
.mgx-faq-help__actions {
    position: relative;
    z-index: 1;
}

.mgx-faq-help__content > span {
    color: rgba(255,255,255,.78);
    font-size: 10px;
}

.mgx-faq-help__content h2 {
    margin: 9px 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 900;
}

.mgx-faq-help__content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.63);
    font-size: 14px;
    line-height: 1.7;
}

.mgx-faq-help__actions {
    flex-direction: column;
    align-items: flex-start;
    min-width: 230px;
    margin-top: 0;
}

.mgx-faq-help__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mgx-faq-help__link:hover {
    color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .mgx-faq-hero__grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 34px;
    }

    .mgx-faq-question-mark {
        width: 158px;
        font-size: 94px;
    }

    .mgx-faq-orbit--one {
        width: 245px;
        height: 245px;
    }

    .mgx-faq-orbit--two {
        width: 330px;
        height: 330px;
    }

    .mgx-faq-float-card {
        min-width: 170px;
        padding: 11px 12px;
    }

    .mgx-faq-help__card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .mgx-faq-help__actions {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .mgx-faq-hero {
        min-height: auto;
    }

    .mgx-faq-hero::before {
        mask-image: none;
        opacity: .18;
    }

    .mgx-faq-hero__grid {
        display: block;
        padding-top: 70px;
        padding-bottom: 92px;
    }

    .mgx-faq-hero h1 {
        max-width: 520px;
        font-size: clamp(42px, 13vw, 62px);
    }

    .mgx-faq-hero__content > p {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.65;
    }

    .mgx-faq-hero__actions {
        gap: 9px;
        margin-top: 26px;
    }

    .mgx-faq-btn {
        min-height: 47px;
        padding: 0 16px;
        font-size: 10px;
    }

    .mgx-faq-hero__visual {
        display: none;
    }

    .mgx-faq-tools {
        margin-top: -32px;
    }

    .mgx-faq-search-card {
        padding: 14px;
        border-radius: 7px;
    }

    .mgx-faq-search input {
        height: 54px;
        font-size: 14px;
    }

    .mgx-faq-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        margin-right: -14px;
        padding-right: 14px;
    }

    .mgx-faq-filters::-webkit-scrollbar {
        display: none;
    }

    .mgx-faq-filter {
        flex: 0 0 auto;
    }

    .mgx-faq-result-line {
        align-items: flex-start;
        font-size: 10px;
    }

    .mgx-faq-result-line > span:last-child {
        text-align: right;
    }

    .mgx-faq-content {
        padding: 62px 0 78px;
    }

    .mgx-faq-group + .mgx-faq-group {
        margin-top: 58px;
    }

    .mgx-faq-group__heading {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 18px;
    }

    .mgx-faq-group__number {
        width: 43px;
        height: 43px;
        font-size: 11px;
    }

    .mgx-faq-group__heading h2 {
        font-size: 25px;
    }

    .mgx-faq-item summary {
        min-height: 70px;
        grid-template-columns: minmax(0, 1fr) 32px;
        gap: 12px;
    }

    .mgx-faq-item summary > span {
        font-size: 14px;
    }

    .mgx-faq-item summary > i {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .mgx-faq-answer {
        padding: 0 42px 22px 0;
        font-size: 13.5px;
        line-height: 1.7;
    }

    .mgx-faq-help {
        padding-bottom: 70px;
    }

    .mgx-faq-help__card {
        display: block;
        min-height: 0;
        padding: 30px 24px;
    }

    .mgx-faq-help__card::after {
        right: -16px;
        top: 12px;
        transform: none;
        font-size: 170px;
    }

    .mgx-faq-help__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 24px;
        font-size: 26px;
    }

    .mgx-faq-help__content h2 {
        font-size: 32px;
    }

    .mgx-faq-help__actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 24px;
    }
}

@media (max-width: 390px) {
    .mgx-faq-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mgx-faq-hero__actions .mgx-faq-btn {
        width: 100%;
    }

    .mgx-faq-result-line > span:last-child {
        display: none;
    }

    .mgx-faq-answer {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mgx-faq *,
    .mgx-faq *::before,
    .mgx-faq *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
