/* PROMOCIONAR.CSS - /promocionar/ (promocionar.js). Estilo de "Promocionar" de Facebook: tarjetas blancas,
   pasos numerados a la izquierda y la vista previa fija a la derecha en computadora. */
.pr { width: 100%; max-width: 76rem; margin: 0 auto; padding: 12px 12px 7rem; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; color: #050505; }
.pr h1, .pr h2 { font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; }
.pr-tenue { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #65676b; }
.pr-hero { padding: 24px 20px; margin-bottom: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #1877f2, #002D72 60%, #E31837); }
.pr-hero h1 { margin: 0 0 6px; font-size: clamp(24px, 5vw, 34px); font-weight: 800; }
.pr-hero p { margin: 0; font-size: 15px; line-height: 1.45; opacity: .95; }
.pr-ok { margin-top: 12px !important; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .18); font-weight: 700; }
.pr-sec { margin: 0 0 14px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid #e4e6eb; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.pr-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.pr-sec h2 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1877f2; color: #fff; font-size: 14px; }
.pr-sub { margin: 14px 0 8px; font: 700 12px/1 'Inter', sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #65676b; }

.pr-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.pr-foto { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 10px; background: #f0f2f5; cursor: pointer; }
.pr-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-foto.pr-on { border-color: #1877f2; box-shadow: 0 0 0 2px #e7f3ff; }
.pr-foto.pr-on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #1877f2; color: #fff; font-weight: 900; font-size: 13px; }
.pr-subir { display: grid; place-items: center; border: 2px dashed #ccd0d5; }
.pr-subir span { display: grid; justify-items: center; gap: 2px; font-size: 24px; color: #65676b; }
.pr-subir small { font: 700 12px 'Inter', sans-serif; }

.pr-campo { display: grid; gap: 6px; margin-top: 12px; }
.pr-campo > span { font: 700 12px/1.2 'Inter', sans-serif; letter-spacing: .02em; color: #65676b; }
.pr-campo input, .pr-campo textarea, .pr-campo select { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #ccd0d5; border-radius: 8px; background: #f5f6f7; font: 500 15px 'Inter', sans-serif; color: #050505; }
.pr-campo textarea { min-height: 84px; resize: vertical; }
.pr-campo input:focus, .pr-campo textarea:focus, .pr-campo select:focus { outline: 0; background: #fff; border-color: #1877f2; box-shadow: 0 0 0 2px rgba(24, 119, 242, .2); }
.pr-dos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 640px) { .pr-dos { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }

.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-chips button { min-height: 38px; padding: 0 14px; border: 1px solid #ccd0d5; border-radius: 999px; background: #fff; color: #050505; font: 600 13.5px 'Inter', sans-serif; cursor: pointer; }
.pr-chips button[aria-pressed="true"] { background: #e7f3ff; border-color: #1877f2; color: #1877f2; font-weight: 800; }

.pr-presu { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.pr-presu input[type=range] { flex: 1; accent-color: #1877f2; height: 28px; }
.pr-presu-num { display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px; border: 1px solid #ccd0d5; border-radius: 8px; font: 800 18px 'Inter', sans-serif; }
.pr-presu-num input { width: 70px; border: 0; background: transparent; font: inherit; color: inherit; }
.pr-calc { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #e7f3ff; color: #0b4a9c; font-size: 14.5px; }

.pr-pasos { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.pr-pasos li small { display: block; margin-top: 4px; color: #65676b; }
.pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: #1877f2; color: #fff; font: 700 14px 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.pr-btn:hover { filter: brightness(1.06); }
.pr-btn:disabled { opacity: .6; cursor: wait; }
.pr-btn-grande { width: 100%; min-height: 48px; margin-top: 14px; font-size: 16px; }
.pr-hero .pr-btn-grande { width: auto; background: #fff; color: #1877f2; }
.pr-btn-wa { background: #25D366; }
.pr-btn-gris { background: #e4e6eb; color: #050505; }
.pr-btn-rojo { background: #E31837; }
.pr-error { margin: 12px 0 0; color: #b91c1c; font-weight: 700; font-size: 14px; }
.pr-error:empty { display: none; }

.pr-paypal { margin-top: 12px; padding: 14px; border-radius: 12px; background: #f0f7ff; border: 1px solid #cfe3ff; }
.pr-paypal-botones { max-width: 420px; margin-top: 8px; }
.pr-otro { margin-top: 14px; }
.pr-otro summary { cursor: pointer; padding: 10px 0; font: 700 14.5px 'Inter', sans-serif; color: #1877f2; }
.pr-pagado { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font: 800 12px/1.2 'Inter', sans-serif; }
html.dark .pr-paypal { background: #1c2b3d; border-color: #263951; }
/* Formas de pago: se elige una y el paso cambia */
.pr-total { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #e7f3ff; color: #1877f2; font: 800 14px 'Inter', sans-serif; }
.pr-metodos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pr-metodos button { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border: 2px solid #e4e6eb; border-radius: 12px; background: #fff; color: #050505; font: 700 13px 'Inter', sans-serif; cursor: pointer; }
.pr-metodos button span { font-size: 24px; }
.pr-metodos button[aria-checked="true"] { border-color: #1877f2; background: #e7f3ff; color: #1877f2; box-shadow: 0 0 0 2px rgba(24, 119, 242, .15); }
[data-pago] { margin-top: 12px; }
.pr-enlace { margin-left: 4px; padding: 0; border: 0; background: none; color: #1877f2; font: 700 13px 'Inter', sans-serif; text-decoration: underline; cursor: pointer; }
html.dark .pr-metodos button { background: #3a3b3c; border-color: #3e4042; color: #e4e6eb; }
html.dark .pr-metodos button[aria-checked="true"] { background: #263951; border-color: #2d88ff; color: #2d88ff; }
/* Vista previa real: la tarjeta de anuncios.js dentro de un marco de celular o de página */
.pr-pantallas { display: flex; gap: 4px; padding: 4px; margin: 6px 0 10px; border-radius: 10px; background: #f0f2f5; }
.pr-pantallas button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: transparent; font: 700 13.5px 'Inter', sans-serif; color: #65676b; cursor: pointer; }
.pr-pantallas button[aria-selected="true"] { background: #fff; color: #1877f2; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.pr-marco { padding: 10px; border-radius: 18px; background: #f0f2f5; }
.pr-marco-movil { max-width: 340px; margin: 0 auto; border: 8px solid #1c1e21; border-radius: 30px; }
.pr-pagina { display: grid; gap: 8px; padding: 10px 8px; border-radius: 12px; background: #fff; }
.pr-pagina > i { display: block; height: 10px; border-radius: 6px; background: #e4e6eb; }
.pr-pagina > i:nth-child(2) { width: 70%; }
.pr-pagina .tdj-ad { margin: 4px auto !important; }
.pr-escala { overflow: hidden; width: 100%; }
.pr-escala .tdj-ad { margin: 0 !important; }
.pr-marco .pr-vista-tag { margin: 4px 2px 8px; }
html.dark .pr-pantallas { background: #3a3b3c; } html.dark .pr-pantallas button[aria-selected="true"] { background: #242526; color: #2d88ff; }
html.dark .pr-marco { background: #18191a; } html.dark .pr-pagina { background: #242526; } html.dark .pr-pagina > i { background: #3a3b3c; }
.pr-flotante { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; padding: 12px 16px; border: 0; border-radius: 999px; background: #1877f2; color: #fff; font: 800 14px 'Inter', sans-serif; box-shadow: 0 8px 20px rgba(24, 119, 242, .45); cursor: pointer; }
.pr-volver { width: 100%; margin-top: 10px; }
@media (min-width: 1024px) { .pr-flotante, .pr-volver { display: none; } }
/* Vista previa */
.pr-vista { margin: 0 0 14px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid #e4e6eb; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.pr-vista h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.pr-vista-tag { margin: 12px 0 6px; font: 800 10px/1 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #65676b; }
.pr-vista-nativo { width: 300px; max-width: 100%; aspect-ratio: 300 / 250; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e4e6eb; border-radius: 14px; background: #fff; }
.pr-vista-nativo > img, .pr-vista-nativo > .pr-sinfoto { width: 100%; height: 56%; object-fit: cover; }
.pr-vista-nativo > div, .pr-vista-banner > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; min-width: 0; flex: 1; }
.pr-vista-nativo b, .pr-vista-banner b { font: 800 14px/1.2 'Inter', sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pr-vista-nativo span:not(.pr-sinfoto) { font: 500 12px/1.35 'Inter', sans-serif; color: #475569; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pr-vista-nativo footer, .pr-vista-banner footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pr-vista-nativo small, .pr-vista-banner small { font: 600 10.5px 'Inter', sans-serif; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-vista-nativo em, .pr-vista-banner em { flex: none; padding: 6px 12px; border-radius: 8px; background: #1877f2; color: #fff; font: 800 12px/1 'Inter', sans-serif; font-style: normal; }
.pr-vista-banner { width: 320px; max-width: 100%; aspect-ratio: 320 / 100; display: flex; overflow: hidden; border: 1px solid #e4e6eb; border-radius: 12px; background: #fff; }
.pr-vista-banner > img, .pr-vista-banner > .pr-sinfoto { width: 34%; height: 100%; object-fit: cover; }
.pr-sinfoto { display: grid !important; place-items: center; background: #f0f2f5; color: #65676b; font: 700 13px 'Inter', sans-serif !important; }

/* Mis promociones */
.pr-camp { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #e4e6eb; }
.pr-camp:first-of-type { border-top: 0; }
.pr-camp > img, .pr-camp-sin { flex: none; width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: #f0f2f5; }
.pr-camp-info { flex: 1; min-width: 0; }
.pr-camp-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0; }
.pr-camp-cab b { font-size: 15px; }
.pr-chip { padding: 4px 10px; border-radius: 999px; font: 800 11.5px/1 'Inter', sans-serif; background: #f0f2f5; }
.pr-activa { background: #dcfce7; color: #166534; } .pr-en_revision { background: #fef3c7; color: #92400e; }
.pr-pausada { background: #e4e6eb; color: #334155; } .pr-rechazada { background: #fee2e2; color: #991b1b; } .pr-terminada { background: #e7f3ff; color: #0b4a9c; }
.pr-barra { height: 8px; margin: 8px 0 6px; border-radius: 99px; background: #e4e6eb; overflow: hidden; }
.pr-barra span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1877f2, #22c55e); }
.pr-cifras { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: #65676b; }
.pr-cifras b { color: #050505; }
.pr-motivo { margin: 6px 0 0; font-size: 13px; color: #991b1b; font-weight: 600; }
.pr-pago { margin: 6px 0 0; font-size: 13px; }
.pr-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pr-acc:empty { display: none; }
.pr-admin { border: 2px solid #f59e0b; }
.pr-como ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }

@media (min-width: 1024px) {
    .pr { padding-top: 20px; }
    .pr-armar { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
    .pr-vista { position: sticky; top: 80px; }
}

html.dark .pr { color: #e4e6eb; }
html.dark .pr-sec, html.dark .pr-vista { background: #242526; border-color: #3e4042; }
html.dark .pr-tenue, html.dark .pr-sub, html.dark .pr-campo > span, html.dark .pr-cifras { color: #b0b3b8; }
html.dark .pr-cifras b { color: #e4e6eb; }
html.dark .pr-campo input, html.dark .pr-campo textarea, html.dark .pr-campo select { background: #3a3b3c; border-color: #3e4042; color: #e4e6eb; }
html.dark .pr-chips button { background: #3a3b3c; border-color: #3e4042; color: #e4e6eb; }
html.dark .pr-chips button[aria-pressed="true"] { background: #263951; border-color: #2d88ff; color: #2d88ff; }
html.dark .pr-calc { background: #263951; color: #cfe3ff; }
html.dark .pr-foto, html.dark .pr-sinfoto, html.dark .pr-camp > img, html.dark .pr-camp-sin { background: #3a3b3c; }
html.dark .pr-vista-nativo, html.dark .pr-vista-banner { background: #18191a; border-color: #3e4042; }
html.dark .pr-btn-gris { background: #3a3b3c; color: #e4e6eb; }
html.dark .pr-camp { border-color: #3e4042; }
