/* ============================================
   WEBCHAT OFFERS - Diseño Super Profesional
   ============================================ */

   .webchat-offers {
    background: var(--webchat-bg);
}

/* ============================================
   HEADER
   ============================================ */

.webchat-offers-header {
    background: var(--webchat-surface);
    border-bottom: 1px solid var(--webchat-border);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

.webchat-offers-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.webchat-offers-back-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--webchat-radius);
    background: var(--webchat-bg);
    color: var(--webchat-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.webchat-offers-back-btn:hover {
    background: var(--webchat-border);
    color: var(--webchat-text);
    transform: translateX(-2px);
}

.webchat-offers-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--webchat-text);
    line-height: 1.3;
}

.webchat-offers-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--webchat-text-secondary);
}

/* ============================================
   MENÚ DE USUARIO (No autenticado)
   ============================================ */

.webchat-offers-user-menu-wrapper {
    position: relative;
    flex-shrink: 0;
}

.webchat-offers-user-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--webchat-primary), var(--webchat-primary-dark));
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    padding: 0;
    margin: 0;
}

.webchat-offers-user-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.webchat-offers-user-btn:active {
    transform: scale(0.95);
}

.webchat-offers-user-btn svg {
    flex-shrink: 0;
}

.webchat-offers-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--webchat-surface);
    border: 1px solid var(--webchat-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    padding: 8px;
    z-index: 1000;
    animation: menuSlideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.webchat-offers-user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--webchat-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.webchat-offers-user-menu-item:hover {
    background: var(--webchat-bg);
    color: var(--webchat-primary);
    transform: translateX(2px);
}

.webchat-offers-user-menu-item svg {
    flex-shrink: 0;
    color: var(--webchat-text-secondary);
    transition: color 0.2s ease;
}

.webchat-offers-user-menu-item:hover svg {
    color: var(--webchat-primary);
}

.webchat-offers-user-menu-item span {
    flex: 1;
}

/* Dark mode support */
.webchat-dark-mode .webchat-offers-user-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
    .webchat-offers-user-btn {
        width: 40px;
        height: 40px;
    }
    
    .webchat-offers-user-menu {
        min-width: 180px;
        right: 0;
    }
    
    .webchat-offers-user-menu-item {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ============================================
   MAIN
   ============================================ */

.webchat-offers-main {
    padding: 20px;
    padding-bottom: 100px;
}

.webchat-offers-section {
    margin-bottom: 32px;
}

.webchat-section-header {
    margin-bottom: 20px;
}

.webchat-section-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--webchat-text);
}

.webchat-section-header p {
    margin: 0;
    font-size: 14px;
    color: var(--webchat-text-secondary);
}

/* ============================================
   OFFERS GRID
   ============================================ */

.webchat-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 767px) {
    .webchat-offers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.webchat-offer-card {
    background: var(--webchat-surface);
    border: 1px solid var(--webchat-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.webchat-offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--webchat-primary), var(--webchat-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webchat-offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--webchat-primary-light);
}

.webchat-offer-card:hover::before {
    opacity: 1;
}

.webchat-offer-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--webchat-bg);
    position: relative;
    overflow: hidden;
}

.webchat-offer-image-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.webchat-offer-icon {
    font-size: 64px;
    opacity: 0.6;
}

.webchat-offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--webchat-border);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--webchat-warning);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.webchat-offer-badge.permanent {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.95));
    color: #78350f;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.webchat-offer-badge.permanent svg {
    color: #78350f;
}

.webchat-offer-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--webchat-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.webchat-offer-badge svg {
    flex-shrink: 0;
}

.webchat-offer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    background: var(--webchat-surface);
}

.webchat-offer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.webchat-offer-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--webchat-text);
    line-height: 1.4;
    flex: 1;
    letter-spacing: -0.3px;
}

.webchat-offer-channel-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.webchat-offer-description {
    margin: 0;
    font-size: 14px;
    color: var(--webchat-text-secondary);
    line-height: 1.5;
    flex: 1;
    white-space: pre-line;
    word-wrap: break-word;
}

