/**
 * Estilos para Cardypop Promos y Cuotas - CYBERPUNK V4.3 FULL WIDTH
 * Version: 4.3.0
 * Estética: Cyberpunk/Gaming - Banners ocupan TODO el ancho
 * Layout: 1 promo = 100%, 2 promos = 50% cada una, 3 promos = 33% cada una
 * Colores base: #2bd5ff (cyan), #00ff88 (verde neón)
 */

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

:root {
    --cpc-cyan: #2bd5ff;
    --cpc-green: #00ff88;
    --cpc-pink: #ff8eb4;
    --cpc-purple: #ad81c5;
    --cpc-bg-dark: #0a0a0f;
    --cpc-bg-card: #111115;
    --cpc-glow-intensity: 0.8;
}

/* ==========================================
   2. KEYFRAMES - ANIMACIONES PREMIUM
========================================= */

/* Fade in con escala */
@keyframes cydFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scanline que viaja verticalmente con estela */
@keyframes scanlineV4 {
    0% {
        transform: translateY(-100%);
        opacity: 0;
        filter: blur(0px);
    }

    5% {
        opacity: 0.9;
        filter: blur(0px);
    }

    50% {
        opacity: 0.7;
        filter: blur(1px);
    }

    95% {
        opacity: 0.9;
        filter: blur(0px);
    }

    100% {
        transform: translateY(3000%);
        opacity: 0;
        filter: blur(0px);
    }
}

/* Pulso neón intenso */
@keyframes neonPulseV4 {

    0%,
    100% {
        box-shadow:
            0 0 5px var(--cpc-promo-color),
            0 0 15px var(--cpc-promo-color),
            0 0 30px var(--cpc-promo-color);
    }

    50% {
        box-shadow:
            0 0 10px var(--cpc-promo-color),
            0 0 30px var(--cpc-promo-color),
            0 0 60px var(--cpc-promo-color),
            0 0 100px var(--cpc-promo-color);
    }
}

/* Efecto glitch sutil en título */
@keyframes textGlitch {

    0%,
    90%,
    100% {
        text-shadow:
            0 0 20px var(--cpc-promo-color),
            0 2px 10px rgba(0, 0, 0, 0.8);
        transform: translateX(0);
    }

    91% {
        text-shadow:
            -2px 0 var(--cpc-cyan),
            2px 0 var(--cpc-green),
            0 0 20px var(--cpc-promo-color);
        transform: translateX(-1px);
    }

    93% {
        text-shadow:
            2px 0 var(--cpc-cyan),
            -2px 0 var(--cpc-green),
            0 0 20px var(--cpc-promo-color);
        transform: translateX(1px);
    }

    95% {
        text-shadow:
            0 0 20px var(--cpc-promo-color),
            0 2px 10px rgba(0, 0, 0, 0.8);
        transform: translateX(0);
    }
}

/* Partícula flotante mejorada */
@keyframes floatParticleV4 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }

    20% {
        transform: translateY(-25px) translateX(12px) scale(1.5);
        opacity: 0.8;
    }

    40% {
        transform: translateY(-15px) translateX(-8px) scale(0.8);
        opacity: 0.5;
    }

    60% {
        transform: translateY(-35px) translateX(15px) scale(1.3);
        opacity: 0.7;
    }

    80% {
        transform: translateY(-20px) translateX(-5px) scale(0.9);
        opacity: 0.4;
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }
}

/* Shimmer sweep Premium */
@keyframes shimmerV4 {
    0% {
        transform: translateX(-200%) skewX(-15deg);
    }

    100% {
        transform: translateX(300%) skewX(-15deg);
    }
}

/* Respiración del glow de fondo */
@keyframes glowBreatheV4 {

    0%,
    100% {
        opacity: 0.06;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.25) rotate(5deg);
    }
}

