/**
 * ============================================================================
 * SALMA Support — Google Stitch Design System & Support Portal Styles
 * 
 * Clinical & Technological Healthcare UI Design System
 * Primary: #5E2D88 | Accent: #D93A8B | Teal: #0D9488 | Success: #10B981
 * Background: #FAF8FC (Warm Gray-Lilac) | Surface: #FFFFFF
 * ============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- 1. Paleta Cromática y Tokens Clínicos --- */
    --stitch-primary: #5E2D88;
    --stitch-primary-hover: #4D2370;
    --stitch-primary-tint: #F5F0FB;
    --stitch-primary-tint-alt: #EDE4F7;
    --stitch-primary-light: rgba(94, 45, 136, 0.08);

    --stitch-accent: #D93A8B;
    --stitch-accent-hover: #C22E79;
    --stitch-accent-tint: #FDF2F8;
    --stitch-accent-light: rgba(217, 58, 139, 0.08);

    --stitch-teal: #0D9488;
    --stitch-teal-light: #14B8A6;
    --stitch-teal-tint: #F0FDFA;

    --stitch-success: #10B981;
    --stitch-success-tint: #ECFDF5;

    /* --- 2. Superficies y Fondo Cálido --- */
    --stitch-bg: #FAF8FC;
    --stitch-surface: #FFFFFF;
    --stitch-surface-hover: #FAF9FD;
    --stitch-border: #EDE9FE;
    --stitch-border-subtle: #F3EEFA;
    --stitch-border-focus: #5E2D88;

    /* --- 3. Tipografía --- */
    --stitch-text-primary: #1E1B2E;
    --stitch-text-secondary: #475569;
    --stitch-text-muted: #64748B;
    --stitch-text-subtle: #94A3B8;
    --stitch-font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* --- 4. Gradientes de Marca & Efectos --- */
    --stitch-gradient-brand: linear-gradient(135deg, #5E2D88 0%, #7A39B0 50%, #D93A8B 100%);
    --stitch-gradient-btn: linear-gradient(135deg, #5E2D88 0%, #D93A8B 100%);
    --stitch-gradient-accent: linear-gradient(135deg, #D93A8B 0%, #7A39B0 100%);
    --stitch-gradient-hero: 
        radial-gradient(circle at 15% 20%, rgba(245, 240, 251, 0.85) 0%, rgba(250, 248, 252, 0) 50%),
        radial-gradient(circle at 85% 30%, rgba(253, 242, 248, 0.75) 0%, rgba(250, 248, 252, 0) 50%),
        radial-gradient(circle at 50% 85%, rgba(237, 228, 247, 0.6) 0%, rgba(250, 248, 252, 1) 70%),
        #FAF8FC;

    /* --- 5. Elevación y Sombras Tintadas --- */
    --stitch-shadow-xs: 0 1px 3px rgba(94, 45, 136, 0.04);
    --stitch-shadow-sm: 0 4px 12px -2px rgba(94, 45, 136, 0.05);
    --stitch-shadow-card: 0 10px 25px -5px rgba(94, 45, 136, 0.05), 0 4px 6px -2px rgba(94, 45, 136, 0.02);
    --stitch-shadow-hover: 0 20px 35px -5px rgba(94, 45, 136, 0.1), 0 8px 12px -3px rgba(94, 45, 136, 0.04);
    --stitch-shadow-search: 0 12px 32px -4px rgba(94, 45, 136, 0.08);
    --stitch-shadow-glow: 0 0 0 4px rgba(94, 45, 136, 0.14);

    /* --- 6. Radios y Animaciones --- */
    --stitch-radius-sm: 8px;
    --stitch-radius-md: 12px;
    --stitch-radius-lg: 16px;
    --stitch-radius-xl: 24px;
    --stitch-radius-2xl: 28px;
    --stitch-radius-pill: 9999px;

    --stitch-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --stitch-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Base & Reset Global
   ============================================================================ */
body.auth-portal-page {
    background-color: var(--stitch-bg);
    color: var(--stitch-text-primary);
    font-family: var(--stitch-font-family);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stitch-portal-wrapper {
    width: 100%;
    max-width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* ============================================================================
   2. Header & Barra de Navegación (Sticky Glassmorphism)
   ============================================================================ */
.stitch-header-sticky {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1030;
    margin: 0;
    padding: 0;
}

.stitch-navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--salma-border, rgba(237, 233, 254, 0.85)) !important;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 20px -2px rgba(94, 45, 136, 0.04);
    transition: all var(--stitch-transition-fast);
}

.stitch-navbar .navbar-brand {
    padding: 0;
    color: var(--salma-text, #1E1B2E) !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.stitch-navbar-logo {
    height: 32px;
    max-height: 32px !important;
    width: auto !important;
    max-width: 55px !important;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(94, 45, 136, 0.1));
    transition: transform var(--stitch-transition-fast);
}

.stitch-navbar .navbar-brand:hover .stitch-navbar-logo {
    transform: scale(1.04);
}

.stitch-brand-title {
    background: linear-gradient(135deg, #5E2D88 0%, #D93A8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.stitch-brand-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    background-color: var(--salma-purple-tint, #F5F0FB);
    color: var(--salma-purple-primary, #5E2D88);
    border: 1px solid var(--salma-purple-tint-alt, #EDE4F7);
    margin-left: 0.2rem;
    box-shadow: none;
}

.stitch-navbar .nav-link {
    color: var(--salma-text-secondary, #475569) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.stitch-navbar .nav-link:hover,
.stitch-navbar .nav-link:focus {
    color: var(--salma-purple-primary, #5E2D88) !important;
    background-color: var(--salma-purple-tint, #F5F0FB);
}

.stitch-navbar .nav-btn-highlight {
    background: linear-gradient(135deg, #5E2D88 0%, #D93A8B 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.42rem 1rem !important;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(94, 45, 136, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stitch-navbar .nav-btn-highlight:hover {
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(94, 45, 136, 0.32);
    transform: translateY(-1px);
}

.stitch-navbar .stitch-navbar-toggler {
    border: 1px solid var(--stitch-border) !important;
    padding: 0.35rem 0.55rem;
    border-radius: var(--stitch-radius-sm);
    background-color: #FFFFFF;
}

.stitch-navbar .stitch-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(94, 45, 136, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.stitch-navbar .language-selector .btn-outline-light {
    border: 1px solid var(--salma-border, #EDE9FE) !important;
    color: var(--salma-text-secondary, #475569) !important;
    background-color: #FFFFFF !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(94, 45, 136, 0.05);
}

.stitch-navbar .language-selector .btn-outline-light:hover,
.stitch-navbar .language-selector .btn-outline-light:focus {
    border-color: var(--salma-purple-tint-alt, #EDE4F7) !important;
    background-color: var(--salma-purple-tint, #F5F0FB) !important;
    color: var(--salma-purple-primary, #5E2D88) !important;
}

/* ============================================================================
   3. Hero y Buscador Central Protagonista
   ============================================================================ */
.stitch-hero {
    background: var(--stitch-gradient-hero);
    padding: 4.5rem 1rem 3.5rem;
    border-bottom: 1px solid var(--stitch-border);
    position: relative;
    overflow: hidden;
}

.stitch-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: 12%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 58, 139, 0.08) 0%, rgba(217, 58, 139, 0) 70%);
    pointer-events: none;
}

.stitch-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 45, 136, 0.07) 0%, rgba(94, 45, 136, 0) 70%);
    pointer-events: none;
}

.stitch-hero-badge {
    background-color: #FFFFFF;
    border: 1px solid var(--stitch-border);
    padding: 0.35rem 0.95rem;
    border-radius: var(--stitch-radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--stitch-primary);
    box-shadow: var(--stitch-shadow-xs);
}

.stitch-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--stitch-accent);
    box-shadow: 0 0 0 3px rgba(217, 58, 139, 0.2);
    display: inline-block;
    animation: stitchPulse 2s infinite;
}

@keyframes stitchPulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 58, 139, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(217, 58, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 58, 139, 0); }
}

.stitch-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    background: linear-gradient(135deg, #5E2D88 0%, #7A39B0 50%, #D93A8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.85rem;
}

.stitch-hero-subtitle {
    color: var(--stitch-text-secondary);
    font-size: clamp(1rem, 2vw, 1.18rem);
    max-width: 620px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

/* Contenedor del Buscador */
.stitch-search-wrapper {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.stitch-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 2px solid var(--stitch-border);
    border-radius: var(--stitch-radius-2xl);
    box-shadow: var(--stitch-shadow-search);
    padding: 0.45rem 0.55rem 0.45rem 1.4rem;
    transition: border-color var(--stitch-transition), box-shadow var(--stitch-transition);
}

.stitch-search-box:focus-within {
    border-color: var(--stitch-primary);
    box-shadow: var(--stitch-shadow-glow), 0 16px 36px -4px rgba(94, 45, 136, 0.12);
}

.stitch-search-icon {
    color: var(--stitch-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.stitch-search-input {
    border: none;
    outline: none;
    box-shadow: none;
    width: 100%;
    font-size: 1.08rem;
    padding: 0.65rem 0.85rem;
    color: var(--stitch-text-primary);
    background: transparent;
    font-family: inherit;
}

.stitch-search-input::placeholder {
    color: var(--stitch-text-subtle);
    font-weight: 400;
}

.stitch-search-clear {
    border: none;
    background: transparent;
    color: var(--stitch-text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--stitch-transition-fast);
}

.stitch-search-clear:hover {
    color: var(--stitch-text-primary);
    background-color: var(--stitch-primary-tint);
}

.stitch-search-submit-btn {
    background: var(--stitch-gradient-btn);
    color: #FFFFFF;
    border: none;
    border-radius: var(--stitch-radius-pill);
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(94, 45, 136, 0.2);
    transition: transform var(--stitch-transition-fast), box-shadow var(--stitch-transition-fast);
    cursor: pointer;
}

.stitch-search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(94, 45, 136, 0.3);
}

/* Píldoras de búsquedas frecuentes */
.stitch-popular-searches {
    font-size: 0.88rem;
}

.stitch-popular-label {
    color: var(--stitch-text-muted);
    font-weight: 500;
}

.stitch-tag-pill {
    background: #FFFFFF;
    border: 1px solid var(--stitch-border);
    color: var(--stitch-text-secondary);
    padding: 0.28rem 0.85rem;
    border-radius: var(--stitch-radius-pill);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--stitch-transition-fast);
    box-shadow: var(--stitch-shadow-xs);
}

.stitch-tag-pill:hover {
    border-color: var(--stitch-primary);
    color: var(--stitch-primary);
    background-color: var(--stitch-primary-tint);
    transform: translateY(-1px);
}

/* Botones de acción rápida bajo el hero */
.stitch-hero-actions {
    margin-top: 2rem;
}

.stitch-btn-hero-outline {
    background-color: #FFFFFF;
    color: var(--stitch-primary);
    border: 1.5px solid var(--stitch-border);
    padding: 0.65rem 1.45rem;
    border-radius: var(--stitch-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--stitch-shadow-xs);
    transition: var(--stitch-transition);
}

.stitch-btn-hero-outline:hover {
    background-color: var(--stitch-primary-tint);
    border-color: var(--stitch-primary);
    color: var(--stitch-primary);
    transform: translateY(-2px);
    box-shadow: var(--stitch-shadow-sm);
}

.stitch-btn-hero-primary {
    background-color: var(--stitch-primary);
    color: #FFFFFF;
    border: 1.5px solid var(--stitch-primary);
    padding: 0.65rem 1.45rem;
    border-radius: var(--stitch-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(94, 45, 136, 0.25);
    transition: var(--stitch-transition);
}

.stitch-btn-hero-primary:hover {
    background-color: var(--stitch-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(94, 45, 136, 0.35);
}

/* Resultados y estado de búsqueda en tiempo real */
.stitch-search-status {
    margin-top: 1.25rem;
    font-size: 0.96rem;
    color: var(--stitch-text-muted);
}

.stitch-search-results {
    max-width: 720px;
    margin: 1.25rem auto 0;
    text-align: left;
}

.stitch-search-results .stitch-accordion-item {
    box-shadow: var(--stitch-shadow-sm);
    margin-bottom: 0.65rem;
}

.stitch-search-no-results {
    background: #FFFFFF;
    border: 1px solid var(--stitch-border);
    border-radius: var(--stitch-radius-lg);
    box-shadow: var(--stitch-shadow-sm);
}

/* ============================================================================
   4. Tarjetas de Acceso Rápido (Cuadrícula de 4 tarjetas)
   ============================================================================ */
.stitch-action-cards {
    padding: 3.5rem 0 2rem;
}

.stitch-card {
    background: #FFFFFF;
    border: 1px solid var(--stitch-border);
    border-radius: var(--stitch-radius-xl);
    box-shadow: var(--stitch-shadow-card);
    padding: 1.85rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--stitch-transition), box-shadow var(--stitch-transition), border-color var(--stitch-transition);
    position: relative;
    overflow: hidden;
}

.stitch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--stitch-shadow-hover);
    border-color: #D8B4FE;
}

.stitch-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--stitch-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    transition: transform var(--stitch-transition-fast);
}

.stitch-card:hover .stitch-card-icon-wrap {
    transform: scale(1.08);
}

/* Variantes temáticas de iconos y badges */
.stitch-card-purple .stitch-card-icon-wrap {
    background-color: var(--stitch-primary-tint);
    color: var(--stitch-primary);
}

.stitch-card-fuchsia .stitch-card-icon-wrap {
    background-color: var(--stitch-accent-tint);
    color: var(--stitch-accent);
}

.stitch-card-teal .stitch-card-icon-wrap {
    background-color: var(--stitch-teal-tint);
    color: var(--stitch-teal);
}

.stitch-card-success .stitch-card-icon-wrap {
    background-color: var(--stitch-success-tint);
    color: var(--stitch-success);
}

.stitch-badge-response {
    background-color: var(--stitch-accent-tint);
    color: var(--stitch-accent);
    border: 1px solid #FCE7F3;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: var(--stitch-radius-pill);
}

.stitch-badge-teal {
    background-color: var(--stitch-teal-tint);
    color: var(--stitch-teal);
    border: 1px solid #CCFBF1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: var(--stitch-radius-pill);
}

.stitch-badge-operational {
    background-color: var(--stitch-success-tint);
    color: var(--stitch-success);
    border: 1px solid #D1FAE5;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: var(--stitch-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.stitch-operational-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--stitch-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.stitch-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--stitch-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.stitch-card-description {
    color: var(--stitch-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stitch-card-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.15rem;
    border-radius: var(--stitch-radius-pill);
    text-decoration: none;
    transition: var(--stitch-transition);
}

.stitch-card-btn-outline {
    background-color: #FFFFFF;
    color: var(--stitch-primary);
    border: 1.5px solid var(--stitch-border);
}

.stitch-card-btn-outline:hover {
    background-color: var(--stitch-primary-tint);
    border-color: var(--stitch-primary);
    color: var(--stitch-primary);
}

.stitch-card-btn-accent {
    background-color: var(--stitch-accent);
    color: #FFFFFF;
    border: 1.5px solid var(--stitch-accent);
    box-shadow: 0 3px 10px rgba(217, 58, 139, 0.2);
}

.stitch-card-btn-accent:hover {
    background-color: var(--stitch-accent-hover);
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(217, 58, 139, 0.3);
}

.stitch-card-btn-teal {
    background-color: var(--stitch-teal);
    color: #FFFFFF;
    border: 1.5px solid var(--stitch-teal);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.2);
}

.stitch-card-btn-teal:hover {
    background-color: #0b7a6f;
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(13, 148, 136, 0.3);
}

/* ============================================================================
   5. Categorías & FAQ Accordion
   ============================================================================ */
.stitch-faq-section {
    padding: 3.5rem 0 4.5rem;
}

.stitch-faq-header {
    margin-bottom: 2.5rem;
}

.stitch-faq-title {
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--stitch-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stitch-faq-subtitle {
    color: var(--stitch-text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filtro horizontal de categorías: chips redondeados */
.stitch-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.75rem;
}

.stitch-pill-btn {
    border: 1.5px solid var(--stitch-border);
    background-color: #FFFFFF;
    color: var(--stitch-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: var(--stitch-radius-pill);
    cursor: pointer;
    transition: var(--stitch-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: var(--stitch-shadow-xs);
}

.stitch-pill-btn:hover {
    background-color: var(--stitch-primary-tint);
    color: var(--stitch-primary);
    border-color: #D8B4FE;
    transform: translateY(-1px);
}

.stitch-pill-btn.active {
    background-color: var(--stitch-primary);
    color: #FFFFFF;
    border-color: var(--stitch-primary);
    box-shadow: 0 4px 14px rgba(94, 45, 136, 0.25);
}

.stitch-pill-badge {
    background-color: rgba(94, 45, 136, 0.08);
    color: var(--stitch-primary);
    font-size: 0.76rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--stitch-radius-pill);
    font-weight: 700;
}

.stitch-pill-btn.active .stitch-pill-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Contenedores de Grupo de Categorías */
.stitch-category-group {
    background: #FFFFFF;
    border: 1px solid var(--stitch-border);
    border-radius: var(--stitch-radius-xl);
    box-shadow: var(--stitch-shadow-card);
    padding: 2rem 2.25rem;
    margin-bottom: 2.25rem;
    transition: var(--stitch-transition);
}

.stitch-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--stitch-border-subtle);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.stitch-cat-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--stitch-primary-tint);
    color: var(--stitch-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stitch-category-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--stitch-primary);
    letter-spacing: -0.01em;
}

.stitch-category-description {
    color: var(--stitch-text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Acordeón */
.stitch-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stitch-accordion-item {
    border: 1.5px solid var(--stitch-border);
    border-radius: var(--stitch-radius-lg) !important;
    background-color: #FFFFFF;
    overflow: hidden;
    transition: var(--stitch-transition-fast);
}

.stitch-accordion-item:hover {
    border-color: #D8B4FE;
}

.stitch-accordion-item.is-open {
    border-color: var(--stitch-primary);
    box-shadow: 0 4px 16px -2px rgba(94, 45, 136, 0.08);
}

.stitch-accordion-button {
    width: 100%;
    background: none;
    border: none;
    padding: 1.15rem 1.35rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--stitch-text-primary);
    cursor: pointer;
    transition: var(--stitch-transition-fast);
    font-family: inherit;
}

.stitch-accordion-button:hover {
    color: var(--stitch-primary);
    background-color: var(--stitch-primary-tint);
}

.stitch-accordion-button:focus-visible {
    outline: 2px solid var(--stitch-primary);
    outline-offset: -2px;
}

.stitch-question-text {
    flex-grow: 1;
    line-height: 1.45;
}

.stitch-chevron {
    width: 20px;
    height: 20px;
    color: var(--stitch-text-muted);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.stitch-accordion-item.is-open .stitch-chevron {
    transform: rotate(180deg);
    color: var(--stitch-primary);
}

.stitch-badge-featured {
    background-color: var(--stitch-accent-tint);
    color: var(--stitch-accent);
    border: 1px solid #FCE7F3;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--stitch-radius-pill);
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.stitch-accordion-body {
    display: none;
    padding: 1.15rem 1.35rem 1.35rem;
    color: var(--stitch-text-secondary);
    font-size: 0.96rem;
    line-height: 1.7;
    background-color: #FAF8FC;
    border-top: 1px dashed var(--stitch-border);
}

.stitch-accordion-item.is-open .stitch-accordion-body {
    display: block;
    animation: stitchFadeIn 0.22s ease-in-out;
}

/* Microinteracción de feedback */
.stitch-faq-feedback {
    font-size: 0.88rem;
}

.stitch-btn-feedback {
    border: 1px solid var(--stitch-border);
    background-color: #FFFFFF;
    color: var(--stitch-text-secondary);
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--stitch-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--stitch-transition-fast);
}

.stitch-btn-feedback:hover {
    border-color: var(--stitch-primary);
    color: var(--stitch-primary);
    background-color: var(--stitch-primary-tint);
}

.stitch-feedback-response {
    background-color: var(--stitch-success-tint);
    color: var(--stitch-success);
    border: 1px solid #D1FAE5;
    padding: 0.22rem 0.75rem;
    border-radius: var(--stitch-radius-pill);
    font-weight: 600;
}

/* ============================================================================
   6. Bloque CTA "Soporte Humano"
   ============================================================================ */
.stitch-cta-section {
    padding: 1rem 0 4rem;
}

.stitch-human-cta {
    background: 
        radial-gradient(circle at 92% 15%, rgba(217, 58, 139, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 8% 85%, rgba(94, 45, 136, 0.45) 0%, transparent 60%),
        #24123A;
    border-radius: var(--stitch-radius-2xl);
    padding: 3.5rem 3rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px -10px rgba(36, 18, 58, 0.35);
}

.stitch-cta-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.85rem;
    border-radius: var(--stitch-radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: #F7A7DA;
}

.stitch-pulse-dot-fuchsia {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D93A8B;
    box-shadow: 0 0 0 3px rgba(217, 58, 139, 0.3);
    display: inline-block;
    animation: stitchPulse 2s infinite;
}

.stitch-cta-title {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.stitch-cta-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
}

.stitch-btn-cta-fuchsia {
    background-color: var(--stitch-accent);
    color: #FFFFFF;
    border: 1.5px solid var(--stitch-accent);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--stitch-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(217, 58, 139, 0.4);
    transition: var(--stitch-transition);
}

.stitch-btn-cta-fuchsia:hover {
    background-color: var(--stitch-accent-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 58, 139, 0.5);
}

.stitch-btn-cta-outline {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--stitch-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: var(--stitch-transition);
}

.stitch-btn-cta-outline:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ============================================================================
   7. Footer Minimalista y Elegante
   ============================================================================ */
.stitch-footer {
    background-color: #1A1326;
    color: #94A3B8;
    padding: 3.25rem 1rem 2.25rem;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stitch-footer-brand {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.15rem;
}

.stitch-footer-nav a,
.stitch-footer-legal-link {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--stitch-transition-fast);
}

.stitch-footer-nav a:hover,
.stitch-footer-legal-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.stitch-footer .language-selector .btn-outline-dark {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #CBD5E1 !important;
    background: transparent !important;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--stitch-radius-pill);
}

.stitch-footer .language-selector .btn-outline-dark:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #FFFFFF !important;
}

/* ============================================================================
   8. Pantalla Standalone de Login (Compatibilidad y Cohesión)
   ============================================================================ */
.stitch-login-standalone-section {
    min-height: calc(82vh - 120px);
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
}

.stitch-login-card {
    background: #FFFFFF;
    border: 1px solid var(--stitch-border);
    border-radius: var(--stitch-radius-2xl);
    box-shadow: 0 16px 36px -4px rgba(94, 45, 136, 0.08);
    padding: 2.5rem;
    position: relative;
}

.stitch-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stitch-login-badge {
    display: inline-block;
    background-color: var(--stitch-primary-tint);
    color: var(--stitch-primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.85rem;
    border-radius: var(--stitch-radius-pill);
    margin-bottom: 0.85rem;
}

.stitch-login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--stitch-primary);
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
}

.stitch-login-subtitle {
    font-size: 0.94rem;
    color: var(--stitch-text-muted);
    margin-bottom: 0;
}

.stitch-login-notice {
    background-color: var(--stitch-primary-tint);
    border-left: 3px solid var(--stitch-primary);
    border-radius: 0 var(--stitch-radius-sm) var(--stitch-radius-sm) 0;
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
    color: var(--stitch-text-secondary);
    margin-bottom: 1.75rem;
}

.stitch-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--stitch-text-primary);
    margin-bottom: 0.45rem;
}

.stitch-form-control {
    border: 1.5px solid var(--stitch-border);
    border-radius: var(--stitch-radius-md);
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    transition: var(--stitch-transition-fast);
}

.stitch-form-control:focus {
    border-color: var(--stitch-primary);
    box-shadow: var(--stitch-shadow-glow);
    outline: none;
}

.stitch-btn-submit {
    background: var(--stitch-gradient-btn);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--stitch-radius-pill);
    padding: 0.8rem 1.6rem;
    transition: var(--stitch-transition);
    box-shadow: 0 4px 14px rgba(94, 45, 136, 0.25);
}

.stitch-btn-submit:hover,
.stitch-btn-submit:focus {
    background: linear-gradient(135deg, #4D2370 0%, #C22E79 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(94, 45, 136, 0.35);
    transform: translateY(-1px);
}

/* ============================================================================
   Responsive Adjustments
   ============================================================================ */
@media (max-width: 991.98px) {
    .stitch-human-cta {
        padding: 2.5rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .stitch-hero {
        padding: 3rem 1rem 2.5rem;
    }

    .stitch-search-box {
        padding: 0.35rem 0.45rem 0.35rem 1rem;
    }

    .stitch-category-group {
        padding: 1.5rem 1.25rem;
    }

    .stitch-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .stitch-pill-btn {
        flex-shrink: 0;
    }

    .stitch-footer {
        text-align: center;
    }

    .stitch-footer-nav {
        justify-content: center;
    }
}
