/* Capa CRO — barra de urgencia, botón flotante y barra de compra fija.
   Fuente: helmet de la entrega "Curso de Oratoria optimizado para conversión".
   Se emite como output/css/cro.css desde scripts/migrate-page.py; el CSS de estas
   clases se stripea del css/<page>.css para no duplicar reglas. */

@keyframes acmpCroPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); opacity: .85; }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); opacity: 1; }
}

/* ===== Barra de urgencia (top) ===== */
.acmp-urgency-bar { background: var(--acmp-navy); color: #fff; width: 100%; }
.acmp-urgency-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px 24px; flex-wrap: wrap; }
.acmp-urgency-text { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; letter-spacing: 0.005em; }
.acmp-urgency-text strong { color: var(--acmp-orange); }
.acmp-urgency-clock { display: flex; gap: 7px; }
.acmp-uc { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; min-width: 46px; padding: 4px 6px; text-align: center; line-height: 1; }
.acmp-uc b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.acmp-uc span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
.acmp-urgency-cta { background: var(--acmp-orange); color: #fff; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.acmp-urgency-cta:hover { background: #c93702; }
.acmp-urgency-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--acmp-orange); color: rgba(247,70,4,.6); animation: acmpCroPulse 1.8s infinite; flex: none; }

@media (max-width: 768px) {
  .acmp-urgency-text { font-size: 11px; order: 1; width: 100%; text-align: center; }
  .acmp-urgency-clock { order: 2; }
  .acmp-urgency-cta { display: none; }
  .acmp-urgency-inner { gap: 10px; padding: 8px 14px; }
  .acmp-uc { min-width: 40px; }
  .acmp-uc b { font-size: 15px; }
}

/* ===== Botón flotante ===== */
.acmp-fab { position: fixed; right: 22px; bottom: 96px; z-index: 130; display: inline-flex; align-items: center; gap: 9px; background: var(--acmp-orange); color: #fff; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 15px 22px; border-radius: 999px; box-shadow: 0 12px 30px rgba(247,70,4,.42); transform: translateY(24px) scale(0.9); opacity: 0; pointer-events: none; transition: transform .34s cubic-bezier(.2,.7,.2,1), opacity .34s, background .2s; }
.acmp-fab.is-visible { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; animation: acmpFabBob 2.6s ease-in-out infinite; }
.acmp-fab:hover { background: #c93702; }
.acmp-fab .acmp-fab-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; color: rgba(255,255,255,.7); animation: acmpCroPulse 1.8s infinite; flex: none; }

@keyframes acmpFabBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1); }
}

@media (max-width: 768px) {
  .acmp-fab { right: 14px; bottom: 88px; font-size: 13.5px; padding: 13px 18px; }
}

/* ===== Barra de compra fija ===== */
.acmp-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border-subtle); box-shadow: 0 -8px 30px rgba(34,43,73,.12); transform: translateY(130%); transition: transform .34s cubic-bezier(.2,.7,.2,1); }
.acmp-stickybuy.is-visible { transform: translateY(0); }
.acmp-stickybuy-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 12px 24px; }
.acmp-sb-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acmp-sb-title { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--acmp-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acmp-sb-sub { font-family: var(--font-body); font-size: 11.5px; color: var(--fg-2); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.acmp-sb-sub .acmp-sb-clock { font-family: var(--font-display); font-weight: 700; color: var(--acmp-orange); font-variant-numeric: tabular-nums; }
.acmp-sb-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.acmp-sb-now { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--acmp-orange); letter-spacing: -0.02em; }
.acmp-sb-was { font-size: 12px; text-decoration: line-through; color: var(--fg-2); }
.acmp-sb-cta { background: var(--acmp-orange); color: #fff; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 14px; white-space: nowrap; box-shadow: 0 10px 24px rgba(247,70,4,.32); transition: background .2s, box-shadow .2s; }
.acmp-sb-cta:hover { background: #c93702; box-shadow: 0 12px 30px rgba(247,70,4,.42); }

@media (max-width: 768px) {
  .acmp-stickybuy-inner { gap: 12px; padding: 10px 14px; }
  .acmp-sb-title { font-size: 12.5px; }
  .acmp-sb-sub { display: none; }
  .acmp-sb-now { font-size: 18px; }
  .acmp-sb-was { display: none; }
  .acmp-sb-cta { padding: 12px 18px; font-size: 13.5px; }
  .acmp-sb-price { margin-left: auto; }
}

/* La barra fija tapa el final del footer si no se le deja aire. */
body.acmp-has-stickybuy .acmp-footer { padding-bottom: 110px; }

@media (prefers-reduced-motion: reduce) {
  .acmp-fab, .acmp-fab.is-visible, .acmp-fab .acmp-fab-dot, .acmp-urgency-pulse { animation: none; }
  .acmp-fab, .acmp-stickybuy { transition: none; }
}
