/* =========================================
   MODULE: PRODUCT DESCRIPTION (WP VARS)
   ========================================= */

.tab-container,
.vortex-faq-container,
.vortex-benefits-list {
    /* --- INTEGRACIÓN CON WORDPRESS --- */

    /* Morado = Accent 5 del tema */
    --highlight-color: var(--wp--preset--color--accent-5, #8770ff);

    /* Texto = El color de texto global configurado en el Editor */
    --text-color: var(--wp--style--color--text, #f0f0f0);

    /* Fondo Caja = Mantenemos el oscuro para contraste, o usa una variable de 'Surface' si tienes */
    --box-bg-color: var(--wp--preset--color--custom-color-3, #161718);

    padding: 0;
    color: var(--text-color) !important;
    max-width: var(--wp--style--global--content-size, 800px);
    width: 100%;
    margin-right: auto;
    line-height: 1.6;
}

/* FIX CRÍTICO PÁRRAFOS */
.tab-container p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    display: block !important;
}

.tab-container br {
    display: none !important;
}

/* --- TABS --- */
.tab-buttons {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    gap: 15px;
}

.tab-button {
    padding: 10px 0;
    cursor: pointer;
    color: inherit;
    border: none;
    background: none;
    font-family: var(--wp--style--font-family--heading, inherit);
    /* Usa la fuente de títulos del tema */
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.6;
    margin-bottom: -1px;
}

.tab-button:hover,
.tab-button.active {
    font-weight: 700;
    opacity: 1;
    border-bottom-color: var(--highlight-color);
    color: var(--highlight-color);
}

.tab-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- BENEFICIOS (SHORTCODE) --- */
.vortex-benefit-item {
    display: flex;
    margin-bottom: 5px;
    align-items: flex-start;
    line-height: 1.5;
}

.vortex-benefit-icon {
    margin-right: 12px;
    min-width: 20px;
    font-size: 1.1em;
}

/* TÍTULO BENEFICIO */
.tab-container strong.vortex-benefit-title,
.vortex-benefits-list strong.vortex-benefit-title {
    font-family: var(--wp--style--font-family--heading, sans-serif) !important;
    color: var(--highlight-color) !important;
    font-weight: 900 !important;
    -webkit-text-stroke: 0.4px var(--highlight-color);
    font-size: 1rem;
    letter-spacing: 0.2px;
}

/* DESCRIPCIÓN BENEFICIO */
.tab-container .vortex-benefit-desc,
.vortex-benefits-list .vortex-benefit-desc {
    color: var(--text-color) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* --- ELEMENTOS GENERALES --- */
.tab-container h2,
.vortex-faq-title {
    font-family: var(--wp--style--font-family--heading, inherit);
    font-size: 1.4rem;
    margin: 0 0 15px 0 !important;
    color: inherit;
    line-height: 1.2;
}

.bullet {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.bullet .emoji-icon {
    margin-right: 10px;
    min-width: 20px;
}

.bullet-desc {
    opacity: 0.9;
}

/* BOTÓN STEAM (Opcional, si lo usas dentro) */
.steam-button {
    display: inline-flex;
    align-items: center;
    color: var(--highlight-color) !important;
    border: 1px solid var(--highlight-color);
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none !important;
    font-weight: 700;
    margin: 5px 0 15px 0 !important;
    transition: all 0.2s;
}

.steam-button:hover {
    color: #fff !important;
    box-shadow: 0 0 15px var(--highlight-color);
}

hr.section-divider {
    border: 0;
    height: 1px;
    background: var(--text-color);
    opacity: 0.9;
    margin: 15px 0;
}

/* --- ACORDEÓN / FAQ --- */
.faq-item {
    border: 1px solid var(--wp--preset--color--accent-3);
    opacity: 1;
    border-radius: 6px;
    background-color: var(--box-bg-color);
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
    transform: scale(1);
}

.faq-item:hover {
    transform: scale(1.01);
    border: 2px solid var(--highlight-color);
    z-index: 5;
}

.faq-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.faq-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px !important;
    color: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    margin: 0 !important;
    width: 100%;
    user-select: none;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.faq-label::after {
    content: '+';
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1;
    margin-left: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

/* ESTADO ACTIVADO */
.faq-item:has(.faq-toggle:checked) {
    border-color: var(--highlight-color);
    background-color: rgba(255, 255, 255, 0.05);
    /* Un toque más claro */
}

.faq-item:has(.faq-toggle:checked) .faq-label {
    background-color: transparent;
    padding-bottom: 2px !important;
    color: var(--highlight-color);
    /* Título se pone morado al abrir */
}

.faq-item:has(.faq-toggle:checked) .faq-label::after {
    transform: rotate(45deg);
    color: var(--highlight-color);
    opacity: 1;
}

/* CONTENIDO */
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:has(.faq-toggle:checked) .faq-content {
    grid-template-rows: 1fr;
}

.faq-content-inner {
    overflow: hidden;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
    opacity: 0.8;
    white-space: normal !important;
}

.faq-content-inner br {
    display: block !important;
    content: "";
    margin-bottom: 4px;
    margin-top: 0;
}

/* Estado abierto */
.faq-item:has(.faq-toggle:checked) .faq-content .faq-content-inner {
    padding: 2px 15px 15px 15px !important;
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 780px) {
    .wp-block-column.wp-container-core-column-is-layout-d9d1ab47 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}