.webchat-offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--webchat-primary), var(--webchat-primary-dark));
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
}

.webchat-offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.webchat-offer-cta:active {
    transform: translateY(0);
}

.webchat-offer-cta svg {
    flex-shrink: 0;
}

/* ============================================
   CATALOG GRID
   ============================================ */

.webchat-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.webchat-catalog-card {
    background: var(--webchat-surface);
    border: 1px solid var(--webchat-border);
    border-radius: var(--webchat-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.webchat-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--webchat-primary-light);
}

.webchat-catalog-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--webchat-bg);
}

.webchat-catalog-image-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--webchat-primary);
}

.webchat-catalog-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.webchat-catalog-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--webchat-text);
    line-height: 1.3;
}

.webchat-catalog-description {
    margin: 0;
    font-size: 13px;
    color: var(--webchat-text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webchat-catalog-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--webchat-primary);
    margin-top: 4px;
}

.webchat-catalog-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--webchat-surface);
    color: var(--webchat-text);
    border: 1px solid var(--webchat-border);
    border-radius: var(--webchat-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.webchat-catalog-cta:hover {
    background: var(--webchat-bg);
    border-color: var(--webchat-primary-light);
    color: var(--webchat-primary);
}

.webchat-catalog-cta svg {
    flex-shrink: 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.webchat-offers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.webchat-offers-empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--webchat-primary);
    margin-bottom: 24px;
}

.webchat-offers-empty h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--webchat-text);
}

