/**
 * Estilos para Dogston Promos y Cuotas - 8-BIT RETRO PIXEL - MEJORADO
 * Version: 2.0.0
 * Estética: Retro 8-bit / Pixel Art Gaming
 * Incluye: CRT effects, Neon glow, Glitch effects, Power-up particles
 */

/* ==========================================
   1. VARIABLES CSS
========================================= */

:root {
    --dpc-green: #00ff41;
    --dpc-cyan: #00ffff;
    --dpc-yellow: #ffd700;
    --dpc-red: #ff0044;
    --dpc-pink: #ff8eb4;
    --dpc-purple: #8500ff;
    --dpc-white: #e8e8e8;
    --dpc-bg-dark: #0d0d1a;
    --dpc-bg-card: #12122a;
    --dpc-border: #8500ff;
    --dpc-font-pixel: 'Press Start 2P', monospace;
    --dpc-font-body: 'Outfit', sans-serif;
    --dpc-shadow-8bit: 4px 4px 0px 0px rgba(133, 0, 255, 0.5);
}

/* ==========================================
   2. KEYFRAMES - ANIMACIONES 8-BIT MEJORADAS
========================================= */

/* Fade in tipo pixel — aparece en 3 pasos */
@keyframes dpcPixelFadeIn {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }
    33% {
        opacity: 0.4;
        transform: translateY(2px);
    }
    66% {
        opacity: 0.8;
        transform: translateY(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parpadeo retro tipo CRT */
@keyframes dpcRetroFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

/* Scanline horizontal 8-bit */
@keyframes dpcScanline {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(3000%); opacity: 0; }
}

/* Borde que pulsa como un indicador de selección */
@keyframes dpcBorderPulse {
    0%, 100% {
        box-shadow: var(--dpc-shadow-8bit),
                    0 0 10px rgba(133, 0, 255, 0.4);
    }
    50% {
        box-shadow: var(--dpc-shadow-8bit),
                    0 0 20px rgba(133, 0, 255, 0.6),
                    0 0 40px rgba(133, 0, 255, 0.3);
    }
}

/* Cursor parpadeante retro */
@keyframes dpcCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Pixel float sutil */
@keyframes dpcPixelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* === NUEVAS ANIMACIONES MEJORADAS === */

/* Scanlines CRT moviéndose verticalmente */
@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

/* Glow neón pulsante */
@keyframes glowPulse {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.18; transform: scale(1.08); }
}

/* Partículas flotantes tipo power-up */
@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; }
    100% { transform: translateY(-60px) translateX(-30px) scale(0.5); opacity: 0; }
}

/* Efecto glitch en texto */
@keyframes glitchText {
    0%, 100% { 
        text-shadow: 
            0 0 15px var(--cpc-promo-color, var(--dpc-green)),
            2px 2px 0px rgba(0, 0, 0, 0.8);
    }
    25% { 
        text-shadow: 
            0 0 15px var(--cpc-promo-color, var(--dpc-green)),
            -2px 0px var(--dpc-cyan),
            2px 2px 0px rgba(0, 0, 0, 0.8);
        transform: translateX(-2px);
    }
    50% { 
        text-shadow: 
            0 0 15px var(--cpc-promo-color, var(--dpc-green)),
            2px 0px var(--dpc-pink),
            2px 2px 0px rgba(0, 0, 0, 0.8);
        transform: translateX(2px);
    }
    75% { 
        text-shadow: 
            0 0 15px var(--cpc-promo-color, var(--dpc-green)),
            -1px -1px var(--dpc-yellow),
            2px 2px 0px rgba(0, 0, 0, 0.8);
        transform: translateX(-1px);
    }
}

/* Power bar animada */
@keyframes powerBarMove {
    0% { transform: translateX(-16px); }
    100% { transform: translateX(0); }
}

/* Ring rotativo tipo cursor de selección */
@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efecto "level up" en hover */
@keyframes levelUp {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(-12px) scale(1.08); }
    75% { transform: translateY(-6px) scale(1.03); }
}

