/* megaheadertop — barra superior con mensajes que rotan de 1 en 1 (fade). */
.megaheadertop {
    width: 100%;
    background: var(--mht-bg, #9FBBD4);
    color: var(--mht-text, #ffffff);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.megaheadertop .container {
    position: relative;
}

.megaheadertop__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    height: 40px;
}

.megaheadertop__item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mht-speed, 500ms) ease;
}

.megaheadertop__item.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 575px) {
    .megaheadertop {
        font-size: 11px;
    }
    .megaheadertop__list {
        height: 34px;
    }
}

/* Cuenta atras (segunda barra): mismo azul corporativo y texto blanco que la barra de mensajes. */
.megaheadertop-cd {
    width: 100%;
    background: #9FBBD4;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

/* El tema da color a los parrafos: se fuerza el blanco en toda la barra */
.megaheadertop-cd .megaheadertop-cd__line,
.megaheadertop-cd .megaheadertop-cd__label,
.megaheadertop-cd .megaheadertop-cd__time {
    color: #ffffff;
}

.megaheadertop-cd .megaheadertop-cd__line {
    margin: 0;
    padding: 8px 0;
    font-size: 13px;   /* el tema da tamano propio a los <p>: se fija el mismo que la barra de mensajes */
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.megaheadertop-cd .megaheadertop-cd__time {
    display: inline-block;
    margin-left: 6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

/* En movil no cabe: la cuenta atras solo se muestra en tablet y escritorio */
@media (max-width: 767px) {
    .megaheadertop-cd {
        display: none;
    }
}
