:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-dark: #3730A3;
    --primary-hover: #4338CA;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;

    --space-1: 0.5rem;   /* 8px  */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */

    --radius: 10px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
/* ============================================
    CONTENEDOR Y HEADER
    ============================================ */
.wtk-faq-container {
    max-width: 880px;
    margin: 0 auto;
}

/* ============================================
    ACORDEÓN FAQ — ESTÁNDAR <details>
    ============================================ */
.wtk-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.5rem;
}

.wtk-faq-item {
    background: white;
    border-radius: var(--radius);
    border: 0px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.wtk-faq-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}
.wtk-faq-item[open] {
    /* border-color: rgba(79, 70, 229, 0.25);
    box-shadow: var(--shadow-lg); */
}

/* Summary = trigger */
.wtk-faq-item summary {
    list-style: none; /* quita el marker nativo */
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-color-darkest);
    background: linear-gradient(135deg,var(--primary-color) 30%,var(--primary-color-light) 100%);
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    user-select: none;
}
.wtk-faq-item summary::-webkit-details-marker { display: none; }

.wtk-faq-item:hover summary {
    background: linear-gradient(135deg,var(--primary-color) 30%,var(--primary-color-light) 100%);
    color: #fff;
}
.wtk-faq-item[open] summary {
    background: linear-gradient(135deg,var(--primary-color) 30%,var(--primary-color-light) 100%);
    color: #fff;
}

/* Número circular */
.wtk-faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color-darkest);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.wtk-faq-item[open] .wtk-faq-number {
    background: white;
    color: var(--primary-color-darkest);
}

/* Texto de la pregunta */
.wtk-faq-question {
    flex: 1;
    padding-right: 8px;
    line-height: 1.4;
    font-size: 16px;
    color: white;
}

/* Chevron animado */
.wtk-faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wtk-faq-icon::before,
.wtk-faq-icon::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    top: 9px;
    height: 2px;
    width: 8px;
}
.wtk-faq-icon::before {
    left: 4px;
    transform: rotate(45deg);
}
.wtk-faq-icon::after {
    left: 9px;
    transform: rotate(-45deg);
}
.wtk-faq-item[open] .wtk-faq-icon {
    transform: rotate(180deg);
}

/* Panel de respuesta */
.wtk-faq-answer {
    padding: 20px 20px 0px 20px; /* alineado con el texto del summary */
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    animation: fadeSlide 0.3s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wtk-faq-answer p + p,
.wtk-faq-answer p + ul,
.wtk-faq-answer ul + p {
    margin-top: 12px;
}

.wtk-faq-answer ul {
    padding-left: 18px;
    margin: 8px 0;
}
.wtk-faq-answer li {
    margin-bottom: 6px;
}
.wtk-faq-answer li::marker {
    color: var(--primary-color);
}

.wtk-faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.wtk-faq-answer a:hover {
    border-bottom-color: var(--primary-color);
}

/* Destacados inline */
.wtk-faq-answer strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Badge de recomendación */
.wtk-faq-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: 8px;
    vertical-align: middle;
}
.wtk-faq-tag-recomendado {
    background: var(--success-light);
    color: #065F46;
}
.wtk-faq-tag-importante {
    background: var(--warning-light);
    color: #92400E;
}

/* Separador visual final */
.wtk-faq-closing {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: linear-gradient(135deg,var(--primary-color-light) 0%,white 100%);
    border: 1.5px dashed var(--primary-color);
    border-radius: var(--radius);
    text-align: center;
    color: var(--primary-color-darkest);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}


/* ============================================
    RESPONSIVE
    ============================================ */
@media (max-width: 640px) {
    body { padding: var(--space-2); }
    .wtk-faq-item summary { padding: 14px 16px; font-size: 14px; }
    .wtk-faq-answer { padding: 16px 16px 0px 16px; font-size: 14px; }
    .wtk-faq-number { width: 24px; height: 24px; font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}