/* Shimmer mejorado */
@keyframes shimmerV4 {
    0% { transform: translateX(-200%) skewX(-20deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(400%) skewX(-20deg); opacity: 0; }
}

/* Pixel border slide */
@keyframes pixelBorderSlide {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

/* Tooltip bounce 8-bit */
@keyframes tooltipBounceIn8bit {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   3. BANNERS DE PROMOCIONES HOME - 8-BIT LAYOUT MEJORADO
========================================= */

.cpc-home-promos-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
    justify-content: stretch !important;
    align-items: stretch !important;
}

/* Banner DIRECTO sin wrapper link */
.cpc-home-promos-wrapper>.cpc-home-promo-banner {
    flex: 1 1 0 !important;
    min-width: 200px !important;
    max-width: none !important;
}

/* Wrapper link */
.cpc-home-promo-link {
    text-decoration: none !important;
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 200px !important;
    max-width: none !important;
    outline: none !important;
}

.cpc-home-promo-link>.cpc-home-promo-banner {
    width: 100%;
}

/* Banner principal — estilo 8-BIT con borde pixel MEJORADO */
.cpc-home-promo-banner {
    position: relative;
    border-radius: 0 !important;
    border: 3px solid var(--dpc-border);
    background: var(--dpc-bg-card);
    overflow: hidden;
    transition: all 0.15s steps(4);
    box-shadow: var(--dpc-shadow-8bit);
    display: flex;
    align-items: center;
    padding: 18px 24px;
    isolation: isolate;
    animation: dpcBorderPulse 3s steps(2) infinite;
}

/* Borde izquierdo neon pixelado MEJORADO con animación */
.cpc-home-promo-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: repeating-linear-gradient(180deg,
            var(--cpc-promo-color, var(--dpc-green)) 0%,
            var(--cpc-promo-color, var(--dpc-green)) 20%,
            transparent 20%,
            transparent 50%,
            var(--cpc-promo-color, var(--dpc-green)) 50%,
            var(--cpc-promo-color, var(--dpc-green)) 70%,
            transparent 70%);
    background-size: 100% 20px;
    z-index: 5;
    transition: width 0.15s steps(3);
    animation: pixelBorderSlide 2s steps(4) infinite;
}

/* Scanline desactivado */
.cpc-home-promo-banner::after {
    display: none;
}

/* === NUEVO: Scanlines CRT verticales === */
.cpc-home-promo-banner .cpc-crt-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanlineMove 10s linear infinite;
}

/* Glow de fondo MEJORADO con pulse */
.cpc-promo-glow {
    position: absolute;
    top: -80%;
    right: -50%;
    width: 120%;
    height: 260%;
    background: radial-gradient(ellipse at center,
            var(--cpc-promo-color, var(--dpc-green)) 0%,
            transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    animation: glowPulse 4s steps(4) infinite;
}

/* Shimmer desactivado */
.cpc-home-promo-banner .cpc-promo-shimmer {
    display: none;
}

/* Borde superior animado MEJORADO - power bar */
.cpc-home-promo-banner .cpc-border-animate {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            var(--cpc-promo-color, var(--dpc-green)) 0px,
            var(--cpc-promo-color, var(--dpc-green)) 8px,
            transparent 8px,
            transparent 16px);
    z-index: 4;
    opacity: 0.8;
    animation: powerBarMove 2s steps(4) infinite;
}

/* === NUEVO: Partículas flotantes tipo power-up === */
.cpc-promo-particles {
    display: block !important;
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.cpc-promo-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cpc-promo-color, var(--dpc-green));
    box-shadow: 0 0 8px var(--cpc-promo-color, var(--dpc-green));
    animation: particleFloat 5s steps(10) infinite;
}

.cpc-promo-particles span:nth-child(1) { top: 20%; left: 85%; animation-delay: 0s; }
.cpc-promo-particles span:nth-child(2) { top: 60%; left: 90%; background: var(--dpc-cyan); box-shadow: 0 0 8px var(--dpc-cyan); animation-delay: 1.2s; }
.cpc-promo-particles span:nth-child(3) { top: 40%; left: 88%; background: var(--dpc-yellow); box-shadow: 0 0 8px var(--dpc-yellow); animation-delay: 2.4s; }
.cpc-promo-particles span:nth-child(4) { top: 75%; left: 92%; animation-delay: 3.6s; }
.cpc-promo-particles span:nth-child(5) { top: 30%; left: 87%; background: var(--dpc-pink); box-shadow: 0 0 8px var(--dpc-pink); animation-delay: 4.8s; }