/* Borde animado circulating */
@keyframes borderCirculate {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Pulse ring para logo */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Logo hover 3D */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: translateY(-3px) rotateY(5deg) rotateX(2deg);
    }

    50% {
        transform: translateY(-5px) rotateY(0deg) rotateX(-2deg);
    }

    75% {
        transform: translateY(-2px) rotateY(-5deg) rotateX(1deg);
    }
}

/* ==========================================
   3. BANNERS DE PROMOCIONES HOME - FULL WIDTH LAYOUT
========================================= */

/* 
 * LAYOUT AUTOMÁTICO:
 * flex: 1 1 0 significa que todos los banners crecen por igual
 * Resultado:
 *   1 promo  = 100% del ancho
 *   2 promos = 50% cada una (juntas 100%)
 *   3 promos = 33.33% cada una (juntas 100%)
 */

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

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

/* Si hay wrapper link - OCUPA TODO EL ANCHO */
.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;
    perspective: 1000px;
}

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

/* Banner principal con efecto 3D */
.cpc-home-promo-banner {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg,
            rgba(20, 20, 25, 0.98) 0%,
            rgba(10, 10, 15, 0.98) 50%,
            rgba(15, 15, 22, 0.98) 100%);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 2px 0 rgba(255, 255, 255, 0.05) inset;
    display: flex;
    align-items: center;
    padding: 22px 28px;
    isolation: isolate;
    transform-style: preserve-3d;
}

/* Borde izquierdo neón INTENSO */
.cpc-home-promo-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg,
            var(--cpc-promo-color, var(--cpc-cyan)) 0%,
            var(--cpc-green) 50%,
            var(--cpc-promo-color, var(--cpc-cyan)) 100%);
    animation: neonPulseV4 2.5s ease-in-out infinite;
    z-index: 5;
    border-radius: 20px 0 0 20px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Scanline que baja */
.cpc-home-promo-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--cpc-promo-color, var(--cpc-cyan)) 20%,
            rgba(255, 255, 255, 0.9) 50%,
            var(--cpc-promo-color, var(--cpc-cyan)) 80%,
            transparent 100%);
    opacity: 0;
    animation: scanlineV4 6s linear infinite;
    z-index: 6;
    pointer-events: none;
    filter: blur(0.5px);
}

/* Glow de fondo con respiración */
.cpc-promo-glow {
    position: absolute;
    top: -80%;
    right: -50%;
    width: 100%;
    height: 260%;
    background: radial-gradient(ellipse at center,
            var(--cpc-promo-color, var(--cpc-cyan)) 0%,
            rgba(0, 255, 136, 0.3) 30%,
            transparent 70%);
    animation: glowBreatheV4 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

/* Shimmer sweep al hover */
.cpc-home-promo-banner .cpc-promo-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 25%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 75%);
    pointer-events: none;
    z-index: 3;
    transform: translateX(-200%) skewX(-15deg);
    opacity: 0;
}

/* Borde animado superior */
.cpc-home-promo-banner .cpc-border-animate {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--cpc-promo-color, var(--cpc-cyan)),
            var(--cpc-green),
            var(--cpc-promo-color, var(--cpc-cyan)),
            transparent);
    background-size: 200% 100%;
    animation: borderCirculate 3s linear infinite;
    z-index: 4;
    opacity: 0.7;
}

/* Hover del banner - EFECTO 3D */
.cpc-home-promo-link:hover .cpc-home-promo-banner,
.cpc-home-promo-banner:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.01);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.85),
        0 0 40px color-mix(in srgb, var(--cpc-promo-color, var(--cpc-cyan)) 35%, transparent),
        0 0 0 1px color-mix(in srgb, var(--cpc-promo-color, var(--cpc-cyan)) 40%, transparent);
    border-color: color-mix(in srgb, var(--cpc-promo-color, var(--cpc-cyan)) 50%, transparent);
}

.cpc-home-promo-link:hover .cpc-home-promo-banner::before,
.cpc-home-promo-banner:hover::before {
    width: 9px;
    box-shadow:
        0 0 15px var(--cpc-promo-color, var(--cpc-cyan)),
        0 0 40px var(--cpc-promo-color, var(--cpc-cyan)),
        0 0 80px var(--cpc-promo-color, var(--cpc-cyan));
}