.webchat-offers-empty p {
    margin: 0;
    font-size: 15px;
    color: var(--webchat-text-secondary);
    max-width: 400px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .webchat-offers-header {
        padding: 10px 16px;
    }

    .webchat-offers-title {
        font-size: 18px;
    }

    .webchat-offers-main {
        padding: 16px;
        padding-bottom: 100px;
    }

    .webchat-offers-grid,
    .webchat-catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .webchat-offer-image {
        height: 200px;
    }

    .webchat-catalog-image {
        height: 150px;
    }

    .webchat-section-header h2 {
        font-size: 20px;
    }
    
    .webchat-offer-content {
        padding: 16px;
    }
    
    .webchat-offer-title {
        font-size: 17px;
    }
    
    .webchat-offer-cta {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .webchat-offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .webchat-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .webchat-offers-carousel {
        display: none;
    }
}

/* ============================================
   FILTROS DE CATEGORÍA
   ============================================ */

.webchat-offers-category-filters {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
    background: var(--webchat-surface);
    border-bottom: 1px solid var(--webchat-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.webchat-offers-category-filters::-webkit-scrollbar {
    display: none;
}

.webchat-category-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 20px;
    background: var(--webchat-bg);
    border: 2px solid var(--webchat-border);
    color: var(--webchat-text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.webchat-category-filter:hover {
    border-color: var(--webchat-primary-light);
    background: rgba(124, 58, 237, 0.05);
}

.webchat-category-filter.active {
    background: linear-gradient(135deg, var(--webchat-primary), var(--webchat-primary-dark));
    border-color: var(--webchat-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.webchat-category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.webchat-category-filter.active .webchat-category-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   OFERTAS POR CATEGORÍA
   ============================================ */

.webchat-offers-by-category {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.webchat-offers-category-section {
    margin-bottom: 32px;
}

.webchat-offers-category-section:first-child {
    margin-top: 0;
}

/* ============================================
   ETIQUETA FLASH
   ============================================ */

.webchat-offer-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.webchat-offer-flash-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 10;
    animation: flashPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    line-height: 1.2;
    transform: none;
}

@keyframes flashPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5),
                    0 2px 8px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7),
                    0 3px 10px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
}

/* ============================================
   ACCIONES ADICIONALES
   ============================================ */

.webchat-offer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.webchat-offer-cta {
    flex: 1;
}


/* ============================================
   RESPONSIVE MEJORADO
   ============================================ */

@media (max-width: 767px) {
    .webchat-offers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .webchat-offer-image {
        height: 200px;
    }
    
    .webchat-offer-actions {
        flex-wrap: wrap;
    }
    
    
    .webchat-offers-category-filters {
        padding: 12px 16px;
    }
    
    .webchat-category-filter {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .webchat-offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (min-width: 1440px) {
    .webchat-offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* ============================================
   MODAL DE AUTENTICACIÓN
   ============================================ */

.webchat-auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.webchat-auth-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.webchat-auth-modal {
    background: var(--webchat-surface);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.webchat-auth-modal-overlay.active .webchat-auth-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.webchat-auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--webchat-bg);
    border: 1px solid var(--webchat-border);
    color: var(--webchat-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.webchat-auth-modal-close:hover {
    background: var(--webchat-border);
    color: var(--webchat-text);
    transform: rotate(90deg);
}

.webchat-auth-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--webchat-primary);
}

.webchat-auth-modal-content {
    text-align: center;
}

.webchat-auth-modal-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--webchat-text);
    line-height: 1.3;
}

.webchat-auth-modal-description {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--webchat-text-secondary);
    line-height: 1.5;
}

.webchat-auth-modal-offer-info {
    background: var(--webchat-bg);
    border: 1px solid var(--webchat-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.webchat-auth-modal-offer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--webchat-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.webchat-auth-modal-offer-title::before {
    content: '🎁';
    font-size: 20px;
}

.webchat-auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.webchat-auth-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.webchat-auth-modal-btn svg {
    flex-shrink: 0;
}

.webchat-auth-modal-btn-login {
    background: linear-gradient(135deg, var(--webchat-primary), var(--webchat-primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.webchat-auth-modal-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.webchat-auth-modal-btn-register {
    background: var(--webchat-surface);
    color: var(--webchat-text);
    border: 2px solid var(--webchat-border);
}

.webchat-auth-modal-btn-register:hover {
    background: var(--webchat-bg);
    border-color: var(--webchat-primary-light);
    color: var(--webchat-primary);
    transform: translateY(-2px);
}

.webchat-auth-modal-footer {
    margin: 0;
    font-size: 12px;
    color: var(--webchat-text-secondary);
    opacity: 0.7;
}

/* Dark Mode Support */
.webchat-dark-mode .webchat-auth-modal-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.webchat-dark-mode .webchat-auth-modal {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
    .webchat-auth-modal {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .webchat-auth-modal-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .webchat-auth-modal-title {
        font-size: 20px;
    }
    
    .webchat-auth-modal-description {
        font-size: 14px;
    }
    
    .webchat-auth-modal-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================
   BOTÓN MODO OSCURO FLOTANTE (No autenticado)
   ============================================ */

.webchat-dark-mode-toggle-floating {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--webchat-primary), var(--webchat-primary-dark)) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9998 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.webchat-dark-mode-toggle-floating:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.webchat-dark-mode-toggle-floating:active {
    transform: scale(0.95) translateY(0) !important;
}

.webchat-dark-mode-toggle-floating svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5 !important;
}

/* Dark mode support para el botón flotante */
.webchat-dark-mode .webchat-dark-mode-toggle-floating {
    background: linear-gradient(135deg, #4c1d95, #5b21b6) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 24px rgba(76, 29, 149, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.webchat-dark-mode .webchat-dark-mode-toggle-floating:hover {
    box-shadow: 0 12px 32px rgba(76, 29, 149, 0.6),
                0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .webchat-dark-mode-toggle-floating {
        bottom: 20px !important;
        right: 20px !important;
        width: 52px !important;
        height: 52px !important;
    }
    
    .webchat-dark-mode-toggle-floating svg {
        width: 22px !important;
        height: 22px !important;
    }
}

@media (max-width: 480px) {
    .webchat-dark-mode-toggle-floating {
        bottom: 16px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
    }
    
    .webchat-dark-mode-toggle-floating svg {
        width: 20px !important;
        height: 20px !important;
    }
}