/* HOVER del banner — efecto 8-bit MEJORADO */
.cpc-home-promo-link:hover .cpc-home-promo-banner,
.cpc-home-promo-banner:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px 0px var(--dpc-border),
                0 0 30px color-mix(in srgb, var(--cpc-promo-color, var(--dpc-green)) 30%, transparent);
    border-color: var(--cpc-promo-color, var(--dpc-green));
}

.cpc-home-promo-link:hover .cpc-home-promo-banner::before,
.cpc-home-promo-banner:hover::before {
    width: 8px;
}

/* Shimmer hover desactivado */

.cpc-home-promo-link:hover .cpc-promo-glow,
.cpc-home-promo-banner:hover .cpc-promo-glow {
    opacity: 0.18;
}

/* Content Layout */
.cpc-promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 18px;
    position: relative;
    z-index: 10;
}

/* Logo con estilo pixel MEJORADO */
.cpc-promo-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dpc-bg-dark);
    border-radius: 0 !important;
    padding: 8px;
    border: 2px solid var(--dpc-border);
    box-shadow: 3px 3px 0px 0px rgba(133, 0, 255, 0.4);
    transition: all 0.15s steps(3);
    position: relative;
    animation: dpcPixelFloat 4s steps(6) infinite;
}

/* === NUEVO: Ring rotativo tipo cursor de selección === */
.cpc-promo-logo::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px dashed var(--cpc-promo-color, var(--dpc-green));
    opacity: 0.4;
    transition: opacity 0.15s steps(2);
    pointer-events: none;
    animation: rotateRing 6s linear infinite;
}

.cpc-home-promo-link:hover .cpc-promo-logo,
.cpc-home-promo-banner:hover .cpc-promo-logo {
    animation: levelUp 0.6s steps(8) forwards;
    box-shadow: 5px 5px 0px 0px rgba(133, 0, 255, 0.5);
    border-color: var(--cpc-promo-color, var(--dpc-green));
}

.cpc-home-promo-link:hover .cpc-promo-logo::before,
.cpc-home-promo-banner:hover .cpc-promo-logo::before {
    opacity: 0.8;
}

.cpc-promo-logo:empty {
    display: none !important;
}

.cpc-promo-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

/* Text Content */
.cpc-promo-text-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* Título — fuente pixel MEJORADO */
.cpc-promo-title {
    margin: 0 !important;
    font-family: var(--dpc-font-pixel) !important;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cpc-promo-color, var(--dpc-green));
    text-shadow:
        0 0 15px var(--cpc-promo-color, var(--dpc-green)),
        2px 2px 0px rgba(0, 0, 0, 0.8);
    position: relative;
    text-align: center;
    width: 100%;
}

/* ► cursor blinkeo antes del título en hover */
.cpc-promo-title::before {
    content: '►';
    position: absolute;
    left: -18px;
    color: var(--dpc-yellow);
    opacity: 0;
    transition: opacity 0.1s steps(2);
    animation: dpcCursorBlink 1s steps(2) infinite;
}

/* === NUEVO: Efecto glitch en hover === */
.cpc-home-promo-link:hover .cpc-promo-title,
.cpc-home-promo-banner:hover .cpc-promo-title {
    animation: glitchText 0.3s steps(2) forwards;
}

.cpc-home-promo-link:hover .cpc-promo-title::before,
.cpc-home-promo-banner:hover .cpc-promo-title::before {
    opacity: 1;
}

/* Línea debajo del título */
.cpc-promo-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--cpc-promo-color, var(--dpc-green));
    transition: width 0.2s steps(5);
}

.cpc-home-promo-link:hover .cpc-promo-title::after,
.cpc-home-promo-banner:hover .cpc-promo-title::after {
    width: 60%;
}

