/* PuenTech — Publicidad marquee */

.pub-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 56px;
    background: #fef3c7;
    border-top: 3px solid #d97706;
    border-bottom: 3px solid #d97706;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.pub-bar__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.pub-bar__track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    animation: pub-marquee var(--pub-marquee-duration, 140s) linear infinite;
    animation-play-state: paused;
    padding: 0.5rem 0;
}

.pub-bar__track.is-ready {
    animation-play-state: running;
}

.pub-bar__track:hover {
    animation-play-state: paused;
}

@keyframes pub-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.pub-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    margin: 0 0.35rem;
    background: #fff;
    border: 2px solid #92400e;
    border-radius: 999px;
    color: #1c1917;
    text-decoration: none;
    white-space: nowrap;
    min-height: 40px;
}

.pub-bar__item:hover {
    background: #fde68a;
}

.pub-bar__item strong {
    font-size: 0.8125rem;
    font-weight: 800;
}

.pub-bar__item span {
    font-size: 0.75rem;
    color: #57534e;
}

.pub-bar__item em {
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
    color: #d97706;
}

.pub-bar__logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    display: block;
}

/* Anúnciate aquí — en el carrusel */
.pub-bar__item--promo {
    background: #fff7ed !important;
    border-color: #ea580c !important;
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.15);
}

.pub-bar__item--promo strong {
    color: #9a3412;
}

.pub-bar__item--promo span {
    color: #c2410c;
    font-weight: 600;
}

.pub-bar__item--promo em {
    color: #ea580c;
}

/* LVLTECH en barra superior */
.pub-bar__item--lvltech {
    background: #ffffff !important;
    border: 2px solid #2563eb !important;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.pub-bar__item--lvltech:hover {
    background: #f8fafc !important;
}

.pub-bar__item--lvltech strong {
    color: #0f172a;
}

.pub-bar__item--lvltech span {
    color: #1d4ed8;
    font-weight: 500;
}

.pub-bar__item--lvltech em {
    color: #0f172a;
}

.pub-bar__item--lvltech .pub-bar__logo {
    width: 34px;
    height: 34px;
    padding: 2px;
    border: 1px solid #e2e8f0;
}

/* EMPLÉATE en barra superior */
.pub-bar__item--empleate {
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%) !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.18);
    animation: pub-empleate-pulse 2.8s ease-in-out infinite;
}

.pub-bar__item--empleate:hover {
    background: #d1fae5 !important;
}

.pub-bar__item--empleate strong {
    color: #047857;
}

.pub-bar__item--empleate span {
    color: #1d4ed8;
    font-weight: 500;
}

.pub-bar__item--empleate em {
    color: #047857;
    font-weight: 700;
}

.pub-bar__item--empleate .pub-bar__logo {
    width: 34px;
    height: 34px;
    padding: 2px;
    border: 1px solid #a7f3d0;
    background: #fff;
}

.pub-bar__item--featured {
    padding-inline: 0.85rem;
}

.pub-bar__hot {
    font-size: 0.85rem;
    line-height: 1;
}

@keyframes pub-empleate-pulse {
    0%, 100% {
        box-shadow: 0 1px 4px rgba(16, 185, 129, 0.18);
        border-color: #10b981;
    }
    50% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28), 0 2px 10px rgba(37, 99, 235, 0.18);
        border-color: #059669;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-bar__item--empleate {
        animation: none;
    }
}

.pub-bar__sep {
    color: #d97706;
    opacity: 0.45;
    padding: 0 0.25rem;
    user-select: none;
}

.pub-bar__cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 0.875rem;
    background: #d97706;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    text-decoration: none;
    border-left: 2px solid #92400e;
    line-height: 1.2;
    text-align: center;
}

.pub-bar__cta:hover {
    background: #b45309;
    color: #fff;
}

.pub-bar__cta small {
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0.92;
    margin-top: 0.125rem;
}

@media (min-width: 640px) {
    .pub-bar {
        min-height: 58px;
    }

    .pub-bar__item strong {
        font-size: 0.875rem;
    }

    .pub-bar__item span,
    .pub-bar__item em {
        font-size: 0.8125rem;
    }

    .pub-bar__cta {
        min-width: 150px;
        font-size: 0.8125rem;
    }

    .pub-bar__cta small {
        font-size: 0.6875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-bar__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        padding: 0.375rem 0.75rem;
        animation-play-state: running;
    }

    .pub-bar__viewport {
        overflow-x: auto;
    }
}
