/* ══════════════════════════════════════════════
   Cat-oh — Campaña Black Friday 2026: barra superior y pop-up
   Prefijo: .catoh-camp-
══════════════════════════════════════════════ */

#catoh-camp [hidden] { display: none !important; }

/* ── Barra ── */
.catoh-camp-bar {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 6px 18px; padding: 9px 16px;
    background: #0b0d0e; color: #f3f5f5 !important; text-decoration: none !important;
    border-bottom: 2px solid #308e95; box-shadow: 0 0 14px rgba(48, 142, 149, .45);
    font-size: 14px; line-height: 1.3; text-align: center;
}
.catoh-camp-bar:hover { color: #fff !important; }
.catoh-camp-bar b { color: #fff; font-weight: 800; }
.catoh-camp-bar__count { color: #4fd1d9; font-weight: 700; font-variant-numeric: tabular-nums; }
.catoh-camp-bar__cta {
    background: #ff6d26; color: #fff; font-weight: 800; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

/* ── Pop-up (computadora: ventana centrada) ── */
.catoh-camp-pop { position: fixed; inset: 0; z-index: 100003; display: flex; align-items: center; justify-content: center; padding: 20px; }
.catoh-camp-pop__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.catoh-camp-pop__card {
    position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto;
    background: #0b0d0e; color: #f3f5f5; border: 2px solid #308e95; border-radius: 18px;
    box-shadow: 0 0 30px rgba(48, 142, 149, .5); animation: catoh-camp-in .25s ease;
}
.catoh-camp-pop__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #13181a; }
.catoh-camp-pop__body { padding: 20px 24px 22px; text-align: center; }
.catoh-camp-pop__kicker {
    margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #4fd1d9;
}
.catoh-camp-pop__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.2; color: #fff; }
.catoh-camp-pop__text { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: #a9b4b6; }
.catoh-camp-pop__cta {
    display: block; padding: 14px 20px; border-radius: 999px; background: #ff6d26;
    color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important;
}
.catoh-camp-pop__cta:hover { box-shadow: 0 6px 18px rgba(255, 109, 38, .4); }
.catoh-camp-pop__later {
    margin-top: 10px; background: none; border: 0; color: #a9b4b6; font: inherit; font-size: 14px;
    text-decoration: underline; cursor: pointer; padding: 6px;
}
.catoh-camp-pop__x {
    position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.catoh-camp-pop__x:focus-visible,
.catoh-camp-pop__later:focus-visible,
.catoh-camp-pop__cta:focus-visible { outline: 2px solid #4fd1d9; outline-offset: 2px; }

@keyframes catoh-camp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Celular: barra compacta y pop-up como tarjeta abajo, sin tapar la pantalla ── */
@media (max-width: 767px) {
    .catoh-camp-bar { font-size: 12.5px; gap: 4px 10px; padding: 8px 10px; }
    .catoh-camp-bar__txt { flex-basis: 100%; }

    .catoh-camp-pop { align-items: flex-end; padding: 0; pointer-events: none; }
    .catoh-camp-pop__overlay { display: none; }
    .catoh-camp-pop__card {
        pointer-events: auto; max-width: none; border-radius: 18px 18px 0 0; border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom); animation-name: catoh-camp-up;
    }
    .catoh-camp-pop__img { display: none; }
    .catoh-camp-pop__body { padding: 18px 18px 14px; }
    .catoh-camp-pop__title { font-size: 20px; padding-right: 30px; }
    .catoh-camp-pop__text { font-size: 14px; margin-bottom: 14px; }
    .catoh-camp-pop__x { background: transparent; }
}
@keyframes catoh-camp-up { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .catoh-camp-pop__card { animation: none; }
}
