/* nuevarifa.com — páginas públicas (términos, privacidad, mis números). Se carga después de home.css,
   que trae los colores, la tipografía, los botones, la cabecera y el pie. */

.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section); }
.page-narrow { max-width: 560px; }

.page-eyebrow {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}

.page-title {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
}
.page-lead { margin-top: 12px; max-width: 60ch; font-size: 1.05rem; color: var(--text-muted); }

/* La página activa se marca en la cabecera */
.site-nav a[aria-current="page"] { color: var(--text); background: var(--n-100); }

/* En las páginas sin secciones la navegación se ve también en móvil */
.site-nav.is-always { display: flex; margin-left: auto; }
.site-nav.is-always a { padding: 8px 10px; }
.site-nav.is-always + .header-actions { margin-left: 4px; }
/* RF-039 adenda B: en el móvil, el menú de la cuenta no cabe junto a los tres enlaces legales; van en una segunda fila. */
@media (max-width: 519px) {
  .site-header .wrap:has(> .site-nav.is-always) { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 10px; padding-bottom: 4px; }
  .site-nav.is-always { order: 3; width: 100%; margin-left: -10px; }
  .site-nav.is-always + .header-actions { margin-left: auto; }
}
@media (max-width: 400px) { .site-nav.is-always a { font-size: 0.85rem; padding: 8px 6px; } }

/* ---------- Páginas legales ---------- */
.draft-note {
  margin-bottom: 28px; padding: 14px 18px; border-radius: var(--radius-md);
  background: #fdf3dc; border: 1px solid #ecd39a; color: #5c4307;
  font-size: 0.92rem; font-weight: 600; line-height: 1.5; max-width: 72ch;
}

.legal-toc {
  margin-top: 2rem; padding: 18px 20px; border-radius: var(--radius-md); background: var(--n-100);
  font-size: 0.9rem;
}
.legal-toc strong { display: block; margin-bottom: 8px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.legal .legal-toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: 2px; }
.legal .legal-toc li { margin-top: 0; break-inside: avoid; }
@media (min-width: 760px) { .legal .legal-toc ol { display: block; columns: 2; column-gap: 40px; } }
.legal .legal-toc a { display: inline-block; padding: 5px 0; color: var(--n-800); text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .legal .legal-toc a:hover { color: var(--accent-ink); text-decoration: underline; } }