.cpc-home-promo-link:hover .cpc-promo-shimmer,
.cpc-home-promo-banner:hover .cpc-promo-shimmer {
    animation: shimmerV4 1s ease forwards;
    opacity: 1;
}

.cpc-home-promo-link:hover .cpc-promo-glow,
.cpc-home-promo-banner:hover .cpc-promo-glow {
    opacity: 0.2;
    animation-duration: 2s;
}

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

/* Logo con efecto premium */
.cpc-promo-logo {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 20px color-mix(in srgb, var(--cpc-promo-color, var(--cpc-cyan)) 15%, transparent);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    animation: logoFloat 6s ease-in-out infinite;
}

/* Pulse ring behind logo */
.cpc-promo-logo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 2px solid var(--cpc-promo-color, var(--cpc-cyan));
    opacity: 0;
    animation: pulseRing 2s ease-in-out infinite;
    pointer-events: none;
}

.cpc-home-promo-link:hover .cpc-promo-logo,
.cpc-home-promo-banner:hover .cpc-promo-logo {
    transform: rotateY(-8deg) rotateX(5deg) scale(1.08) translateZ(20px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 30px color-mix(in srgb, var(--cpc-promo-color, var(--cpc-cyan)) 40%, transparent);
    animation: none;
}

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

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

.cpc-promo-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
    transition: filter 0.3s ease;
}

.cpc-home-promo-link:hover .cpc-promo-logo img,
.cpc-home-promo-banner:hover .cpc-promo-logo img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 10px color-mix(in srgb, var(--cpc-promo-color, var(--cpc-cyan)) 50%, transparent));
}

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

/* Título con efecto glitch sutil */
.cpc-promo-title {
    margin: 0 !important;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow:
        0 0 25px var(--cpc-promo-color, var(--cpc-cyan)),
        0 3px 10px rgba(0, 0, 0, 0.9);
    animation: textGlitch 8s ease-in-out infinite;
    position: relative;
    text-align: center;
    width: 100%;
}

/* Línea debajo del título - CENTRADA */
.cpc-promo-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    /* Centrar */
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--cpc-promo-color, var(--cpc-cyan)),
            var(--cpc-green));
    box-shadow: 0 0 10px var(--cpc-promo-color, var(--cpc-cyan));
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cpc-promo-subtitle {
    margin: 0 !important;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    color: rgba(230, 230, 235, 0.9);
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    text-align: center;
    width: 100%;
}

/* ==========================================
   4. PRECIOS EN PRODUCTOS - V4
========================================= */

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

/* Item individual - Premium look */
.cyd-pricing-item {
    display: flex;
    align-items: center;
    gap: 0px 12px;
    padding: 10px 23px 10px 12px;
    border-radius: 10px;
    background:
        linear-gradient(135deg,
            rgba(43, 213, 255, 0.06) 0%,
            rgba(0, 255, 136, 0.04) 50%,
            rgba(43, 213, 255, 0.03) 100%);
    border: 1px solid rgba(43, 213, 255, 0.18);
    border-left: 4px solid rgba(43, 213, 255, 0.6);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    position: relative;
    overflow: hidden;
    animation: cydFadeIn 0.4s ease both;
}

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

.cyd-pricing-item:hover {
    transform: translateY(-3px) translateX(2px);
    box-shadow:
        0 8px 25px rgba(43, 213, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    border-color: rgba(43, 213, 255, 0.45);
    border-left-color: var(--cpc-cyan);
}

.cyd-pricing-item:hover::after {
    animation: shimmerV4 0.8s ease forwards;
    opacity: 1;
}

/* Borde glow izquierdo */
.cyd-pricing-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            var(--cpc-cyan) 0%,
            var(--cpc-green) 50%,
            var(--cpc-cyan) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    box-shadow:
        0 0 15px rgba(43, 213, 255, 0.6),
        0 0 30px rgba(43, 213, 255, 0.3);
    z-index: 2;
}

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