.cpc-promo-subtitle {
    margin: 0 !important;
    font-family: var(--dpc-font-body) !important;
    font-size: clamp(0.75rem, 1.3vw, 0.95rem);
    color: rgba(232, 232, 232, 0.8);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

/* === NUEVO: Indicador tipo "score" antes del subtítulo === */
.cpc-promo-subtitle::before {
    content: ' ► ';
    color: var(--dpc-yellow);
    font-family: var(--dpc-font-pixel);
    font-size: 10px;
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.2s steps(2);
}

.cpc-home-promo-link:hover .cpc-promo-subtitle::before,
.cpc-home-promo-banner:hover .cpc-promo-subtitle::before {
    opacity: 1;
}

/* ==========================================
   4. PRECIOS EN PRODUCTOS - 8-BIT STYLE MEJORADO
========================================= */

/* Contenedor principal */
.cyd-pricing-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 18px;
    width: 100%;
    overflow: visible !important;
}

/* Item individual — estilo 8-bit card MEJORADO */
.cyd-pricing-item {
    display: flex;
    align-items: center;
    gap: 0px 10px;
    padding: 8px 20px 8px 12px;
    border-radius: 0 !important;
    background: var(--dpc-bg-card);
    border: 2px solid rgba(133, 0, 255, 0.3);
    border-left: 4px solid rgba(133, 0, 255, 0.6);
    transition: all 0.15s steps(4);
    box-shadow: 3px 3px 0px 0px rgba(133, 0, 255, 0.25);
    position: relative;
    overflow: hidden;
    animation: dpcPixelFadeIn 0.3s steps(4) both;
}

/* Hover glow line izquierda */
.cyd-pricing-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dpc-green);
    opacity: 0;
    transition: opacity 0.1s steps(2);
    z-index: 2;
}

/* Shimmer pixel MEJORADO */
.cyd-pricing-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.06) 50%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s steps(3);
}

.cyd-pricing-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px 0px rgba(133, 0, 255, 0.35);
    border-color: rgba(133, 0, 255, 0.5);
}

.cyd-pricing-item:hover::before {
    opacity: 1;
}

.cyd-pricing-item:hover::after {
    animation: shimmerV4 0.8s steps(8) forwards;
    opacity: 1;
}

/* Icono */
.cyd-pricing-item .cyd-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin: 0;
    z-index: 1;
    transition: transform 0.15s steps(3);
}

.cyd-pricing-item:hover .cyd-icon {
    transform: scale(1.1);
}

/* Texto */
.cyd-pricing-item .cyd-text {
    font-family: var(--dpc-font-body) !important;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 0;
    z-index: 1;
}

/* Descuento — verde MEJORADO */
.cyd-discount {
    background: rgba(0, 255, 65, 0.06);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-left: 4px solid rgba(0, 255, 65, 0.6);
}

.cyd-discount:hover {
    border-color: rgba(0, 255, 65, 0.4);
    border-left-color: var(--dpc-green);
    box-shadow: 5px 5px 0px 0px rgba(0, 255, 65, 0.2);
}

.cyd-discount::before {
    background: var(--dpc-green);
}

/* Cuotas — cyan MEJORADO */
.cyd-installment {
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-left: 4px solid rgba(0, 255, 255, 0.6);
}

.cyd-installment:hover {
    border-color: rgba(0, 255, 255, 0.4);
    border-left-color: var(--dpc-cyan);
    box-shadow: 5px 5px 0px 0px rgba(0, 255, 255, 0.2);
}

.cyd-installment::before {
    background: var(--dpc-cyan);
}

/* Texto personalizado — rosa MEJORADO */
.cyd-custom-text {
    background: rgba(255, 142, 180, 0.05);
    border: 2px solid rgba(255, 142, 180, 0.2);
    border-left: 4px solid rgba(255, 142, 180, 0.6);
}

.cyd-custom-text:hover {
    border-color: rgba(255, 142, 180, 0.4);
    border-left-color: var(--dpc-pink);
    box-shadow: 5px 5px 0px 0px rgba(255, 142, 180, 0.2);
}

.cyd-custom-text::before {
    background: var(--dpc-pink);
}

