/* VotaPay WooCommerce – interfaz pública. Todo está acotado a .vp-app / .vp-modal-root para no interferir con el tema. */
.vp-app, .vp-modal-root {
	--vp-accent: #b3125f;
	--vp-accent-ink: #ffffff;
	--vp-ink: #1f1724;
	--vp-muted: #6e6476;
	--vp-line: #ece6ef;
	--vp-surface: #ffffff;
	--vp-soft: #faf6fb;
	--vp-ok: #11743f;
	--vp-ok-bg: #e8f6ee;
	--vp-warn: #8a4b00;
	--vp-warn-bg: #fff4e2;
	--vp-bad: #a3192b;
	--vp-bad-bg: #fdecee;
	--vp-radius: 16px;
	--vp-shadow: 0 1px 2px rgba(31, 23, 36, .06), 0 8px 24px rgba(31, 23, 36, .08);
	color: var(--vp-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.vp-app *, .vp-modal-root * { box-sizing: border-box; }
.vp-app { margin: 0 auto 32px; max-width: 1200px; }

/* Botones */
.vp-app .vp-btn, .vp-modal-root .vp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 20px; width: auto;
	border: 0; border-radius: 12px; cursor: pointer;
	background: var(--vp-accent); color: var(--vp-accent-ink);
	font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .02em; line-height: 1.2; text-transform: none; text-decoration: none;
	box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.vp-app .vp-btn:hover, .vp-modal-root .vp-btn:hover { filter: brightness(1.08); color: var(--vp-accent-ink); }
.vp-app .vp-btn:active, .vp-modal-root .vp-btn:active { transform: translateY(1px); }
.vp-app .vp-btn:focus-visible, .vp-modal-root .vp-btn:focus-visible, .vp-modal-root button:focus-visible, .vp-modal-root input:focus-visible { outline: 3px solid color-mix(in srgb, var(--vp-accent) 45%, transparent); outline-offset: 2px; }
.vp-app .vp-btn[disabled] { background: #d9d2dc; color: #6e6476; cursor: not-allowed; box-shadow: none; filter: none; }
.vp-modal-root .vp-btn-ghost { background: transparent; color: var(--vp-ink); border: 2px solid var(--vp-line); box-shadow: none; }
.vp-modal-root .vp-btn-ghost:hover { color: var(--vp-ink); border-color: #cfc5d4; filter: none; }
.vp-modal-root .vp-btn-block { width: 100%; }

/* Encabezado */
.vp-head { text-align: center; margin: 0 auto 16px; max-width: 760px; }
.vp-app .vp-title { margin: 0 0 8px; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; letter-spacing: -.01em; color: var(--vp-ink); }
.vp-desc { color: var(--vp-muted); }
.vp-desc p { margin: 0 0 8px; }

/* Barra de estado */
.vp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; background: var(--vp-soft); border: 1px solid var(--vp-line); font-size: 15px; text-align: center; }
.vp-bar-active { background: var(--vp-ok-bg); border-color: #cdebd9; }
.vp-bar-finished { background: #f1eef3; }
.vp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vp-ok); box-shadow: 0 0 0 0 rgba(17,116,63,.5); animation: vp-pulse 2s infinite; }
@keyframes vp-pulse { 0% { box-shadow: 0 0 0 0 rgba(17,116,63,.45); } 70% { box-shadow: 0 0 0 10px rgba(17,116,63,0); } 100% { box-shadow: 0 0 0 0 rgba(17,116,63,0); } }
.vp-countdown { color: var(--vp-muted); font-variant-numeric: tabular-nums; }
.vp-price strong { color: var(--vp-ink); }

/* Pasos */
.vp-app .vp-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: none; }
.vp-app .vp-steps li { margin: 0; padding: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.25; color: var(--vp-muted); background: var(--vp-surface); border: 1px solid var(--vp-line); border-radius: 12px; }
.vp-app .vp-steps li span { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--vp-accent); color: var(--vp-accent-ink); font-weight: 700; font-size: 13px; }

/* Buscador */
.vp-search { margin: 0 0 16px; }
.vp-app .vp-search-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--vp-line); border-radius: 12px; font: inherit; background: var(--vp-surface); color: var(--vp-ink); }
.vp-app .vp-search-input:focus { border-color: var(--vp-accent); outline: none; }

