/* ============================================================
   Game Star — Preguntas Frecuentes
   Dedicated styles for /preguntas-frecuentes/
   Aesthetic: Dark gaming, matching /privacidad/
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ----- Page foundation ----- */
.gs-faq-page {
    background: #0b0d17;
    color: #d1d5e0;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.gs-faq-page .sections_group,
.gs-faq-page .content_wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ----- Hero ----- */
.gs-faq-hero {
    position: relative;
    padding: 100px 24px 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(175deg,
            #0b0d17 0%,
            #12152a 40%,
            #1a1040 70%,
            #0b0d17 100%);
}

.gs-faq-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center,
            rgba(138, 43, 226, 0.15) 0%,
            rgba(0, 210, 211, 0.05) 50%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.gs-faq-hero-glow {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 210, 211, 0.4) 30%,
            rgba(138, 43, 226, 0.5) 50%,
            rgba(0, 210, 211, 0.4) 70%,
            transparent 100%);
}

.gs-faq-hero-content {
    position: relative;
    z-index: 1;
}

.gs-faq-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.gs-faq-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(0, 210, 211, 0.8);
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ----- Container ----- */
.gs-faq-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 32px 100px;
}

/* ----- Category Tabs ----- */
.gs-faq-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.gs-faq-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50px;
    background: rgba(18, 21, 42, 0.5);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.gs-faq-tab:hover {
    border-color: rgba(138, 43, 226, 0.5);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(138, 43, 226, 0.1);
}

.gs-faq-tab.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(0, 210, 211, 0.1) 100%);
    border-color: rgba(138, 43, 226, 0.5);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
}

.gs-faq-tab-icon {
    font-size: 1.1em;
    line-height: 1;
}

.gs-faq-tab-label {
    line-height: 1;
}

/* ----- Sections (Category panels) ----- */
.gs-faq-section {
    display: none;
}

.gs-faq-section.active {
    display: block;
    animation: gs-faq-fadeIn 0.35s ease-out;
}

@keyframes gs-faq-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- FAQ Item (Accordion) ----- */
.gs-faq-item {
    margin-bottom: 12px;
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 12px;
    background: rgba(18, 21, 42, 0.5);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gs-faq-item:hover {
    border-color: rgba(138, 43, 226, 0.3);
}

.gs-faq-item.open {
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 4px 24px rgba(138, 43, 226, 0.08);
}

/* ----- Question (Button) ----- */
.gs-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    border: none;
    background: none;
    color: #e0e4ed;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    gap: 16px;
}

.gs-faq-question:hover {
    color: #ffffff;
}

.gs-faq-item.open .gs-faq-question {
    color: #00d2d3;
}

/* Chevron icon */
.gs-faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(138, 43, 226, 0.6);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.gs-faq-item.open .gs-faq-chevron {
    transform: rotate(180deg);
    color: #00d2d3;
}

/* ----- Answer ----- */
.gs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gs-faq-answer-inner {
    padding: 0 24px 24px;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    padding-top: 16px;
}

/* Answer typography */
.gs-faq-answer-inner p {
    margin: 0 0 14px;
    color: #b8bdc8;
    line-height: 1.7;
}

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

.gs-faq-answer-inner strong {
    color: #e0e4ed;
    font-weight: 600;
}

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

.gs-faq-answer-inner li {
    margin-bottom: 6px;
    color: #b8bdc8;
    line-height: 1.6;
}

.gs-faq-answer-inner li::marker {
    color: rgba(0, 210, 211, 0.5);
}

.gs-faq-answer-inner ol li::marker {
    color: rgba(138, 43, 226, 0.7);
    font-weight: 600;
}

.gs-faq-answer-inner a {
    color: #a78bfa;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.gs-faq-answer-inner a:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

.gs-faq-answer-inner a[href^="mailto:"] {
    color: #00d2d3;
    border-bottom-color: rgba(0, 210, 211, 0.3);
}

.gs-faq-answer-inner a[href^="mailto:"]:hover {
    color: #5ef5f5;
    border-bottom-color: #5ef5f5;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
    .gs-faq-hero {
        padding: 72px 20px 40px;
    }

    .gs-faq-container {
        padding: 32px 16px 80px;
    }

    .gs-faq-tabs {
        gap: 8px;
        margin-bottom: 28px;
    }

    .gs-faq-tab {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    .gs-faq-tab-icon {
        font-size: 1em;
    }

    .gs-faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .gs-faq-answer-inner {
        padding: 0 18px 20px;
        padding-top: 14px;
    }

    .gs-faq-page {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .gs-faq-hero {
        padding: 60px 16px 32px;
    }

    .gs-faq-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .gs-faq-tab {
        padding: 9px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* ----- Print ----- */
@media print {
    .gs-faq-page {
        background: #fff;
        color: #222;
    }

    .gs-faq-hero {
        background: none;
        padding: 40px 0 20px;
    }

    .gs-faq-title {
        color: #000;
    }

    .gs-faq-subtitle {
        color: #555;
    }

    .gs-faq-hero-glow,
    .gs-faq-hero::before {
        display: none;
    }

    .gs-faq-tabs {
        display: none;
    }

    .gs-faq-section {
        display: block !important;
    }

    .gs-faq-item {
        background: #fafafa;
        border-color: #ddd;
    }

    .gs-faq-question {
        color: #222;
    }

    .gs-faq-answer {
        max-height: none !important;
    }

    .gs-faq-answer-inner p,
    .gs-faq-answer-inner li {
        color: #333;
    }

    .gs-faq-answer-inner strong {
        color: #000;
    }

    .gs-faq-chevron {
        display: none;
    }
}