/* Top Marquee Styles */
.top-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modo sticky - fija al hacer scroll */
.top-marquee.marquee-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.marquee-content {
    display: inline-block;
    animation: marqueeScroll linear infinite;
    padding-left: 100%;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
}

/* Estilos para contenido HTML enriquecido */
.marquee-text p {
    display: inline;
    margin: 0;
    padding: 0;
    color: inherit;
}

.marquee-text strong,
.marquee-text b {
    font-weight: 700;
}

.marquee-text em,
.marquee-text i {
    font-style: italic;
}

.marquee-text img {
    display: inline-block;
    vertical-align: middle;
    max-height: 30px;
    margin: 0 5px;
}

.marquee-text span {
    display: inline;
}

/* Animación de la marquesina */
@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Pausar animación al hacer hover */
.top-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Enlaces dentro de la marquesina */
.marquee-text a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.marquee-text a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Ajustes para listas si se usan en el editor */
.marquee-text ul,
.marquee-text ol {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}

.marquee-text li {
    display: inline;
}

.marquee-text li:not(:last-child)::after {
    content: " • ";
    margin: 0 8px;
}

/* Asegurar que el contenido HTML no rompa el diseño */
.marquee-text * {
    display: inline !important;
    white-space: nowrap !important;
}

/* Heredar color para todos los elementos sin color inline */
.marquee-text *:not([style*="color"]) {
    color: inherit !important;
}

.marquee-text br {
    display: none !important;
}