/* Icono */
.cyd-pricing-item .cyd-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin: 0;
    filter: drop-shadow(0 0 6px rgba(43, 213, 255, 0.4));
    z-index: 1;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cyd-pricing-item:hover .cyd-icon {
    filter: drop-shadow(0 0 10px rgba(43, 213, 255, 0.6));
    transform: scale(1.1);
}

/* Texto */
.cyd-pricing-item .cyd-text {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 0;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Descuento */
.cyd-discount {
    background: linear-gradient(135deg,
            rgba(0, 255, 136, 0.08) 0%,
            rgba(0, 255, 136, 0.04) 50%,
            rgba(0, 255, 136, 0.02) 100%);
    border: 1px solid rgba(0, 255, 136, 0.18);
    border-left: 4px solid rgba(0, 255, 136, 0.65);
}

.cyd-discount:hover {
    border-color: rgba(0, 255, 136, 0.45);
    border-left-color: var(--cpc-green);
    box-shadow:
        0 8px 25px rgba(0, 255, 136, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cyd-discount .cyd-icon {
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.45));
}

.cyd-discount:hover .cyd-icon {
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.7));
}

.cyd-discount::before {
    background: linear-gradient(180deg, var(--cpc-green), var(--cpc-cyan));
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Cuotas */
.cyd-installment {
    background: linear-gradient(135deg,
            rgba(43, 213, 255, 0.08) 0%,
            rgba(43, 213, 255, 0.04) 50%,
            rgba(43, 213, 255, 0.02) 100%);
    border: 1px solid rgba(43, 213, 255, 0.18);
    border-left: 4px solid rgba(43, 213, 255, 0.65);
}

.cyd-installment:hover {
    border-color: rgba(43, 213, 255, 0.45);
    border-left-color: var(--cpc-cyan);
    box-shadow:
        0 8px 25px rgba(43, 213, 255, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cyd-installment .cyd-icon {
    filter: drop-shadow(0 0 6px rgba(43, 213, 255, 0.45));
}

.cyd-installment:hover .cyd-icon {
    filter: drop-shadow(0 0 10px rgba(43, 213, 255, 0.7));
}

/* Texto personalizado */
.cyd-custom-text {
    background: linear-gradient(135deg,
            rgba(255, 142, 180, 0.06) 0%,
            rgba(255, 142, 180, 0.03) 50%,
            rgba(255, 142, 180, 0.02) 100%);
    border: 1px solid rgba(255, 142, 180, 0.18);
    border-left: 4px solid rgba(255, 142, 180, 0.65);
}

.cyd-custom-text:hover {
    border-color: rgba(255, 142, 180, 0.45);
    border-left-color: var(--cpc-pink);
    box-shadow:
        0 8px 25px rgba(255, 142, 180, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cyd-custom-text .cyd-icon {
    filter: drop-shadow(0 0 6px rgba(255, 142, 180, 0.45));
}

.cyd-custom-text:hover .cyd-icon {
    filter: drop-shadow(0 0 10px rgba(255, 142, 180, 0.7));
}

.cyd-custom-text::before {
    background: linear-gradient(180deg, var(--cpc-pink), var(--cpc-cyan));
    box-shadow: 0 0 15px rgba(255, 142, 180, 0.6), 0 0 30px rgba(255, 142, 180, 0.3);
}

/* 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: 8px;
}

.woocommerce ul.products li.product .cyd-pricing-item {
    padding: 6px 10px;
}

.woocommerce ul.products li.product .cyd-pricing-item .cyd-text {
    font-size: 11.5px;
}

.woocommerce ul.products li.product .cyd-pricing-item .cyd-icon {
    width: 18px;
    height: 18px;
}

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

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

.cyd-pricing-item .cyd-text {
    flex: 1;
    min-width: 0;
}

/* ==========================================
   5. TOOLTIPS - FIX OVERFLOW
========================================= */

@keyframes tooltipBounceInV4 {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px) scale(0.2);
    }

    40% {
        opacity: 1;
        transform: translateX(-50%) translateY(-12px) scale(1.12);
    }

    60% {
        transform: translateX(-50%) translateY(-4px) scale(0.92);
    }

    80% {
        transform: translateX(-50%) translateY(-8px) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-6px) scale(1);
    }
}

@keyframes tooltipBounceOutV4 {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(-6px) scale(1);
    }

    25% {
        transform: translateX(-50%) translateY(-10px) scale(1.08);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.2);
    }
}