/* Animaciones escalonadas */
.cyd-pricing-item:nth-child(1) { animation-delay: 0.05s; }
.cyd-pricing-item:nth-child(2) { animation-delay: 0.1s; }
.cyd-pricing-item:nth-child(3) { animation-delay: 0.15s; }
.cyd-pricing-item:nth-child(4) { animation-delay: 0.2s; }
.cyd-pricing-item:nth-child(5) { animation-delay: 0.25s; }
.cyd-pricing-item:nth-child(6) { animation-delay: 0.3s; }
.cyd-pricing-item:nth-child(7) { animation-delay: 0.35s; }
.cyd-pricing-item:nth-child(8) { animation-delay: 0.4s; }
.cyd-pricing-item:nth-child(9) { animation-delay: 0.45s; }
.cyd-pricing-item:nth-child(10) { animation-delay: 0.5s; }

/* Catálogo */
.woocommerce ul.products li.product .cyd-pricing-container {
    margin-top: 6px;
}
.woocommerce ul.products li.product .cyd-pricing-item {
    padding: 5px 8px;
    box-shadow: 2px 2px 0px 0px rgba(133, 0, 255, 0.2);
}
.woocommerce ul.products li.product .cyd-pricing-item .cyd-text {
    font-size: 11px;
}
.woocommerce ul.products li.product .cyd-pricing-item .cyd-icon {
    width: 16px;
    height: 16px;
}

/* Variaciones */
.woocommerce-variation-price .cyd-pricing-container,
.single-product .cyd-pricing-container {
    margin-top: 16px;
}

/* Overflow-wrap */
.cyd-pricing-item {
    min-width: 0;
    overflow-wrap: break-word;
}
.cyd-pricing-item .cyd-text {
    flex: 1;
    min-width: 0;
}

/* ==========================================
   5. TOOLTIPS - 8-BIT STYLE MEJORADO
========================================= */

.cyd-pricing-item.cyd-has-tooltip {
    position: relative;
    cursor: pointer;
    overflow: visible !important;
}

.cyd-tooltip-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    z-index: -1;
}

.cyd-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin-left: 6px;
    color: currentColor;
    opacity: 0.5;
    transition: all 0.1s steps(3);
    flex-shrink: 0;
    position: relative;
}

.cyd-info-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2px;
}

.cyd-pricing-item.cyd-has-tooltip:hover .cyd-info-icon,
.cyd-pricing-item.cyd-tooltip-expanded .cyd-info-icon {
    opacity: 1;
    transform: scale(1.15);
}

.cyd-info-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 0;
    background: currentColor;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.2s steps(3);
}

.cyd-pricing-item.cyd-has-tooltip:hover .cyd-info-icon::before,
.cyd-pricing-item.cyd-tooltip-expanded .cyd-info-icon::before {
    opacity: 0.25;
}

/* TOOLTIP DESKTOP — pixel dialog box MEJORADO */
.cyd-tooltip-bubble {
    display: none;
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    background: var(--dpc-bg-card);
    border: 3px solid var(--dpc-border);
    color: var(--dpc-white);
    padding: 12px 16px;
    border-radius: 0 !important;
    font-family: var(--dpc-font-body);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    width: max-content;
    min-width: 140px;
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    box-shadow:
        4px 4px 0px 0px var(--dpc-border),
        0 0 20px rgba(133, 0, 255, 0.3);
    opacity: 0;
    transition: opacity 0.15s steps(3), transform 0.15s steps(3);
}

.cyd-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--dpc-bg-card);
}

/* TOOLTIP MOBILE — expandible */
@media (max-width: 767px) {
    .cyd-pricing-item.cyd-has-tooltip {
        flex-wrap: wrap;
    }

    .cyd-pricing-item.cyd-has-tooltip::after {
        content: attr(data-info);
        display: block !important;
        width: 100%;
        max-height: 0;
        margin-top: 0;
        padding: 0;
        border: none;
        opacity: 0;
        background: transparent;
        color: rgba(232, 232, 232, 0.6);
        font-family: var(--dpc-font-body);
        font-size: 12px;
        line-height: 1.5;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow: hidden;
        transition: max-height 0.3s steps(5),
            opacity 0.2s steps(3),
            padding 0.2s steps(3),
            margin-top 0.2s steps(3);
        order: 999;
        pointer-events: none;
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        visibility: visible;
        border-radius: 0;
    }

    .cyd-pricing-item.cyd-tooltip-expanded::after {
        max-height: 500px;
        opacity: 1;
        padding: 8px 0 4px 14px;
        margin-top: 4px;
        pointer-events: auto;
        border-top: 1px dashed rgba(133, 0, 255, 0.3);
    }

    /* Flecha indicadora en mobile */
    .cyd-pricing-item.cyd-has-tooltip::before {
        content: '';
        position: absolute;
        right: 7px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid var(--dpc-purple);
        opacity: 0.6;
        transition: transform 0.2s steps(3), border-top-color 0.2s steps(3);
        z-index: 1;
        left: auto;
        bottom: auto;
        background: none;
        border-radius: 0;
        box-shadow: none;
        animation: none !important;
        visibility: visible;
    }

    .cyd-pricing-item.cyd-tooltip-expanded::before {
        transform: translateY(-50%) rotate(180deg);
        border-top-color: var(--dpc-green);
    }
}

