.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: clamp(14px, 2vw, 20px) 0;
    position: relative;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    --fade-width: min(12vw, 100px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, #f9f9f9 0%, #ffffff 50%, #f9f9f9 100%);
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--fade-width);
    z-index: 3;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: scroll linear infinite;
    animation-duration: 40s;
    padding-left: 100%;
    will-change: transform;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 3em;
}

.marquee span {
    display: inline-flex;
    align-items: center;
    color: #333333;
    letter-spacing: 0.8px;
    font-weight: 600;
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.5;
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    font-feature-settings: 'kern' 1, 'calt' 1;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.marquee span::after {
    content: "";
    position: absolute;
    right: -1.5em;
    width: 8px;
    height: 8px;
    background: #e30613;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.marquee span:last-child::after,
.highlight::after {
    display: none;
}

.highlight {
    color: #ffffff;
    font-weight: 700;
    padding: 0.35em 1em;
    background-color: #e30613;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.3;
    font-size: 0.95em;
    margin-right: 0.5em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(227, 6, 19, 0.25);
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.highlight::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(30deg);
    pointer-events: none;
    animation: shine 3s infinite;
}

.separator {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent 0%, #d0d0d0 50%, transparent 100%);
    margin: 0 1em;
    position: relative;
}

.separator::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes shine {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}

/* Efecto hover premium */
.marquee-container:hover .marquee {
    animation-play-state: paused;
}

.marquee-container:hover .highlight {
    background-color: #c00511;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(227, 6, 19, 0.3);
}

.marquee span:hover {
    color: #e30613;
    transition: color 0.3s ease;
}

/* Optimización para móviles */
@media (max-width: 768px) {
    .marquee {
        animation-duration: 35s;
    }
    
    .marquee-content {
        gap: 2em;
    }
    
    .marquee span::after {
        right: -1em;
        width: 6px;
        height: 6px;
    }
    
    .highlight {
        padding: 0.3em 0.8em;
        font-size: 0.9em;
    }
    
    .separator {
        height: 22px;
    }
}

/* Accesibilidad - Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .marquee {
        animation: none;
        white-space: normal;
        padding-left: 0;
    }
    
    .marquee-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1em 2em;
        padding: 0 2em;
    }
    
    .marquee span::after {
        display: none;
    }
    
    .separator {
        display: none;
    }
}