.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.6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    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) rotate(10deg);
}

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

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

/* TOOLTIP DESKTOP - div real manejado por JS */
.cyd-tooltip-bubble {
    display: none;
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(8, 8, 12, 0.97) 0%, rgba(12, 12, 18, 0.97) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    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;
    border: 1px solid rgba(43, 213, 255, 0.35);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(43, 213, 255, 0.25),
        0 0 30px rgba(43, 213, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyd-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(8, 8, 12, 0.97);
}

/* TOOLTIP MOBILE */
@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(255, 255, 255, 0.65);
        font-size: 13px;
        line-height: 1.5;

        /* FIX: Prevenir overflow */
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;

        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease,
            padding 0.35s ease,
            margin-top 0.35s ease;
        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: 10px 0 5px 16px;
        margin-top: 5px;
        pointer-events: auto;
    }

    /* Indicador de expandir 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: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid rgba(43, 213, 255, 0.65);
        opacity: 0.6;
        transition: transform 0.35s ease, border-top-color 0.35s ease;
        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: rgba(0, 255, 136, 0.85);
    }
}

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

/* Tablet */
@media (max-width: 1024px) {
    .cpc-home-promos-wrapper {
        gap: 14px;
    }

    .cpc-home-promo-banner {
        padding: 18px 22px;
        border-radius: 16px;
    }

    .cpc-promo-content {
        gap: 16px;
    }

    .cpc-promo-logo {
        width: 58px;
        height: 58px;
        padding: 9px;
        border-radius: 12px;
    }

    .cpc-promo-title {
        font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    }

    .cpc-promo-subtitle {
        font-size: clamp(0.78rem, 1.3vw, 0.9rem);
    }
}

/* Mobile - 1 columna */
@media (max-width: 768px) {
    .cpc-home-promos-wrapper {
        flex-direction: column !important;
        gap: 14px;
        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: 16px 18px;
        border-radius: 14px;
    }

    .cpc-promo-content {
        gap: 14px;
    }

    .cpc-promo-logo {
        width: 52px;
        height: 52px;
        padding: 8px;
        border-radius: 10px;
        animation: none;
    }

    .cpc-promo-title {
        font-size: 1rem;
    }

    .cpc-promo-title::after {
        display: none;
    }

    .cpc-promo-subtitle {
        font-size: 0.82rem;
    }

    /* Pricing items mobile */
    .cyd-pricing-container {
        gap: 10px;
        margin-top: 12px;
        margin-bottom: 15px;
    }

    .cyd-pricing-item {
        padding: 10px 13px;
        gap: 10px;
    }

    .cyd-pricing-item .cyd-text {
        font-size: 13px;
        line-height: 1.35;
    }

    .cyd-pricing-item .cyd-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .cpc-home-promo-banner {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .cpc-promo-logo {
        width: 46px;
        height: 46px;
        padding: 7px;
        border-radius: 10px;
    }

    .cpc-promo-title {
        font-size: 0.9rem;
    }

    .cpc-promo-subtitle {
        font-size: 0.78rem;
    }
}

/* ==========================================
   7. ACCESIBILIDAD - PREFERS REDUCED MOTION
========================================= */

@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 {
        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. MODO OSCURO FORZADO (COMPATIBILIDAD)
========================================= */

@media (prefers-color-scheme: light) {

    /* Mantener estética dark incluso en navegadores con tema claro */
    .cpc-home-promo-banner,
    .cyd-pricing-item {
        color-scheme: dark;
    }
}