/* ══ Anuncios (Meta, con piiho) — módulo independiente ══ */
.an, .an-sheet { --an-ac: var(--brand-primary, #16a34a); --an-tx: var(--text-primary, #0f172a); --an-tx2: var(--text-secondary, #475569); --an-tx3: var(--text-muted, #94a3b8);
  --an-bd: var(--border, #e5e7eb); --an-bg: var(--bg-card, #fff); --an-bg2: var(--bg-app, #f6f7f9); --an-r: 16px;
  --an-meta: #0866ff; --an-meta2: #7b3fe4; --an-ig: #e1306c; }
.an { color: var(--an-tx); font-family: var(--font, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif); max-width: 1040px; margin: 0 auto; }
.an-sheet { color: var(--an-tx); }
.an *, .an-sheet * { box-sizing: border-box; }
.an button, .an-sheet button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.an a, .an-sheet a { text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* encabezado */
.an-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.an-head h1 { margin: 0; font-size: 26px; font-weight: 780; letter-spacing: -.025em; }
.an-head p { margin: 4px 0 0; color: var(--an-tx2); font-size: 14.5px; }
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--an-ac); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; transition: filter .15s, transform .15s; }
.an-btn:hover { filter: brightness(1.05); }
.an-btn:active { transform: scale(.98); }
.an-btn[disabled] { opacity: .55; cursor: default; }
.an-btn.ghost { background: transparent; color: var(--an-tx); box-shadow: inset 0 0 0 1px var(--an-bd); }
.an-btn.soft { background: var(--an-bg2); color: var(--an-tx); }
.an-btn.dark { background: var(--an-tx); color: var(--an-bg); }
.an-btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.an-btn.lg { height: 54px; font-size: 16.5px; border-radius: 14px; padding: 0 26px; }
.an-btn.block { width: 100%; }
.an-btn.meta { background: linear-gradient(135deg, var(--an-meta) 0%, var(--an-meta2) 60%, var(--an-ig) 130%); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--an-meta) 70%, transparent); }
.an-btn svg { width: 18px; height: 18px; flex: none; }
.an-link { background: none; border: 0; padding: 0; color: var(--an-ac); font-weight: 650; cursor: pointer; font-size: 14px; }
.an-link.danger { color: #dc2626; }

/* pestañas */
.an-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--an-bg2); margin: 2px 0 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.an-tabs::-webkit-scrollbar { display: none; }
.an-tabs button { border: 0; background: none; padding: 8px 15px; border-radius: 9px; font-size: 14px; font-weight: 650; color: var(--an-tx2); cursor: pointer; white-space: nowrap; }
.an-tabs button.on { background: var(--an-bg); color: var(--an-tx); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.an-tabs b { font-weight: 700; color: var(--an-tx3); margin-left: 4px; }

/* lista de anuncios */
.an-list { background: var(--an-bg); border: 1px solid var(--an-bd); border-radius: var(--an-r); overflow: hidden; }
.an-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; position: relative; transition: background .12s; }
.an-row + .an-row::before { content: ""; position: absolute; top: 0; left: 82px; right: 0; height: 1px; background: var(--an-bd); }
.an-row:hover { background: var(--an-bg2); }
.an-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--an-bg2) center/cover no-repeat; position: relative; overflow: hidden; }
.an-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-thumb .an-play { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.an-thumb .an-play::after { content: ""; border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 1px; }
.an-main { flex: 1; min-width: 0; }
.an-main strong { display: block; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-main span { display: block; font-size: 13px; color: var(--an-tx2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-num { text-align: right; flex: none; }
.an-num strong { display: block; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.an-num small { display: block; font-size: 12px; color: var(--an-tx3); margin-top: 2px; }

/* insignias de estado */
.an-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; vertical-align: middle; }
.an-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.an-pill.live { background: #e8f7ee; color: #127a3a; }
.an-pill.live i { animation: an-pulse 1.6s ease-in-out infinite; }
.an-pill.wait { background: #fff4e0; color: #a35b00; }
.an-pill.rev { background: #e9f1ff; color: #1d4fd8; }
.an-pill.bad { background: #fdecec; color: #c62828; }
.an-pill.off { background: var(--an-bg2); color: var(--an-tx2); }
@keyframes an-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.an-main .an-pill { display: inline-flex; width: auto; max-width: 100%; margin-top: 6px; font-size: 12px; color: inherit; }
.an-main .an-pill.live { color: #127a3a; } .an-main .an-pill.wait { color: #a35b00; } .an-main .an-pill.rev { color: #1d4fd8; } .an-main .an-pill.bad { color: #c62828; } .an-main .an-pill.off { color: var(--an-tx2); }

/* vacío / aviso */
.an-empty { text-align: center; padding: 56px 20px 60px; background: var(--an-bg); border: 1px solid var(--an-bd); border-radius: var(--an-r); }
.an-empty .an-ic { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--an-ac) 12%, transparent); color: var(--an-ac); }
.an-empty .an-ic svg { width: 28px; height: 28px; }
.an-empty h2 { margin: 0; font-size: 21px; font-weight: 760; letter-spacing: -.02em; }
.an-empty p { margin: 8px auto 20px; max-width: 420px; color: var(--an-tx2); font-size: 15px; line-height: 1.5; }
.an-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--an-bg2); color: var(--an-tx2); font-size: 13.5px; line-height: 1.45; }
.an-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--an-tx3); }
.an-note.warn { background: #fff7e8; color: #8a4b00; }
.an-note.bad { background: #fdecec; color: #a11d1d; }
.an-skel { height: 76px; border-radius: var(--an-r); background: linear-gradient(90deg, var(--an-bg2), var(--an-bg), var(--an-bg2)); background-size: 200% 100%; animation: an-sk 1.2s linear infinite; margin-bottom: 10px; }
@keyframes an-sk { to { background-position: -200% 0; } }

/* ── hoja (modal) ── */
.an-sheet { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(15,18,24,.38); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); opacity: 0; transition: opacity .18s; }
.an-sheet.in { opacity: 1; }
.an-card { width: 100%; max-width: 980px; max-height: calc(100dvh - 48px); background: var(--bg-card, #fff); color: var(--text-primary, #0f172a); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; transform: translateY(10px) scale(.985); transition: transform .2s; font-family: var(--font, -apple-system, BlinkMacSystemFont, "Inter", sans-serif); }
.an-sheet.in .an-card { transform: none; }
.an-card.narrow { max-width: 560px; }
.an-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--border, #e5e7eb); }
.an-top h3 { margin: 0; font-size: 17.5px; font-weight: 760; letter-spacing: -.015em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-top h3 .an-by { display: flex; }
.an-by { align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--text-muted, #94a3b8); }
.an-by img { width: 15px; height: 15px; border-radius: 4px; object-fit: contain; }
.an-by i { width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--an-meta), var(--an-meta2)); }
.an-by b { font-weight: 750; color: var(--text-secondary, #475569); }
.an-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-app, #f3f4f6); color: var(--text-secondary, #475569); display: grid; place-items: center; cursor: pointer; flex: none; }
.an-x svg { width: 16px; height: 16px; }
.an-back { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text-primary, #0f172a); margin-left: -8px; }
.an-back svg { width: 20px; height: 20px; }
.an-top:has(+ .an-steps) { border-bottom: 0; padding-bottom: 10px; }
.an-steps { display: flex; gap: 6px; padding: 0 22px 12px; border-bottom: 1px solid var(--border, #e5e7eb); }
.an-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-app, #eef0f3); }
.an-steps span.on { background: var(--brand-primary, #16a34a); }
.an-body { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.an-body::-webkit-scrollbar { display: none; }
.an-body.one { grid-template-columns: minmax(0, 1fr); }
.an-form { padding: 20px 22px 24px; min-width: 0; }
.an-side { background: var(--bg-app, #f6f7f9); padding: 22px 26px; border-left: 1px solid var(--border, #e5e7eb); min-width: 0; }
.an-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff); }
.an-foot .an-sum { flex: 1; min-width: 0; }
.an-foot .an-sum strong { display: block; font-size: 19px; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.an-foot .an-sum span { display: block; font-size: 12.5px; color: var(--text-muted, #94a3b8); }
.an-h { font-size: 21px; font-weight: 770; letter-spacing: -.02em; margin: 0 0 4px; }
.an-sub { color: var(--text-secondary, #475569); font-size: 14px; margin: 0 0 16px; line-height: 1.45; }

/* campos */
.an-f { margin-bottom: 15px; }
.an-f > label, .an-lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-primary, #0f172a); margin-bottom: 7px; }
.an-f > label small, .an-lbl small { font-weight: 550; color: var(--text-muted, #94a3b8); }
.an-in { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff); color: var(--text-primary, #0f172a);
  font: 650 16px/1.2 var(--font, inherit); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.an-in { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.an-in:focus { border-color: var(--brand-primary, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary, #16a34a) 16%, transparent); }
.an-in.err { border-color: #dc2626; }
.an-err { color: #dc2626; font-size: 13px; font-weight: 600; margin-top: 6px; }
.an-hint { color: var(--text-muted, #94a3b8); font-size: 12.5px; margin-top: 6px; line-height: 1.4; }
.an-pre { display: flex; align-items: center; height: 48px; border-radius: 12px; border: 1px solid var(--border, #e5e7eb); overflow: hidden; background: var(--bg-card, #fff); }
.an-pre:focus-within { border-color: var(--brand-primary, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary, #16a34a) 16%, transparent); }
.an-pre span { padding: 0 4px 0 14px; color: var(--text-muted, #94a3b8); font-weight: 650; }
.an-pre input { border: 0; outline: 0; flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 2px; font: 650 16px/1.2 var(--font, inherit); background: none; color: inherit; }

/* elegir qué promocionar */
.an-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-app, #f3f4f6); margin-bottom: 12px; }
.an-seg button { flex: 1; border: 0; background: none; height: 36px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--text-secondary, #475569); cursor: pointer; }
.an-seg button.on { background: var(--bg-card, #fff); color: var(--text-primary, #0f172a); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.an-search { position: relative; margin-bottom: 10px; }
.an-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted, #94a3b8); }
.an-search .an-in { padding-left: 38px; height: 44px; font-size: 15px; }
.an-pick { border: 1px solid var(--border, #e5e7eb); border-radius: 14px; overflow: hidden; }
.an-pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; position: relative; background: var(--bg-card, #fff); border: 0; width: 100%; text-align: left; color: inherit; }
.an-pick-row + .an-pick-row::before { content: ""; position: absolute; left: 70px; right: 0; top: 0; height: 1px; background: var(--border, #e5e7eb); }
.an-pick-row:hover { background: var(--bg-app, #f6f7f9); }
.an-pick-row.on { background: color-mix(in srgb, var(--brand-primary, #16a34a) 7%, var(--bg-card, #fff)); }
.an-pick-row .an-thumb { width: 46px; height: 46px; border-radius: 10px; }
.an-pick-row .an-main strong { font-size: 14.5px; }
.an-pick-row .an-ok { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border, #d6dae0); flex: none; display: grid; place-items: center; }
.an-pick-row.on .an-ok { border-color: var(--brand-primary, #16a34a); background: var(--brand-primary, #16a34a); }
.an-pick-row.on .an-ok::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.an-own { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-top: 10px; border-radius: 14px; border: 1.5px dashed var(--border-strong, #cfd4da); background: none; cursor: pointer; color: var(--text-primary, #0f172a); text-align: left; }
.an-own:hover { border-color: var(--brand-primary, #16a34a); }
.an-own .an-ic2 { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-app, #f3f4f6); color: var(--text-secondary, #475569); }
.an-own svg { width: 20px; height: 20px; }
.an-own strong { display: block; font-size: 14.5px; color: var(--an-tx); }
.an-own span span { display: block; font-size: 12.5px; color: var(--text-muted, #94a3b8); }
.an-more { padding: 26px 12px; text-align: center; color: var(--text-muted, #94a3b8); font-size: 14px; }

/* foto o video */
.an-media { display: flex; gap: 12px; align-items: center; }
.an-media .an-thumb { width: 72px; height: 72px; border-radius: 14px; }
.an-media .an-acts { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* opciones (destino, página) */
.an-opts { display: grid; gap: 10px; }
.an-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border, #e5e7eb); cursor: pointer; background: var(--bg-card, #fff); text-align: left; width: 100%; color: inherit; }
.an-opt.on { border-color: var(--brand-primary, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary, #16a34a) 12%, transparent); }
.an-opt .an-ic2 { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-app, #f3f4f6); color: var(--text-primary, #0f172a); flex: none; }
.an-opt.on .an-ic2 { background: color-mix(in srgb, var(--brand-primary, #16a34a) 14%, transparent); color: var(--brand-primary, #16a34a); }
.an-opt svg { width: 19px; height: 19px; }
.an-opt strong { display: block; font-size: 15px; color: var(--an-tx); }
.an-opt > span:not(.an-ic2):not(.an-switch):not(.an-extra) { display: block; flex: 1; min-width: 0; }
.an-opt span span { display: block; font-size: 13px; color: var(--text-secondary, #475569); margin-top: 2px; line-height: 1.4; }
.an-opt .an-extra { margin-left: auto; font-weight: 750; font-size: 14px; white-space: nowrap; }
.an-switch { position: relative; width: 46px; height: 28px; flex: none; margin-left: auto; }
.an-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.an-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d6dae0; transition: background .18s; }
.an-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.an-switch input:checked + span { background: var(--brand-primary, #16a34a); }
.an-switch input:checked + span::after { transform: translateX(18px); }

/* días */
.an-days { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.an-days strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.an-days span { color: var(--text-secondary, #475569); font-weight: 650; }
/* barra de días: propia, sin el borde del navegador al deslizar */
.an-range { --p: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0 0 8px; padding: 0; background: transparent; border: 0; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.an-range:focus, .an-range:active, .an-range:focus-visible { outline: none; border: 0; box-shadow: none; }
.an-range::-moz-focus-outer { border: 0; }
.an-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; border: 0; background: linear-gradient(90deg, var(--an-ac) 0 var(--p), color-mix(in srgb, var(--an-tx) 10%, transparent) var(--p) 100%); }
.an-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.06); transition: transform .14s ease; }
.an-range:active::-webkit-slider-thumb { transform: scale(1.1); }
.an-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.14), 0 0 0 4px color-mix(in srgb, var(--an-ac) 22%, transparent); }
.an-range::-moz-range-track { height: 6px; border-radius: 6px; border: 0; background: color-mix(in srgb, var(--an-tx) 10%, transparent); }
.an-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--an-ac); }
.an-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.14); }
/* inversión por día */
.an-bud { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.an-bud button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 13px; border-radius: 14px; border: 1.5px solid var(--an-bd); background: var(--an-bg); color: var(--an-tx); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.an-bud button strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.an-bud button strong small { font-size: 12.5px; font-weight: 650; color: var(--an-tx3); margin-left: 1px; }
.an-bud button span { font-size: 12px; color: var(--an-tx2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.an-bud button.on { border-color: var(--an-ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--an-ac) 14%, transparent); }
.an-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.an-chips button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff); font-weight: 650; font-size: 13.5px; cursor: pointer; color: var(--text-primary, #0f172a); }
.an-chips button.on { background: var(--text-primary, #0f172a); color: var(--bg-card, #fff); border-color: transparent; }
.an-quote { border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 4px 14px; }
.an-quote div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14.5px; }
.an-quote div + div { border-top: 1px solid var(--border, #e5e7eb); }
.an-quote div span:last-child { font-weight: 650; font-variant-numeric: tabular-nums; }
.an-quote .neg span:last-child { color: #127a3a; }
.an-quote .tot { font-weight: 800; font-size: 16px; }
.an-reach { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-app, #f6f7f9); margin: 14px 0; }
.an-reach[hidden] { display: none; }
.an-reach svg { width: 22px; height: 22px; color: var(--brand-primary, #16a34a); flex: none; }
.an-reach strong { display: block; font-size: 16.5px; font-weight: 780; font-variant-numeric: tabular-nums; }
.an-reach span { display: block; font-size: 12.5px; color: var(--text-secondary, #475569); }

/* vista previa del anuncio (feed) */
.an-pv-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted, #94a3b8); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.an-ad { background: #fff; color: #050505; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 26px rgba(0,0,0,.07); overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; max-width: 360px; margin: 0 auto; }
.an-ad-h { display: flex; align-items: center; gap: 9px; padding: 11px 12px 8px; }
.an-ad-av { width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb center/cover; display: grid; place-items: center; font-weight: 800; color: #65676b; font-size: 14px; flex: none; }
.an-ad-h b { display: block; font-size: 14px; font-weight: 650; }
.an-ad-h small { display: block; font-size: 12px; color: #65676b; }
.an-ad-t { padding: 0 12px 10px; font-size: 14px; line-height: 1.35; white-space: pre-line; word-break: break-word; }
.an-ad-m { aspect-ratio: 1 / 1; background: #f0f2f5 center/cover no-repeat; display: grid; place-items: center; color: #8a8d91; font-size: 13px; }
.an-ad-m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-ad-b { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.an-ad-b div { flex: 1; min-width: 0; }
.an-ad-b small { display: block; font-size: 11.5px; color: #65676b; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-ad-b b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-ad-b span { flex: none; background: #e4e6eb; border-radius: 6px; padding: 8px 12px; font-size: 13.5px; font-weight: 650; }
.an-pv-note { text-align: center; font-size: 12.5px; color: var(--text-muted, #94a3b8); margin-top: 12px; line-height: 1.4; }

/* detalle */
.an-stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border, #e5e7eb); border: 1px solid var(--border, #e5e7eb); border-radius: 14px; overflow: hidden; margin: 0 0 16px; }
.an-stat div { background: var(--bg-card, #fff); padding: 12px 14px; min-width: 0; }
.an-stat small { display: block; font-size: 12px; color: var(--text-secondary, #475569); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-stat strong { display: block; font-size: 20px; font-weight: 780; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-track { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; gap: 6px; }
.an-track li { flex: 1; min-width: 0; }
.an-track li i { display: block; height: 4px; border-radius: 4px; background: var(--bg-app, #eceef1); }
.an-track li.done i { background: var(--brand-primary, #16a34a); }
.an-track li.now i { background: linear-gradient(90deg, var(--brand-primary, #16a34a) 50%, var(--bg-app, #eceef1) 50%); }
.an-track li span { display: block; font-size: 11.5px; color: var(--text-muted, #94a3b8); margin-top: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-track li.done span, .an-track li.now span { color: var(--text-primary, #0f172a); }
.an-kv { display: grid; gap: 0; border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 0 14px; margin-bottom: 16px; }
.an-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; }
.an-kv div + div { border-top: 1px solid var(--border, #e5e7eb); }
.an-kv div span:first-child { color: var(--text-secondary, #475569); }
.an-kv div span:last-child { font-weight: 650; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-spark { width: 100%; height: 64px; display: block; margin: 0 0 14px; }
.an-wait { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 22px 30px; }
.an-wait .an-ring { width: 54px; height: 54px; border-radius: 50%; border: 3.5px solid var(--bg-app, #eceef1); border-top-color: var(--brand-primary, #16a34a); animation: an-spin 1s linear infinite; margin-bottom: 18px; }
.an-wait .an-done { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary, #16a34a); color: #fff; margin-bottom: 16px; animation: an-pop .35s ease-out; }
.an-wait .an-done svg { width: 30px; height: 30px; }
.an-wait h3 { margin: 0; font-size: 21px; font-weight: 780; letter-spacing: -.02em; }
.an-wait p { margin: 8px 0 18px; color: var(--text-secondary, #475569); max-width: 380px; line-height: 1.5; font-size: 14.5px; }
@keyframes an-spin { to { transform: rotate(360deg); } }
@keyframes an-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ajustes (MASTER) */
.an-box { background: var(--an-bg); border: 1px solid var(--an-bd); border-radius: var(--an-r); padding: 18px 18px 6px; margin-bottom: 16px; }
.an-box h3 { margin: 0 0 4px; font-size: 16px; font-weight: 760; }
.an-box > p { margin: 0 0 14px; color: var(--an-tx2); font-size: 13.5px; line-height: 1.45; }
.an-copy { display: flex; gap: 8px; align-items: center; }
.an-copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 12px 12px; border-radius: 10px; background: var(--an-bg2); font: 550 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.an-copy code::-webkit-scrollbar { display: none; }
.an-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--an-bg2); color: var(--an-tx2); margin: 0 6px 12px 0; }
.an-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.an-state.ok { background: #e8f7ee; color: #127a3a; }
.an-state.bad { background: #fdecec; color: #c62828; }
.an-tbl-tenant { font-size: 12px; color: var(--an-tx3); }

/* ── tablero (franja) en el Dashboard ── */

/* botón «Promocionar» que se usa en Tienda, productos y páginas */
.an-promote { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff); color: var(--text-primary, #0f172a); font-weight: 650; font-size: 13px; cursor: pointer; }
.an-promote svg { width: 15px; height: 15px; color: var(--brand-primary, #16a34a); }
.an-promote:hover { border-color: var(--brand-primary, #16a34a); }

@media (max-width: 860px) {
  .an-body { grid-template-columns: minmax(0, 1fr); }
  .an-side { border-left: 0; border-top: 1px solid var(--border, #e5e7eb); padding: 18px 16px 22px; }
}
@media (max-width: 640px) {
  .an-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .an-head h1 { font-size: 23px; }
  .an-head .an-btn { width: 100%; }
  .an-row { padding: 12px 14px; gap: 12px; }
  .an-row + .an-row::before { left: 76px; }
  .an-thumb { width: 50px; height: 50px; }
  .an-num small { display: none; }
  /* La hoja ocupa el 96 % en el celular, con el fondo esmerilado abajo. */
  .an-sheet { padding: 2dvh 2vw; align-items: flex-end; }
  .an-card { max-width: none; width: 96vw; height: 96dvh; max-height: 96dvh; border-radius: 20px; }
  .an-card.narrow { height: auto; max-height: 96dvh; }
  .an-form { padding: 16px 16px 22px; }
  .an-top { padding: 12px 12px 10px 16px; }
  .an-steps { padding: 0 16px 10px; }
  .an-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .an-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-h { font-size: 19px; }
}
.an-kv .an-pill.live, .an-main .an-pill.live { color: #127a3a; }
.an-kv .an-pill.wait { color: #a35b00; }
.an-kv .an-pill.rev { color: #1d4fd8; }
.an-kv .an-pill.bad { color: #c62828; }
.an-kv .an-pill.off { color: var(--an-tx2); }

/* ══ portada visual (Meta) ══ */
.an-ey { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; letter-spacing: .01em; color: var(--an-meta); }
.an-ey svg { width: 22px; height: 15px; }
.an-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 40px 44px; border-radius: 26px; overflow: hidden; margin: 4px 0 18px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--an-ig) 13%, transparent), transparent 60%), radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--an-meta) 12%, transparent), transparent 60%), var(--an-bg);
  border: 1px solid var(--an-bd); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -30px color-mix(in srgb, var(--an-meta) 45%, transparent); }
.an-hero h1 { margin: 12px 0 10px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.06; font-weight: 820; letter-spacing: -.035em; }
.an-hero-l > p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--an-tx2); max-width: 460px; }
.an-hr { display: flex; flex-direction: column; gap: 2px; margin: 22px 0 0; }
.an-hr strong { font-size: 40px; line-height: 1; font-weight: 840; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--an-meta), var(--an-meta2) 55%, var(--an-ig)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-hr span { font-size: 14px; font-weight: 650; color: var(--an-tx2); }
.an-from { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-top: 12px; border-radius: 999px; font-size: 13px; font-weight: 750; color: #127a3a; background: #e8f7ee; box-shadow: inset 0 0 0 1px #c9ecd6; }
.an-hero-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.an-hero-cta .an-btn { min-width: 230px; }
.an-hero-lic { margin: 0; font-size: 13px; color: var(--an-tx3); font-weight: 600; }
.an-hero-r { display: flex; justify-content: center; }

/* teléfono con el anuncio */
.an-phone { position: relative; width: 268px; max-width: 100%; padding: 10px; border-radius: 42px; background: #0d0f14; box-shadow: 0 30px 60px -24px rgba(16,24,40,.45), inset 0 0 0 1.5px #2a2e36; transition: opacity .26s, transform .26s; animation: an-rise .5s ease-out; }
.an-phone.swap { opacity: 0; transform: translateY(6px) scale(.99); }
.an-ph-in { border-radius: 33px; overflow: hidden; background: #fff; color: #0b0b0b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.an-ph-top { display: flex; align-items: center; gap: 8px; padding: 24px 12px 9px; }
.an-ph-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; flex: none; border: 2px solid transparent; box-shadow: inset 0 0 0 2px #fff;
  background: linear-gradient(135deg, #1f2937, #4b5563) padding-box, linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) border-box; }
.an-ph-top b { display: block; font-size: 12.5px; font-weight: 700; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-ph-top small { display: block; font-size: 10.5px; color: #737373; }
.an-ph-m { aspect-ratio: 4 / 5; background: linear-gradient(135deg, #eef3ff, #fbeef5) center/cover no-repeat; display: grid; place-items: center; color: #9aa3b2; }
.an-ph-m svg { width: 46px; height: 46px; }
.an-ph-cta { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--an-meta); color: #fff; font-size: 13px; font-weight: 700; }
.an-ph-cta svg { width: 16px; height: 16px; }
.an-ph-act { display: flex; gap: 14px; padding: 10px 12px 4px; }
.an-ph-act svg { width: 21px; height: 21px; }
.an-ph-act svg:first-child { color: #ff3040; fill: #ff3040; animation: an-beat 2.4s ease-in-out infinite; }
.an-ph-cap { padding: 2px 12px 16px; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-fl { position: absolute; display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 10px; border-radius: 16px; background: rgba(255,255,255,.92); color: #0b0b0b;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 12px 30px -10px rgba(16,24,40,.32), 0 0 0 .5px rgba(0,0,0,.06); white-space: nowrap; max-width: 230px; }
.an-fl b { display: block; font-size: 12.5px; font-weight: 750; }
.an-fl small { display: block; font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.an-fl i.ok { width: 28px; height: 28px; border-radius: 9px; flex: none; background: #16a34a; position: relative; }
.an-fl i.ok::after { content: ""; position: absolute; left: 9px; top: 8px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg); }
.an-fl-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--an-meta); color: #fff; }
.an-fl-ic.wa { background: #25d366; }
.an-fl-ic svg { width: 16px; height: 16px; }
.an-fl.f1 { top: 20%; left: -24%; animation: an-float 5s ease-in-out infinite; }
.an-fl.f2 { top: 50%; right: -22%; animation: an-float 5.6s ease-in-out .8s infinite; }
.an-fl.f3 { bottom: 8%; left: -18%; animation: an-float 6s ease-in-out 1.6s infinite; }
@keyframes an-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes an-beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.22); } 86% { transform: scale(.96); } }
@keyframes an-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* resultados del mes (una frase, sin tarjetas) */
.an-res { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 22px; margin: 0 0 14px; border: 1px solid var(--an-bd);
  background: radial-gradient(100% 140% at 100% 0%, color-mix(in srgb, var(--an-meta) 10%, transparent), transparent 60%), var(--an-bg); }
.an-res-l { flex: 1; min-width: 0; }
.an-res h2 { margin: 6px 0 4px; font-size: 23px; font-weight: 780; letter-spacing: -.025em; line-height: 1.2; }
.an-res h2 b { font-weight: 840; background: linear-gradient(90deg, var(--an-meta), var(--an-meta2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-res p { margin: 0; color: var(--an-tx2); font-size: 14px; font-weight: 550; }
.an-res-r { text-align: right; flex: none; }
.an-res-r strong { display: block; font-size: 36px; font-weight: 840; letter-spacing: -.04em; line-height: 1; color: #127a3a; }
.an-res-r span { display: block; font-size: 12px; color: var(--an-tx3); font-weight: 650; margin-top: 4px; }

/* promocionar otro producto */
.an-more2 { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border-radius: 18px; border: 1px solid var(--an-bd); background: var(--an-bg); margin: 0 0 16px; }
.an-more2-t { flex: 1; min-width: 0; }
.an-more2-t strong { display: block; font-size: 15px; font-weight: 750; }
.an-more2-t span { display: block; font-size: 13px; color: var(--an-tx2); margin-top: 2px; }
.an-more2-th { display: flex; }
.an-more2-th button { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--an-bg); background: var(--an-bg2) center/cover no-repeat; margin-left: -10px; cursor: pointer; transition: transform .15s; padding: 0; }
.an-more2-th button:first-child { margin-left: 0; }
.an-more2-th button:hover { transform: translateY(-3px); z-index: 1; }

/* franja del Dashboard: invitación */

/* barra inferior del celular: insignia «Nuevo» */
.mnav-rec.mnav-new { background: linear-gradient(135deg, #0866ff, #7b3fe4); color: #fff; }

@media (max-width: 860px) {
  .an-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 30px; gap: 26px; text-align: left; }
  .an-hero-r { order: 2; }
  .an-fl.f1 { left: -22%; } .an-fl.f2 { right: -24%; } .an-fl.f3 { left: -14%; }
}
@media (max-width: 640px) {
  .an-hero { margin: 0 0 14px; border-radius: 22px; padding: 24px 18px 26px; }
  .an-hero h1 { font-size: 29px; }
  .an-hero-l > p { font-size: 15px; }
  .an-hr strong { font-size: 34px; }
  .an-hero-cta, .an-hero-cta .an-btn { width: 100%; }
  .an-phone { width: 232px; border-radius: 38px; }
  .an-ph-in { border-radius: 29px; }
  .an-fl { padding: 7px 11px 7px 8px; max-width: 190px; }
  .an-fl.f1 { left: -12%; top: 14%; } .an-fl.f2 { right: -12%; } .an-fl.f3 { left: -8%; }
  .an-fl small { max-width: 120px; }
  .an-res { flex-direction: column; align-items: flex-start; padding: 18px; gap: 12px; }
  .an-res h2 { font-size: 20px; }
  .an-res-r { text-align: left; }
  .an-more2 { flex-wrap: wrap; padding: 14px; }
  .an-more2 .an-btn { width: 100%; }
  .an-bud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* barra de días: blindada contra estilos generales de inputs del panel (borde/sombra al enfocar) */
.an-sheet input[type=range].an-range, .an-sheet input[type=range].an-range:hover, .an-sheet input[type=range].an-range:focus,
.an-sheet input[type=range].an-range:focus-visible, .an-sheet input[type=range].an-range:active {
  border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; height: 30px !important; min-height: 0 !important; }

/* flujo de 3 pasos (se ilumina uno tras otro) */
.an-flow { list-style: none; margin: 44px 0 0; padding: 0; display: flex; align-items: flex-start; gap: 0; max-width: 470px; position: relative; }
.an-flow::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--an-meta) 18%, transparent), color-mix(in srgb, var(--an-meta2) 18%, transparent)); }
.an-flow::after { content: ""; position: absolute; top: 18px; left: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--an-meta2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--an-meta2) 20%, transparent), 0 0 14px var(--an-meta2); animation: an-run 6s cubic-bezier(.6,0,.4,1) infinite; }
.an-flow li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; position: relative; z-index: 1; }
.an-flow li:first-child { align-items: flex-start; text-align: left; }
.an-flow li:last-child { align-items: flex-end; text-align: right; }
.an-flow-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--an-bg); color: var(--an-tx3);
  box-shadow: 0 0 0 1px var(--an-bd), 0 6px 16px -10px rgba(16,24,40,.3); animation: an-node 6s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }
.an-flow-ic svg { width: 21px; height: 21px; }
.an-flow b { font-size: 13px; font-weight: 700; line-height: 1.3; max-width: 130px; color: var(--an-tx2); animation: an-node-t 6s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes an-run { 0% { left: 22px; opacity: 0; } 6% { opacity: 1; } 33% { left: calc(50% - 4px); } 40% { left: calc(50% - 4px); } 66% { left: calc(100% - 30px); } 90% { left: calc(100% - 30px); opacity: 1; } 100% { left: calc(100% - 30px); opacity: 0; } }
@keyframes an-node { 0%, 30% { color: #fff; background: linear-gradient(135deg, var(--an-meta), var(--an-meta2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--an-meta) 16%, transparent), 0 10px 24px -10px var(--an-meta); transform: translateY(-2px); }
  38%, 100% { color: var(--an-tx3); background: var(--an-bg); box-shadow: 0 0 0 1px var(--an-bd), 0 6px 16px -10px rgba(16,24,40,.3); transform: none; } }
@keyframes an-node-t { 0%, 30% { color: var(--an-tx); } 38%, 100% { color: var(--an-tx2); } }
@media (prefers-reduced-motion: reduce) { .an-flow::after, .an-flow-ic, .an-flow b, .an-fl, .an-ph-act svg:first-child { animation: none !important; } }

/* «promociona otro producto»: toda la tarjeta abre el armado (sin botón repetido) */
.an-more2 { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.an-more2:hover { border-color: color-mix(in srgb, var(--an-meta) 35%, var(--an-bd)); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--an-meta) 60%, transparent); }
.an-more2-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--an-meta), var(--an-meta2)); }
.an-more2-go svg { width: 18px; height: 18px; }

/* anuncios en vivo: «motor» */
.an-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; margin-bottom: 14px; }
.an-lv { position: relative; display: flex; gap: 16px; padding: 14px; border-radius: 20px; background: var(--an-bg); border: 1px solid var(--an-bd); cursor: pointer; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.an-lv:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -24px rgba(16,24,40,.35); }
.an-lv.on { border-color: color-mix(in srgb, #16a34a 28%, var(--an-bd)); }
.an-lv.on::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--an-a, 0deg), transparent 0 70%, #22c55e 82%, var(--an-meta) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: an-spinb 4s linear infinite; }
@property --an-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes an-spinb { to { --an-a: 360deg; } }
.an-lv-m { position: relative; width: 112px; flex: none; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--an-bg2) center/cover no-repeat; overflow: hidden; }
.an-lv-m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-lv-badge { position: absolute; left: 7px; top: 7px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.an-lv-badge i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; }
.an-lv.on .an-lv-badge i { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: an-ping 1.6s ease-out infinite; }
@keyframes an-ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.an-lv-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.an-lv-b > strong { font-size: 15.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-lv-b > span { font-size: 12.5px; color: var(--an-tx2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-lv-n { display: flex; gap: 18px; margin: 12px 0 6px; }
.an-lv-n b { display: block; font-size: 22px; font-weight: 820; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.an-lv-n small { display: block; font-size: 11.5px; color: var(--an-tx3); font-weight: 650; margin-top: 2px; }
.an-lv .an-spark { height: 34px; margin: 2px 0 8px; }
.an-lv.on .an-spark polyline { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: an-draw 1.6s ease-out forwards; }
@keyframes an-draw { to { stroke-dashoffset: 0; } }
.an-lv-bar { margin-top: auto; height: 6px; border-radius: 6px; background: var(--an-bg2); overflow: hidden; }
.an-lv-bar i { position: relative; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--an-meta), var(--an-meta2)); overflow: hidden; }
.an-lv.on .an-lv-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-100%); animation: an-shine 2.2s ease-in-out infinite; }
@keyframes an-shine { to { transform: translateX(100%); } }
.an-lv-day { font-size: 11.5px; color: var(--an-tx3); font-weight: 650; margin-top: 6px; }
.an-live + .an-list { margin-top: 0; }

/* listo para pagar */
.an-ready { padding-top: 22px; }
.an-ready .an-ad { width: 100%; max-width: 250px; margin: 0 auto 18px; box-shadow: 0 20px 40px -22px rgba(16,24,40,.45); }
.an-ready .an-ad-t { display: none; }
.an-ready .an-btn.block { max-width: 380px; }
.an-rd-by { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 8px; font-size: 12px; font-weight: 700; color: var(--an-tx3); }
.an-rd-by img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.an-rd-by i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--an-meta), var(--an-meta2)); }
.an-rd-by::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat; }

/* franja del Dashboard (invitación): premium */
  background: linear-gradient(var(--bg-card, #fff), var(--bg-card, #fff)) padding-box, linear-gradient(120deg, var(--an-meta), var(--an-meta2) 55%, var(--an-ig)) border-box; border: 1.5px solid transparent;
  box-shadow: 0 14px 34px -22px color-mix(in srgb, var(--an-meta) 70%, transparent); }
@keyframes an-sweep { 0%, 30% { left: -40%; } 70%, 100% { left: 110%; } }

@media (max-width: 640px) {
  .an-flow { max-width: none; }
  .an-flow b { font-size: 12px; max-width: 100px; }
  .an-lv { padding: 12px; gap: 12px; }
  .an-lv-m { width: 92px; }
  .an-lv-n { gap: 14px; }
  .an-lv-n b { font-size: 19px; }
  .an-more2 { flex-wrap: nowrap; }
  .an-more2-th { display: none; }
}

/* confirmación propia (encima de la hoja) */
.an-ask { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(15,18,24,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .16s; }
.an-ask.fixed { position: fixed; z-index: 10060; }
.an-ask.in { opacity: 1; }
.an-ask-c { width: 100%; max-width: 380px; background: var(--bg-card, #fff); color: var(--text-primary, #0f172a); border-radius: 20px; padding: 22px 20px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.25); transform: scale(.96); transition: transform .16s; }
.an-ask.in .an-ask-c { transform: none; }
.an-ask-c p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.an-ask-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.an-btn.danger { background: #dc2626; }
@media (max-width: 640px) { .an-flow { margin-top: 36px; } }

/* producto de ejemplo en el teléfono de la portada */
.an-ph-m { position: relative; }
.an-ph-demo { position: absolute; right: 8px; top: 8px; height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