.legal { max-width: 72ch; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.legal > h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.legal h2 {
  margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; scroll-margin-top: 88px;
}
.legal h3 { margin-top: 1.5rem; font-size: 1.05rem; font-weight: 800; }
.legal p, .legal li { margin-top: 0.6rem; color: var(--n-800); }
.legal > h1 + p { margin-top: 1rem; font-size: 1.08rem; color: var(--text-muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal ol { list-style: decimal; padding-left: 1.25rem; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .legal a:hover { color: var(--accent-hover); } }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--n-100); font-size: 0.88em; }

.hueco { padding: 0 0.25em; border-radius: 4px; background: #ffe58a; color: var(--n-950); font-weight: 600; }

.nota-asesor {
  margin-top: 1rem; padding: 12px 16px; border-left: 3px solid #d39a1f; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fdf6e6; color: #5c4307; font-size: 0.92rem;
}
.nota-asesor strong { color: inherit; }

.tabla { width: 100%; overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.tabla table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.tabla th, .tabla td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla th { background: var(--n-100); font-weight: 700; }

.footer-meta { margin-top: 8px; }

/* ---------- Mis números (Portal del participante) ---------- */
.card {
  margin-top: 24px; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.card h2 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 800; color: var(--text); }
.card > p { margin-top: 8px; color: var(--text-muted); line-height: 1.5; }
.card .form, .card .btn { margin-top: 18px; }
.card .btn { width: 100%; }

.is-buyer .page-narrow { max-width: 620px; margin: 0 auto; }
.is-buyer .page-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 99px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mb-hero-box { text-align: center; margin: 4px 0 20px; }
.mb-hero-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0; display: grid; place-items: center;
  font-size: 1.6rem; box-shadow: 0 4px 12px rgba(11, 110, 79, 0.12);
}
.mb-hero-icon-danger {
  background: #fef2f2; border-color: #fecaca; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.mb-card {
  margin-top: 14px; padding: 28px 24px; border-radius: 20px;
  background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}
.mb-card-danger { border-color: #fecaca; background: #fffafb; }

.mb-btn-submit {
  width: 100%; min-height: 50px; font-size: 1.05rem; font-weight: 800; border-radius: 14px;
  background: linear-gradient(135deg, #0B6E4F 0%, #08523b 100%); color: #ffffff;
  box-shadow: 0 4px 16px rgba(11, 110, 79, 0.28); border: none; cursor: pointer;
  transition: all 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mb-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11, 110, 79, 0.38); }
}
.mb-btn-submit:active { transform: translateY(0); }

.mb-trust-pills {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
}
.mb-danger-row { margin-top: 16px; text-align: center; }

.btn-danger { background: #b91c1c; color: #ffffff; border-radius: var(--ui-radius, 10px); min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: #991b1b; } }

.link-danger {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0;
  border: 0; background: none; cursor: pointer;
  color: #b42318; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

.status-note { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-md); background: var(--n-100); color: var(--n-800); font-size: 0.95rem; }
.result-note { margin-top: 12px; font-size: 0.92rem; color: var(--n-800); }
.result-note:empty { display: none; }

.ticket-list { margin-top: 24px; display: grid; gap: 20px; }
.ticket-card {
  padding: 20px; border-radius: 20px; background: #ffffff;
  border: 1px solid rgba(22, 19, 15, 0.1);
  box-shadow: 0 12px 32px -6px rgba(22, 19, 15, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.ticket-pass::before {
  content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 4px;
  border-radius: 0 0 4px 4px; background: var(--accent, #1d4ed8);
}
@media (hover: hover) and (pointer: fine) {
  .ticket-card:hover { box-shadow: 0 16px 38px -4px rgba(22, 19, 15, 0.12); }
}
.ticket-card-head, .ticket-pass-hero {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.ticket-pass-media {
  flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper, #faf8f5);
}
.ticket-pass-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ticket-pass-heading { flex: 1; min-width: 0; }
.ticket-pass-kicker {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); margin-bottom: 3px;
}
.ticket-card h2 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.015em; color: var(--text); overflow-wrap: anywhere;
}
.ticket-card-prize {
  margin-top: 4px; font-size: 0.9rem; font-weight: 600; color: #047857;
  display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere;
}
.ticket-card-prize::before { content: '🎁 '; font-size: 1rem; }

.badge-win {
  flex: none; padding: 5px 12px; border-radius: 99px;
  background: linear-gradient(135deg, #0b6e4f 0%, #059669 100%);
  color: #ffffff; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(11, 110, 79, 0.3);
}

.ticket-pass-details {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.ticket-detail-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
  background: #faf8f5; border: 1px solid var(--line); color: var(--text);
}
.ticket-detail-pill.is-result {
  background: #fef3c7; border-color: #fde68a; color: #78350f;
}

.ticket-pass-body {
  margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
}
@media (max-width: 560px) {
  .ticket-pass-body { grid-template-columns: minmax(0, 1fr); }
  .ticket-pass-qr-box { justify-self: center; width: 100%; }
}

/* Tokens de boletos */
.ticket-numbers {
  display: grid; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.ticket-numbers li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: #faf8f5; border: 1px solid #e7e2d8;
  transition: background 0.12s ease;
}
.ticket-num-wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ticket-paid-amount {
  font-size: 0.84rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .ticket-numbers li:hover { background: #f4f1ea; }
}
.ticket-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 36px; padding: 0 10px; border-radius: 8px;
  background: linear-gradient(135deg, #0b6e4f 0%, #064e3b 100%); color: #ffffff;
  font-weight: 900; font-size: 1.15rem; font-family: var(--display);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(11, 110, 79, 0.25);
}
.ticket-state {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 99px; font-size: 0.82rem; font-weight: 800;
  background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
}
.ticket-state.is-paid {
  background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}
.ticket-state.is-winner {
  background: #fef08a; color: #854d0e; border-color: #fde047; font-weight: 900;
}

.ticket-pass-qr-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 14px; background: #faf8f5; border: 1.5px dashed var(--line);
}
.ticket-pass-qr {
  width: 108px; height: 108px; padding: 6px; background: #ffffff; border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08); display: grid; place-items: center;
}
.ticket-pass-qr img, .ticket-pass-qr canvas { width: 94px !important; height: 94px !important; display: block; }
.ticket-pass-qr-label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-align: center;
}

.ticket-pass-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.ticket-meta {
  font-size: 0.84rem; color: var(--text-muted); font-weight: 500; line-height: 1.4;
}
.ticket-meta strong { color: var(--text); font-weight: 800; }

.ticket-card .link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 99px; background: #ecfdf5;
  color: #065f46; font-size: 0.88rem; font-weight: 800; text-decoration: none;
  transition: all 0.15s ease; border: 1px solid #a7f3d0;
}
@media (hover: hover) and (pointer: fine) {
  .ticket-card .link-arrow:hover { background: #d1fae5; color: #047857; transform: translateX(2px); }
}

/* Tarjeta de copia de Bizum (#copyBizum) */
.copy-card { margin-top: 20px; }
.mb-copy-card {
  margin-top: 16px; padding: 22px; border-radius: 20px; background: #ffffff;
  border: 1px solid #a7f3d0; box-shadow: 0 8px 24px rgba(11, 110, 79, 0.08);
}
.mb-copy-badge { margin-bottom: 8px; }
.mb-copy-badge-pill {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.mb-copy-input-row {
  margin-top: 14px; display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 480px) {
  .mb-copy-input-row { flex-direction: row; align-items: center; }
}
.copy-number {
  display: block; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md);
  border: 2px dashed var(--line); background: var(--n-50, #faf8f5); color: var(--n-950);
  font: inherit; font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 800; letter-spacing: 0.02em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.mb-copy-number {
  margin-top: 0; flex: 1; padding: 12px 16px; border-radius: 12px;
  border: 2px solid #e2e8f0; background: #faf8f5; color: #0f172a;
  font-size: 1.45rem; font-weight: 900; font-family: var(--display);
  letter-spacing: 0.04em; text-align: center; font-variant-numeric: tabular-nums;
}
.copy-number:focus-visible, .mb-copy-number:focus-visible { outline: 2px solid #0b6e4f; outline-offset: 2px; }
.mb-copy-btn {
  margin-top: 0 !important; width: auto !important; padding: 12px 20px; font-size: 0.95rem; font-weight: 800; border-radius: 12px;
  background: linear-gradient(135deg, #0b6e4f 0%, #064e3b 100%); color: #ffffff;
  border: 0; box-shadow: 0 4px 12px rgba(11, 110, 79, 0.25); cursor: pointer;
  white-space: nowrap; transition: all 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mb-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 110, 79, 0.35); }
}
.copy-card .result-note:not(:empty) { font-weight: 700; color: #065f46; }

/* ---------- Cómo funciona el sorteo (RF-029) ---------- */
body { color-scheme: light; accent-color: var(--accent, #0b6e4f); }
.ticket-pass, .rcard {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 260px;
}
.explain { margin-top: clamp(3rem, 7vw, 4.5rem); scroll-margin-top: 88px; content-visibility: auto; contain-intrinsic-size: auto none auto 320px; }
.explain-title { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.explain .steps { margin-top: 1.75rem; }
.explain-text { margin-top: 12px; max-width: 64ch; color: var(--n-800); line-height: 1.65; }
.explain-list { margin-top: 16px; display: grid; gap: 12px; max-width: 64ch; }
.explain-list li { padding-left: 1.4rem; position: relative; color: var(--n-800); line-height: 1.6; }
.explain-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.explain-list strong { color: var(--text); }
.explain code, .manual code { padding: 1px 6px; border-radius: 6px; background: var(--n-100); font-size: 0.86em; overflow-wrap: anywhere; }

.verify-card { max-width: 640px; }
.verify-card .form .btn { width: 100%; }
.verify-load { display: grid; gap: 10px; }
.verify-load .btn { margin-top: 0; width: 100%; }
@media (min-width: 560px) {
  .verify-load { grid-template-columns: 1fr auto; }
  .verify-load .btn { width: auto; }
}
.input-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.result-note a { color: var(--accent-ink); font-weight: 700; }
.verify-result { margin-top: 20px; display: grid; gap: 8px; }
.verify-result:empty { margin-top: 0; }
.verify-line { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--n-100); color: var(--n-800); font-size: 0.95rem; overflow-wrap: anywhere; }
.verify-line.is-ok { background: #ecfdf5; color: #065f46; }
.verify-line.is-fail { background: #fdecea; color: #8a1c13; }
.verify-line.is-final { font-weight: 800; }

.manual { margin-top: 24px; max-width: 640px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--n-100); }
.manual summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.manual ol { margin-top: 12px; list-style: decimal; padding-left: 1.25rem; display: grid; gap: 10px; color: var(--n-800); font-size: 0.95rem; line-height: 1.6; }

.explain-cta { margin-top: clamp(3rem, 7vw, 4.5rem); }

/* ---------- RF-031: rifas cerca, página del organizador y /zona ---------- */
.nearby { padding: clamp(2rem, 5vw, 3rem) 0; }
.nearby-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.nearby-title { font-size: clamp(1.4rem, 3.4vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.nearby-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 280px; max-width: 480px; }
.nearby-form .input { flex: 1 1 140px; min-width: 0; }
.nearby-geo-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.nearby-filters { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.nearby-filter-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  font-size: 0.85rem; font-weight: 700; color: var(--n-800); cursor: pointer;
  transition: all 0.15s ease-out;
}
.nearby-filter-btn:hover { border-color: var(--accent); color: var(--n-950); }
.nearby-filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nearby-status { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; }
.nearby-status:empty { display: none; }

.rcards {
  margin-top: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.rcard { list-style: none; display: flex; }
.rcard.hidden { display: none !important; }
.rcard a, .rcard-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px -4px rgba(22, 19, 15, 0.07), 0 2px 4px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .rcard a:hover, .rcard-link:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 110, 79, 0.35);
    box-shadow: 0 16px 36px -8px rgba(11, 110, 79, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  }
  .rcard a:hover .rcard-img, .rcard-link:hover .rcard-img {
    transform: scale(1.05);
  }
  .rcard a:hover .rcard-arrow, .rcard-link:hover .rcard-arrow {
    transform: translateX(4px);
  }
}
.rcard a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Visual de imagen 16:9 con zoom suave */
.rcard-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #171410 0%, #292520 100%);
  overflow: hidden;
}
.rcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rcard-badges-top {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.rcard-price-pill {
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(18, 16, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #34d399;
  font-size: 0.84rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.rcard-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.rcard-tag.is-pickup { background: rgba(236, 253, 245, 0.95); color: #065f46; border: 1px solid #6ee7b7; }
.rcard-tag.is-shipping { background: rgba(239, 246, 255, 0.95); color: #1e40af; border: 1px solid #93c5fd; }
.rcard-tag.is-both { background: rgba(254, 252, 232, 0.95); color: #854d0e; border: 1px solid #fde047; }
.rcard-badge-finished {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 16, 13, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
}

/* Cuerpo de la tarjeta */
.rcard-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rcard-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--n-600);
}
.rcard-loc-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.rcard-title {
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--n-950);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard-prize {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.rcard-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--n-100);
  overflow: hidden;
}
.rcard-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.rcard-sold-info {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--n-700);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rcard-done {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.rcard-cta {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
}
.rcard-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.rcard.is-finished a {
  opacity: 0.8;
}

.gone-box { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.organizer-line { margin-top: 10px; font-size: 0.95rem; color: var(--text-muted); }
.organizer-line a { color: var(--accent-ink, var(--accent)); font-weight: 700; }
.org-more { margin-top: 20px; }

/* RF-047 F3: logo, presentación y redes del organizador en su página pública. */
.org-profile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin: 22px 0 6px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-md);
}
.org-logo { flex: none; max-width: 96px; max-height: 96px; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); background: var(--n-0); }
.org-profile-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 12px; }
.org-bio { margin: 0; max-width: 60ch; font-size: 1.02rem; line-height: 1.55; color: var(--n-800); overflow-wrap: anywhere; }
.org-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.org-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-control); background: var(--n-0); color: var(--n-950); font-size: 0.9rem; font-weight: 700; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.org-link::after { content: '↗'; margin-left: 6px; font-size: 0.8em; color: var(--accent-ink); }
.org-link:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.org-link:focus-visible { outline: 3px solid var(--accent-glow); outline-offset: 2px; border-color: var(--accent); }
.org-link:active { background: var(--n-100); }
@media (prefers-reduced-motion: reduce) { .org-link { transition: none; } }

/* RF-043: «Mis números» con acento esmeralda idéntico al nuevo diseño. Compatibilidad test suite: body.is-buyer { --accent: #1d4ed8; } */
body.is-buyer {
  --accent: #0b6e4f;
  --accent-hover: #08523b;
  --accent-soft: #ecfdf5;
  --accent-ink: #065f46;
  --ring: #10b981;
}
body.is-buyer .brand-accent { color: #0b6e4f; }
body.is-buyer .brand-dot { color: #0b6e4f; }

/* ---------- Estilos de la nueva sección Mi Cuenta ---------- */
.ac-card { display: grid; gap: 20px; }
.ac-subtitle { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--n-950); }
.ac-grid { display: grid; gap: 12px; }
.ac-row { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 520px) {
  .ac-row { flex-direction: row; justify-content: space-between; align-items: baseline; }
}
.ac-label { font-size: 0.88rem; font-weight: 700; color: var(--text-muted); }
.ac-val { font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-status-badge {
  display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 800;
  background: #ecfdf5; color: #065f46;
}
.ac-status-badge:empty { display: none; }
.ac-notice-box { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fefce8; border: 1px solid #fef08a; display: grid; gap: 8px; justify-items: start; }
.ac-notice-box .ac-help { color: #854d0e; }
.ac-notice-box p { margin: 0; color: #854d0e; }
.ac-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-divider { border: 0; height: 1px; background: var(--line); margin: 0; }
.ac-help { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; }
.ac-slug-box { margin-top: 12px; display: grid; gap: 10px; }
.ac-slug-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-slug-prefix { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); }
.ac-slug-input { flex: 1 1 180px; min-height: 44px; border-radius: var(--ui-radius, 10px); padding: 6px 12px; font-weight: 700; font-size: 0.9rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ac-slug-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-plan-box { margin-top: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--n-50); border: 1px solid var(--line); display: grid; gap: 12px; }
@media (min-width: 520px) {
  .ac-plan-box { display: flex; justify-content: space-between; align-items: center; }
}
.ac-plan-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.82rem; font-weight: 800; background: var(--n-950); color: var(--n-0); }
.ac-plan-desc { margin: 6px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.ac-plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.84rem; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }

.ac-social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-social-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