/* ==========================================
   6. RESPONSIVE MEJORADO
========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .cpc-home-promos-wrapper {
        gap: 14px;
    }
    .cpc-home-promo-banner {
        padding: 16px 20px;
    }
    .cpc-promo-content {
        gap: 14px;
    }
    .cpc-promo-logo {
        width: 50px;
        height: 50px;
        padding: 7px;
    }
    .cpc-promo-title {
        font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    }
    .cpc-promo-subtitle {
        font-size: clamp(0.72rem, 1.2vw, 0.88rem);
    }
}

/* Mobile — 1 columna */
@media (max-width: 768px) {
    .cpc-home-promos-wrapper {
        flex-direction: column !important;
        gap: 12px;
        margin: 20px 0;
    }
    .cpc-home-promos-wrapper>.cpc-home-promo-banner,
    .cpc-home-promo-link {
        flex: 0 0 100% !important;
        min-width: 100% !important;
    }
    .cpc-home-promo-banner {
        padding: 14px 16px;
    }
    .cpc-promo-content {
        gap: 12px;
    }
    .cpc-promo-logo {
        width: 44px;
        height: 44px;
        padding: 6px;
        animation: none;
    }
    .cpc-promo-title {
        font-size: 0.6rem;
    }
    .cpc-promo-title::before {
        display: none;
    }
    .cpc-promo-title::after {
        display: none;
    }
    .cpc-promo-subtitle {
        font-size: 0.75rem;
    }

    /* Pricing items mobile */
    .cyd-pricing-container {
        gap: 6px;
        margin-top: 10px;
        margin-bottom: 12px;
    }
    .cyd-pricing-item {
        padding: 6px 22px 6px 8px;
        gap: 0px;
    }
    .cyd-pricing-item .cyd-text {
        font-size: 12px;
        line-height: 1.35;
    }
    .cyd-pricing-item .cyd-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .cpc-home-promo-banner {
        padding: 12px 14px;
    }
    .cpc-promo-logo {
        width: 40px;
        height: 40px;
        padding: 5px;
    }
    .cpc-promo-title {
        font-size: 0.55rem;
    }
    .cpc-promo-subtitle {
        font-size: 0.7rem;
    }
}

/* ==========================================
   7. ACCESIBILIDAD MEJORADA
========================================= */

@media (prefers-reduced-motion: reduce) {
    .cpc-home-promo-banner::before,
    .cpc-home-promo-banner::after,
    .cpc-promo-glow,
    .cpc-promo-logo,
    .cpc-promo-title,
    .cyd-pricing-item,
    .cpc-promo-particles span,
    .cpc-border-animate,
    .cpc-crt-overlay {
        animation: none !important;
    }
    .cpc-home-promo-link:hover .cpc-home-promo-banner,
    .cpc-home-promo-banner:hover,
    .cyd-pricing-item:hover {
        transform: none;
    }
    .cpc-home-promo-link:hover .cpc-promo-shimmer,
    .cpc-home-promo-banner:hover .cpc-promo-shimmer,
    .cyd-pricing-item:hover::after {
        animation: none !important;
    }
}

/* ==========================================
   8. DARK MODE FORZADO
========================================= */

@media (prefers-color-scheme: light) {
    .cpc-home-promo-banner,
    .cyd-pricing-item {
        color-scheme: dark;
    }
}