﻿/**
 * FAQ Page CSS - Rediseño moderno
 * Gaming Spot | #1ea894 + #1b6983 + dark bg
 */

/* ==========================================================================
   FULL WIDTH — Eliminar límites del tema GeneratePress
   ========================================================================== */

body:has(.faq-page-wrapper),
body:has(.faq-page-wrapper) .site,
body:has(.faq-page-wrapper) #page,
body:has(.faq-page-wrapper) .site-content,
body:has(.faq-page-wrapper) #content {
    background: var(--color-background) !important;
}

/* Eliminar todos los contenedores restrictivos de GeneratePress */
body:has(.faq-page-wrapper) .grid-container,
body:has(.faq-page-wrapper) .site-main,
body:has(.faq-page-wrapper) .inside-article,
body:has(.faq-page-wrapper) .entry-content,
body:has(.faq-page-wrapper) article,
body:has(.faq-page-wrapper) .entry-header,
body:has(.faq-page-wrapper) .post-image {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Romper el wrapper fuera de cualquier contenedor del tema */
body:has(.faq-page-wrapper) .faq-page-wrapper {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* ==========================================================================
   GENERAL
   ========================================================================== */

.faq-page-wrapper {
    background: var(--color-background);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .faq-container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.faq-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 54, 83, 1) 0%, #1b6983 50%, #185458 100%);
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 15% 60%, rgba(30,168,148,0.14) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 85% 20%, rgba(27,105,131,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.faq-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
    text-align: center;
}

.faq-hero-label {
    display: inline-block;
    background: rgba(30,168,148,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(30,168,148,0.3);
    backdrop-filter: blur(8px);
}

.faq-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.faq-hero-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #1ea894, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 6px;
}

.faq-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 auto 34px;
    max-width: 600px;
}

.faq-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 14px 24px;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(14px);
    transition: border-color 0.2s, background 0.2s;
}

.faq-search-bar:focus-within {
    border-color: rgba(30,168,148,0.55);
    background: rgba(255,255,255,0.11);
}

.faq-search-bar svg {
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
}

.faq-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    width: 100%;
    font-family: inherit;
}

.faq-search-bar input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   SECCIÓN CONTENIDO FAQ
   ========================================================================== */

.faq-section {
    padding: 90px 0 110px;
    background: #f7fafc;
}

/* Grupo de categoría */
.faq-group {
    max-width: 800px;
    margin: 0 auto 64px;
}

.faq-group:last-child {
    margin-bottom: 0;
}

/* Header de categoría */
.faq-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid rgba(30, 168, 148, 0.18);
}

.faq-group-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 168, 148, 0.28);
}

.faq-group-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.faq-group-title {
    font-size: 21px;
    font-weight: 700;
    color: #140428;
    margin: 0;
    line-height: 1.2;
}

.faq-group-count {
    font-size: 12px;
    font-weight: 600;
    color: #1ea894;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Lista de items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Item del acordeón */
.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(116, 109, 125, 0.13);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(30, 168, 148, 0.3);
    box-shadow: 0 4px 20px rgba(30, 168, 148, 0.07);
}

.faq-item.active {
    border-color: rgba(30, 168, 148, 0.5);
    box-shadow: 0 6px 24px rgba(30, 168, 148, 0.1);
}

/* Botón pregunta */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    background: rgba(30, 168, 148, 0);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(30, 168, 148, 0.03);
}

.faq-item.active .faq-question:hover {
    background: transparent;
}

/* Número */
.faq-question-num {
    font-size: 12px;
    font-weight: 800;
    color: #1ea894;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    min-width: 24px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.faq-item.active .faq-question-num,
.faq-item:hover .faq-question-num {
    opacity: 1;
}

/* Texto */
.faq-question-text {
    flex: 1;
    font-size: 15.5px;
    font-weight: 600;
    color: #140428;
    line-height: 1.45;
    transition: color 0.2s;
}

.faq-item.active .faq-question-text {
    color: #140428;
}

/* Chevron */
.faq-chevron {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4f8;
    color: #746d7d;
    transition: transform 0.32s ease, background 0.2s, color 0.2s;
    border: 1px solid rgba(116, 109, 125, 0.15);
}

.faq-item:hover .faq-chevron {
    background: rgba(30, 168, 148, 0.08);
    color: #1ea894;
    border-color: rgba(30, 168, 148, 0.3);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    background: #1ea894;
    color: #fff;
    border-color: #1ea894;
}

/* Respuesta */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    margin: 0 22px 22px 62px;
    padding: 16px 0 0;
    font-size: 14.5px;
    color: #746d7d;
    line-height: 1.8;
    border-top: 1px solid rgba(116, 109, 125, 0.1);
}

.faq-answer-inner p {
    margin: 0 0 10px;
    color: #746d7d;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner a {
    color: #1ea894;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Estado vacío */
.faq-empty {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
}

.faq-empty-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 168, 148, 0.08);
    border: 1.5px solid rgba(30, 168, 148, 0.2);
    border-radius: 50%;
    color: #1ea894;
    margin: 0 auto 24px;
}

.faq-empty h2 {
    font-size: 24px;
    font-weight: 700;
    color: #140428;
    margin: 0 0 12px;
}

.faq-empty p {
    font-size: 15px;
    color: #746d7d;
    margin: 0 0 28px;
    line-height: 1.65;
}

.faq-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(30, 168, 148, 0.3);
}

.faq-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(30, 168, 148, 0.4);
    color: #fff;
}

.faq-admin-link {
    margin-top: 24px;
    font-size: 12px;
    opacity: 0.45;
}

.faq-admin-link a {
    color: #746d7d;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0 80px;
    }

    .faq-group-title {
        font-size: 18px;
    }

    .faq-question {
        padding: 16px 18px;
        gap: 12px;
    }

    .faq-question-text {
        font-size: 14.5px;
    }

    .faq-answer-inner {
        margin: 0 18px 18px 18px;
    }
}

/* ==========================================================================
   CTA FINAL — igual que nosotros-cta
   ========================================================================== */

.faq-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1b6983 0%, #185458 100%);
    position: relative;
    overflow: hidden;
}

.faq-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.faq-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.faq-cta-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.faq-cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px;
}

.faq-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid transparent;
    letter-spacing: 0.02em;
}

.faq-cta-button.primary {
    background: rgba(30, 168, 148, 0.22);
    color: #fff;
    border-color: rgba(30, 168, 148, 0.65);
    box-shadow: 0 8px 24px rgba(30, 168, 148, 0.2);
}

.faq-cta-button.primary:hover {
    background: rgba(30, 168, 148, 0.38);
    border-color: rgba(30, 168, 148, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 168, 148, 0.35);
    color: #fff;
}

.faq-cta-button.secondary {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.faq-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .faq-hero {
        min-height: auto;
    }

    .faq-hero-content {
        padding: 50px 0;
    }

    .faq-hero-title {
        font-size: 32px;
    }

    .faq-hero-subtitle {
        font-size: 15px;
    }

    .faq-hero-label {
        font-size: 12px;
        padding: 6px 16px;
    }

    .faq-cta-section {
        padding: 50px 0;
    }

    .faq-cta-title {
        font-size: 24px;
    }

    .faq-cta-description {
        font-size: 16px;
    }

    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .faq-cta-button {
        width: auto;
        min-width: 220px;
        justify-content: center;
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faq-hero-title {
        font-size: 26px;
    }

    .faq-cta-title {
        font-size: 22px;
    }
}