/* Cuadrícula */
.vp-app .vp-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .vp-app .vp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .vp-app .vp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.vp-app .vp-card { margin: 0; padding: 0; background: var(--vp-surface); border-radius: var(--vp-radius); box-shadow: var(--vp-shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--vp-line); }
.vp-photo { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, #f4e9f1, #e9e1ee); overflow: hidden; }
.vp-app .vp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; margin: 0; max-width: none; border-radius: 0; transition: transform .4s ease; }
.vp-card:hover .vp-photo img { transform: scale(1.03); }
.vp-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 700; color: color-mix(in srgb, var(--vp-accent) 55%, white); }
.vp-num { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--vp-ink); font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.vp-count { position: absolute; bottom: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(31,23,36,.82); color: #fff; font-weight: 700; font-size: 13px; }
.vp-card-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vp-app .vp-name { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--vp-ink); flex: 1; overflow-wrap: anywhere; }
.vp-app .vp-vote { width: 100%; text-transform: uppercase; letter-spacing: .06em; }
.vp-empty, .vp-noresults { text-align: center; color: var(--vp-muted); padding: 24px 0; }
.vp-secure { margin: 18px 0 0; font-size: 13px; color: var(--vp-muted); text-align: center; }
.vp-app .screen-reader-text, .vp-modal-root .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Modal */
.vp-modal-root { position: fixed; inset: 0; z-index: 999999; display: none; }
.vp-modal-root.is-open { display: block; }
.vp-overlay { position: absolute; inset: 0; background: rgba(20, 12, 24, .55); backdrop-filter: blur(2px); animation: vp-fade .2s ease; }
.vp-dialog { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; background: var(--vp-surface); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: vp-up .25s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 680px) {
	.vp-dialog { left: 50%; top: 50%; bottom: auto; right: auto; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, -50%); border-radius: 20px; padding: 24px; animation: vp-pop .2s ease; }
}
@keyframes vp-fade { from { opacity: 0; } }
@keyframes vp-up { from { transform: translateY(40px); opacity: .4; } }
@keyframes vp-pop { from { transform: translate(-50%, -46%); opacity: 0; } }
.vp-grabber { width: 44px; height: 5px; border-radius: 3px; background: #ddd5e0; margin: -6px auto 12px; }
@media (min-width: 680px) { .vp-grabber { display: none; } }
.vp-modal-root .vp-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--vp-muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; min-height: 0; }
.vp-modal-root .vp-x:hover { background: var(--vp-soft); color: var(--vp-ink); }
.vp-mstep { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vp-accent); margin: 0 0 8px; }
.vp-mhead { display: flex; gap: 14px; align-items: center; margin: 0 40px 16px 0; }
.vp-mhead img, .vp-mhead .vp-noimg-s { width: 72px; height: 96px; border-radius: 12px; object-fit: cover; object-position: top; flex: 0 0 72px; background: var(--vp-soft); margin: 0; }
.vp-noimg-s { display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--vp-accent); }
.vp-modal-root h3 { margin: 0; font-size: 20px; line-height: 1.2; color: var(--vp-ink); }
.vp-mnum { color: var(--vp-muted); font-weight: 600; font-size: 14px; }
.vp-mdesc { color: var(--vp-muted); font-size: 14px; margin: -6px 0 14px; }
.vp-label { display: block; font-weight: 700; margin: 0 0 10px; font-size: 15px; }
.vp-packs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0 0 14px; }
@media (min-width: 420px) { .vp-packs { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.vp-modal-root .vp-pack { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--vp-line); background: var(--vp-surface); color: var(--vp-ink); cursor: pointer; font: inherit; line-height: 1.2; text-transform: none; letter-spacing: 0; box-shadow: none; }
.vp-modal-root .vp-pack:hover { border-color: #d3c4d9; background: var(--vp-soft); color: var(--vp-ink); }
.vp-modal-root .vp-pack[aria-pressed="true"] { border-color: var(--vp-accent); background: color-mix(in srgb, var(--vp-accent) 8%, white); box-shadow: 0 0 0 1px var(--vp-accent) inset; }
.vp-pack b { font-size: 20px; }
.vp-pack small { color: var(--vp-muted); font-size: 13px; }
.vp-pack em { position: absolute; top: 6px; right: 6px; line-height: 1.3; font-style: normal; font-size: 11px; font-weight: 800; background: #c9a24a; color: #2b1d00; padding: 2px 6px; border-radius: 999px; }
.vp-custom { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--vp-soft); flex-wrap: wrap; }
.vp-custom span { font-weight: 600; font-size: 14px; flex: 1 1 120px; }
.vp-stepper { display: flex; align-items: center; border: 2px solid var(--vp-line); border-radius: 12px; overflow: hidden; background: #fff; }
.vp-modal-root .vp-stepper button { width: 44px; height: 44px; border: 0; background: #fff; color: var(--vp-ink); font-size: 22px; cursor: pointer; padding: 0; min-height: 0; border-radius: 0; box-shadow: none; }
.vp-modal-root .vp-stepper input { width: 72px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 18px; color: var(--vp-ink); background: #fff; -moz-appearance: textfield; padding: 0; margin: 0; box-shadow: none; }
.vp-stepper input::-webkit-outer-spin-button, .vp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vp-totalrow { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin: 0 0 12px; border-top: 1px solid var(--vp-line); }
.vp-totalrow span { color: var(--vp-muted); }
.vp-totalrow strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.vp-actions { display: grid; gap: 10px; }
@media (min-width: 680px) { .vp-actions.two { grid-template-columns: 1fr 1fr; } .vp-actions.two .vp-btn-primary { order: 2; } }
.vp-confirm-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: .02em; text-align: center; color: var(--vp-ink); }
.vp-confirm-lead { text-align: center; margin: 0 0 14px; color: var(--vp-muted); }
.vp-modal-root .vp-confirm-list { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--vp-soft); border: 1px solid var(--vp-line); display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.vp-confirm-list dt { color: var(--vp-muted); margin: 0; }
.vp-confirm-list dd { margin: 0; font-weight: 700; text-align: right; }
.vp-confirm-list .vp-big { font-size: 22px; color: var(--vp-accent); }
.vp-confirm-q { text-align: center; font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.vp-fine { font-size: 12px; color: var(--vp-muted); text-align: center; margin: 12px 0 0; }
.vp-fine a { color: inherit; text-decoration: underline; }
.vp-merr { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--vp-bad-bg); color: var(--vp-bad); font-weight: 600; font-size: 14px; }
.vp-loading { text-align: center; padding: 30px 0 18px; }
.vp-spin { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--vp-line); border-top-color: var(--vp-accent); animation: vp-rot .8s linear infinite; }
@keyframes vp-rot { to { transform: rotate(360deg); } }
html.vp-lock, html.vp-lock body { overflow: hidden !important; }

/* Resultados */
.vp-results .vp-title { text-align: center; }
.vp-total, .vp-locked, .vp-preview, .vp-note { text-align: center; color: var(--vp-muted); }
.vp-preview { background: var(--vp-warn-bg); color: var(--vp-warn); padding: 8px 12px; border-radius: 10px; }
.vp-locked { padding: 24px 16px; background: var(--vp-soft); border-radius: var(--vp-radius); }
.vp-app .vp-rank { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.vp-app .vp-rank-row { margin: 0; display: grid; grid-template-columns: 32px 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--vp-surface); border: 1px solid var(--vp-line); border-radius: 14px; }
.vp-rank-pos { font-weight: 800; font-size: 18px; text-align: center; color: var(--vp-muted); }
.vp-rank-row:nth-child(1) .vp-rank-pos { color: #b8892b; }
.vp-app .vp-rank-photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; display: block; margin: 0; }
.vp-rank-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vp-rank-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-rank-name small { color: var(--vp-muted); font-weight: 600; }
.vp-rank-track { height: 8px; border-radius: 4px; background: #f0eaf2; overflow: hidden; }
.vp-rank-fill { display: block; height: 100%; border-radius: 4px; background: var(--vp-accent); }
.vp-rank-val { text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.15; }
.vp-rank-val small { color: var(--vp-muted); }

/* Agradecimiento */
.vp-ty { padding: 20px; border-radius: var(--vp-radius); border: 2px solid var(--vp-line); margin: 0 0 24px; background: var(--vp-surface); }
.vp-ty.is-ok { border-color: #bfe5cf; background: var(--vp-ok-bg); }
.vp-ty.is-wait { border-color: #f3d9ae; background: var(--vp-warn-bg); }
.vp-ty.is-bad { border-color: #f2c3ca; background: var(--vp-bad-bg); }
.vp-app .vp-ty-title { margin: 0 0 6px; font-size: clamp(20px, 3.5vw, 26px); line-height: 1.2; }
.vp-ty-warn { margin: 0 0 12px; }
.vp-app .vp-ty-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0; padding: 14px 16px; background: rgba(255,255,255,.75); border-radius: 12px; }
.vp-ty-list dt { color: var(--vp-muted); margin: 0; }
.vp-ty-list dd { margin: 0; font-weight: 700; }

/* Verificación */
.vp-verify { max-width: 560px; }
.vp-verify-form, .vp-verify-card { background: var(--vp-surface); border: 1px solid var(--vp-line); border-radius: var(--vp-radius); padding: 20px; box-shadow: var(--vp-shadow); }
.vp-verify-form h2, .vp-verify-card h2 { margin: 0 0 8px; font-size: 22px; }
.vp-verify-form label { display: block; font-weight: 600; margin: 0 0 12px; }
.vp-app .vp-verify-form input { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--vp-line); border-radius: 12px; font: inherit; }
.vp-verify-card { text-align: center; }
.vp-verify-card dl { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; }
.vp-verify-card dt { color: var(--vp-muted); }
.vp-verify-card dd { margin: 0; font-weight: 700; }
.vp-verify-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; background: var(--vp-ok); }
.vp-verify-card.is-invalid .vp-verify-icon { background: var(--vp-bad); }
.vp-verify-state { font-weight: 700; }
.vp-alert { padding: 10px 12px; border-radius: 10px; background: var(--vp-bad-bg); color: var(--vp-bad); }

/* Checkout */
.vp-checkout-legal { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #faf6fb; border: 1px solid #ece6ef; font-size: 14px; line-height: 1.5; }
.vp-checkout-legal a { text-decoration: underline; }
.vp-qty-fixed { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.vp-dot, .vp-dialog, .vp-overlay, .vp-spin { animation: none !important; }
	.vp-photo img { transition: none !important; }
}

/* Normaliza listas de definición frente a estilos del tema */
.vp-app dl, .vp-modal-root dl { border: 0; }
.vp-app dt, .vp-app dd, .vp-modal-root dt, .vp-modal-root dd { border: 0 !important; padding: 0 !important; background: none; }
@media (max-width: 480px) { .vp-app .vp-steps li { flex-direction: column; text-align: center; font-size: 12px; gap: 4px; } }
