.tippy-box[data-theme~='wateke'] {
    width: max-content;
    max-width: 400px;
    padding: 7px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    background: white;
    background-color: white;
    color: var(--primary-color);
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.tippy-box[data-theme~='tippy'] {
    width: max-content;
    max-width: 400px;
    padding: 7px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    background: white;
    background-color: white;
    color: var(--primary-color);
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.tippy-box[data-theme~='wateke']>.tippy-arrow::before,
.tippy-box[data-theme~='tippy']>.tippy-arrow::before {
    display: none;
}


@keyframes tada {
    0% {
        transform: scale(1);
    }

    2.5%,
    5% {
        transform: scale(0.9) rotate(-3deg);
    }

    7.5%,
    12.5%,
    17.5%,
    22.5% {
        transform: scale(1.1) rotate(3deg);
    }

    10%,
    15%,
    20% {
        transform: scale(1.1) rotate(-3deg);
    }

    25% {
        transform: scale(1) rotate(0);
    }
}

.tippy-box[data-animation='rotate'][data-state='visible'] {
    animation-duration: 3.5s;
    animation-iteration-count: infinite;
    animation-name: tada;
}

/* ============================================ */
/* TIPPY MODERNO - VERSIÓN PROFESIONAL          */
/* ============================================ */

/* Tema principal - Moderno y elegante */
.tippy-box[data-theme~='wateke-v2'],
.tippy-box[data-theme~='tippy-v2'] {
    width: max-content;
    max-width: 380px;
    background: linear-gradient(135deg, #1a2c3e 0%, #0f1e2c 100%);
    color: #ffffff;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    letter-spacing: -0.2px;
    border: none;
}

/* Tema alternativo con borde color primario (más llamativo) */
.tippy-box[data-theme~='wateke-outline'] {
    width: max-content;
    max-width: 380px;
    background: #ffffff;
    color: #1a2c3e;
    border-radius: 12px;
    border: 1.5px solid var(--secondary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    letter-spacing: -0.2px;
}

/* Tema para contenido HTML (con negritas y estilos internos) */
.tippy-box[data-theme~='wateke-html'],
.tippy-box[data-theme~='tippy-html'] {
    width: max-content;
    max-width: 420px;
    background: #ffffff;
    color: #1f2d3d;
    border-radius: 16px;
    border: 1px solid #e9edf2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 12px 16px;
}

/* Estilos para contenido HTML dentro del tippy */
.tippy-box[data-theme~='wateke-html'] strong,
.tippy-box[data-theme~='tippy-html'] strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.tippy-box[data-theme~='wateke-html'] i,
.tippy-box[data-theme~='tippy-html'] i {
    color: var(--secondary-color);
    margin-right: 4px;
}

/* Flecha del tippy */
.tippy-box[data-theme~='wateke-v2'] .tippy-arrow,
.tippy-box[data-theme~='tippy-v2'] .tippy-arrow,
.tippy-box[data-theme~='wateke-outline'] .tippy-arrow,
.tippy-box[data-theme~='wateke-html'] .tippy-arrow,
.tippy-box[data-theme~='tippy-html'] .tippy-arrow {
    color: #1a2c3e;
}

.tippy-box[data-theme~='wateke-outline'] .tippy-arrow {
    color: #ffffff;
    filter: drop-shadow(0 -1px 0 var(--primary-color)) drop-shadow(1px 0 0 var(--primary-color));
}

.tippy-box[data-theme~='wateke-html'] .tippy-arrow,
.tippy-box[data-theme~='tippy-html'] .tippy-arrow {
    color: #ffffff;
    filter: drop-shadow(0 -1px 0 #e9edf2);
}

/* Ocultar flecha si no la quieres (como tenías antes) */
.tippy-box[data-theme~='wateke-no-arrow'] .tippy-arrow,
.tippy-box[data-theme~='tippy-no-arrow'] .tippy-arrow {
    display: none;
}

/* ============================================ */
/* ANIMACIONES MODERNAS                         */
/* ============================================ */

/* Animación tada mejorada (más suave y profesional) */
@keyframes tada-pro {
    0% {
        transform: scale(1);
    }
    3% {
        transform: scale(0.95) rotate(-2deg);
    }
    6% {
        transform: scale(1.05) rotate(2deg);
    }
    9% {
        transform: scale(1.05) rotate(-2deg);
    }
    12% {
        transform: scale(1.02) rotate(1deg);
    }
    15% {
        transform: scale(1) rotate(0);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

/* Animación fade + slide (entrada suave) */
@keyframes fade-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación sutil de pulso para llamar la atención */
@keyframes soft-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 100, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 100, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 100, 0, 0);
    }
}

/* Aplicar animaciones */
.tippy-box[data-animation='tada'][data-state='visible'] {
    animation-name: tada-pro;
    animation-duration: 2.5s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
}

.tippy-box[data-animation='fade-slide'][data-state='visible'] {
    animation-name: fade-slide-in;
    animation-duration: 0.2s;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.tippy-box[data-animation='soft-pulse'][data-state='visible'] {
    animation-name: soft-pulse;
    animation-duration: 1.5s;
    animation-iteration-count: 2;
}

/* Animación de entrada rápida (por defecto recomendada) */
.tippy-box[data-animation='fast'][data-state='visible'] {
    animation-name: fade-slide-in;
    animation-duration: 0.15s;
    animation-timing-function: ease-out;
}

/* ============================================ */
/* VARIANTES ADICIONALES                        */
/* ============================================ */

/* Tema oscuro moderno */
.tippy-box[data-theme~='dark-modern'] {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tema light con acento primario */
.tippy-box[data-theme~='light-accent'] {
    background: #ffffff;
    color: #1f2d3d;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tema para tooltips largos o con múltiples líneas */
.tippy-box[data-theme~='multiline'] {
    max-width: 320px;
    text-align: left;
    line-height: 1.45;
    padding: 10px 14px;
}

.tippy-box[data-theme~='multiline'] br {
    display: block;
    content: "";
    margin: 4px 0;
}

/* ============================================ */
/* MEJORAS PARA EL CONTENIDO INTERNO            */
/* ============================================ */

/* Estilos para el contenido del tippy cuando tiene HTML */
.tippy-content {
    padding: 0;
    text-transform: uppercase !important;
}

.tippy-box[data-theme~='wateke-v2'] .tippy-content,
.tippy-box[data-theme~='tippy-v2'] .tippy-content {
    font-weight: 500;
}

.tippy-box[data-theme~='wateke-html'] .tippy-content strong {
    display: inline-block;
    color: var(--secondary-color);
}

/* Íconos dentro del tippy */
.tippy-box .tippy-content i {
    margin-right: 6px;
    font-size: 0.9em;
}

/* Forzar que TODOS los tooltips no bloqueen clicks */
.tippy-box,
.tippy-content,
.tippy-popper,
.tippy-tooltip,
div[data-tippy-root] {
    pointer-events: none !important;
}

/* Asegurar que los botones sean clickeables */
.wtk-action-btn,
button[data-tippy-content],
[tippy] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ============================================ */
/* FIX: Evitar conflictos de punteros           */
/* ============================================ */

/* Esto permite que los tooltips no bloqueen interacciones */
.tippy-box,
.tippy-content {
    pointer-events: none !important;
}

/* Pero los elementos origen deben ser clickeables */
[tippy], 
[tippy-modern], 
.wtk-action-btn,
button[data-tippy-content] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Asegurar que los tooltips legacy tengan el estilo correcto */
.tippy-box[data-theme~='wateke'] .tippy-content {
    padding: 4px 8px;
}

/* Forzar que los tooltips no se recreen innecesariamente */
.tippy-popper {
    will-change: transform;
}

/* Prevenir flickering */
.tippy-box[data-state='hidden'] {
    display: none;
}
