:root {
  --noir: #12030a;
  --wine: #2b0611;
  --red: #c1121f;
  --red-deep: #8f0a1a;
  --red-dark: #5a0610;
  --rose: #ff6b7f; /* rojo legible sobre fondo oscuro */
  --blush: #fff3f4;
  --line: #f3d7da;
  --white: #ffffff;
  --ink: #23090d;
  --muted: #7d6266;
  --soft: rgba(255, 255, 255, 0.72); /* texto secundario sobre oscuro */
  --veil: rgba(255, 255, 255, 0.07); /* superficies translúcidas */
  --veil-line: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 10px 30px rgba(211, 22, 43, 0.45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='white' stroke-width='0.9'%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3Ccircle cx='28' cy='28' r='3.5'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='56' cy='0' r='10'/%3E%3Ccircle cx='0' cy='56' r='10'/%3E%3Ccircle cx='56' cy='56' r='10'/%3E%3Cpath d='M28 18Q35 7 46 10M28 38Q21 49 10 46M18 28Q7 21 10 10M38 28Q49 35 46 46'/%3E%3Ccircle cx='28' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='28' r='1.6'/%3E%3Ccircle cx='56' cy='28' r='1.6'/%3E%3Ccircle cx='28' cy='56' r='1.6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: var(--red-deep) var(--noir); }

/* Fondo de tocador: negro vino con resplandores rojos, como luz de vela. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(193, 18, 31, 0.5), transparent 70%),
    radial-gradient(circle at 105% 85%, rgba(143, 10, 26, 0.42), transparent 45%),
    radial-gradient(circle at -10% 60%, rgba(90, 6, 16, 0.55), transparent 45%),
    var(--noir);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--lace);
  opacity: 0.05;
  pointer-events: none;
}

::selection { background: var(--red); color: var(--white); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 32px; padding-bottom: 72px; }

/* ---------- barra superior ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 3, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--veil-line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.logo { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--white); letter-spacing: 0.01em; }
.logo:hover { text-decoration: none; }
.logo em { font-style: italic; font-weight: 600; color: var(--rose); text-shadow: 0 0 18px rgba(255, 107, 127, 0.55); }
.logo-sm { font-size: 1.2rem; }
.logo-lg { font-size: 2.4rem; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 160ms ease;
}
.nav a:hover, .nav .link:hover { background: var(--veil-line); text-decoration: none; }
.nav a.btn { margin-left: 6px; }
.nav a.btn-red:hover { background: var(--red-deep); }
.nav a.btn-exclusive:hover { background: var(--exclusive-fill); }

.link { background: none; border: 0; cursor: pointer; font: inherit; }

.badge {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 12px rgba(211, 22, 43, 0.8);
}

/* ---------- botones y formularios ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem var(--sans);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-red { background: var(--red); color: var(--white); box-shadow: var(--glow); }
.btn-white { background: var(--white); color: var(--red-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.btn-ghost { background: transparent; color: var(--red); border-color: var(--line); }
/* Acción destructiva: contorno rojo, sin el resplandor de los botones principales. */
.btn-danger { background: transparent; color: var(--red-deep); border-color: var(--red); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
/* Botón exclusivo de las modelos: terciopelo negro con ribete que va del blanco al rojo. */
.btn-exclusive {
  --exclusive-fill: linear-gradient(var(--noir), var(--wine)) padding-box,
    linear-gradient(120deg, var(--white), var(--rose) 45%, var(--red)) border-box;
  position: relative;
  background: var(--exclusive-fill);
  color: var(--white);
  letter-spacing: 0.02em;
  box-shadow: 0 8px 26px rgba(18, 3, 10, 0.5);
}
.btn-exclusive::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 26px rgba(255, 107, 127, 0.75);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.spark { display: inline-block; color: var(--rose); transition: transform 300ms var(--ease-out); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--red-deep); box-shadow: 0 12px 36px rgba(211, 22, 43, 0.6); }
  .btn-white:hover { background: var(--blush); }
  .btn-ghost:hover { background: var(--blush); }
  .btn-danger:hover { background: var(--red); color: var(--white); }
  .btn-outline-white:hover { background: var(--veil-line); }
  .btn-exclusive:hover::after { opacity: 1; }
  .btn-exclusive:hover .spark { transform: rotate(90deg) scale(1.15); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  font: 600 0.74rem var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag-exclusive { border: 1px solid rgba(255, 107, 127, 0.6); background: rgba(193, 18, 31, 0.22); color: var(--white); }
.panel .tag-exclusive { margin-bottom: 12px; background: var(--blush); border-color: var(--line); color: var(--red-deep); }
.panel .tag-exclusive .spark { color: var(--red); }

/* Los paneles son la parte «blanca»: papel claro sobre el fondo oscuro. */
.panel {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 32px 28px 28px;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--rose), var(--red), var(--red-dark));
}
.panel a:not(.btn), .gate-card a:not(.btn) { color: var(--red); }
.panel-narrow { max-width: 460px; margin: 24px auto 0; }
.panel-mid { max-width: 640px; margin: 8px auto 0; }
.panel + .panel { margin-top: 24px; }
.panel h1 { font-size: 1.9rem; margin-bottom: 6px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 6px; }
.panel .sub { color: var(--muted); margin-bottom: 22px; }

/* ---------- pedidos con pago retenido ---------- */

.state {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.state-wait { background: #fff3cd; color: #7a5200; }
.state-hold { background: #ffe1e5; color: var(--red-deep); }
.state-ok { background: #dcf5e4; color: #14602f; }
.state-bad { background: var(--red); color: var(--white); }
.state-off { background: #ebe3e4; color: #5c4a4d; }

.orders { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 36px; }

/* Resumen de ganancias de la modelo, sobre sus ventas. */
.earnings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.earnings div { padding: 16px 18px; border: 1px solid var(--veil-line); border-radius: var(--radius); background: var(--veil); }
.earnings small { display: block; color: var(--soft); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.earnings strong { display: block; margin: 4px 0 2px; color: var(--white); font-family: var(--serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.earnings span { color: var(--soft); font-size: 0.84rem; }
.earnings-note { margin: 0 0 30px; color: var(--soft); font-size: 0.86rem; }
.earnings-note a { color: var(--rose); text-decoration: underline; }
@media (max-width: 620px) {
  .earnings { grid-template-columns: 1fr; }
  .earnings div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 12px 16px; }
  .earnings strong { grid-row: span 2; margin: 0; font-size: 1.35rem; }
}
.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--veil-line);
  border-radius: var(--radius);
  background: var(--veil);
  color: var(--white);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.order-row:hover { text-decoration: none; border-color: var(--rose); background: var(--veil-line); }
.order-row img, .order-thumb { width: 48px; height: 60px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--wine); }
.order-main { flex: 1; min-width: 0; }
.order-main strong, .order-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-main small { color: var(--soft); font-size: 0.82rem; }
/* En el teléfono, el estado y el importe de cada pedido bajan a una segunda línea. */
@media (max-width: 620px) {
  .order-row { flex-wrap: wrap; row-gap: 8px; }
  .order-main { flex-basis: calc(100% - 62px); }
  .order-row .price { margin-left: auto; }
}

.summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--blush); }
.summary img { width: 60px; height: 75px; border-radius: 8px; object-fit: cover; }
.summary strong, .summary small { display: block; }
.summary small { color: var(--muted); }

.totals { margin: 0 0 22px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; }
.totals .total dt, .totals .total dd { color: var(--ink); font-weight: 700; }

.hint { margin: 8px 0 16px; color: var(--muted); font-size: 0.86rem; }
.listing-info .hint { color: var(--soft); }
.admin .hint { color: var(--soft); margin-top: -12px; }
/* En los recuadros del panel, la nota va debajo de lo anterior, sin montarse. */
.admin .viz-card .hint { margin-top: 10px; }
.panel h2 { margin-top: 26px; }
.panel .sub + .summary { margin-top: 0; }

.order-guide { margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; background: var(--blush); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.order-actions:empty { display: none; }
.order-actions .hint { margin: 0; flex-basis: 100%; }
.proof-form { flex: 1; min-width: 260px; }
.address { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: var(--blush); line-height: 1.5; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 14px 26px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 50%; background: var(--white); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done { color: var(--ink); font-weight: 500; }
.timeline li.done::before { border-color: var(--red); background: var(--red); }
.timeline small { margin-left: 6px; color: var(--muted); font-weight: 400; }

.sold { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 12px; border-radius: 999px; background: var(--noir); color: var(--white); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.sold-note { margin-bottom: 12px; padding: 12px 14px; border-radius: 10px; background: var(--veil); border: 1px solid var(--veil-line); }

/* Denuncias y bloqueos. */
.report-link { color: var(--soft); font-size: 0.84rem; text-decoration: underline; }
.report-link:hover { color: var(--rose); }
.report-row { margin-top: 14px; text-align: center; }
.panel .report-link { color: var(--muted); padding: 0; }
.evidence {
  max-height: 220px;
  margin: 8px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 10px;
  background: var(--blush);
  font: 0.86rem/1.5 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-urgent { border-left: 5px solid var(--red); }
.urgent-note { padding: 10px 12px; border-radius: 8px; background: #ffe1e5; color: var(--red-deep); font-weight: 500; }
.admin-more { margin: 14px 0 30px; color: var(--soft); }
.admin-more summary { cursor: pointer; margin-bottom: 12px; }
.field textarea + small { margin-top: 5px; }

/* Reputación de la modelo: calificación, ventas y envíos a tiempo. */
.stars { color: #f0a500; letter-spacing: 0.04em; }
.rep { color: var(--soft); font-size: 0.92rem; }
.rep-line { margin: -6px 0 16px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review { padding: 16px 18px; border: 1px solid var(--veil-line); border-radius: var(--radius); background: var(--veil); }
.review p { margin: 6px 0; }
.review small { color: var(--soft); font-size: 0.8rem; }
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin { max-width: 860px; margin: 0 auto; }
.admin h1 { font-size: 2rem; font-style: italic; }
.admin .sub { margin: 6px 0 28px; color: var(--soft); }
.admin .section-head { margin-top: 30px; }
.admin-card { margin-bottom: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.admin-card p { margin-top: 6px; font-size: 0.93rem; }
.admin-card a { color: var(--red); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-actions:empty { display: none; }

/* Textos legales: columna de lectura cómoda. */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 36px; line-height: 1.65; }
.legal h2 { margin: 30px 0 10px; font-size: 1.3rem; }
.legal h3 { margin: 20px 0 8px; font: 600 1rem var(--sans); }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.82rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 0.9rem; }
.check input { margin-top: 4px; accent-color: var(--red); }

.form-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--blush);
  border: 1px solid var(--line);
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.form-foot + .form-foot { margin-top: 8px; }

/* Aviso de correo sin confirmar, encima del contenido de cada pantalla. */
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 107, 127, 0.55);
  border-radius: var(--radius);
  background: rgba(193, 18, 31, 0.22);
  font-size: 0.93rem;
}
.notice p { flex: 1; min-width: 240px; }
.notice #email-notice-status { display: block; color: var(--soft); }
/* Hueco del widget anti-bots: sin widget no ocupa espacio. */
.human-check:not(:empty) { margin-bottom: 16px; }

/* ---------- portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 48px;
  padding: 76px 48px;
  border: 1px solid var(--veil-line);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 55% 95% at 86% 50%, rgba(255, 107, 127, 0.38), transparent 62%),
    linear-gradient(115deg, var(--wine) 0%, var(--red-deep) 48%, var(--red) 100%);
  box-shadow: 0 30px 80px rgba(143, 10, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Encaje que se va revelando hacia la derecha. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lace);
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 15%, #000 90%);
}
/* Brillo de satén: una franja de luz que recorre la tela muy despacio. */
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -30%;
  width: 38%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.17), transparent);
  transform: translateX(0) rotate(14deg);
  animation: sheen 9s var(--ease-in-out) infinite alternate;
}
.hero .eyebrow {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero h1 { max-width: 640px; font-size: clamp(2.3rem, 5.4vw, 3.9rem); text-shadow: 0 2px 30px rgba(18, 3, 10, 0.45); }
.hero h1 em { font-weight: 600; color: #ffd9de; text-shadow: 0 0 34px rgba(255, 138, 152, 0.9); }
.hero .lead { max-width: 500px; margin: 18px 0 30px; font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Botones de la portada: entran escalonados tras el titular y se elevan con un halo al pasar el cursor. */
.hero-actions .btn { position: relative; animation: rise 400ms var(--ease-out) 120ms backwards; }
.hero-actions .btn + .btn { animation-delay: 190ms; }
.hero-actions .btn + .btn + .btn { animation-delay: 260ms; }
.hero-actions .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 14px 38px rgba(255, 138, 152, 0.6);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

/* Página «Solo para modelos»: la misma portada, pero de noche y con el ribete del botón exclusivo. */
.hero-exclusive {
  border: 1.5px solid transparent;
  background:
    radial-gradient(ellipse 60% 90% at 88% 40%, rgba(255, 107, 127, 0.3), transparent 62%) padding-box,
    linear-gradient(120deg, var(--noir), var(--wine) 60%, var(--red-dark)) padding-box,
    linear-gradient(120deg, var(--white), var(--rose) 45%, var(--red)) border-box;
}
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 0 0 30px; padding: 0; list-style: none; }
.perks li { padding: 16px 18px; border: 1px solid var(--veil-line); border-radius: var(--radius); background: var(--veil); color: var(--soft); font-size: 0.93rem; }
.perks strong { display: block; margin-bottom: 4px; color: var(--white); font: italic 600 1.15rem var(--serif); }
.note { max-width: 560px; margin-bottom: 24px; padding: 12px 16px; border-left: 3px solid var(--rose); border-radius: 0 10px 10px 0; background: var(--veil); color: var(--soft); font-size: 0.93rem; }

.hero .check { max-width: 560px; margin-bottom: 26px; color: rgba(255, 255, 255, 0.9); }
.hero .form-error { max-width: 560px; }

/* Tira de modelos en la portada. */
.models { display: flex; gap: 12px; margin-bottom: 44px; padding-bottom: 6px; overflow-x: auto; }
.model {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 190px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--veil-line);
  border-radius: 999px;
  background: var(--veil);
  color: var(--white);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.model:hover { text-decoration: none; border-color: var(--rose); background: var(--veil-line); }
.model:active { transform: scale(0.97); }
.model strong, .model small { display: block; line-height: 1.3; }
.model small { color: var(--soft); font-size: 0.8rem; }
.hero-actions .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-actions .btn:hover { transform: translateY(-2px); }
  .hero-actions .btn:hover::after { opacity: 1; }
  .hero-actions .btn:hover .arrow { transform: translateX(4px); }
}
.hero-actions .btn:active { transform: scale(0.97); }

/* La cerradura: lo que pasa aquí, pasa a puerta cerrada. */
.keyhole {
  position: absolute;
  top: 50%;
  right: 9%;
  width: 118px;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 30px rgba(255, 138, 152, 0.8));
  animation: breathe 4.5s var(--ease-in-out) infinite alternate;
}
.keyhole-sm { display: block; width: 26px; margin: 0 auto 10px; fill: var(--red); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: 1.7rem; font-style: italic; }
.section-head h2::before { content: '❦'; margin-right: 10px; color: var(--rose); font-style: normal; font-size: 0.8em; }

.search { display: flex; gap: 8px; }
.search input {
  width: 240px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--veil-line);
  border-radius: 999px;
  background: var(--veil);
  color: var(--white);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search input::placeholder { color: var(--soft); }
.search input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 107, 127, 0.22); }

/* ---------- tarjetas ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

.card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--veil-line);
  border-radius: var(--radius);
  background: var(--veil);
  color: var(--white);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease;
  animation: rise 280ms var(--ease-out) backwards;
}
.card:nth-child(2) { animation-delay: 40ms; }
.card:nth-child(3) { animation-delay: 80ms; }
.card:nth-child(4) { animation-delay: 120ms; }
.card:nth-child(5) { animation-delay: 160ms; }
.card:nth-child(6) { animation-delay: 200ms; }
.card:nth-child(7) { animation-delay: 240ms; }
.card:nth-child(n + 8) { animation-delay: 280ms; }
.card:hover { text-decoration: none; }
.card:active { transform: scale(0.98); }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wine); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 3, 10, 0.62), transparent 42%);
  pointer-events: none;
}
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { color: var(--rose); font-weight: 600; }
.seller { color: var(--soft); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 127, 0.6); box-shadow: 0 18px 44px rgba(211, 22, 43, 0.38); }
  .card:hover .card-img img { transform: scale(1.04); }
}

.empty {
  padding: 52px 24px;
  border: 1.5px dashed var(--veil-line);
  border-radius: var(--radius);
  background: var(--veil);
  text-align: center;
  color: var(--soft);
}
.empty h3 { margin-bottom: 6px; color: var(--white); font-size: 1.4rem; font-style: italic; }
.empty .btn { margin-top: 18px; }

/* ---------- avatar ---------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--red);
  color: var(--white);
  font: 600 1.1rem var(--serif);
}
.avatar.xs { width: 26px; height: 26px; font-size: 0.8rem; background: var(--white); color: var(--red); }
.avatar.lg { width: 104px; height: 104px; font-size: 2.6rem; border: 3px solid var(--white); box-shadow: 0 0 0 4px rgba(211, 22, 43, 0.45), 0 0 40px rgba(211, 22, 43, 0.6); }

/* ---------- publicación ---------- */

.listing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--veil-line);
  border-radius: var(--radius);
  background: var(--wine);
  box-shadow: 0 24px 70px rgba(143, 10, 26, 0.5);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button {
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--wine);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.thumbs button:active { transform: scale(0.96); }
.thumbs button.on { border-color: var(--rose); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.listing-info h1 { font-size: 2.3rem; }
.listing-info .price { display: block; margin: 10px 0 18px; font-size: 1.8rem; font-family: var(--serif); text-shadow: 0 0 24px rgba(255, 107, 127, 0.5); }
.listing-info .desc { white-space: pre-wrap; color: rgba(255, 255, 255, 0.86); }
.listing-info .date { margin-top: 12px; color: var(--soft); font-size: 0.85rem; }

.seller-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--veil-line);
  border-radius: var(--radius);
  background: var(--veil);
  color: var(--white);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.seller-box:hover { text-decoration: none; border-color: var(--rose); background: var(--veil-line); }
.seller-box strong { display: block; }
.seller-box span span { color: var(--soft); font-size: 0.88rem; }

/* ---------- perfil ---------- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 30px;
  border: 1px solid var(--veil-line);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(193, 18, 31, 0.34), rgba(255, 255, 255, 0.05));
}
.profile-head .who { flex: 1; min-width: 220px; }
.profile-head h1 { font-size: 2.1rem; }
.profile-head .handle { color: var(--soft); font-size: 0.95rem; }
.profile-head .bio { margin-top: 10px; white-space: pre-wrap; max-width: 560px; color: rgba(255, 255, 255, 0.9); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }

.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.previews img { width: 84px; height: 105px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }

/* ---------- listas de pedidos ---------- */

.inbox { max-width: 720px; margin: 0 auto; }
.inbox h1 { font-size: 2rem; font-style: italic; margin-bottom: 20px; }

/* ---------- pie y verificación de edad ---------- */

.footer { padding: 30px 0; border-top: 1px solid var(--veil-line); background: rgba(0, 0, 0, 0.28); color: var(--soft); font-size: 0.88rem; text-align: center; }
.footer p { margin-top: 4px; }
.footer .footer-links { margin-top: 10px; }
.footer-links a { color: var(--white); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid var(--veil-line);
  border-radius: 999px;
  background: var(--veil);
  color: var(--white);
  font-size: 0.8rem;
}
.trust svg { width: 14px; height: 14px; fill: var(--rose); }

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, rgba(193, 18, 31, 0.6), transparent 70%), var(--noir);
  transition: opacity 220ms var(--ease-out);
}
.gate::before { content: ''; position: absolute; inset: 0; background: var(--lace); opacity: 0.08; }
.gate.leaving { opacity: 0; pointer-events: none; }
.gate-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(211, 22, 43, 0.45);
  animation: gate-in 320ms var(--ease-out) backwards;
}
.gate-card .logo { color: var(--ink); }
.gate-card .logo em { color: var(--red); text-shadow: none; }
.gate-card h2 { margin: 14px 0 8px; font-size: 1.6rem; }
.gate-card p { color: var(--muted); }
.gate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.gate-card .form-error { margin: 16px 0 0; }

/* ---------- movimiento ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes gate-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes sheen { to { transform: translateX(420%) rotate(14deg); } }
@keyframes breathe { from { opacity: 0.6; } to { opacity: 1; } }

/* Con movimiento reducido se conservan los fundidos y se quitan los desplazamientos. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after, .keyhole { animation: none; }
  .card, .gate-card, .hero-actions .btn { animation-name: fade; }
  .btn:active, .card:active, .card:hover, .card:hover .card-img img, .thumbs button:active { transform: none; }
  .hero-actions .btn:hover, .hero-actions .btn:active, .hero-actions .btn:hover .arrow { transform: none; }
  .btn-exclusive:hover .spark, .model:active { transform: none; }
}

@media (max-width: 760px) {
  .listing { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 24px; }
  .keyhole { right: -18px; width: 96px; opacity: 0.35; animation: none; }
  .field-row { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .logo { font-size: 1.4rem; }
  /* En el teléfono la barra pasa a dos filas: logotipo arriba y menú abajo, a todo el ancho. */
  .topbar-inner { flex-wrap: wrap; gap: 4px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a, .nav .link { padding: 6px 9px; font-size: 0.84rem; white-space: nowrap; }
  .nav a.btn { margin-left: 0; padding: 6px 10px; font-size: 0.8rem; gap: 6px; }
  .nav .nav-name, .nav .nav-wide { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .panel { padding: 26px 16px 22px; }
}

/* Posibles cuentas duplicadas: una fila por cuenta, con sus medidas al lado. */
.dup-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dup-account p { flex: 1; min-width: 220px; margin-top: 0; }
.dup-actions { display: flex; gap: 8px; }

/* Guía del envío: pasos de la modelo, código de verificación y formulario del panel. */
.ship-steps { flex-basis: 100%; margin: 0 0 6px; padding-left: 20px; line-height: 1.5; }
.ship-steps li { margin-bottom: 10px; }
.ship-steps .btn { margin-right: 8px; }
.verify-code { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--blush); border: 1px dashed var(--red); color: var(--red-deep); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.15em; font-weight: 700; letter-spacing: 0.18em; }
.guide-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 12px; }
.guide-form .field:nth-of-type(3) { grid-column: 1 / -1; }
.guide-form .btn { justify-self: start; }
.admin-card .admin-more { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 640px) { .guide-form { grid-template-columns: 1fr; } }

/* ---------- recorrido de un pedido y seguimiento del envío ----------
   Se usan en la página del pedido (fondo claro) y en el panel (fondo oscuro, que cambia las
   variables). */
.journey { --j-line: var(--line); --j-ink: var(--ink); --j-muted: var(--muted); --j-accent: var(--red); --j-halo: rgba(193, 18, 31, 0.2); --j-surface: var(--white); margin: 16px 0 8px; }
.journey-ends { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--j-muted); font-size: 0.78rem; letter-spacing: 0.02em; }
.journey-line { position: relative; height: 4px; margin: 0 calc(100% / 14); border-radius: 2px; background: var(--j-line); }
.journey-fill { position: absolute; inset: 0 auto 0 0; width: var(--progress); border-radius: 2px; background: var(--j-accent); transition: width 0.6s var(--ease-out); }
.journey-marker { position: absolute; top: 50%; left: var(--progress); z-index: 2; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 3px solid var(--j-surface); border-radius: 50%; background: var(--j-accent); box-shadow: 0 0 0 4px var(--j-halo); transition: left 0.6s var(--ease-out); }
.journey-stops { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: -8px 0 0; padding: 0; list-style: none; }
.journey-stops li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 2px; color: var(--j-muted); font-size: 0.76rem; line-height: 1.25; text-align: center; }
.journey-stops i { position: relative; z-index: 1; width: 12px; height: 12px; margin-bottom: 7px; border: 2px solid var(--j-line); border-radius: 50%; background: var(--j-surface); }
.journey-stops .done { color: var(--j-ink); font-weight: 500; }
.journey-stops .done i { border-color: var(--j-accent); background: var(--j-accent); }
.journey-stops .now { color: var(--j-ink); font-weight: 600; }
.journey-stops .now i { border-color: var(--j-accent); box-shadow: 0 0 0 4px var(--j-halo); }
.journey-stops small { color: var(--j-muted); font-size: 0.68rem; font-weight: 400; }
.journey.is-stopped .journey-fill, .journey.is-stopped .journey-marker { background: var(--j-muted); box-shadow: none; }
.journey.is-alert .journey-marker { background: #fab219; box-shadow: 0 0 0 4px rgba(250, 178, 25, 0.25); }
.ship-title { margin: 18px 0 8px; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; }
.ship-empty { color: var(--j-muted, var(--muted)); font-size: 0.88rem; }
.ship-log { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.ship-log li { position: relative; padding-left: 20px; font-size: 0.9rem; line-height: 1.35; }
.ship-log li::before { content: ''; position: absolute; top: 6px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ship-log li.latest::before { background: var(--red); box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.18); }
.ship-log li.is-issue::before { background: #fab219; }
.ship-log small { display: block; color: var(--muted); font-size: 0.8rem; }
.ship-remove { margin-top: 2px; font-size: 0.78rem; }
@media (prefers-reduced-motion: no-preference) {
  .journey-stops .now i { animation: halo 1.8s ease-in-out infinite; }
}
@keyframes halo { 50% { box-shadow: 0 0 0 7px transparent; } }
/* En el teléfono el recorrido se lee mejor de arriba abajo. */
@media (max-width: 560px) {
  .journey-line { display: none; }
  .journey-stops { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .journey-stops li { position: relative; flex-direction: row; align-items: center; gap: 10px; padding: 0 0 12px; font-size: 0.86rem; text-align: left; }
  .journey-stops i { margin: 0; flex: none; }
  .journey-stops li:not(:last-child)::after { content: ''; position: absolute; top: 18px; bottom: 2px; left: 5px; width: 2px; background: var(--j-line); }
  .journey-stops li.done:not(:last-child)::after { background: var(--j-accent); }
  .journey-stops small { margin-left: auto; font-size: 0.76rem; }
}

/* ---------- panel de administración ----------
   Secciones arriba, apartados a la izquierda, cifras y gráficas a la derecha. Todo sobre
   tarjetas oscuras translúcidas, con el rosa de la marca como acento. */
.dash {
  max-width: none;
  --s1: #ee5a76; --s2: #4a93ea; --s3: #1faa7a; --s4: #c98500;
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.034));
  --card-line: rgba(255, 255, 255, 0.11);
  --card-solid: #220d15;
  --ink-1: #ffffff; --ink-2: rgba(255, 255, 255, 0.76); --ink-3: rgba(255, 255, 255, 0.54);
  --viz-grid: rgba(255, 255, 255, 0.08); --viz-axis: rgba(255, 255, 255, 0.24);
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.28);
}
.dash .ico { width: 18px; height: 18px; flex: none; }
/* El panel aprovecha las pantallas anchas. */
main.wrap:has(.dash) { max-width: 1400px; }

/* Cabecera y filtro por fechas. */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-eyebrow { margin-bottom: 4px; color: var(--rose); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.dash-head h1 { font-size: 2.3rem; }
.dash-head .sub { margin: 6px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.range { display: grid; gap: 8px; justify-items: end; }
.range-presets { display: inline-flex; padding: 4px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
.range-presets button { padding: 7px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.86rem; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.range-presets button:hover { color: var(--ink-1); }
.range-presets button.on { background: var(--white); color: var(--red-deep); font-weight: 600; }
.range-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 5px 5px 5px 14px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
.range-dates.on { border-color: rgba(238, 90, 118, 0.6); }
.range-dates label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 0.84rem; }
.range-dates input { padding: 5px 8px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: var(--ink-1); font: inherit; font-size: 0.86rem; color-scheme: dark; }
.range-dates .btn { padding: 6px 14px; box-shadow: none; }

/* Secciones (arriba) y apartados (a la izquierda). */
.dash-tabs { position: relative; display: flex; gap: 8px; margin-bottom: 22px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar, .dash-side::-webkit-scrollbar { display: none; }
.dash-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(255, 255, 255, 0.035); color: var(--ink-2); font-weight: 500; white-space: nowrap; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out); }
.dash-tabs a:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink-1); }
.dash-tabs a:active { transform: scale(0.97); }
.dash-tabs a.on { border-color: transparent; background: linear-gradient(135deg, #d3162b, #8f0a1a); color: var(--ink-1); box-shadow: 0 10px 26px rgba(211, 22, 43, 0.38); }
.dash-tabs .badge, .dash-side .badge { box-shadow: none; }
.dash-tabs a.on .badge { background: var(--white); color: var(--red-deep); }
.badge-soft { background: rgba(255, 255, 255, 0.16); }

.dash-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.dash-side { position: sticky; top: 84px; display: grid; gap: 3px; padding: 12px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); }
.dash-side-title { display: flex; align-items: center; gap: 8px; margin: 2px 4px 8px; color: var(--ink-3); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.dash-side a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 0.93rem; transition: background 0.16s ease, color 0.16s ease; }
.dash-side a:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink-1); }
.dash-side a.on { background: rgba(255, 255, 255, 0.12); color: var(--ink-1); font-weight: 600; }
.dash-side a.on::before { content: ''; position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 2px; background: var(--s1); }

.dash-title { margin-bottom: 18px; }
.dash-title h2 { font-size: 1.7rem; font-style: italic; }
.dash-title p { margin-top: 6px; color: var(--ink-2); }
.dash-sub { margin: 24px 0 10px; color: var(--ink-1); font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.dash-note { margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.2); color: var(--ink-2); font-size: 0.92rem; }
.dash-note strong { color: var(--ink-1); }
.dash-foot { margin: 12px 0 14px; color: var(--ink-3); font-size: 0.9rem; }
.dash-foot a, .dash .viz-card a:not(.btn), .dash .admin-card a:not(.btn), .dash .live-card a:not(.btn), .drawer a:not(.btn) { color: #ff8fa0; }
.dash-main > .section-head:first-child { margin-top: 0; }
.dash-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.dash-split-map { grid-template-columns: minmax(0, 1fr) 340px; }
.dash-split > .viz-card, .dash-split > .live-map { position: sticky; top: 84px; }

/* Cifras destacadas. Las que llevan una lista detrás son botones. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tiles-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 16px 18px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); color: var(--ink-1); font: inherit; text-align: left; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 26px; }
.tile-label { color: var(--ink-2); font-size: 0.86rem; }
.tile-value { font-size: 1.9rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.tile-delta, .tile-hint { color: var(--ink-3); font-size: 0.78rem; }
.tile-delta i { font-style: normal; color: var(--ink-3); }
.tile-delta.delta-good { color: #4ed08a; }
.tile-delta.delta-bad { color: #ff8f8f; }
.spark-line { flex: none; width: 96px; height: 26px; }
.spark-line path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-line circle { fill: var(--s1); }
.tile.is-link { cursor: pointer; transition: transform 0.2s var(--ease-out), border-color 0.2s ease, background 0.2s ease; }
.tile.is-link:hover { border-color: rgba(238, 90, 118, 0.55); transform: translateY(-2px); }
.tile.is-link:active { transform: scale(0.985); }
.tile.is-link:focus-visible, .bar-row.is-link:focus-visible, .drawer-close:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-3); font-size: 0.8rem; font-weight: 500; transition: color 0.2s ease; }
.tile-cta .ico { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.tile.is-link:hover .tile-cta { color: #ff8fa0; }
.tile.is-link:hover .tile-cta .ico { transform: translateX(3px); }

/* Tarjeta de una gráfica, con su leyenda, su recuadro al pasar el cursor y su tabla. */
.viz-card { margin-bottom: 14px; padding: 20px 22px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); color: var(--ink-1); }
.viz-card h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; }
.viz-note { margin-top: 4px; color: var(--ink-3); font-size: 0.84rem; }
.viz-empty { margin-top: 14px; padding: 28px 12px; border: 1px dashed var(--card-line); border-radius: 12px; color: var(--ink-3); text-align: center; font-size: 0.9rem; }
.viz-wrap { overflow-x: auto; }
.viz { display: block; width: 100%; min-width: 400px; height: auto; margin-top: 12px; border-radius: 8px; }
.viz:focus-visible { outline: 2px solid var(--s2); outline-offset: 3px; }
.viz.is-clickable .viz-hit { cursor: pointer; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-axis, .viz-cross { stroke: var(--viz-axis); stroke-width: 1; }
.viz-band { fill: rgba(255, 255, 255, 0.07); }
.viz [hidden] { display: none; }
.viz-tick { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.viz-dot, .viz-focus { stroke: var(--card-solid); stroke-width: 2; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--ink-2); font-size: 0.84rem; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key-line { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.key-box { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.viz-tip { position: fixed; z-index: 80; display: grid; gap: 3px; padding: 9px 12px; border: 1px solid var(--card-line); border-radius: 12px; background: #2b111a; color: var(--ink-1); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-size: 0.82rem; pointer-events: none; }
.viz-tip[hidden] { display: none; }
.tip-date { color: var(--ink-3); }
.tip-date::first-letter { text-transform: uppercase; }
.tip-row { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tip-row strong { color: var(--ink-1); }
.tip-row i { width: 12px; height: 2px; border-radius: 1px; }
.tip-more { margin-top: 2px; color: #ff8fa0; font-size: 0.76rem; }
.viz-table summary { margin-top: 14px; color: var(--ink-3); font-size: 0.84rem; cursor: pointer; }
.viz-table summary:hover { color: var(--ink-1); }
.viz-scroll { max-height: 260px; margin-top: 8px; overflow: auto; }
.viz-scroll-tall { max-height: none; margin-top: 0; }
.dash table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.dash th { padding: 7px 10px; border-bottom: 1px solid var(--viz-axis); color: var(--ink-3); font-weight: 500; text-align: left; white-space: nowrap; }
.dash td { padding: 8px 10px; border-bottom: 1px solid var(--viz-grid); color: var(--ink-2); vertical-align: top; }
.dash td strong { color: var(--ink-1); }
.dash td small { display: block; color: var(--ink-3); }
.dash tbody tr:hover td { background: rgba(255, 255, 255, 0.035); }
.csv-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-3); font-size: 0.82rem; }
.csv-link .ico, .drawer-csv .ico { width: 15px; height: 15px; }

/* Barras horizontales y repartos. */
.bars { display: grid; gap: 4px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9rem; text-align: left; }
.bar-row.is-link { cursor: pointer; transition: background 0.16s ease; }
.bar-row.is-link:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink-1); }
.bar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-fill { display: block; flex: none; width: calc((100% - 120px) * var(--w)); min-width: 2px; height: 12px; border-radius: 0 4px 4px 0; }
.bar-value { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-value small { color: var(--ink-3); font-weight: 400; }
.share { display: flex; gap: 2px; height: 16px; margin-top: 14px; border-radius: 4px; overflow: hidden; }
.share i { display: block; min-width: 2px; }
.share-legend { display: grid; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.9rem; }
.share-legend li { display: grid; grid-template-columns: 10px 1fr auto 56px; gap: 10px; align-items: center; }
.share-legend strong { color: var(--ink-1); }
.share-legend small { color: var(--ink-3); text-align: right; }

/* Pendientes y últimos movimientos. */
.todo { display: grid; gap: 8px; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--ink-3); transition: background 0.16s ease, transform 0.2s var(--ease-out); }
.todo-row span { flex: 1; }
.todo-row .ico { opacity: 0.5; transition: transform 0.2s var(--ease-out), opacity 0.2s ease; }
.todo-row:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink-1); }
.todo-row:hover .ico { opacity: 1; transform: translateX(3px); }
.todo-open { border-color: rgba(238, 90, 118, 0.5); background: var(--card); color: var(--ink-1); }
.todo-open strong { min-width: 28px; padding: 2px 10px; border-radius: 999px; background: var(--red); text-align: center; }
.feed { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.feed li > * { display: grid; grid-template-columns: 10px 1fr; gap: 2px 10px; padding: 8px; border-radius: 10px; color: var(--ink-2); font-size: 0.88rem; line-height: 1.35; }
.feed a:hover { background: rgba(255, 255, 255, 0.07); }
.dash .viz-card .feed a { color: var(--ink-2); }
.dash .viz-card .feed strong { color: var(--ink-1); }
.feed-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.feed small { grid-column: 2; color: var(--ink-3); font-size: 0.78rem; }
.tone-s1 { background: var(--s1); } .tone-s2 { background: var(--s2); } .tone-s3 { background: var(--s3); } .tone-s4 { background: var(--s4); }

/* El detalle detrás de una cifra: panel que entra por la derecha. */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer-shade { position: absolute; inset: 0; background: rgba(8, 2, 5, 0.62); animation: fade 0.2s ease both; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(680px, 100%); border-left: 1px solid var(--card-line); background: #1b0810; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5); color: var(--ink-1); animation: slide-in 0.26s var(--ease-out) both; }
.drawer.leaving .drawer-panel { animation: slide-out 0.18s ease both; }
.drawer.leaving .drawer-shade { animation: fade 0.18s ease reverse both; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--card-line); }
.drawer-head h3 { font-size: 1.5rem; font-style: italic; }
.drawer-note { margin-top: 4px; color: var(--ink-3); font-size: 0.86rem; }
.drawer-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--card-line); border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--ink-1); cursor: pointer; transition: background 0.16s ease; }
.drawer-close:hover { background: rgba(255, 255, 255, 0.14); }
.drawer-body { flex: 1; padding: 8px 24px 24px; overflow: auto; }
.drawer-csv { margin-top: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes slide-out { to { opacity: 0; transform: translateX(28px); } }

/* Recorrido en vivo: una tarjeta por pedido en marcha y el mapa de envíos. */
.live-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.22); color: var(--ink-2); font-size: 0.84rem; white-space: nowrap; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
.live-list { display: grid; gap: 14px; }
.live-card { padding: 18px 20px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); color: var(--ink-1); scroll-margin-top: 100px; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.live-card.is-alert { border-color: rgba(250, 178, 25, 0.55); }
.live-card.is-hover, .live-card.is-focus { border-color: var(--s1); box-shadow: var(--lift), 0 0 0 3px rgba(238, 90, 118, 0.25); }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.live-head small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 0.84rem; }
.live-last { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); color: var(--ink-2); font-size: 0.88rem; }
.live-last strong { color: var(--ink-1); }
.live-last.is-alert { background: rgba(250, 178, 25, 0.12); }
.live-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.2); color: var(--ink-2); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.live-chip b { color: var(--ink-3); font-weight: 500; }
.live-chip.is-soon { border-color: rgba(250, 178, 25, 0.6); color: #ffd277; }
.live-chip.is-late, .live-chip.is-warn { border-color: rgba(255, 110, 110, 0.6); color: #ff9b9b; }
.live-chip .link { color: #ff8fa0; font-size: 0.8rem; }
.live-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.live-box { padding: 14px 16px; border: 1px solid var(--viz-grid); border-radius: 14px; background: rgba(0, 0, 0, 0.2); }
.live-box h4 { margin: 0 0 8px; color: var(--ink-3); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.live-line, .live-address { color: var(--ink-2); font-size: 0.9rem; }
.live-address { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); line-height: 1.45; }
.live-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.live-hint { margin-top: 8px; color: var(--ink-3); font-size: 0.78rem; }
.event-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 4px; }
/* Sin min-width, la lista toma el ancho de su opción más larga y se sale de la columna. */
.event-form select, .event-form input { width: 100%; min-width: 0; }
.event-form select { grid-column: 1 / -1; }
.event-form .btn { grid-column: 1 / -1; justify-self: start; }
.live-map svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.map-city { fill: rgba(255, 255, 255, 0.2); }
.map-city.on { fill: var(--ink-1); }
.map-name { fill: var(--ink-2); font-size: 9.5px; }
.map-arc { fill: none; stroke: var(--s1); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.map-arc-hit { fill: none; stroke: transparent; stroke-width: 14; }
.map-pack { fill: var(--ink-1); stroke: var(--s1); stroke-width: 2.4; }
.map-pulse { fill: var(--s1); opacity: 0.35; }
.map-tag { fill: var(--ink-1); font-size: 9.5px; font-weight: 600; paint-order: stroke; stroke: #1b0810; stroke-width: 3px; }
.map-route { cursor: pointer; }
.map-route:hover .map-arc, .map-route:focus .map-arc { stroke-width: 2.6; opacity: 1; }
.map-route.is-alert .map-arc, .map-route.is-alert .map-pack { stroke: #fab219; }
.map-route.is-alert .map-pulse { fill: #fab219; }
.map-foot { margin-top: 8px; color: var(--ink-3); font-size: 0.8rem; }

/* Lo que ya existía, vestido para el fondo oscuro del panel. */
.dash .journey { --j-line: rgba(255, 255, 255, 0.16); --j-ink: var(--ink-1); --j-muted: var(--ink-3); --j-accent: var(--s1); --j-halo: rgba(238, 90, 118, 0.28); --j-surface: var(--card-solid); }
.dash .ship-log li::before { background: rgba(255, 255, 255, 0.25); }
.dash .ship-log li.latest::before { background: var(--s1); box-shadow: 0 0 0 4px rgba(238, 90, 118, 0.25); }
.dash .ship-log small, .dash .ship-empty { color: var(--ink-3); }
.dash .admin-card { margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); color: var(--ink-1); }
.dash .admin-card p { color: var(--ink-2); }
.dash .admin-card p strong { color: var(--ink-1); }
.dash .admin-urgent { border-left: 4px solid var(--red); }
.dash .btn-ghost { border-color: var(--card-line); background: rgba(255, 255, 255, 0.05); color: var(--ink-1); }
.dash .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.dash .field > span { color: var(--ink-2); font-weight: 500; }
.dash .field small, .dash .admin-more, .dash .hint { color: var(--ink-3); }
.dash .field input, .dash .field select, .account-search input, .account-search select, .event-form input, .event-form select { padding: 10px 12px; border: 1px solid var(--card-line); border-radius: 10px; background: rgba(0, 0, 0, 0.28); color: var(--ink-1); font: inherit; font-size: 0.9rem; color-scheme: dark; }
.dash .field input:focus, .account-search input:focus, .event-form input:focus, .event-form select:focus, .range-dates input:focus { outline: none; border-color: var(--s1); box-shadow: 0 0 0 3px rgba(238, 90, 118, 0.22); }
.dash ::placeholder { color: var(--ink-3); }
.dash .dup-account { border-top-color: var(--card-line); }
.dash .evidence { border: 1px solid var(--viz-grid); background: rgba(0, 0, 0, 0.28); color: var(--ink-2); }
.dash .totals div { border-bottom-color: var(--viz-grid); }
.dash .totals dt { color: var(--ink-2); }
.dash .totals dd, .dash .totals .total dt, .dash .totals .total dd { color: var(--ink-1); }
.dash .link { color: #ff8fa0; }
.guide-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 12px; }
.guide-form .field:nth-of-type(3) { grid-column: 1 / -1; }
.guide-form .btn { justify-self: start; }
.dash .admin-card .admin-more, .live-box .admin-more { margin: 10px 0 0; }

/* Buscadores, filtros y lista de cuentas. */
.account-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.account-search input[name=q] { flex: 1; min-width: 200px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 0.86rem; }
.check-inline input { accent-color: var(--s1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip { padding: 6px 13px; border: 1px solid var(--card-line); border-radius: 999px; color: var(--ink-2); font-size: 0.86rem; transition: background 0.16s ease; }
.chip:hover { background: rgba(255, 255, 255, 0.08); }
.chip.on { border-color: transparent; background: var(--white); color: var(--red-deep); font-weight: 600; }
.account-actions { min-width: 104px; }
.accounts .nowrap { white-space: nowrap; }
.account-actions .btn { display: block; width: 100%; padding: 5px 10px; font-size: 0.8rem; }
.account-actions .btn + .btn { margin-top: 4px; }

/* Movimiento: todo entra con suavidad, y nada se mueve si la persona lo prefiere así. */
@media (prefers-reduced-motion: no-preference) {
  .dash-main > .tiles .tile, .dash-main > .viz-card, .dash-split .viz-card, .live-card, .dash .admin-card, .todo-row { animation: rise 0.42s var(--ease-out) backwards; }
  .tiles .tile:nth-child(2) { animation-delay: 40ms; } .tiles .tile:nth-child(3) { animation-delay: 80ms; }
  .tiles .tile:nth-child(4) { animation-delay: 120ms; } .tiles .tile:nth-child(5) { animation-delay: 160ms; } .tiles .tile:nth-child(6) { animation-delay: 200ms; }
  .viz-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) 0.15s forwards; }
  .viz-area, .viz-dot { animation: fade 0.5s ease 0.75s backwards; }
  .viz-col { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-up 0.5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 9ms + 120ms); }
  .bar-fill { transform-origin: 0 50%; animation: grow-right 0.6s var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms + 100ms); }
  .share i { transform-origin: 0 50%; animation: grow-right 0.6s var(--ease-out) backwards; }
  .live-pill i { animation: beat 1.8s ease-out infinite; }
  .map-pulse { transform-box: fill-box; transform-origin: center; animation: ping 1.8s ease-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow-up { from { transform: scaleY(0); } }
@keyframes grow-right { from { transform: scaleX(0); } }
@keyframes beat { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes ping { from { opacity: 0.5; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

@media (max-width: 1180px) {
  .dash-split, .dash-split-map { grid-template-columns: minmax(0, 1fr); }
  .dash-split > .viz-card, .dash-split > .live-map { position: static; }
  .live-map svg { max-width: 360px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .dash-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dash-side { position: relative; top: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .dash-side-title { display: none; }
  .dash-side a { white-space: nowrap; }
  .dash-side a.on::before { top: auto; right: 12px; bottom: 3px; left: 12px; width: auto; height: 3px; }
  .tiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range { justify-items: start; }
  .range-dates { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .tiles, .tiles-wide { grid-template-columns: minmax(0, 1fr); }
  .dash-head h1 { font-size: 1.9rem; }
  .range-presets button { padding: 7px 11px; }
  .range-dates { border-radius: 16px; padding: 10px 12px; }
  .guide-form, .event-form { grid-template-columns: 1fr; }
  .drawer-head, .drawer-body { padding-inline: 16px; }
}

/* Un bloque de campos oculto (por ejemplo, los del banco) no ocupa sitio. */
.field-row[hidden] { display: none; }

/* Lista de comprobación de la pasarela. */
.checks { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.92rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 0.78rem; font-weight: 700; }
.checks .ok i { background: rgba(61, 220, 132, 0.18); color: #4ed08a; }
.checks .no i { background: rgba(255, 110, 110, 0.18); color: #ff8f8f; }
.checks .wait i { background: rgba(255, 196, 77, 0.18); color: #ffc44d; }
.checks strong, .checks-foot strong { color: var(--ink-1); }
.checks-foot { margin-top: 14px; color: var(--ink-3); font-size: 0.84rem; overflow-wrap: anywhere; }

/* Pedidos de prueba y paso a cobros reales. */
.state-test { background: #5b3cc4; color: var(--white); }
.test-note { border-left-color: #5b3cc4; background: #f1ecff; color: #2c1d66; }
.test-pill { display: inline-block; margin-top: 10px; padding: 5px 12px; border: 1px solid rgba(167, 139, 250, 0.6); border-radius: 999px; background: rgba(91, 60, 196, 0.28); color: #d9ccff; font-size: 0.82rem; }
.go-live { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--viz-grid); border-radius: 14px; background: rgba(0, 0, 0, 0.2); color: var(--ink-2); font-size: 0.9rem; }
.go-live h4 { margin: 0 0 8px; color: var(--ink-1); font-size: 0.94rem; }
.go-live ol { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.go-live code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: var(--ink-1); font-size: 0.86em; }
.checks-foot .btn { margin-left: 8px; }

/* ====================================================================================
   Cuenta: notificaciones, configuración del perfil y estudio de publicación (cuenta.js)
   ==================================================================================== */

.glyph { width: 18px; height: 18px; flex: none; }

/* Importes en dólares con su equivalente en pesos debajo. */
.totals dd small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; text-align: right; }
.charge-note { margin-top: -10px; }

/* ----- campanita ----- */
.bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.bell:hover, .bell[aria-expanded='true'] { background: var(--veil-line); border-color: var(--veil-line); }
.bell .glyph { width: 20px; height: 20px; }
.bell .badge { position: absolute; top: -3px; right: -4px; min-width: 18px; padding: 0 5px; font-size: 0.68rem; line-height: 18px; }
.bell.has-news .glyph { transform-origin: 50% 10%; }
@media (prefers-reduced-motion: no-preference) {
  .bell.has-news .glyph { animation: bell-ring 2.4s ease-in-out 1; }
}
@keyframes bell-ring {
  0%, 30%, 100% { transform: rotate(0); }
  5%, 15% { transform: rotate(14deg); }
  10%, 20% { transform: rotate(-12deg); }
  25% { transform: rotate(6deg); }
}
.nav .nav-me { padding-left: 6px; }

.notice-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 20px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(400px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #1c0a11;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--white);
  animation: panel-in 180ms var(--ease-out);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.notice-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.notice-head .link { padding: 0; color: var(--rose); font-size: 0.82rem; }
.notice-head .link:hover { text-decoration: underline; }
.notice-list { overflow-y: auto; overscroll-behavior: contain; }
.notice-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 10px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.notice-item.unread { background: rgba(255, 107, 127, 0.07); }
.notice-item.unread:hover { background: rgba(255, 107, 127, 0.12); }
.notice-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.86); }
.notice-ico.kind-pago { background: rgba(31, 170, 122, 0.18); color: #5fd6a8; }
.notice-ico.kind-envio { background: rgba(74, 147, 234, 0.18); color: #8dbcf5; }
.notice-ico.kind-pedido { background: rgba(238, 90, 118, 0.18); color: #ff9aae; }
.notice-ico.kind-seguridad { background: rgba(201, 133, 0, 0.2); color: #f2bd55; }
.notice-ico.kind-moderacion, .notice-ico.kind-admin { background: rgba(193, 18, 31, 0.32); color: #ff9c9c; }
.notice-text { display: grid; gap: 2px; min-width: 0; }
.notice-kind { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.notice-text strong { font-size: 0.92rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.notice-body { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; line-height: 1.4; overflow-wrap: anywhere; }
.notice-panel .notice-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px rgba(255, 107, 127, 0.9); }
.notice-more { display: block; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--rose); font-size: 0.88rem; font-weight: 600; text-align: center; }
.notice-more:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.notice-empty, .notice-loading { display: grid; justify-items: center; gap: 6px; padding: 38px 24px; color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; text-align: center; }
.notice-empty .glyph { width: 30px; height: 30px; margin-bottom: 4px; opacity: 0.5; }
.notice-empty strong { color: var(--white); font-size: 0.98rem; }

/* ----- aviso breve ----- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border: 1px solid rgba(95, 214, 168, 0.4);
  border-radius: 999px;
  background: #10241c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateX(-50%);
  animation: toast-in 240ms var(--ease-out);
  transition: opacity 300ms ease, transform 300ms ease;
}
.toast .glyph { color: #5fd6a8; }
.toast.leaving { opacity: 0; transform: translate(-50%, 8px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ----- base del estudio: tarjetas oscuras, campos y etiquetas ----- */
.studio {
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  --card-line: rgba(255, 255, 255, 0.11);
  --ink-1: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.76);
  --ink-3: rgba(255, 255, 255, 0.54);
  --field: rgba(8, 2, 5, 0.42);
  --ok: #5fd6a8;
  --warn: #f2bd55;
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--ink-1);
}
main.wrap:has(.studio) { max-width: 1180px; }
.studio .mono { font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace; font-size: 0.92em; letter-spacing: 0.02em; }
.studio .muted { color: var(--ink-3); font-size: 0.86rem; }

.studio-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.studio-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.studio-id .avatar.lg { width: 84px; height: 84px; font-size: 2.1rem; }
.studio-eyebrow { margin-bottom: 4px; color: var(--rose); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.studio-top h1 { font-size: 2.1rem; line-height: 1.1; overflow-wrap: anywhere; }
.studio-sub { margin-top: 4px; color: var(--ink-3); font-size: 0.9rem; }
.studio-sub strong { color: var(--ink-1); }
.studio-foot { margin-top: 14px; color: var(--ink-3); font-size: 0.84rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--ink-2); font-size: 0.76rem; font-weight: 500; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-role { border-color: rgba(255, 107, 127, 0.5); background: rgba(193, 18, 31, 0.22); color: var(--white); }
.pill-role::before { display: none; }
.pill-ok { border-color: rgba(95, 214, 168, 0.35); color: var(--ok); }
.pill-wait { border-color: rgba(242, 189, 85, 0.35); color: var(--warn); }
.pill-bad { border-color: rgba(255, 143, 143, 0.4); color: #ff9c9c; }
.pill-off { color: var(--ink-3); }

/* Cuánto del perfil está completo. */
.meter { display: flex; align-items: center; gap: 16px; max-width: 420px; padding: 14px 18px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); }
.meter strong { display: block; font-size: 0.98rem; }
.meter span { color: var(--ink-3); font-size: 0.84rem; }
.meter-missing { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; }
.meter-missing .link { padding: 3px 10px; border: 1px dashed rgba(242, 189, 85, 0.45); border-radius: 999px; color: var(--warn); font-size: 0.76rem; }
.meter-missing .link:hover { background: rgba(242, 189, 85, 0.12); }
.ring { width: 64px; height: 64px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: rgba(255, 255, 255, 0.1); }
.ring-value { stroke: var(--rose); stroke-linecap: round; transition: stroke-dasharray 600ms var(--ease-out); }
.ring text { fill: var(--white); font: 600 15px var(--sans); }

.studio-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.studio-nav { position: sticky; top: 84px; display: grid; gap: 2px; padding: 10px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); }
.studio-nav button, .studio-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  font: 500 0.92rem var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.studio-nav button span, .studio-nav-link span { flex: 1; }
.studio-nav button:hover, .studio-nav-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink-1); text-decoration: none; }
.studio-nav button.on { background: rgba(255, 255, 255, 0.1); color: var(--ink-1); box-shadow: inset 3px 0 0 var(--rose); }
.studio-nav-link { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--card-line); border-radius: 0 0 11px 11px; color: var(--rose); }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.dot-ok { background: var(--ok); }
.dot-wait { background: var(--warn); box-shadow: 0 0 8px rgba(242, 189, 85, 0.7); }

.studio-main { display: grid; gap: 18px; min-width: 0; }
.studio-main form { display: grid; gap: 18px; }
.studio .form-error { margin: 0; }
.s-card { padding: 24px; border: 1px solid var(--card-line); border-radius: 20px; background: var(--card); box-shadow: var(--lift); scroll-margin-top: 88px; }
#sec-peligro { display: block; scroll-margin-top: 110px; }
.s-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.s-head > div { flex: 1; min-width: 0; }
.s-num { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid rgba(255, 107, 127, 0.45); border-radius: 12px; background: rgba(193, 18, 31, 0.2); color: var(--rose); font: 600 0.82rem ui-monospace, Consolas, monospace; letter-spacing: 0.04em; }
.s-head h2 { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; }
.s-head p { margin-top: 2px; color: var(--ink-3); font-size: 0.88rem; }
.s-count { align-self: center; padding: 4px 10px; border: 1px solid var(--card-line); border-radius: 999px; color: var(--ink-2); font: 500 0.78rem ui-monospace, Consolas, monospace; }
.s-note { display: flex; gap: 10px; margin-top: 4px; color: var(--ink-3); font-size: 0.84rem; line-height: 1.45; }
.s-note .glyph { width: 16px; height: 16px; margin-top: 2px; color: var(--ink-2); }
.s-note .link { padding: 0; color: var(--rose); text-decoration: underline; }
.s-text { margin-bottom: 16px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }

/* Campos sobre fondo oscuro. */
.studio .field { margin-bottom: 16px; }
.studio .field > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--ink-2); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.studio .field .count { color: var(--ink-3); font: 400 0.74rem ui-monospace, Consolas, monospace; font-style: normal; letter-spacing: 0; }
.studio .field small { color: var(--ink-3); }
.studio .field input, .studio .field textarea, .studio .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink-1);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.studio .field input::placeholder, .studio .field textarea::placeholder { color: rgba(255, 255, 255, 0.34); }
.studio .field input:hover, .studio .field textarea:hover, .studio .field select:hover { border-color: rgba(255, 255, 255, 0.3); }
.studio .field input:focus, .studio .field textarea:focus, .studio .field select:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(8, 2, 5, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 107, 127, 0.2);
}
.studio .field select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.studio .field select option { background: #1c0a11; color: var(--white); }
.studio .field textarea { min-height: 120px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-2[hidden], .studio .field[hidden] { display: none; }
.delivery-grid .field-row { gap: 0 16px; }
.studio .field > .locked { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 12px; color: var(--ink-2); font-family: ui-monospace, Consolas, monospace; font-size: 0.92rem; }
.locked .glyph { width: 15px; height: 15px; color: var(--ink-3); }

.btn-glass { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: var(--white); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); }
.btn-danger-solid { border-color: rgba(255, 107, 127, 0.6); background: transparent; color: #ff9c9c; white-space: nowrap; }
.btn-danger-solid:hover { background: var(--red); color: var(--white); }

/* Foto de perfil. */
.avatar-drop { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 14px; background: rgba(0, 0, 0, 0.18); transition: border-color 160ms ease, background-color 160ms ease; }
.avatar-drop.over { border-color: var(--rose); background: rgba(255, 107, 127, 0.1); }
.avatar-drop > div { flex: 1; min-width: 0; }
.avatar-drop strong { display: block; font-size: 0.94rem; }
.avatar-drop span { color: var(--ink-3); font-size: 0.82rem; }
.avatar-drop-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--ink-1) !important; }
.avatar-drop .btn { cursor: pointer; white-space: nowrap; }

/* Cobros. */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.facts div { padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.2); }
.facts small { display: block; color: var(--ink-3); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.facts strong { display: block; margin: 2px 0; font-family: var(--serif); font-size: 1.3rem; }
.facts span { color: var(--ink-3); font-size: 0.8rem; }
.tiles-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.tiles-pick legend { margin-bottom: 7px; padding: 0; color: var(--ink-2); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick > span { display: block; height: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; background: var(--field); transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.pick strong { display: block; font-size: 0.94rem; }
.pick small { color: var(--ink-3); font-size: 0.78rem; }
.pick:hover > span { border-color: rgba(255, 255, 255, 0.34); }
.pick input:checked + span { border-color: var(--rose); background: rgba(193, 18, 31, 0.24); box-shadow: 0 0 0 3px rgba(255, 107, 127, 0.16); }
.pick input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.payout-summary { display: flex; gap: 10px; margin: 2px 0 14px; padding: 12px 14px; border: 1px solid rgba(95, 214, 168, 0.3); border-radius: 12px; background: rgba(31, 170, 122, 0.1); color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; }
.payout-summary:empty { display: none; }
.payout-summary .glyph { margin-top: 1px; color: var(--ok); }
.payout-summary strong { color: var(--ink-1); }

/* Barra de guardado: se queda a la vista mientras haya cambios. */
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border: 1px solid var(--card-line); border-radius: 16px; background: rgba(28, 10, 17, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.save-state { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--ink-3); font-size: 0.88rem; }
.save-state .glyph { color: var(--ok); }
.save-bar.dirty { border-color: rgba(242, 189, 85, 0.5); }
.save-bar.dirty .save-state { color: var(--ink-1); }
.save-bar.dirty .save-state .glyph { color: var(--warn); }

/* Cuenta y seguridad: una fila por dato. */
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--card-line); }
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows > div:last-child { padding-bottom: 0; }
.rows dt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.rows dt .glyph { width: 16px; height: 16px; color: var(--ink-3); }
.rows dd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; min-width: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.rows dd .btn { margin-left: auto; padding: 6px 14px; font-size: 0.82rem; }

.s-danger { border-color: rgba(255, 107, 127, 0.3); background: linear-gradient(180deg, rgba(193, 18, 31, 0.14), rgba(193, 18, 31, 0.05)); }
.s-danger .s-num { border-color: rgba(255, 143, 143, 0.5); }
.danger-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.danger-row .field { flex: 1; min-width: 220px; margin-bottom: 0; }
.danger-row .btn { margin-bottom: 4px; }

/* Sección plegada: algo opcional que no ocupa sitio hasta que se abre. */
.s-fold { padding: 0; }
.s-fold > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; list-style: none; cursor: pointer; border-radius: 20px; transition: background-color 160ms ease; }
.s-fold > summary::-webkit-details-marker { display: none; }
.s-fold > summary:hover { background: rgba(255, 255, 255, 0.04); }
.s-fold > summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.s-fold-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px dashed rgba(255, 255, 255, 0.24); border-radius: 12px; color: var(--ink-2); }
.s-fold-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.s-fold-text strong { font-size: 0.98rem; font-weight: 600; }
.s-fold-text em { margin-left: 6px; padding: 2px 9px; border: 1px solid var(--card-line); border-radius: 999px; color: var(--ink-3); font-size: 0.7rem; font-style: normal; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.s-fold-text > span { color: var(--ink-3); font-size: 0.86rem; line-height: 1.4; }
.s-fold-arrow { color: var(--ink-3); transition: transform 200ms var(--ease-out); }
.s-fold[open] .s-fold-arrow { transform: rotate(90deg); }
.s-fold-body { padding: 4px 24px 24px; border-top: 1px solid var(--card-line); }
.s-fold-body .delivery-grid { margin-top: 20px; }

/* Selector de dos opciones. */
.seg { display: inline-flex; margin-bottom: 16px; padding: 4px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
.seg a { padding: 7px 16px; border-radius: 999px; color: var(--ink-2); font-size: 0.86rem; }
.seg a:hover { color: var(--ink-1); text-decoration: none; }
.seg a.on { background: var(--white); color: var(--red-deep); font-weight: 600; }
.notices-page { max-width: 780px; margin: 0 auto; }
.notice-list-page { padding: 6px; overflow: hidden; }
.notice-list-page .notice-item { border-radius: 14px; }

/* ----- estudio de publicación ----- */
.publish-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 34px 32px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(193, 18, 31, 0.62), transparent 58%),
    radial-gradient(80% 130% at 100% 110%, rgba(255, 107, 127, 0.3), transparent 60%),
    linear-gradient(135deg, #34081a, #14040b 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.35);
}
.publish-hero::before { content: ''; position: absolute; inset: 0; background: var(--lace); opacity: 0.09; -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); mask-image: linear-gradient(100deg, transparent 20%, #000 75%); pointer-events: none; }
.publish-hero::after { content: ''; position: absolute; top: -130px; right: -90px; width: 340px; height: 340px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.03), 0 0 0 78px rgba(255, 255, 255, 0.02), inset 0 0 80px rgba(255, 107, 127, 0.18); pointer-events: none; }
.publish-hero-text { position: relative; z-index: 1; max-width: 520px; }
.publish-hero h1 { font-size: 2.7rem; line-height: 1.05; }
.publish-hero h1 em { color: var(--rose); text-shadow: 0 0 24px rgba(255, 107, 127, 0.5); }
.publish-hero p:last-child { margin-top: 10px; color: rgba(255, 255, 255, 0.78); }
.steps { position: relative; z-index: 1; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(0, 0, 0, 0.28); color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font: 600 0.76rem ui-monospace, Consolas, monospace; }
.steps li.on { border-color: var(--white); background: var(--white); color: var(--red-deep); }
.steps li.on span { background: var(--red); color: var(--white); }
.steps li.done { border-color: rgba(95, 214, 168, 0.45); color: var(--white); }
.steps li.done span { background: rgba(31, 170, 122, 0.35); color: #b6f0d8; }

.publish-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.publish-main { display: grid; gap: 18px; min-width: 0; }
.publish-side { position: sticky; top: 84px; display: grid; gap: 18px; }

.dropzone { display: grid; justify-items: center; gap: 4px; padding: 30px 20px; border: 1.5px dashed rgba(255, 255, 255, 0.26); border-radius: 16px; background: rgba(0, 0, 0, 0.2); color: var(--ink-3); font-size: 0.84rem; text-align: center; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.dropzone .glyph { width: 28px; height: 28px; margin-bottom: 6px; color: var(--rose); }
.dropzone strong { color: var(--ink-1); font-size: 1rem; }
.dropzone:hover, .dropzone.over, .dropzone:focus-visible { outline: none; border-color: var(--rose); background: rgba(255, 107, 127, 0.09); }
.slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.slot { position: relative; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 12px; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.filled { border: 1px solid rgba(255, 255, 255, 0.18); background: var(--wine); animation: rise 240ms var(--ease-out) backwards; }
.slot.cover { box-shadow: 0 0 0 2px var(--rose); }
.slot figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.slot-remove, .slot-cover { position: absolute; top: 5px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 3, 7, 0.78); color: var(--white); cursor: pointer; transition: background-color 140ms ease; }
.slot-remove { right: 5px; }
.slot-cover { left: 5px; }
.slot-remove:hover { background: var(--red); }
.slot-cover:hover { background: #c98500; }
.slot-remove .glyph, .slot-cover .glyph { width: 14px; height: 14px; }
.empty-slot { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.16); color: var(--ink-3); cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.empty-slot:hover { border-color: var(--rose); color: var(--rose); }

.suggest { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--ink-3); font-size: 0.82rem; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 0.82rem var(--sans); cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.chip-btn .glyph { width: 13px; height: 13px; }
.chip-btn:hover { border-color: var(--rose); background: rgba(255, 107, 127, 0.12); color: var(--ink-1); }

.price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.price-input { display: flex; align-items: center; width: 220px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; background: var(--field); transition: border-color 160ms ease, box-shadow 160ms ease; }
.price-input:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 107, 127, 0.2); }
.price-input span { color: var(--ink-3); font: 600 1.05rem ui-monospace, Consolas, monospace; }
.price-input input { width: 100%; padding: 12px 0 12px 10px; border: 0; background: transparent; color: var(--ink-1); font: 600 1.7rem var(--serif); font-variant-numeric: tabular-nums; }
.price-input input:focus { outline: none; }
.price-input input::placeholder { color: rgba(255, 255, 255, 0.28); }
.breakdown { margin: 0 0 14px; padding: 4px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--ink-2); font-size: 0.9rem; }
.breakdown > div:last-child { border-bottom: 0; }
.breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.breakdown .total { color: var(--ink-1); font-weight: 600; }
.breakdown .total dd { color: var(--ok); font-size: 1.1rem; }
.breakdown .total small { display: block; color: var(--ink-3); font-size: 0.78rem; font-weight: 400; }
.breakdown .aside { color: var(--ink-3); font-size: 0.84rem; }
.breakdown .breakdown-empty { justify-content: center; color: var(--ink-3); }

.publish-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.publish-actions .btn-red:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.preview-box { padding: 16px; border: 1px solid var(--card-line); border-radius: 20px; background: var(--card); box-shadow: var(--lift); }
.preview-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-3); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.preview-card { animation: none; cursor: default; }
.preview-card:hover { transform: none; }
.preview-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: rgba(255, 255, 255, 0.4); }
.preview-empty .glyph { width: 34px; height: 34px; }
.ready h3 { margin-bottom: 12px; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; }
.ready-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.ready-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 0.88rem; transition: color 200ms ease; }
.ready-list .glyph { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: transparent; transition: background-color 200ms ease, color 200ms ease; }
.ready-list li.ok { color: var(--ink-1); }
.ready-list li.ok .glyph { background: rgba(31, 170, 122, 0.3); color: #b6f0d8; }
.ready-tip { padding-top: 12px; border-top: 1px solid var(--card-line); color: var(--ink-3); font-size: 0.82rem; line-height: 1.5; }

@media (max-width: 980px) {
  .studio-body { grid-template-columns: 1fr; }
  .studio-nav { position: static; display: flex; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .studio-nav button, .studio-nav-link { width: auto; white-space: nowrap; }
  .studio-nav button.on { box-shadow: none; }
  .studio-nav-link { margin: 0; padding-top: 10px; border-top: 0; border-radius: 11px; }
  .publish-grid { grid-template-columns: 1fr; }
  .publish-side { position: static; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .meter { max-width: none; width: 100%; }
}
@media (max-width: 640px) {
  .studio-top h1 { font-size: 1.7rem; }
  .studio-id { gap: 14px; }
  .studio-id .avatar.lg { width: 64px; height: 64px; font-size: 1.6rem; }
  .s-card { padding: 18px 16px; border-radius: 18px; }
  .s-fold { padding: 0; }
  .s-fold > summary { padding: 14px 16px; }
  .s-fold-body { padding: 4px 16px 18px; }
  .grid-2, .facts { grid-template-columns: 1fr; }
  .tiles-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-drop { flex-wrap: wrap; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .rows dd .btn { margin-left: 0; }
  .save-state span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .publish-hero { padding: 24px 20px; border-radius: 20px; }
  .publish-hero h1 { font-size: 2.1rem; }
  .steps { width: 100%; }
  .steps li { flex: 1; justify-content: center; padding-right: 10px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .publish-side { grid-template-columns: 1fr; }
  .price-input { width: 100%; }
  .publish-actions .btn { flex: 1; }
  /* En el teléfono «Salir» se va a la configuración de la cuenta, para que el menú quepa en una fila. */
  .nav #logout { display: none; }
  .nav { flex-wrap: nowrap; }
  .notice-panel { right: 12px; }
  .toast { width: max-content; max-width: calc(100vw - 32px); }
}

.topbar-inner { position: relative; }

/* ====================================================================================
   Fondo animado: luz de tocador, rosetones de encaje, cintas de seda, perlas, cordón de
   corsé, lazos y destellos dorados. Es solo decoración (está en index.html, con
   aria-hidden). Todo se mueve despacio; quien prefiera menos movimiento lo ve quieto.
   ==================================================================================== */

:root {
  --gold: #d8b46a;
  --gold-bright: #f6e3ab;
  --gold-deep: #a57c2c;
  --gold-line: linear-gradient(90deg, transparent, var(--gold-deep) 18%, var(--gold-bright) 50%, var(--gold-deep) 82%, transparent);
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.ambient i { position: absolute; display: block; font-style: normal; }
.ambient svg { position: absolute; overflow: visible; }

/* Resplandores: la luz cálida que se mueve como la de una vela. */
.glow { border-radius: 50%; will-change: transform; }
.glow-wine { top: -22vh; left: 12vw; width: 70vw; height: 62vh; background: radial-gradient(closest-side, rgba(193, 18, 31, 0.4), transparent); animation: drift-a 46s var(--ease-in-out) infinite alternate; }
.glow-rose { right: -18vw; bottom: -20vh; width: 62vw; height: 66vh; background: radial-gradient(closest-side, rgba(255, 107, 127, 0.2), transparent); animation: drift-b 58s var(--ease-in-out) infinite alternate; }
.glow-gold { top: 26vh; left: -16vw; width: 50vw; height: 56vh; background: radial-gradient(closest-side, rgba(216, 180, 106, 0.2), transparent); animation: drift-c 64s var(--ease-in-out) infinite alternate; }
.glow-gold-2 { top: -10vh; right: -8vw; width: 40vw; height: 46vh; background: radial-gradient(closest-side, rgba(246, 227, 171, 0.13), transparent); animation: drift-b 52s var(--ease-in-out) -20s infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10vw, -8vh, 0) scale(1.16); } }
@keyframes drift-c { to { transform: translate3d(14vw, -10vh, 0) scale(1.2); } }

/* Trazo de oro común a todo el encaje. */
.rosette, .lace, .lacing, .bow { fill: none; stroke: url(#ambient-gold); stroke-linecap: round; stroke-linejoin: round; }
.ambient .dot { fill: var(--gold-bright); stroke: none; }

/* Rosetones: dos grandes tapetes de encaje que giran muy despacio, en sentidos opuestos. */
.rosette { aspect-ratio: 1; stroke-width: 0.9; will-change: transform; }
.rosette-a { right: -24vmin; bottom: -30vmin; width: 104vmin; opacity: 0.34; animation: turn 240s linear infinite; }
.rosette-b { top: 8vh; left: -30vmin; width: 68vmin; opacity: 0.22; animation: turn 320s linear infinite reverse; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Encaje en la esquina superior, que respira. */
.lace { top: 0; left: 0; width: min(40vw, 440px); aspect-ratio: 1; stroke-width: 1; opacity: 0.4; animation: lace-breathe 9s var(--ease-in-out) infinite alternate; }
@keyframes lace-breathe { from { opacity: 0.24; } to { opacity: 0.46; } }

/* Cintas de seda: una banda translúcida, su hilo dorado y un brillo que la recorre. */
.ribbons { inset: 0; width: 100%; height: 100%; }
.ribbon path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ribbon .band { stroke: url(#ambient-gold); stroke-width: 30; opacity: 0.07; }
.ribbon .silk { stroke: url(#ambient-gold); stroke-width: 1.3; opacity: 0.5; }
.ribbon .shine { stroke: url(#ambient-shine); stroke-width: 2.6; opacity: 0.95; stroke-dasharray: 340 2600; stroke-dashoffset: 2940; animation: silk-shine 18s linear infinite; }
.ribbon-b .shine { animation-duration: 24s; animation-delay: -9s; }
.ribbon-c .shine { animation-duration: 30s; animation-delay: -17s; }
/* Todas las cintas se mecen juntas, como una sola tela. */
.ribbons { animation: sway 24s var(--ease-in-out) infinite alternate; will-change: transform; }
@keyframes silk-shine { to { stroke-dashoffset: 0; } }
@keyframes sway { from { transform: translate3d(0, -12px, 0); } to { transform: translate3d(0, 16px, 0); } }

/* Hileras de perlas colgando de las esquinas: el trazo punteado con puntas redondas las dibuja. */
.pearls { top: 0; height: auto; will-change: transform; }
.pearls path { fill: none; stroke: #f8ecd0; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0.1 17; opacity: 0.6; }
.pearls path + path { stroke-width: 5; stroke-dasharray: 0.1 13; opacity: 0.42; }
.pearls-a { left: 0; width: min(50vw, 700px); transform-origin: 0 0; animation: swing 13s var(--ease-in-out) infinite alternate; }
.pearls-b { right: 0; width: min(46vw, 640px); transform-origin: 100% 0; animation: swing 16s var(--ease-in-out) -6s infinite alternate-reverse; }
@keyframes swing { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }

/* Cordón de corsé en el margen, solo donde hay margen libre. */
.lacing { top: 50%; left: 14px; width: 62px; height: auto; stroke-width: 1.5; opacity: 0.5; transform: translateY(-50%); display: none; }
.lacing .eyelet { fill: rgba(18, 3, 10, 0.8); stroke-width: 1.8; }
.lacing path { stroke-dasharray: 80; animation: lace-up 9s var(--ease-in-out) infinite alternate; }
@keyframes lace-up { from { stroke-dashoffset: 26; opacity: 0.55; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (min-width: 1300px) { .lacing { display: block; } }

/* Lazos de cinta, como el de una prenda. */
.bow { width: 190px; height: auto; stroke-width: 1.6; opacity: 0.55; filter: drop-shadow(0 0 12px rgba(216, 180, 106, 0.55)); }
.bow-a { top: 27%; right: 3.5%; animation: bow-float 17s var(--ease-in-out) infinite alternate; }
.bow-b { bottom: 12%; left: 6%; width: 124px; opacity: 0.42; animation: bow-float 21s var(--ease-in-out) -7s infinite alternate-reverse; }
.bow-c { top: 64%; right: 26%; width: 84px; opacity: 0.3; animation: bow-float 25s var(--ease-in-out) -12s infinite alternate; }
@keyframes bow-float { from { transform: translate3d(0, -14px, 0) rotate(-6deg); } to { transform: translate3d(0, 16px, 0) rotate(7deg); } }

/* Destellos: polvo dorado que sube y titila; uno de cada tres es una estrella. */
.mote { width: var(--size); height: var(--size); border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 10px 2px rgba(246, 227, 171, 0.85); opacity: 0; animation: mote-rise var(--time) linear var(--delay) infinite; will-change: transform, opacity; }
.mote-star { width: calc(var(--size) * 4); height: calc(var(--size) * 4); border-radius: 0; background: none; box-shadow: none; }
.mote-star::before { content: '✦'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-bright); font-size: calc(var(--size) * 4.6); line-height: 1; text-shadow: 0 0 12px rgba(246, 227, 171, 0.95), 0 0 26px rgba(216, 180, 106, 0.6); }
@keyframes mote-rise {
  0% { opacity: 0; transform: translate3d(0, 34px, 0) scale(0.5) rotate(0deg); }
  12% { opacity: 1; }
  40% { opacity: 0.35; }
  58% { opacity: 1; transform: translate3d(16px, -80px, 0) scale(1) rotate(40deg); }
  86% { opacity: 0.4; }
  100% { opacity: 0; transform: translate3d(-10px, -170px, 0) scale(0.6) rotate(90deg); }
}

/* ----- toques dorados en la interfaz ----- */
.topbar { border-bottom-color: transparent; }
.topbar::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--gold-line); background-size: 200% 100%; opacity: 0.8; animation: gold-slide 12s linear infinite; }
@keyframes gold-slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.footer { position: relative; border-top-color: transparent; }
.footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gold-line); opacity: 0.7; }
.section-head h2::before { color: var(--gold); text-shadow: 0 0 14px rgba(216, 180, 106, 0.6); }
.section-head h2::after { content: ''; display: block; width: 88px; height: 1px; margin-top: 8px; background: linear-gradient(90deg, var(--gold-bright), transparent); }
.spark { color: var(--gold-bright); text-shadow: 0 0 10px rgba(246, 227, 171, 0.6); }
.panel .tag-exclusive .spark { color: var(--gold-deep); text-shadow: none; }
.panel::before { background: linear-gradient(90deg, var(--red-dark), var(--red), var(--gold-bright), var(--red), var(--red-dark)); }
.btn-exclusive { --exclusive-fill: linear-gradient(var(--noir), var(--wine)) padding-box, linear-gradient(120deg, var(--gold-bright), var(--gold) 40%, var(--rose) 75%, var(--red)) border-box; }
.tag-exclusive { border-color: rgba(216, 180, 106, 0.6); }
.card { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(216, 180, 106, 0.6); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(216, 180, 106, 0.22), 0 0 30px rgba(216, 180, 106, 0.16); }
}
.empty h3::after { content: ''; display: block; width: 64px; height: 1px; margin: 12px auto 0; background: var(--gold-line); }
.studio-eyebrow, .dash-eyebrow { color: var(--gold); }

/* El recuadro de bienvenida, con ribete y esquinas doradas. */
.hero { border-color: rgba(216, 180, 106, 0.55); box-shadow: 0 30px 80px rgba(143, 10, 26, 0.5), inset 0 1px 0 rgba(246, 227, 171, 0.35), inset 0 0 0 6px rgba(18, 3, 10, 0.12), inset 0 0 0 7px rgba(216, 180, 106, 0.28); }
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 em { color: var(--gold-bright); text-shadow: 0 0 26px rgba(216, 180, 106, 0.55); }

/* En el teléfono, menos elementos: el fondo acompaña sin estorbar ni gastar batería. */
@media (max-width: 760px) {
  .ribbon-c, .bow-b, .bow-c, .pearls-b, .glow-gold-2, .mote:nth-of-type(n + 20) { display: none; }
  .pearls-a { width: 78vw; }
  .ribbon .shine { animation-duration: 26s; }
  .ribbon .band { stroke-width: 18; }
  .lace { width: 66vw; }
  .rosette-a { right: -44vmin; bottom: -34vmin; width: 130vmin; opacity: 0.28; }
  .rosette-b { display: none; }
  .bow-a { top: 46%; right: -22px; width: 118px; opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient *, .topbar::after { animation: none !important; }
  .mote { opacity: 0.6; }
  .ribbon .shine { opacity: 0; }
}

/* ====================================================================================
   Listas desplegables (país, departamento, banco): un botón y una pestaña con buscador.
   ==================================================================================== */
.picker { position: relative; }
.picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.picker-button:hover { border-color: var(--rose); }
.picker-button:focus-visible, .picker-button[aria-expanded='true'] { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.14); }
.picker-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-value.is-empty { color: var(--muted); }
.picker-chevron { width: 16px; height: 16px; flex: none; opacity: 0.6; transition: transform 180ms var(--ease-out); }
.picker-button[aria-expanded='true'] .picker-chevron { transform: rotate(180deg); }
.picker-other { margin-top: 8px; }
.field-note { margin: -8px 0 16px; color: var(--ink-3, var(--muted)); font-size: 0.82rem; }

.picker-pop {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  animation: panel-in 150ms var(--ease-out);
}
.picker-search { margin: 8px 8px 4px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--blush); color: inherit; font: inherit; font-size: 0.92rem; }
.picker-search:focus { outline: none; border-color: var(--red); }
.picker-list { flex: 1; min-height: 0; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.picker-list:focus { outline: none; }
.picker-list li[role='option'] { padding: 9px 12px; border-radius: 8px; font-size: 0.94rem; cursor: pointer; }
.picker-list li[role='option']:hover, .picker-list li.active { background: var(--blush); }
.picker-list li[aria-selected='true'] { background: var(--red); color: var(--white); font-weight: 600; }
.picker-list li[data-other] { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--red); font-weight: 600; }
.picker-none { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 0.88rem; }

/* Sobre fondo oscuro (configuración de la cuenta). */
.studio .picker-button { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: var(--field); color: var(--ink-1); }
.studio .picker-button:hover { border-color: rgba(255, 255, 255, 0.3); }
.studio .picker-button:focus-visible, .studio .picker-button[aria-expanded='true'] { border-color: var(--rose); background: rgba(8, 2, 5, 0.6); box-shadow: 0 0 0 3px rgba(255, 107, 127, 0.2); }
.studio .picker-value.is-empty { color: rgba(255, 255, 255, 0.4); }
.studio .field > .picker-other, .studio .picker .picker-other { width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: var(--field); color: var(--ink-1); font: inherit; }
.studio .picker .picker-other:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 107, 127, 0.2); }
.picker-pop.dark { border-color: rgba(216, 180, 106, 0.4); background: #1c0a11; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06); color: #fff; }
.picker-pop.dark .picker-search { border-color: rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.3); }
.picker-pop.dark .picker-search:focus { border-color: var(--rose); }
.picker-pop.dark .picker-search::placeholder { color: rgba(255, 255, 255, 0.4); }
.picker-pop.dark .picker-list li[role='option']:hover, .picker-pop.dark .picker-list li.active { background: rgba(255, 255, 255, 0.08); }
.picker-pop.dark .picker-list li[aria-selected='true'] { background: rgba(193, 18, 31, 0.55); box-shadow: inset 3px 0 0 var(--gold); }
.picker-pop.dark .picker-list li[data-other] { border-top-color: rgba(255, 255, 255, 0.1); color: var(--gold-bright); }
.picker-pop.dark .picker-none { color: rgba(255, 255, 255, 0.6); }
.picker-pop.dark .picker-list { scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }

/* Fuera de Colombia solo hay un medio de pago: su tarjeta ocupa todo el ancho. */
.tiles-pick.single { grid-template-columns: 1fr; }
.pick[hidden] { display: none; }
.s-note.s-warn { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(242, 189, 85, 0.35); border-radius: 12px; background: rgba(242, 189, 85, 0.08); color: var(--ink-2); }
.s-note.s-warn .glyph { color: var(--warn); }
.s-note[hidden] { display: none; }

/* ====================================================================================
   Superficies sobre el fondo animado: las tarjetas translúcidas llevan un respaldo oscuro
   para que el encaje del fondo se intuya detrás, sin competir con el texto.
   ==================================================================================== */
:root { --veil: rgba(44, 14, 24, 0.78); --veil-line: rgba(255, 255, 255, 0.16); }
.studio, .dash { --card: linear-gradient(180deg, rgba(56, 22, 33, 0.9), rgba(32, 11, 19, 0.9)); }
.nav a:hover, .nav .link:hover, .bell:hover, .bell[aria-expanded='true'] { background: rgba(255, 255, 255, 0.14); }

/* ====================================================================================
   «Cómo funciona»: pasos numerados, garantías, ejemplo de reparto y preguntas frecuentes.
   ==================================================================================== */
.how { display: grid; gap: 44px; }
.how section { scroll-margin-top: 96px; }
.how-hero .lead { max-width: 620px; }
.how-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.how-steps li { counter-increment: paso; padding: 18px 18px 20px; border: 1px solid var(--veil-line); border-radius: var(--radius); background: var(--veil); color: var(--soft); font-size: 0.93rem; line-height: 1.5; }
.how-steps li::before { content: counter(paso); display: block; margin-bottom: 6px; color: var(--gold); font: italic 600 2.1rem/1 var(--serif); text-shadow: 0 0 18px rgba(216, 180, 106, 0.35); }
.how-steps strong, .how-cards strong { display: block; margin-bottom: 4px; color: var(--white); font: italic 600 1.15rem var(--serif); }
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.how-cards li { padding: 18px; border: 1px solid rgba(216, 180, 106, 0.3); border-radius: var(--radius); background: linear-gradient(180deg, rgba(216, 180, 106, 0.1), rgba(216, 180, 106, 0.02)), var(--veil); color: var(--soft); font-size: 0.93rem; line-height: 1.5; }
.how-cards .glyph { width: 22px; height: 22px; margin-bottom: 10px; color: var(--gold); }
.how-example { margin-top: 14px; padding: 22px 24px; border: 1px solid var(--veil-line); border-radius: var(--radius); background: var(--veil); color: var(--soft); }
.how-example h3 { margin-bottom: 12px; color: var(--white); font: italic 600 1.25rem var(--serif); }
.how-example dl { display: grid; gap: 0; margin: 0 0 14px; }
.how-example dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.how-example dt { color: var(--soft); }
.how-example dd { margin: 0; color: var(--white); font-weight: 600; text-align: right; }
.how-example p { font-size: 0.86rem; opacity: 0.85; }
.how-rule { display: flex; gap: 14px; padding: 20px 22px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: var(--radius); background: linear-gradient(90deg, rgba(216, 180, 106, 0.14), rgba(216, 180, 106, 0.03)), var(--veil); color: var(--soft); line-height: 1.55; }
.how-rule .glyph { width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }
.how-rule strong { color: var(--white); }
.how-faq { padding: 26px 28px 22px; border: 1px solid var(--veil-line); border-radius: var(--radius); background: var(--veil); }
.how-faq .section-head { margin-bottom: 4px; }
.how-faq h3 { margin: 26px 0 6px; color: var(--gold); font: 600 0.78rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.how-faq details { border-bottom: 1px solid var(--veil-line); }
.how-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; color: var(--white); font-weight: 600; cursor: pointer; list-style: none; }
.how-faq summary::-webkit-details-marker { display: none; }
.how-faq summary::after { content: '+'; flex: none; color: var(--gold); font: 400 1.4rem/1 var(--sans); transition: transform 0.2s ease; }
.how-faq details[open] summary::after { transform: rotate(45deg); }
.how-faq summary:hover { color: var(--gold-bright); }
.how-faq details p { max-width: 760px; padding: 0 2px 18px; color: var(--soft); line-height: 1.6; }
.how-faq a, .how-legal a { color: var(--gold-bright); text-decoration: underline; }
.how-legal { margin-top: 22px; color: var(--soft); font-size: 0.9rem; }
.how-end { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-bottom: 10px; }
.hero-more { display: inline-block; margin-top: 18px; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }
.hero-more:hover { color: var(--white); }
/* Cinco pasos en una fila cuando caben; si no, de dos en dos y el que sobra a lo ancho. */
.how-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1020px) {
  .how-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .how-steps li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 520px) {
  .how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .how { gap: 34px; }
  .how-cards { grid-template-columns: 1fr; }
  .how-faq { padding: 20px 18px 16px; }
  .how-example dl div { flex-direction: column; gap: 2px; }
  .how-example dd { text-align: left; }
}

/* ====================================================================================
   Perla, la asistente: el botón flotante, su globo de aviso, su panel y, en el panel de
   administración, la sala de control. Las animaciones las lleva GSAP (ver perla.js).
   ==================================================================================== */
.perla { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: grid; justify-items: end; gap: 12px; pointer-events: none; }
.perla > * { pointer-events: auto; }
.perla-raised { bottom: 96px; }
.perla-svg { display: block; width: 100%; height: auto; overflow: visible; }
.perla-fab {
  position: relative;
  width: 68px;
  height: 68px;
  padding: 6px 7px 0;
  border: 1px solid rgba(216, 180, 106, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #4a1020, #1b060c 72%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(216, 180, 106, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.perla-fab:hover, .perla-fab[aria-expanded="true"] { border-color: var(--gold-bright); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(216, 180, 106, 0.18), 0 0 26px rgba(216, 180, 106, 0.35); }
.perla-fab:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
/* El número sobresale del círculo, así que el recorte lo lleva el dibujo y no el botón. */
.perla-fab .perla-svg { clip-path: circle(48% at 50% 45%); will-change: transform; }
.perla-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #1b060c;
  border-radius: 999px;
  background: var(--rose);
  color: #2a0810;
  font: 700 0.72rem/18px var(--sans);
  text-align: center;
}
.perla-count[hidden] { display: none; }

.perla-bubble {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: min(320px, calc(100vw - 44px));
  padding: 12px 10px 12px 16px;
  border: 1px solid rgba(216, 180, 106, 0.5);
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(180deg, rgba(74, 16, 32, 0.97), rgba(32, 9, 17, 0.97));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  color: var(--white);
}
.perla-bubble[hidden], .perla-panel[hidden] { display: none; }
.perla-bubble-text { display: grid; gap: 2px; min-width: 0; color: inherit; }
/* Cuando el globo abre el chat es un botón: se le quita el aspecto que le da el navegador. */
button.perla-bubble-text { flex: 1; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
button.perla-bubble-text:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 6px; }
.perla-bubble-text:hover { text-decoration: none; }
.perla-bubble-text span { color: var(--gold); font: 600 0.68rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.perla-bubble-text strong { font-size: 0.92rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.perla-bubble-close, .perla-tool { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.perla-bubble-close:hover, .perla-tool:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.perla-bubble-close .glyph { width: 15px; height: 15px; }

.perla-panel {
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 150px));
  border: 1px solid rgba(216, 180, 106, 0.45);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(58, 14, 27, 0.98), rgba(24, 7, 13, 0.98));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--white);
  overflow: hidden;
}
.perla-head-bar { display: flex; align-items: center; gap: 4px; padding: 14px 12px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(90deg, rgba(216, 180, 106, 0.16), transparent 70%); }
.perla-head-bar div { display: grid; flex: 1; }
.perla-head-bar strong { font: italic 600 1.3rem/1.1 var(--serif); color: var(--gold-bright); }
.perla-head-bar span { color: rgba(255, 255, 255, 0.6); font-size: 0.76rem; }
.perla-tool[aria-pressed="true"] { color: var(--gold-bright); }
.perla-body-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 14px; }
.perla-hello { margin-bottom: 4px; font-size: 0.95rem; line-height: 1.45; }
.perla-loading, .perla-none { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }
.perla-panel h3 { margin: 16px 0 8px; color: var(--gold); font: 600 0.68rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.perla-tasks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.perla-task { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--white); font-size: 0.88rem; line-height: 1.35; }
.perla-task:hover { border-color: rgba(216, 180, 106, 0.5); background: rgba(216, 180, 106, 0.1); text-decoration: none; }
.perla-task i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(216, 180, 106, 0.8); }
.perla-task.urgent i { background: var(--rose); box-shadow: 0 0 10px rgba(255, 107, 127, 0.9); }
.perla-task span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.perla-task .glyph { width: 15px; height: 15px; color: rgba(255, 255, 255, 0.45); }
.perla-news { margin: 0 -16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.perla-news .notice-item { padding-left: 16px; padding-right: 16px; }
.perla-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.84rem; }
.perla-foot a { color: var(--gold-bright); }
.notice-ico.kind-bot { background: rgba(216, 180, 106, 0.2); color: var(--gold-bright); }

/* ----- sala de control ----- */
.room { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.room-stage { position: sticky; top: 84px; display: grid; justify-items: center; gap: 10px; padding: 22px 18px 20px; border: 1px solid rgba(216, 180, 106, 0.35); border-radius: 22px; background: radial-gradient(circle at 50% 18%, rgba(216, 180, 106, 0.16), transparent 62%), var(--card); box-shadow: var(--lift); text-align: center; }
.room-figure { width: 170px; }
.room-stage h2 { color: var(--gold-bright); font: italic 600 1.7rem/1 var(--serif); }
.room-status { min-height: 3.2em; color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; }
.room-next { color: var(--ink-3); font-size: 0.8rem; line-height: 1.45; }
.room-next strong { color: #f2bd55; font-weight: 600; }
.room-stage .room-sound { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--gold-bright); font-size: 0.82rem; }
.room-sound .glyph { width: 16px; height: 16px; }
.room-title { margin: 22px 0 10px; color: var(--gold); font: 600 0.72rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.room-pending { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.room-pending a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--card); color: var(--ink-1); }
.room-pending a:hover { border-color: rgba(216, 180, 106, 0.6); text-decoration: none; }
.room-pending strong { color: var(--gold-bright); font: 600 1.6rem/1 var(--serif); }
.room-pending span { color: var(--ink-2); font-size: 0.82rem; line-height: 1.3; }
.room-clear { padding: 12px 14px; border: 1px solid rgba(95, 214, 168, 0.3); border-radius: 14px; background: rgba(31, 170, 122, 0.1); color: var(--ink-1); font-size: 0.9rem; }
.room-tasks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.room-tasks li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--card); color: var(--ink-1); }
.room-tasks strong { display: block; margin-bottom: 2px; font-weight: 600; }
.room-tasks p { color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; }
.room-tasks small { display: block; margin-top: 4px; color: var(--gold); font-size: 0.8rem; }
.room-tasks small:empty { display: none; }
.room-result { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--ink-2); font-size: 0.76rem; white-space: nowrap; }
.room-result.is-done { background: rgba(216, 180, 106, 0.2); color: var(--gold-bright); }
.room-result.is-bad { background: rgba(193, 18, 31, 0.35); color: #ff9c9c; }
.room-runs { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.room-runs th, .room-runs td { padding: 8px 10px; border-bottom: 1px solid var(--card-line); text-align: left; }
.room-runs th { color: var(--ink-3); font-weight: 600; }

@media (max-width: 860px) {
  .room { grid-template-columns: 1fr; }
  .room-stage { position: static; }
}
@media (max-width: 560px) {
  .perla { right: 14px; bottom: 14px; }
  .perla-raised { bottom: 92px; }
  .perla-fab { width: 58px; height: 58px; }
  .perla-panel { max-height: calc(100vh - 120px); }
}
@media print {
  .perla { display: none; }
}

/* ----- Perla: pestañas y chat de ayuda ----- */
.perla-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 10px 0; }
.perla-tabs button { padding: 8px 6px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: rgba(255, 255, 255, 0.6); font: 600 0.82rem var(--sans); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.perla-tabs button:hover { color: var(--white); }
.perla-tabs button[aria-selected="true"] { border-bottom-color: var(--gold); color: var(--gold-bright); }
.perla-body-scroll { flex: 1; min-height: 120px; }
.perla-ask { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 2px; padding: 11px 12px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 12px; background: linear-gradient(90deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.04)); color: var(--white); font: 600 0.88rem var(--sans); text-align: left; cursor: pointer; }
.perla-ask:hover { border-color: var(--gold-bright); background: rgba(216, 180, 106, 0.2); }
.perla-ask span { flex: 1; }
.perla-ask .glyph { width: 17px; height: 17px; color: var(--gold-bright); }
.perla-ask .glyph:last-child { width: 15px; height: 15px; color: rgba(255, 255, 255, 0.5); }

.perla-chat { display: flex; flex-direction: column; gap: 8px; }
.perla-msg { max-width: 88%; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px 14px 14px 5px; background: rgba(255, 255, 255, 0.06); color: var(--white); font-size: 0.89rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.perla-msg.user { align-self: flex-end; border-color: transparent; border-radius: 14px 14px 5px 14px; background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.perla-msg.admin { border-color: rgba(216, 180, 106, 0.55); background: linear-gradient(180deg, rgba(216, 180, 106, 0.18), rgba(216, 180, 106, 0.06)); }
.perla-msg-who { display: block; margin-bottom: 3px; color: var(--gold-bright); font: 600 0.66rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.perla-msg.typing { display: inline-flex; gap: 5px; padding: 13px 14px; }
.perla-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); opacity: 0.45; }
.perla-case { align-self: center; margin: 2px 0; padding: 5px 12px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 999px; background: rgba(216, 180, 106, 0.12); color: var(--gold-bright); font-size: 0.76rem; text-align: center; }
.perla-case.is-bad { border-color: rgba(255, 107, 127, 0.5); background: rgba(193, 18, 31, 0.25); color: #ffb3bd; }
.perla-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.perla-chips:empty { display: none; }
.perla-chips button { padding: 7px 11px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 999px; background: transparent; color: var(--gold-bright); font: 500 0.8rem var(--sans); text-align: left; cursor: pointer; }
.perla-chips button:hover { background: rgba(216, 180, 106, 0.16); }
.perla-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.perla-composer textarea { flex: 1; min-height: 40px; max-height: 96px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: rgba(0, 0, 0, 0.28); color: var(--white); font: 400 0.9rem/1.4 var(--sans); resize: none; }
.perla-composer textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.perla-composer textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.18); }
.perla-composer button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #2a0810; cursor: pointer; }
.perla-composer button:hover { filter: brightness(1.08); }
.perla-composer button .glyph { width: 18px; height: 18px; }
.perla-legal { margin: 0; padding: 0 14px 10px; color: rgba(255, 255, 255, 0.45); font-size: 0.7rem; line-height: 1.4; }
.perla-legal .link { padding: 0; color: rgba(255, 255, 255, 0.7); font-size: inherit; text-decoration: underline; }

/* ----- soporte, en el panel de administración ----- */
.support-ai { display: grid; gap: 3px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--card); color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; }
.support-ai strong { color: var(--ink-1); }
.support-ai.is-on { border-color: rgba(216, 180, 106, 0.45); }
.support-ai.is-on strong { color: var(--gold-bright); }
.support-ai code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); font-size: 0.82em; }
.support-chat { margin: 8px 0; }
.support-chat summary { color: var(--gold-bright); font-size: 0.86rem; cursor: pointer; }
.support-reply { display: grid; gap: 10px; margin-top: 12px; }
.support-reply textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid var(--card-line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); color: var(--ink-1); font: 400 0.92rem/1.45 var(--sans); resize: vertical; }
.support-reply textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- selector de idioma (pie de página) ---------- */
.lang-pick { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.lang-pick svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.lang-pick select { appearance: none; padding: 0.4rem 1.9rem 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(216, 180, 106, 0.45); background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d8b46a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 0.65rem; color: var(--white); font: inherit; cursor: pointer; }
.lang-pick select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-pick option { color: #23090d; }

/* ---------- buscador de la vitrina: texto, #etiquetas, precio y orden ---------- */
.finder { --f-line: rgba(255, 255, 255, 0.14); --f-gold: #d8b46a; --f-gold-bright: #f6e3ab; margin: -4px 0 26px; }
.finder-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.finder-input { position: relative; flex: 1 1 260px; display: flex; align-items: center; margin: 0; }
.finder-input svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--f-gold); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.finder-input input { width: 100%; padding: 12px 18px 12px 44px; border: 1px solid var(--f-line); border-radius: 999px; background: rgba(18, 3, 10, 0.55); color: #fff; font: 400 1rem var(--sans); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.finder-input input::placeholder { color: rgba(255, 255, 255, 0.5); }
.finder-input input:focus { outline: none; border-color: var(--f-gold); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.2); }
.finder-toggle { display: inline-flex; align-items: center; gap: 8px; }
.finder-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.finder-toggle.on { border-color: var(--f-gold); background: rgba(216, 180, 106, 0.14); }
.finder-toggle .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--f-gold); color: #23090d; font: 700 0.72rem var(--sans); }
.finder-order { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 0.84rem; }
.finder-order select { appearance: none; padding: 11px 34px 11px 16px; border: 1px solid var(--f-line); border-radius: 999px; background: rgba(18, 3, 10, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d8b46a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; color: #fff; font: 500 0.92rem var(--sans); cursor: pointer; }
.finder-order select:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 2px; }
.finder-order option { color: #23090d; }

.finder-popular { display: flex; align-items: center; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.finder-popular::-webkit-scrollbar { display: none; }
.finder-popular > span { flex: none; color: var(--f-gold-bright); font: italic 600 0.92rem var(--serif); }

.htags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.htags-card { margin: 6px 0 2px; gap: 4px 8px; }
.htag { display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 11px; border: 1px solid rgba(216, 180, 106, 0.34); border-radius: 999px; background: rgba(216, 180, 106, 0.07); color: #f6e3ab; font: 500 0.82rem var(--sans); white-space: nowrap; text-decoration: none; transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease; }
.htag .hash { color: #ff6b7f; font-weight: 700; }
a.htag:hover, button.htag:hover { border-color: #d8b46a; background: rgba(216, 180, 106, 0.18); text-decoration: none; transform: translateY(-1px); }
button.htag { cursor: pointer; flex: none; }
.htag small { margin-left: 6px; color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; }
.htags-card .htag { padding: 0; border: 0; background: none; font-size: 0.78rem; color: rgba(246, 227, 171, 0.9); }
.htag-more { color: rgba(255, 255, 255, 0.55); border-style: dashed; }
.htags-card .htag-more { color: rgba(255, 255, 255, 0.5); }

.filters { overflow: hidden; }
.filters-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 26px; margin-top: 14px; padding: 22px 24px; border: 1px solid rgba(216, 180, 106, 0.28); border-radius: 22px; background: linear-gradient(180deg, rgba(56, 22, 33, 0.82), rgba(26, 8, 15, 0.88)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-group legend, .tag-picker-group > span { padding: 0; margin-bottom: 9px; color: var(--f-gold-bright, #f6e3ab); font: italic 600 1rem var(--serif); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.86); font: 500 0.86rem var(--sans); cursor: pointer; transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease; }
.tag-toggle:hover:not(:disabled) { border-color: #ff6b7f; background: rgba(255, 107, 127, 0.12); }
.tag-toggle:active:not(:disabled) { transform: scale(0.96); }
.tag-toggle:focus-visible, .fpick:focus-visible, .finder-clear:focus-visible, button.htag:focus-visible { outline: 2px solid #d8b46a; outline-offset: 2px; }
.tag-toggle.on { border-color: transparent; background: linear-gradient(135deg, #c1121f, #8f0a1a); color: #fff; box-shadow: 0 6px 16px rgba(193, 18, 31, 0.34); }
.tag-toggle.none { opacity: 0.42; }
.tag-toggle:disabled { opacity: 0.34; cursor: not-allowed; }
.tag-toggle small { color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; }
.tag-toggle.on small { color: rgba(255, 255, 255, 0.85); }
.filter-price { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.price-range { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.price-range label { display: grid; gap: 4px; margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.78rem; }
.price-range input { width: 112px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(18, 3, 10, 0.5); color: #fff; font: 500 0.95rem var(--sans); }
.price-range input:focus { outline: none; border-color: #d8b46a; box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.2); }

.finder-chosen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.finder-total { margin-right: 4px; color: #fff; font: italic 600 1.02rem var(--serif); }
.fpick { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 13px; border: 1px solid rgba(255, 107, 127, 0.5); border-radius: 999px; background: rgba(193, 18, 31, 0.2); color: #fff; font: 500 0.84rem var(--sans); cursor: pointer; transition: background 0.16s ease; }
.fpick:hover { background: rgba(193, 18, 31, 0.4); }
.fpick .hash { color: #f6e3ab; font-weight: 700; }
.fpick > span[aria-hidden] { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 0.86rem; line-height: 1; }
.fpick > .hash[aria-hidden] { display: inline; width: auto; height: auto; background: none; font-size: inherit; }
.finder-clear { padding: 5px 4px; border: 0; background: none; color: rgba(255, 255, 255, 0.66); font: 500 0.84rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.finder-clear:hover { color: #fff; }

/* Al publicar: el selector de etiquetas */
.tag-picker { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.tag-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.tag-picker-head .field-label { color: #fff; font: 600 0.95rem var(--sans); }
.tag-picker .field-note { margin: 0 0 14px; }
.tag-picker-group { margin-top: 12px; }
.tag-picker-group > span { display: block; font-size: 0.92rem; margin-bottom: 7px; }
#preview-tags .htags-card { margin-top: 4px; }

@media (max-width: 640px) {
  .finder-row .btn-red { flex: 1; }
  .finder-toggle { flex: 1; justify-content: center; }
  .finder-order { flex: 1 1 100%; justify-content: space-between; }
  .finder-order select { flex: 1; }
  .filters-inner { padding: 18px 16px; border-radius: 18px; }
  .price-range input { width: 100%; }
  .price-range label { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .htag, .tag-toggle, .fpick { transition: none; }
}

/* ---------- panel de ganancias de la modelo ---------- */
.earn { --e-line: rgba(255, 255, 255, 0.11); --e-ink-2: rgba(255, 255, 255, 0.76); --e-ink-3: rgba(255, 255, 255, 0.56); --e-gold: #d8b46a; --e-gold-bright: #f6e3ab; --e-paid: #b28d38; --e-way: #e24a6b; }
.earn .glyph { width: 18px; height: 18px; flex: none; }
.earn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.earn-head .dash-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--e-gold); }
.earn-head h1 { font-size: 2.5rem; line-height: 1.1; }
.earn-head h1 em { color: var(--e-gold-bright); font-style: italic; }
.earn-sub { max-width: 560px; margin-top: 8px; color: var(--e-ink-2); font-size: 0.95rem; }
.earn-head .btn { display: inline-flex; align-items: center; gap: 8px; }

.earn-hero { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 16px; margin-bottom: 16px; }
.earn-total { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 26px 28px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(216, 180, 106, 0.3), transparent 58%), linear-gradient(160deg, #4a0b18, #1c0810); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.earn-total::after { content: ''; position: absolute; right: -46px; bottom: -46px; width: 170px; height: 170px; border: 1px solid rgba(216, 180, 106, 0.34); border-radius: 50%; box-shadow: 0 0 0 16px rgba(216, 180, 106, 0.06), 0 0 0 34px rgba(216, 180, 106, 0.04); pointer-events: none; }
.earn-total small, .earn-tile small { color: var(--e-gold-bright); font: 600 0.74rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.earn-total strong { margin: 6px 0 4px; color: #fff; font: 700 3rem/1.05 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.earn-total span { color: var(--e-ink-2); font-size: 0.9rem; }
.earn-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.earn-tile { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--e-line); border-radius: 22px; background: linear-gradient(180deg, rgba(56, 22, 33, 0.9), rgba(32, 11, 19, 0.9)); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.earn-tile-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: var(--e-gold-bright); }
.earn-tile small { color: var(--e-ink-2); }
.earn-tile strong { margin: 4px 0 2px; color: #fff; font: 700 1.75rem/1.15 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.earn-tile span:last-child { color: var(--e-ink-3); font-size: 0.83rem; }
.earn-por_cobrar { border-color: rgba(255, 107, 127, 0.38); }
.earn-por_cobrar .earn-tile-icon { background: rgba(193, 18, 31, 0.3); color: #ffb3bd; }
.earn-cobrado .earn-tile-icon { background: rgba(216, 180, 106, 0.18); }

.earn-grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.earn-side { display: grid; gap: 16px; align-content: start; }
.earn-card { min-width: 0; padding: 22px 24px; border: 1px solid var(--e-line); border-radius: 22px; background: linear-gradient(180deg, rgba(56, 22, 33, 0.9), rgba(32, 11, 19, 0.9)); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.earn-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.earn-card h2 { font-size: 1.35rem; font-style: italic; }
.earn-card header p { margin-top: 2px; color: var(--e-ink-3); font-size: 0.85rem; }
.earn-card header .btn { display: inline-flex; align-items: center; gap: 7px; }

.earn-legend { display: flex; gap: 16px; color: var(--e-ink-2); font-size: 0.82rem; }
.earn-legend span { display: inline-flex; align-items: center; gap: 7px; }
.earn-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
.earn-key-paid { background: var(--e-paid); }
.earn-key-way { background: repeating-linear-gradient(45deg, var(--e-way) 0 3px, #f08ba0 3px 5px); }

.earn-chart { position: relative; }
.earn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.earn-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.earn-base { stroke: rgba(255, 255, 255, 0.26); stroke-width: 1; }
.earn-axis { fill: rgba(255, 255, 255, 0.58); font: 500 11px var(--sans); }
.earn-top { fill: #fff; font: 600 11.5px var(--sans); font-variant-numeric: tabular-nums; }
.earn-paid { fill: var(--e-paid); }
.earn-way { fill: url(#earn-stripes); }
.earn-hit { fill: transparent; }
.earn-bar { cursor: default; outline: none; transition: opacity 0.16s ease; }
.earn-bar.dim { opacity: 0.42; }
.earn-bar:focus-visible .earn-hit { stroke: var(--e-gold); stroke-width: 1.5; }
.earn-tip { position: absolute; top: 4px; z-index: 2; min-width: 176px; padding: 12px 14px; border: 1px solid rgba(216, 180, 106, 0.44); border-radius: 14px; background: rgba(20, 5, 11, 0.96); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5); color: var(--e-ink-2); font-size: 0.82rem; transform: translateX(-50%); pointer-events: none; }
.earn-tip strong { display: block; margin-bottom: 7px; color: #fff; font: italic 600 0.98rem var(--serif); text-transform: capitalize; }
.earn-tip span { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.earn-tip b { margin-left: auto; padding-left: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.earn-tip-total { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

.earn-details { margin-top: 12px; }
.earn-details summary { display: inline-block; color: var(--e-gold-bright); font-size: 0.86rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.earn-details[open] summary { margin-bottom: 12px; }
.earn-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.earn-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.earn-table th { padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: var(--e-ink-3); font: 600 0.72rem var(--sans); letter-spacing: 0.1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.earn-table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--e-ink-2); vertical-align: top; white-space: nowrap; }
.earn-table td:first-child { text-transform: capitalize; }
.earn-table tbody tr:last-child td { border-bottom: 0; }
.earn-table td strong { color: #fff; }
.earn-table td small { display: block; margin-top: 2px; color: var(--e-ink-3); font-size: 0.76rem; text-transform: none; }
.earn-table a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.earn-sales td.earn-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.earn-sales th:nth-child(n + 4), .earn-sales td:nth-child(n + 4) { text-align: right; }
.earn-row-reembolsado td { opacity: 0.55; }
.earn-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--e-line); border-radius: 999px; font-size: 0.76rem; }
.earn-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.earn-pill-retenido { color: #f6e3ab; border-color: rgba(216, 180, 106, 0.4); }
.earn-pill-por_cobrar { color: #ffb3bd; border-color: rgba(255, 107, 127, 0.45); }
.earn-pill-cobrado { color: #5fd6a8; border-color: rgba(95, 214, 168, 0.4); }
.earn-pill-reembolsado { color: rgba(255, 255, 255, 0.6); }

.earn-facts { display: grid; gap: 0; margin: 0; }
.earn-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.earn-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.earn-facts div:first-child { padding-top: 0; }
.earn-facts dt { color: var(--e-ink-3); font-size: 0.86rem; }
.earn-facts dd { margin: 0; color: #fff; font-weight: 600; font-size: 0.92rem; text-align: right; }
.earn-tags { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.earn-tags li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.earn-tags li > span { color: var(--e-ink-3); font-size: 0.84rem; }

.earn-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 24px; border: 1px dashed rgba(216, 180, 106, 0.4); border-radius: 26px; background: radial-gradient(80% 120% at 50% 0%, rgba(216, 180, 106, 0.12), transparent 60%); text-align: center; }
.earn-empty-coin { display: inline-grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 50%; color: var(--e-gold-bright); box-shadow: 0 0 0 10px rgba(216, 180, 106, 0.07); }
.earn-empty-coin .glyph { width: 28px; height: 28px; }
.earn-empty h2 { font-size: 1.7rem; font-style: italic; }
.earn-empty p { max-width: 460px; color: var(--e-ink-2); }
.earnings-more { display: inline-flex; align-items: center; gap: 6px; margin: -18px 0 30px; color: #f6e3ab; font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .earn-hero, .earn-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .earn-head h1 { font-size: 2rem; }
  .earn-tiles { grid-template-columns: 1fr; gap: 12px; }
  .earn-total strong { font-size: 2.4rem; }
  .earn-card { padding: 18px 16px; border-radius: 18px; }
  .earn-legend { width: 100%; }
}

/* ---------- informes de cierre (panel de administración) ---------- */
.report-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.3); border-radius: 18px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.1), rgba(216, 180, 106, 0.03)); }
.report-month { display: grid; gap: 5px; margin: 0; color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.report-month select { appearance: none; min-width: 220px; padding: 10px 36px 10px 14px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 12px; background: rgba(18, 3, 10, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d8b46a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; color: #fff; font: italic 600 1.05rem var(--serif); letter-spacing: 0; text-transform: none; cursor: pointer; }
.report-month option { color: #23090d; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.report-stamp { margin: 0 0 20px; color: var(--ink-3); font-size: 0.78rem; }
.report-scroll { overflow-x: auto; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.report-table th { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: var(--ink-3); font: 600 0.7rem var(--sans); letter-spacing: 0.1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.report-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--ink-2); white-space: nowrap; }
.report-table .num { text-align: right; }
.report-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.report-table a { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; }
.report-table td strong { color: #f6e3ab; }
.report-table tfoot td { border-top: 1px solid rgba(216, 180, 106, 0.5); border-bottom: 0; color: var(--ink-1); font-weight: 700; }
.report-state { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid var(--card-line); border-radius: 999px; font-size: 0.76rem; }
.report-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.report-liberado { color: #5fd6a8; }
.report-entregado { color: #ffb3bd; }
.report-reembolsado { color: rgba(255, 255, 255, 0.55); }
.report-en_disputa { color: #f2bd55; }
.report-totals div { align-items: baseline; padding: 11px 0; border-bottom-color: rgba(255, 255, 255, 0.08); }
.report-totals dt { color: var(--ink-2); }
.report-totals dt small { display: block; color: var(--ink-3); font-size: 0.78rem; }
.report-totals dd { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.report-totals .sub dt { padding-left: 14px; color: var(--ink-3); }
.report-totals .sub dd { color: var(--ink-2); font-weight: 400; }
.report-totals .total { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(216, 180, 106, 0.5); border-bottom: 0; }
.report-totals .total dt, .report-totals .total dd { color: #f6e3ab; font-size: 1.08rem; }
.report-empty { display: grid; justify-items: center; gap: 10px; padding: 46px 20px; border: 1px dashed var(--card-line); border-radius: 18px; color: var(--ink-3); text-align: center; }
.report-empty .ico { width: 30px; height: 30px; }
.report-stamp { display: block; }

/* Impresión: solo el informe, en tinta sobre papel. */
@media print {
  .ambient, .topbar, header.site, .footer, .dash-head, .dash-tabs, .dash-side, .report-actions, .gate, .toast, #perla-root, .notice { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .dash, .dash-body, .dash-main { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .dash * { color: #111 !important; box-shadow: none !important; text-shadow: none !important; }
  .dash .viz-card, .dash .tile, .report-bar, .report-scroll { border: 1px solid #bbb !important; background: #fff !important; break-inside: avoid; }
  .report-month select { border: 0 !important; background: none !important; padding-left: 0 !important; }
  .report-table th, .report-table td { border-bottom: 1px solid #ccc !important; white-space: normal; }
  .report-table tfoot td { border-top: 2px solid #111 !important; }
  .report-scroll { overflow: visible; }
  .tile button, .tile .spark, .viz-table { display: none !important; }
}

/* ---------- aplicación instalable: tarjeta de invitación, botón del pie y avisos ---------- */
.install-card { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: flex; gap: 14px; align-items: flex-start; width: min(380px, calc(100vw - 36px)); padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 20px; background: linear-gradient(180deg, rgba(64, 20, 32, 0.97), rgba(24, 7, 13, 0.98)); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08); color: #fff; }
.install-card img { flex: none; border-radius: 14px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4); }
.install-text strong { display: block; font: italic 700 1.12rem var(--serif); }
.install-text p { margin: 4px 0 12px; color: rgba(255, 255, 255, 0.76); font-size: 0.88rem; line-height: 1.45; }
.install-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.install-link { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0 10px; padding: 7px 16px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 999px; background: rgba(216, 180, 106, 0.1); color: #f6e3ab; font: 600 0.85rem var(--sans); cursor: pointer; transition: background 0.16s ease; }
.install-link:hover { background: rgba(216, 180, 106, 0.22); }
.install-link:focus-visible { outline: 2px solid #d8b46a; outline-offset: 2px; }
.install-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.push-row dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.push-row #push-state { color: var(--ink-3, rgba(255, 255, 255, 0.6)); }
/* Con la aplicación instalada, la página respeta la barra de gestos y el borde del teléfono. */
@media (display-mode: standalone) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .install-link { display: none; }
}
@media (max-width: 640px) {
  .install-card { left: 12px; right: 12px; bottom: 88px; width: auto; }
}
@media print { .install-card { display: none; } }

/* ---------- Explorar por modelos, vitrina y seguidores (modelos.js) ---------- */

.explore-tabs { display: inline-flex; gap: 4px; margin: 0 0 26px; padding: 4px; border: 1px solid var(--veil-line); border-radius: 999px; background: rgba(12, 3, 7, 0.45); }
.explore-tabs a { padding: 8px 22px; border-radius: 999px; color: var(--soft); font-weight: 600; font-size: 0.92rem; }
.explore-tabs a:hover { color: var(--white); text-decoration: none; }
.explore-tabs a[aria-current="page"] { background: linear-gradient(180deg, rgba(216, 180, 106, 0.28), rgba(216, 180, 106, 0.12)); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.5); }

.initial { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, var(--red-deep), var(--wine)); color: var(--gold-bright); font-family: var(--serif); font-size: 3rem; font-style: italic; }

/* La modelo destacada. */
.spot { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center; margin-bottom: 52px; padding: 22px; border: 1px solid rgba(216, 180, 106, 0.38); border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.spot-photo { display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 18px; background: var(--wine); }
.spot-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.spot-photo:hover img { transform: scale(1.03); }
.spot-body { min-width: 0; }
.spot-body .eyebrow { margin-bottom: 8px; color: var(--gold-bright); }
.spot-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
.spot-meta { margin-top: 10px; color: var(--soft); font-size: 0.95rem; }
.spot-bio { margin-top: 10px; color: rgba(255, 255, 255, 0.9); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.spot-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.spot-strip a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--wine); }
.spot-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.spot-strip a:hover img { transform: scale(1.06); }
.spot-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 3, 10, 0.68); color: var(--gold-bright); font-family: var(--serif); font-size: 1.25rem; }

/* Seguir. */
.btn-follow { gap: 8px; border-color: rgba(216, 180, 106, 0.65); background: rgba(216, 180, 106, 0.08); color: var(--gold-bright); }
.btn-follow .glyph { width: 17px; height: 17px; }
.btn-follow:hover { background: rgba(216, 180, 106, 0.18); text-decoration: none; }
.btn-follow.is-on { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a0810; }
.btn-follow.is-on .glyph { fill: currentColor; }

/* Filas de modelos. */
.mtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-bottom: 46px; }
.mtile { display: grid; gap: 3px; color: var(--white); }
.mtile:hover { text-decoration: none; }
.mtile-img { aspect-ratio: 4 / 5; margin-bottom: 8px; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--wine); transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.mtile:hover .mtile-img { border-color: rgba(216, 180, 106, 0.7); transform: translateY(-3px); }
.mtile-img img { width: 100%; height: 100%; object-fit: cover; }
.mtile strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.mtile small { color: var(--soft); font-size: 0.82rem; }
.mtile .mtile-rep { color: var(--gold); }
.mtile-ok .spark { font-size: 0.8em; }

/* La vitrina de una modelo: ella a la izquierda, sus fotos y su catálogo a la derecha. */
.vitrina { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 30px; align-items: start; }
.vitrina-side { position: sticky; top: 92px; display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(216, 180, 106, 0.3); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.28); }
.vitrina-photo { aspect-ratio: 4 / 5; margin-bottom: 6px; overflow: hidden; border-radius: 16px; background: var(--wine); }
.vitrina-photo img { width: 100%; height: 100%; object-fit: cover; }
.vitrina-side h1 { font-size: 1.7rem; line-height: 1.15; overflow-wrap: anywhere; }
.vitrina-side .handle { color: var(--soft); font-size: 0.9rem; }
.vitrina-side .bio { margin-top: 4px; color: rgba(255, 255, 255, 0.9); white-space: pre-wrap; font-size: 0.95rem; }
.vitrina-fans { display: flex; align-items: center; gap: 7px; color: var(--gold-bright); font-size: 0.92rem; font-weight: 600; }
.vitrina-fans .glyph { width: 16px; height: 16px; }
.vitrina-actions { display: grid; gap: 8px; margin-top: 8px; }
.vitrina-actions .btn { justify-content: center; text-align: center; }
.vitrina-side > .link { justify-self: start; padding: 0; color: var(--soft); font-size: 0.82rem; }
.vitrina-main { min-width: 0; }
.vitrina-main .notice { margin-bottom: 22px; }
.section-sm { margin-bottom: 14px; }
.section-sm h2 { font-size: 1.35rem; }
.notice-ok { border-color: rgba(95, 214, 168, 0.4); background: rgba(31, 170, 122, 0.12); }
.vmeter { flex-basis: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.vmeter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }

/* Sus fotos. */
.gstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 10px; }
.gphoto { position: relative; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--wine); }
.gphoto > button[data-zoom] { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.gphoto:hover img { transform: scale(1.05); }
.gadd { display: grid; place-items: center; align-content: center; gap: 4px; border: 1px dashed rgba(216, 180, 106, 0.6); background: rgba(216, 180, 106, 0.06); color: var(--gold-bright); cursor: pointer; }
.gadd .glyph { width: 22px; height: 22px; }
.gadd small { font-size: 0.74rem; }
.vitrina-main > .hint { margin: 0 0 30px; color: var(--soft); }
.gstrip + .section-head { margin-top: 30px; }

/* El catálogo que se desliza. */
.rail { display: flex; gap: 18px; padding: 4px 2px 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(216, 180, 106, 0.5) transparent; overscroll-behavior-x: contain; }
.rail > .card { flex: 0 0 clamp(170px, 31%, 250px); scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 50%; background: rgba(216, 180, 106, 0.08); color: var(--gold-bright); cursor: pointer; }
.rail-nav button:hover { background: rgba(216, 180, 106, 0.2); }
.rail-nav .glyph { width: 16px; height: 16px; }
.rail-nav [data-rail="-1"] .glyph { transform: rotate(180deg); }
.rail-all { margin: 6px 0 36px; text-align: center; }

.worn { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 2px 10px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 999px; background: rgba(18, 3, 10, 0.7); color: var(--gold-bright); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(10, 2, 5, 0.9); cursor: zoom-out; animation: rise 180ms var(--ease-out) backwards; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--shadow); }

/* Estudio de publicación: la portada puesta y la prenda sola. */
.s-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; cursor: pointer; }
.s-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.slot figcaption.plain { background: rgba(12, 3, 7, 0.78); }
.empty-slot small { display: block; margin-top: 6px; padding: 0 6px; color: var(--gold-bright); font-size: 0.68rem; line-height: 1.25; }

/* Vitrinas por aprobar (panel de administración). */
.queue-listing { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--card-line, rgba(255, 255, 255, 0.11)); }
.queue-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.queue-photos button { position: relative; width: 92px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; overflow: hidden; background: var(--wine); cursor: zoom-in; }
.queue-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.queue-photos small { position: absolute; left: 4px; bottom: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(12, 3, 7, 0.8); color: var(--white); font-size: 0.66rem; }

@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .vitrina { grid-template-columns: 1fr; gap: 22px; }
  .vitrina-side { position: static; grid-template-columns: 110px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .vitrina-photo { grid-row: span 5; margin-bottom: 0; }
  .vitrina-side h1 { font-size: 1.4rem; }
  .vitrina-side .bio, .vitrina-actions, .vitrina-side > .link { grid-column: 1 / -1; }
  .vitrina-actions { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .rail > .card { flex-basis: 62%; }
  .rail-nav { display: none; }
  .mtiles { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
}

.empty-slot { align-content: center; }

.demo-tag { display: inline-block; padding: 2px 10px; border: 1px dashed rgba(255, 255, 255, 0.5); border-radius: 999px; color: var(--soft); font: 600 0.68rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }

/* ---------- Explorar: filtros, resultados y paneles (explorar.js) ---------- */

main.wrap:has(.xp) { max-width: 1480px; }
.xp { display: grid; grid-template-columns: 264px minmax(0, 1fr) 286px; gap: 24px; align-items: start; }
.xp-filters, .xp-side { position: sticky; top: 88px; display: grid; gap: 16px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(216, 180, 106, 0.4) transparent; overscroll-behavior: contain; }
.xp-main { min-width: 0; }
.xp-panel { padding: 16px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.24); backdrop-filter: blur(6px); }
.xp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.xp-head h3 { display: flex; align-items: center; gap: 8px; font: 600 0.78rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.xp-head svg, .xp-open svg, .xp-views svg, .xp-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp-head small { color: var(--soft); font-size: 0.74rem; }
.xp-head .link { padding: 0; color: var(--rose); font-size: 0.8rem; }

/* Filtros. */
.xp-search { position: relative; display: flex; align-items: center; margin: 0 0 14px; color: var(--gold); }
.xp-search svg { position: absolute; left: 13px; pointer-events: none; }
.xp-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: rgba(8, 2, 5, 0.45); color: var(--white); font: 400 0.92rem var(--sans); }
.xp-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.xp-search input:focus, .xp-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.18); }
.xp-field { display: grid; gap: 6px; margin: 0 0 14px; }
.xp-field > span, .xp-label { color: var(--soft); font: 600 0.72rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.xp-field output { color: var(--gold-bright); font-family: ui-monospace, Consolas, monospace; letter-spacing: 0; }
.xp-field select { appearance: none; width: 100%; padding: 10px 34px 10px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: rgba(8, 2, 5, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d8b46a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--white); font: 400 0.92rem var(--sans); }
.xp-field option { color: #23090d; }
.xp-field input[type="range"] { width: 100%; accent-color: var(--gold); }
.xp-switches { display: grid; gap: 9px; margin: 2px 0 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.xp-switch { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.9); font-size: 0.88rem; cursor: pointer; }
.xp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.xp-switch i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background 180ms ease; }
.xp-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform 180ms var(--ease-out); }
.xp-switch input:checked + i { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.xp-switch input:checked + i::after { transform: translateX(14px); }
.xp-switch input:focus-visible + i { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.xp-label { margin-bottom: 8px; }
.xp-group { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.xp-group summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; color: var(--white); font-weight: 600; font-size: 0.9rem; cursor: pointer; list-style: none; }
.xp-group summary::-webkit-details-marker { display: none; }
.xp-group summary::after { content: '+'; color: var(--gold); font-size: 1.1rem; line-height: 1; }
.xp-group[open] summary::after { content: '–'; }
.xp-picked { margin-left: auto; margin-right: 8px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: #23090d; font: 700 0.7rem var(--sans); text-align: center; }
.xp-group .filter-tags { padding-bottom: 12px; }
.xp .filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.xp .tag-toggle { padding: 4px 10px; font-size: 0.8rem; }
.xp .tag-toggle[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, #c1121f, #8f0a1a); color: #fff; box-shadow: 0 6px 16px rgba(193, 18, 31, 0.34); }
.xp .tag-toggle[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }

/* Barra de resultados. */
.xp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.xp-open { display: none; gap: 8px; }
.xp-open .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #23090d; font: 700 0.72rem var(--sans); }
.xp-count { flex: 1; min-width: 140px; color: var(--soft); font-size: 0.92rem; }
.xp-count strong { color: var(--white); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.xp-views { display: inline-flex; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: rgba(8, 2, 5, 0.4); }
.xp-views button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--soft); cursor: pointer; }
.xp-views button[aria-pressed="true"] { background: rgba(216, 180, 106, 0.2); color: var(--gold-bright); }
.xp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.xp-chips:empty { display: none; }
.xp-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 11px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 999px; background: rgba(216, 180, 106, 0.1); color: var(--gold-bright); font: 500 0.8rem var(--sans); cursor: pointer; }
.xp-chips button span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 0.9rem; line-height: 1; }
.xp-chips button:hover span { background: var(--rose); color: #23090d; }
.xp .spot { margin-bottom: 26px; }

/* Fichas de modelo. */
.xp-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.xp-results > .empty { grid-column: 1 / -1; }
.mcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease; }
.mcard:hover { transform: translateY(-3px); border-color: rgba(216, 180, 106, 0.6); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); }
.mcard-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wine); color: var(--white); }
.mcard-photo:hover { text-decoration: none; }
.mcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.mcard:hover .mcard-photo img { transform: scale(1.05); }
.mcard-photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(12, 3, 7, 0.88)); pointer-events: none; }
.mcard-flags { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.mflag { padding: 2px 9px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 999px; background: rgba(18, 3, 10, 0.72); color: var(--gold-bright); font: 600 0.68rem var(--sans); letter-spacing: 0.04em; }
.mflag-new { border-color: transparent; background: var(--red); color: var(--white); }
.mcard-name { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: grid; }
.mcard-name strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.mcard-name small { color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; }
.mcard-body { display: grid; gap: 9px; padding: 12px; }
.mcard-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--soft); font-size: 0.78rem; }
.mcard-stats span:first-child { color: var(--gold); }
.mcard-price { color: var(--soft); font-size: 0.82rem; }
.mcard-price strong { color: var(--rose); font-size: 1.05rem; }
.mcard-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mcard-tags .htag { padding: 2px 8px; font-size: 0.72rem; }
.mcard-pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mcard-pieces a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--wine); }
.mcard-pieces img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.mcard-pieces a:hover img { transform: scale(1.08); }
.mcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mcard-actions .btn { justify-content: center; padding: 7px 8px; font-size: 0.82rem; }
.mcard-actions > :only-child { grid-column: 1 / -1; }

/* En lista: la foto a un lado y los datos al otro. */
.xp-results.is-list { grid-template-columns: 1fr; gap: 12px; }
.is-list .mcard { flex-direction: row; }
.is-list .mcard-photo { flex: 0 0 132px; aspect-ratio: auto; min-height: 164px; }
.is-list .mcard-body { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 16px; }
.is-list .mcard-stats, .is-list .mcard-price, .is-list .mcard-tags { grid-column: 1; }
.is-list .mcard-pieces { grid-column: 2; grid-row: 1 / span 3; width: 198px; align-self: center; }
.is-list .mcard-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 160px)); }

/* Paneles de la derecha. */
.xp-stats { display: grid; gap: 8px; }
.xp-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(8, 2, 5, 0.35); }
.xp-stats strong { color: var(--gold-bright); font: 600 1.5rem ui-monospace, Consolas, monospace; }
.xp-stats span { color: var(--soft); font-size: 0.8rem; text-align: right; }
.xp-bars { display: grid; gap: 6px; }
.xp-bars button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 11px; border: 1px solid transparent; border-radius: 10px; background: rgba(8, 2, 5, 0.3); color: var(--white); font: 500 0.84rem var(--sans); text-align: left; cursor: pointer; overflow: hidden; }
.xp-bars button:hover { border-color: rgba(216, 180, 106, 0.4); }
.xp-bars button[aria-pressed="true"] { border-color: var(--gold); background: rgba(216, 180, 106, 0.14); }
.xp-bars b { color: var(--gold-bright); font: 600 0.8rem ui-monospace, Consolas, monospace; }
.xp-bars i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.xp-rank { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.xp-rank a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; color: var(--white); }
.xp-rank a:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.xp-pos { width: 18px; color: var(--gold); font: italic 600 1.05rem var(--serif); text-align: center; }
.xp-face { flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; border: 1px solid rgba(216, 180, 106, 0.55); background: var(--wine); }
.xp-face img { width: 100%; height: 100%; object-fit: cover; }
.xp-face .initial { font-size: 1.1rem; }
.xp-who { display: grid; min-width: 0; }
.xp-who strong { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-who small { color: var(--soft); font-size: 0.76rem; }
.xp-latest { display: grid; gap: 6px; }
.xp-latest a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px; border-radius: 12px; color: var(--white); }
.xp-latest a:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.xp-latest img { width: 42px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--wine); }
.xp-latest span { display: grid; min-width: 0; }
.xp-latest strong { font-size: 0.82rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xp-latest small { color: var(--soft); font-size: 0.74rem; }
.xp-latest b { color: var(--rose); font-size: 0.86rem; }
.xp-safe ul { display: grid; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.88); font-size: 0.84rem; }
.xp-safe li { position: relative; padding-left: 18px; }
.xp-safe li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.75rem; top: 2px; }
.xp-safe .link { padding: 0; color: var(--rose); font-size: 0.84rem; }

@media (max-width: 1240px) {
  .xp { grid-template-columns: 250px minmax(0, 1fr); }
  .xp-side { position: static; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
  .xp { grid-template-columns: 1fr; gap: 18px; }
  .xp-filters { position: static; display: none; max-height: none; overflow: visible; }
  .xp-filters.is-open { display: grid; }
  .xp-open { display: inline-flex; }
  .xp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mcard-body { padding: 10px; }
  .mcard-actions { grid-template-columns: 1fr; }
  .is-list .mcard-photo { flex-basis: 104px; }
  .is-list .mcard-body { grid-template-columns: 1fr; }
  .is-list .mcard-pieces { display: none; }
  .xp-main { order: -1; }
  .xp-filters { order: -2; }
}

/* ====================================================================================
   «Volver» en perfiles y prendas.
   ==================================================================================== */
.backbar { margin: -6px 0 16px; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--white); font: 600 0.9rem var(--sans); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
.btn-back .glyph { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.btn-back:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.13); }
.btn-back:hover .glyph { transform: translateX(-4px); }
.btn-back:active { transform: scale(0.97); }
.btn-back:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ====================================================================================
   Mensajes: la bandeja, la conversación y la ficha en una sola pantalla.
   ==================================================================================== */
main.wrap:has(.msg) { max-width: 1480px; }
.msg {
  --m-line: rgba(255, 255, 255, 0.1); --m-ink-2: rgba(255, 255, 255, 0.76); --m-ink-3: rgba(255, 255, 255, 0.54);
  --m-gold: #d8b46a; --m-gold-bright: #f6e3ab; --m-ok: #5fd6a8;
  position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--m-top, 112px) - 16px); min-height: 480px; overflow: hidden;
  border: 1px solid rgba(216, 180, 106, 0.26); border-radius: 24px; color: var(--white);
  background: linear-gradient(180deg, rgba(50, 17, 27, 0.94), rgba(24, 7, 13, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 70px rgba(0, 0, 0, 0.45);
}
.msg.info-open { grid-template-columns: 340px minmax(0, 1fr) 316px; }
.msg [hidden] { display: none !important; }
.msg-rows, .msg-body, .msg-info { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }

.msg-tool { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--m-ink-2); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.msg-tool .glyph { width: 18px; height: 18px; }
.msg-tool:hover, .msg-tool[aria-expanded='true'] { background: rgba(255, 255, 255, 0.1); color: var(--white); text-decoration: none; }
.msg-tool[aria-expanded='true'] { color: var(--m-gold-bright); }
.msg-tool:active { transform: scale(0.92); }
.msg-tool:focus-visible, .msg-send:focus-visible, .msg-tabs button:focus-visible, .msg-row:focus-visible { outline: 2px solid var(--m-gold-bright); outline-offset: 2px; }

/* ---- bandeja ---- */
.msg-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--m-line); background: rgba(0, 0, 0, 0.18); }
.msg-list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 10px 18px; }
.msg-list-head h1 { font-size: 1.6rem; font-style: italic; }
.msg-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 14px; padding: 0 12px; border: 1px solid var(--m-line); border-radius: 12px; background: rgba(0, 0, 0, 0.28); color: var(--m-ink-3); transition: border-color 160ms ease, box-shadow 160ms ease; }
.msg-search .glyph { flex: none; width: 17px; height: 17px; }
.msg-search:focus-within { border-color: var(--m-gold); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.16); color: var(--m-gold-bright); }
.msg-search input, .msg-find input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--white); font: inherit; font-size: 0.92rem; }
.msg-search input::placeholder, .msg-find input::placeholder, .msg-write textarea::placeholder { color: var(--m-ink-3); }
.msg-tabs { display: flex; gap: 4px; margin: 12px 14px 8px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.msg-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 7px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--m-ink-2); font: 600 0.8rem var(--sans); white-space: nowrap; cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.msg-tabs button b { min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.68rem; line-height: 18px; }
.msg-tabs button:hover { color: var(--white); }
.msg-tabs button[aria-selected='true'] { background: linear-gradient(180deg, rgba(216, 180, 106, 0.26), rgba(216, 180, 106, 0.1)); color: var(--m-gold-bright); box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.4); }
.msg-rows { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; }
.msg-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 14px; color: var(--white); transition: background-color 160ms ease; }
.msg-row:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.msg-row.is-active { background: linear-gradient(90deg, rgba(193, 18, 31, 0.36), rgba(193, 18, 31, 0.08)); box-shadow: inset 3px 0 0 var(--rose); }
.msg-ava { position: relative; display: inline-flex; flex: none; }
.msg-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border: 2px solid #26090f; border-radius: 50%; background: #3ddc84; }
.msg-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: #3ddc84; animation: ping 2.2s var(--ease-out) infinite; }
.msg-row-mid { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msg-row-mid strong { overflow: hidden; font-size: 0.95rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.msg-preview { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--m-ink-3); font-size: 0.85rem; white-space: nowrap; }
.msg-preview > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.msg-you { flex: none; }
.msg-row.is-unread .msg-preview { color: var(--white); font-weight: 600; }
.msg-row-end { display: grid; justify-items: end; align-self: start; gap: 5px; padding-top: 2px; }
.msg-row-end time { color: var(--m-ink-3); font-size: 0.72rem; white-space: nowrap; }
.msg-row.is-unread .msg-row-end time { color: var(--rose); font-weight: 600; }
.msg-ticks { display: inline-flex; flex: none; color: var(--m-ink-3); }
.msg-ticks .glyph { width: 15px; height: 15px; }
.msg-ticks.is-read { color: var(--m-gold-bright); }
.msg-list-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--m-line); color: var(--m-ink-3); font-size: 0.74rem; }
.msg-list-foot .glyph { flex: none; width: 14px; height: 14px; }
.msg-none { display: grid; justify-items: center; gap: 10px; padding: 34px 18px; text-align: center; color: var(--m-ink-2); font-size: 0.9rem; }
.msg-none h3 { color: var(--white); font-size: 1.15rem; font-style: italic; }
.msg-none-sm { padding: 26px 18px; color: var(--m-ink-3); }

/* ---- conversación ---- */
.msg-thread { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(193, 18, 31, 0.13), transparent 62%); }
.msg-head { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 16px; border-bottom: 1px solid var(--m-line); background: rgba(255, 255, 255, 0.035); }
.msg-back { display: none; margin-left: -8px; }
.msg-who { flex: 1; min-width: 0; display: grid; }
.msg-name { overflow: hidden; color: var(--white); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.msg-status { min-height: 1.15em; color: var(--m-ink-3); font-size: 0.78rem; line-height: 1.15; }
.msg-status.is-online { color: var(--m-ok); }
.msg-status.is-typing { color: var(--m-gold-bright); font-style: italic; }
.msg-head-tools { display: flex; gap: 2px; }
.msg-find { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--m-line); background: rgba(0, 0, 0, 0.26); color: var(--m-ink-3); animation: panel-in 180ms var(--ease-out); }
.msg-find > .glyph { flex: none; width: 17px; height: 17px; }
.msg-find-count { color: var(--m-ink-2); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg-rule { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 16px; border-bottom: 1px solid rgba(216, 180, 106, 0.22); background: linear-gradient(90deg, rgba(216, 180, 106, 0.15), rgba(216, 180, 106, 0.03)); color: #f0dcae; font-size: 0.78rem; line-height: 1.45; }
.msg-rule .glyph { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.msg-rule strong { color: var(--m-gold-bright); }
.msg-rule a { color: inherit; text-decoration: underline; white-space: nowrap; }

.msg-stage { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.msg-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 14px 20px; outline: 0; }
.msg-body > :first-child { margin-top: auto; }
.msg-start { margin: auto; color: var(--m-ink-2); font-family: var(--serif); font-size: 1.1rem; font-style: italic; text-align: center; }
.msg-day { align-self: center; margin: 14px 0 8px; }
.msg-day span { display: inline-block; padding: 4px 12px; border: 1px solid var(--m-line); border-radius: 999px; background: rgba(0, 0, 0, 0.32); color: var(--m-ink-2); font-size: 0.72rem; letter-spacing: 0.03em; }
.msg-day span::first-letter { text-transform: uppercase; }
.msg-bubble { align-self: flex-start; max-width: min(72%, 560px); padding: 8px 12px 7px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px 18px 18px 6px; background: rgba(255, 255, 255, 0.09); font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg-bubble.is-first { margin-top: 8px; border-top-left-radius: 18px; }
.msg-bubble.is-last { border-bottom-left-radius: 4px; }
.msg-bubble.mine { align-self: flex-end; border-color: transparent; border-radius: 18px 6px 6px 18px; background: linear-gradient(135deg, #d0182a, var(--red-deep)); box-shadow: 0 6px 18px rgba(193, 18, 31, 0.26); }
.msg-bubble.mine.is-first { border-top-right-radius: 18px; }
.msg-bubble.mine.is-last { border-bottom-right-radius: 4px; }
.msg-bubble.is-new { animation: msg-in 260ms var(--ease-out) backwards; transform-origin: 0 100%; }
.msg-bubble.mine.is-new { transform-origin: 100% 100%; }
.bubble-text { white-space: pre-wrap; }
.bubble-text mark { padding: 0 1px; border-radius: 3px; background: rgba(246, 227, 171, 0.34); color: inherit; }
.bubble-text mark.is-current { background: var(--m-gold-bright); color: #2a0810; }
.msg-meta { display: none; float: right; align-items: center; gap: 4px; margin: 7px 0 -1px 12px; font-size: 0.68rem; line-height: 1; opacity: 0.78; }
.msg-bubble.is-last .msg-meta { display: inline-flex; }
.msg-bubble.mine .msg-ticks { color: rgba(255, 255, 255, 0.7); }
.msg-bubble.mine .msg-ticks.is-read { color: var(--m-gold-bright); }
.msg-flag { align-self: flex-start; max-width: min(72%, 560px); margin: 2px 0 4px; padding: 8px 12px; border-left: 3px solid var(--m-gold); border-radius: 4px 10px 10px 4px; background: rgba(216, 180, 106, 0.14); color: #f0dcae; font-size: 0.8rem; line-height: 1.45; }
.msg-flag.mine { align-self: flex-end; border-left: 0; border-right: 3px solid var(--m-gold); border-radius: 10px 4px 4px 10px; }
.msg-typing { align-self: flex-start; display: inline-flex; gap: 4px; margin-top: 8px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px 18px 18px 4px; background: rgba(255, 255, 255, 0.09); animation: msg-in 220ms var(--ease-out) backwards; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--m-gold-bright); animation: msg-dots 1.1s ease-in-out infinite; }
.msg-typing i:nth-child(2) { animation-delay: 150ms; }
.msg-typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.94); } }
@keyframes msg-dots { 0%, 60%, 100% { opacity: 0.4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes msg-fly { 50% { transform: translate(14px, -14px); opacity: 0; } 51% { transform: translate(-14px, 14px); opacity: 0; } }

.msg-jump { position: absolute; right: 18px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 50%; background: #2a0d16; color: var(--m-gold-bright); cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); animation: msg-in 200ms var(--ease-out); transition: transform 160ms var(--ease-out); }
.msg-jump:hover { transform: translateY(2px); }
.msg-jump .glyph { width: 18px; height: 18px; }
.msg-jump b { position: absolute; top: -6px; right: -6px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 0.7rem; line-height: 20px; }

.msg-composer { margin: 0; padding: 10px 14px 8px; border-top: 1px solid var(--m-line); background: rgba(0, 0, 0, 0.24); }
.msg-write { display: flex; align-items: flex-end; gap: 4px; padding: 5px 6px; border: 1px solid var(--m-line); border-radius: 24px; background: rgba(0, 0, 0, 0.32); transition: border-color 160ms ease, box-shadow 160ms ease; }
.msg-write:focus-within { border-color: var(--m-gold); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.14); }
.msg-write textarea { flex: 1; min-width: 0; height: 38px; max-height: 150px; padding: 8px 6px; border: 0; outline: 0; background: transparent; color: var(--white); font: inherit; font-size: 0.95rem; line-height: 1.45; resize: none; box-shadow: none; }
.msg-send { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: linear-gradient(135deg, #d0182a, var(--red-deep)); color: var(--white); cursor: pointer; box-shadow: var(--glow); transition: transform 180ms var(--ease-out), opacity 160ms ease, box-shadow 160ms ease; }
.msg-send .glyph { width: 18px; height: 18px; }
.msg-send:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.msg-send:not(:disabled):hover { transform: scale(1.08) rotate(-8deg); }
.msg-send:not(:disabled):active { transform: scale(0.94); }
.msg-send.is-sending .glyph { animation: msg-fly 520ms var(--ease-in-out); }
.msg-hint { display: flex; justify-content: space-between; gap: 10px; min-height: 1em; margin: 6px 10px 0; color: var(--m-ink-3); font-size: 0.7rem; }
.msg-hint #msg-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.msg-hint #msg-count.is-near { color: var(--rose); font-weight: 600; }
.msg-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; animation: rise 180ms var(--ease-out) backwards; }
.msg-quick button { padding: 6px 12px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 999px; background: rgba(216, 180, 106, 0.08); color: var(--m-gold-bright); font: 500 0.82rem var(--sans); cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.msg-quick button:hover { background: rgba(216, 180, 106, 0.2); transform: translateY(-1px); }
.msg-emoji { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 2px; width: fit-content; max-width: min(100%, 470px); margin-bottom: 8px; padding: 6px; border: 1px solid var(--m-line); border-radius: 14px; background: rgba(0, 0, 0, 0.32); animation: rise 180ms var(--ease-out) backwards; }
.msg-emoji button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.msg-emoji button:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.2); }
.msg-blocked { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: var(--m-ink-2); font-size: 0.9rem; text-align: center; }

.msg-blank { align-items: center; justify-content: center; padding: 30px; text-align: center; }
.msg-blank-in { display: grid; justify-items: center; gap: 10px; max-width: 390px; }
.msg-blank-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 4px; border: 1px solid rgba(216, 180, 106, 0.42); border-radius: 50%; background: rgba(216, 180, 106, 0.08); color: var(--m-gold-bright); box-shadow: 0 0 40px rgba(216, 180, 106, 0.16); }
.msg-blank-icon .glyph { width: 30px; height: 30px; }
.msg-blank h2 { font-size: 1.55rem; font-style: italic; }
.msg-blank p { color: var(--m-ink-2); font-size: 0.92rem; }
.msg-blank ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; text-align: left; }
.msg-blank li { display: flex; align-items: center; gap: 9px; color: var(--m-ink-2); font-size: 0.84rem; }
.msg-blank li .glyph { flex: none; width: 16px; height: 16px; color: var(--m-gold-bright); }

/* ---- ficha ---- */
.msg-info { display: none; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 14px; border-left: 1px solid var(--m-line); background: rgba(0, 0, 0, 0.18); }
.msg.info-open .msg-info { display: flex; }
.msg-info-close { display: none; align-self: flex-end; margin: -6px -6px -8px 0; }
.msg-card { padding: 14px; border: 1px solid var(--m-line); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); }
.msg-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--m-ink-2); font: 600 0.74rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.msg-card h3 a { color: var(--m-gold-bright); font-size: 0.76rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.msg-profile { display: grid; justify-items: center; gap: 6px; text-align: center; }
.msg-profile .avatar.lg { width: 84px; height: 84px; border-width: 2px; font-size: 2.1rem; box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.38), 0 0 30px rgba(193, 18, 31, 0.4); }
.msg-profile .msg-dot { right: 5px; bottom: 5px; width: 15px; height: 15px; }
.msg-profile h2 { font-size: 1.25rem; }
.msg-handle { color: var(--m-ink-3); font-size: 0.82rem; }
.msg-handle .rep { color: var(--m-ink-2); }
.msg-facts { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 6px; width: 100%; margin: 8px 0 6px; }
.msg-facts span { display: grid; gap: 1px; padding: 8px 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.26); }
.msg-facts b { color: var(--m-gold-bright); font: 600 1.08rem var(--serif); }
.msg-facts small { color: var(--m-ink-3); font-size: 0.66rem; line-height: 1.2; }
.msg-profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.msg-pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.msg-pieces a { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--wine); }
.msg-pieces img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.msg-pieces a:hover img { transform: scale(1.08); }
.msg-pieces b { position: absolute; right: 0; bottom: 0; left: 0; padding: 12px 2px 3px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: var(--white); font-size: 0.66rem; text-align: center; }
.msg-order { display: flex; align-items: center; gap: 10px; margin: 0 -6px; padding: 6px; border-radius: 12px; color: var(--white); transition: background-color 160ms ease; }
.msg-order:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.msg-order img, .msg-order-none { flex: none; width: 42px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--wine); }
.msg-order-none { display: grid; place-items: center; color: var(--m-ink-3); }
.msg-order-none .glyph { width: 18px; height: 18px; }
.msg-order > span { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.msg-order strong { max-width: 100%; overflow: hidden; font-size: 0.86rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.msg-order .state { font-size: 0.66rem; }
.msg-safe h3 { justify-content: flex-start; color: var(--m-gold-bright); }
.msg-safe h3 .glyph { width: 15px; height: 15px; }
.msg-safe ul { display: grid; gap: 7px; margin: 0; padding-left: 16px; color: var(--m-ink-2); font-size: 0.8rem; line-height: 1.45; }
.msg-actions { display: grid; justify-items: start; gap: 8px; font-size: 0.84rem; }
.msg-since { color: var(--m-ink-3); font-size: 0.78rem; }
.msg-actions .report-link { padding: 0; color: var(--m-ink-2); }
.msg-actions .report-link:hover { color: var(--rose); }

@media (max-width: 1240px) {
  .msg, .msg.info-open { grid-template-columns: 300px minmax(0, 1fr); }
  .msg-info { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: min(340px, 100%); background: #1f0910; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55); animation: slide-in 220ms var(--ease-out); }
  .msg-info-close { display: inline-grid; }
}
@media (max-width: 860px) {
  .msg, .msg.info-open { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--m-top, 150px) - 10px); border-radius: 18px; }
  .msg.has-thread .msg-list, .msg:not(.has-thread) .msg-thread { display: none; }
  .msg-list { border-right: 0; }
  .msg-back { display: inline-grid; }
  .msg-body { padding: 12px 12px; }
  .msg-bubble, .msg-flag { max-width: 86%; }
  .msg-keys { display: none; }
  .msg-jump { right: 12px; }
  /* En el teléfono Perla taparía la caja de escribir: se aparta mientras hay un chat abierto. */
  body:has(.msg.has-thread) .perla { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg-bubble.is-new, .msg-typing, .msg-typing i, .msg-dot::after, .msg-send.is-sending .glyph, .msg-jump, .msg-info { animation: none; }
}
.msg-facts b i { font-style: normal; }

/* ====================================================================================
   Botones con vida: un destello de seda los cruza al pasar el cursor (o al tocarlos), dan
   un pequeño salto y sueltan una onda justo donde se tocan. La capa .btn-fx la pone app.js.
   ==================================================================================== */
:where(.btn, .btn-back) { position: relative; }
.btn, .btn-back { transition: transform 240ms cubic-bezier(0.34, 1.45, 0.64, 1), background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, border-color 160ms ease; }
.btn-fx { --fx: rgba(255, 255, 255, 0.42); position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.btn-white > .btn-fx, .btn-ghost > .btn-fx, .btn-danger > .btn-fx { --fx: rgba(193, 18, 31, 0.2); }
.dash .btn-ghost > .btn-fx { --fx: rgba(255, 255, 255, 0.3); }
.btn-follow > .btn-fx, .btn-exclusive > .btn-fx { --fx: rgba(246, 227, 171, 0.5); }
.btn-follow.is-on > .btn-fx { --fx: rgba(255, 255, 255, 0.6); }
.btn-fx::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 38%; background: linear-gradient(100deg, transparent, var(--fx), transparent); transform: skewX(-20deg); }
.btn:active > .btn-fx::before, .btn-back:active > .btn-fx::before { animation: btn-sheen 650ms ease; }
.btn-wave { position: absolute; border-radius: 50%; background: var(--fx); transform: scale(0); animation: btn-wave 600ms ease-out forwards; }
.btn:disabled > .btn-fx { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover > .btn-fx::before, .btn-back:hover > .btn-fx::before { animation: btn-sheen 650ms ease; }
  .btn:not(:disabled):hover, .hero-actions .btn:hover, .btn-back:hover { transform: translateY(-3px) scale(1.03); }
  .btn.btn-block:not(:disabled):hover { transform: translateY(-2px) scale(1.012); }
}
.btn:not(:disabled):active, .hero-actions .btn:active, .btn-back:active { transform: scale(0.96); }
@keyframes btn-sheen { to { left: 130%; } }
@keyframes btn-wave { to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn-fx { display: none; }
  .btn:hover, .btn:active, .hero-actions .btn:hover, .btn-back:hover, .btn-back:active { transform: none; }
}

/* ---- mensajes: «última vez», tiempo de respuesta y cupo ---- */
.msg-status-row { display: flex; flex-wrap: wrap; column-gap: 6px; min-height: 1.15em; font-size: 0.78rem; line-height: 1.15; }
.msg-status-row .msg-status { min-height: 0; }
.msg-reply { color: var(--m-ink-3); }
.msg-status:not(:empty) + .msg-reply:not(:empty)::before { content: '· '; }
.msg-reply-line { display: inline-flex; align-items: center; gap: 6px; color: var(--m-gold-bright); font-size: 0.8rem; }
.msg-reply-line .glyph { width: 14px; height: 14px; }
.msg-tabs { overflow-x: auto; scrollbar-width: none; }
.msg-tabs button { padding: 7px 5px; gap: 5px; font-size: 0.76rem; }
.msg-quota { margin: 8px 6px 2px; }
.msg-quota p { margin: 6px 0 0; color: var(--m-ink-2); font-size: 0.76rem; line-height: 1.45; }
.msg-quota p strong { color: var(--white); font-weight: 600; }
.msg-quota p a { color: var(--m-gold-bright); text-decoration: underline; }
.msg-quota-bar { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.msg-quota-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--m-gold), var(--m-gold-bright)); transition: width 320ms var(--ease-out); }
.msg-quota-bar.is-low i { background: linear-gradient(90deg, var(--red), var(--rose)); }
.msg-spent { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; }
.msg-spent-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid rgba(216, 180, 106, 0.42); border-radius: 50%; background: rgba(216, 180, 106, 0.08); color: var(--m-gold-bright); }
.msg-spent-icon .glyph { width: 19px; height: 19px; }
.msg-spent-text { flex: 1; min-width: 220px; }
.msg-spent-text strong { font-size: 0.95rem; }
.msg-spent-text p { margin-top: 2px; color: var(--m-ink-2); font-size: 0.84rem; line-height: 1.45; }
.msg-spent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-fan { display: grid; gap: 8px; justify-items: start; }
.msg-fan h3 { width: 100%; margin-bottom: 2px; }
.msg-fan .msg-quota-bar { width: 100%; }
.msg-fan-note { color: var(--m-ink-2); font-size: 0.84rem; }
.msg-fan-hint { color: var(--m-ink-3); font-size: 0.74rem; line-height: 1.4; }
.msg-fan .btn .glyph { width: 16px; height: 16px; }

/* ---- mensajes: ocultar la última vez y aviso a la modelo de que puede dar más mensajes ---- */
.msg-list-foot { display: grid; gap: 8px; }
.msg-list-foot p { display: flex; align-items: center; gap: 8px; margin: 0; }
.msg-switch { display: flex; align-items: center; gap: 9px; color: var(--m-ink-2); font-size: 0.8rem; cursor: pointer; }
.msg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.msg-switch i { position: relative; flex: none; width: 32px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background-color 180ms ease; }
.msg-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform 200ms var(--ease-out); }
.msg-switch input:checked + i { background: var(--m-gold); }
.msg-switch input:checked + i::after { transform: translateX(14px); }
.msg-switch input:focus-visible + i { outline: 2px solid var(--m-gold-bright); outline-offset: 2px; }
.msg-grant-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 14px; background: linear-gradient(90deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.05)); animation: rise 220ms var(--ease-out) backwards; }
.msg-grant-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(216, 180, 106, 0.16); color: var(--m-gold-bright); }
.msg-grant-icon .glyph { width: 17px; height: 17px; }
.msg-grant-tip p { flex: 1; min-width: 200px; margin: 0; color: var(--m-ink-2); font-size: 0.84rem; line-height: 1.4; }
.msg-grant-tip p strong { color: var(--white); font-weight: 600; }

/* ====================================================================================
   Tokens y regalos: la bandeja y el regalo dentro del chat, el monedero y la recarga.
   ==================================================================================== */
.tok-mark { width: 16px; height: 16px; color: var(--gold-bright); }
.tok-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 999px; background: rgba(216, 180, 106, 0.1); color: var(--gold-bright); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.nav a.nav-tokens { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 999px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.msg-tool-gift { color: var(--m-gold-bright); }
.msg-gifts { margin-bottom: 10px; padding: 12px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 16px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.12), rgba(0, 0, 0, 0.28)); animation: rise 200ms var(--ease-out) backwards; }
.msg-spent .msg-gifts { flex-basis: 100%; margin: 4px 0 0; }
.msg-gifts header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.msg-gifts header strong { flex: 1; font-size: 0.9rem; }
.msg-gifts header a { color: var(--m-gold-bright); font-size: 0.82rem; text-decoration: underline; }
.msg-gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.msg-gift-grid button { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border: 1px solid var(--m-line); border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: var(--white); font: inherit; cursor: pointer; transition: transform 200ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.msg-gift-grid button:hover { border-color: var(--m-gold); background: rgba(216, 180, 106, 0.14); transform: translateY(-3px); }
.msg-gift-grid button:disabled { opacity: 0.5; cursor: wait; }
.msg-gift-icon { font-size: 1.7rem; line-height: 1.2; }
.msg-gift-grid strong { font-size: 0.8rem; font-weight: 600; text-align: center; }
.msg-gift-grid small { color: var(--m-gold-bright); font-size: 0.72rem; }
.msg-gift-note { margin: 10px 0 0; color: var(--m-ink-3); font-size: 0.74rem; }
.msg-bubble.is-gift, .msg-bubble.mine.is-gift { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 18px; background: linear-gradient(135deg, rgba(216, 180, 106, 0.26), rgba(90, 6, 16, 0.5)); box-shadow: 0 8px 26px rgba(216, 180, 106, 0.16); }
.msg-gift-big { font-size: 2.3rem; line-height: 1; }
.msg-bubble.is-gift.is-new .msg-gift-big { animation: gift-pop 700ms var(--ease-out) backwards; }
.msg-gift-text { display: grid; }
.msg-gift-text small { color: var(--m-gold-bright); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.msg-gift-text strong { font-family: var(--serif); font-size: 1.05rem; }
.msg-gift-text em { color: var(--m-ink-2); font-size: 0.76rem; font-style: normal; }
.msg-bubble.is-gift .msg-meta { align-self: flex-end; float: none; margin: 0 0 0 4px; }
@keyframes gift-pop { 0% { opacity: 0; transform: scale(0.3) rotate(-18deg); } 60% { transform: scale(1.25) rotate(8deg); } }

.tok { --t-line: rgba(255, 255, 255, 0.11); --t-ink-2: rgba(255, 255, 255, 0.76); --t-ink-3: rgba(255, 255, 255, 0.55); display: grid; gap: 18px; max-width: 920px; margin: 0 auto; }
.tok-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tok-head h1 { font-size: 2rem; font-style: italic; }
.tok-head p { color: var(--t-ink-2); }
.tok-balance { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 18px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.04)); }
.tok-balance .tok-mark { width: 24px; height: 24px; }
.tok-balance strong { color: var(--gold-bright); font: 600 1.9rem var(--serif); font-variant-numeric: tabular-nums; }
.tok-balance span { color: var(--t-ink-2); font-size: 0.86rem; }
.tok-card { padding: 20px; border: 1px solid var(--t-line); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.24); }
.tok-card h2 { margin-bottom: 14px; font-size: 1.25rem; font-style: italic; }
.tok-card .hint { margin-top: 12px; color: var(--t-ink-3); font-size: 0.82rem; }
.tok-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tok-pack { position: relative; display: grid; gap: 10px; padding: 22px 16px 16px; border: 1px solid var(--t-line); border-radius: 16px; background: rgba(0, 0, 0, 0.24); text-align: center; transition: transform 220ms var(--ease-out), border-color 160ms ease; }
.tok-pack:hover { border-color: var(--gold); transform: translateY(-3px); }
.tok-bonus { position: absolute; top: -10px; left: 50%; padding: 2px 10px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a0810; font-size: 0.7rem; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
.tok-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.tok-amount .tok-mark { align-self: center; width: 20px; height: 20px; }
.tok-amount strong { color: var(--gold-bright); font: 600 1.7rem var(--serif); }
.tok-amount span { color: var(--t-ink-3); font-size: 0.8rem; }
.tok-price { display: grid; }
.tok-price strong { font-size: 1rem; }
.tok-price small { color: var(--t-ink-3); font-size: 0.76rem; }
.tok-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tok-catalog li { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border: 1px solid var(--t-line); border-radius: 14px; background: rgba(0, 0, 0, 0.2); text-align: center; }
.tok-gift-icon { font-size: 1.8rem; line-height: 1.2; }
.tok-catalog strong { font-size: 0.84rem; }
.tok-catalog small { color: var(--gold-bright); font-size: 0.74rem; }
.tok-steps { display: grid; gap: 6px; margin: 16px 0 0; padding-left: 20px; color: var(--t-ink-2); font-size: 0.9rem; }
.tok-steps strong { color: var(--white); }
.tok-moves { display: grid; margin: 0; padding: 0; list-style: none; }
.tok-moves li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--t-line); font-size: 0.9rem; }
.tok-moves li:first-child { border-top: 0; }
.tok-move-what { flex: 1; min-width: 0; }
.tok-move-what a { color: var(--gold-bright); }
.tok-moves time { color: var(--t-ink-3); font-size: 0.78rem; white-space: nowrap; }
.tok-moves b { min-width: 74px; font-variant-numeric: tabular-nums; text-align: right; }
.tok-moves b.is-in { color: #5fd6a8; }
.tok-moves b.is-out { color: var(--rose); }
.tok-none { color: var(--t-ink-3); font-size: 0.9rem; }
.tok-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tok-figures p { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.24); text-align: center; }
.tok-figures small { color: var(--t-ink-3); font-size: 0.74rem; }
.tok-figures strong { color: var(--gold-bright); font: 600 1.15rem var(--serif); }
@media (max-width: 560px) {
  .tok-figures { grid-template-columns: 1fr; }
  .tok-moves time { display: none; }
}

/* ---- tokens: regalos de la casa, recuadro de saldo, tienda con ofertas e ingresos de la modelo ---- */
.gift-art { width: 100%; height: 100%; color: var(--gold-bright); }
.gift-art .g-fill { fill: var(--rose); stroke: none; }
.msg-gift-icon { width: 38px; height: 38px; font-size: 0; }
.msg-gift-big { flex: none; width: 46px; height: 46px; font-size: 0; }
.tok-gift-icon { width: 40px; height: 40px; font-size: 0; }
.tok-head { display: block; }
.tok-head p { margin-top: 2px; }

.tok-box { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; padding: 20px 24px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 22px; background: linear-gradient(120deg, rgba(216, 180, 106, 0.2), rgba(90, 6, 16, 0.4) 55%, rgba(18, 3, 10, 0.5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(0, 0, 0, 0.3); }
.tok-box-main { display: grid; gap: 2px; }
.tok-box-main small { color: var(--t-ink-2); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tok-box-main p { display: flex; align-items: baseline; gap: 8px; }
.tok-box-main .tok-mark { align-self: center; width: 26px; height: 26px; }
.tok-box-main strong { color: var(--gold-bright); font: 600 2.5rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tok-box-main span { color: var(--t-ink-2); font-size: 0.9rem; }
.tok-box-main em { color: var(--t-ink-2); font-size: 0.84rem; font-style: normal; }
.tok-box-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; gap: 10px; min-width: 280px; margin: 0; }
.tok-box-facts div { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.26); }
.tok-box-facts dt { color: var(--t-ink-3); font-size: 0.72rem; line-height: 1.3; }
.tok-box-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.tok-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); }
.tok-tabs a { flex: 1; padding: 9px 12px; border-radius: 10px; color: var(--t-ink-2); font-size: 0.9rem; font-weight: 600; text-align: center; transition: background-color 180ms ease, color 180ms ease; }
.tok-tabs a:hover { color: var(--white); text-decoration: none; }
.tok-tabs a[aria-current='page'] { background: linear-gradient(180deg, rgba(216, 180, 106, 0.28), rgba(216, 180, 106, 0.1)); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.42); }

.tok-offer { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px dashed rgba(246, 227, 171, 0.6); border-radius: 18px; background: linear-gradient(90deg, rgba(193, 18, 31, 0.4), rgba(216, 180, 106, 0.16)); }
.tok-offer-badge { flex: none; padding: 8px 14px; border-radius: 14px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a0810; font: 700 1.3rem var(--serif); }
.tok-offer strong { font-size: 1.05rem; }
.tok-offer p { color: var(--t-ink-2); font-size: 0.88rem; }
.tok-packs { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); padding-top: 12px; }
.tok-pack { align-content: start; }
.tok-pack.is-featured { border-color: rgba(216, 180, 106, 0.7); background: linear-gradient(180deg, rgba(216, 180, 106, 0.14), rgba(0, 0, 0, 0.24)); }
.tok-tag { position: absolute; top: -11px; left: 50%; padding: 3px 12px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a0810; font-size: 0.7rem; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
.tok-extras { display: grid; gap: 4px; margin: 0; padding: 8px 0; border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); list-style: none; font-size: 0.78rem; }
.tok-extras li { display: flex; justify-content: space-between; gap: 8px; color: var(--t-ink-2); }
.tok-extras b { font-variant-numeric: tabular-nums; }
.tok-extras .is-offer { color: var(--rose); }
.tok-extras .is-total { color: var(--white); font-weight: 600; }
.tok-extras .is-total b { color: var(--gold-bright); }
.tok-save { color: #5fd6a8; font-size: 0.76rem; font-weight: 600; }
.tok-save-none { color: var(--t-ink-3); font-weight: 400; }
.tok-catalog li { transition: border-color 160ms ease, opacity 160ms ease; }
.tok-catalog li.is-on { border-color: rgba(216, 180, 106, 0.6); background: rgba(216, 180, 106, 0.1); }
.tok-catalog em { color: var(--t-ink-3); font-size: 0.72rem; font-style: normal; }

.tok-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tok-tiles p { display: grid; gap: 3px; padding: 16px 18px; border: 1px solid var(--t-line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)); }
.tok-tiles p.is-main { border-color: rgba(216, 180, 106, 0.6); background: linear-gradient(180deg, rgba(216, 180, 106, 0.18), rgba(216, 180, 106, 0.04)); }
.tok-tiles small { color: var(--t-ink-3); font-size: 0.76rem; }
.tok-tiles strong { font: 600 1.55rem var(--serif); font-variant-numeric: tabular-nums; }
.tok-tiles p.is-main strong { color: var(--gold-bright); }
.tok-tiles em { color: var(--t-ink-2); font-size: 0.76rem; font-style: normal; }
.tok-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 170px; padding-bottom: 20px; border-bottom: 1px solid var(--t-line); }
.tok-bar { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 6px; outline: 0; cursor: default; }
.tok-bar > i { display: block; width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; background: var(--gold); transform-origin: bottom; animation: grow-up 420ms var(--ease-out) backwards; transition: background-color 140ms ease; }
.tok-bar:hover > i, .tok-bar:focus-visible > i { background: var(--gold-bright); }
.tok-bar > small { position: absolute; bottom: -18px; color: var(--t-ink-3); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.tok-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; z-index: 3; display: none; gap: 1px; padding: 7px 10px; border: 1px solid var(--t-line); border-radius: 10px; background: #2b111a; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); font-size: 0.74rem; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.tok-bar:hover .tok-tip, .tok-bar:focus-visible .tok-tip { display: grid; }
.tok-tip b { color: var(--white); }
.tok-tip i { color: var(--t-ink-2); font-style: normal; }
.tok-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tok-rank, .tok-fans { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tok-rank li { display: flex; align-items: center; gap: 12px; }
.tok-rank-icon { flex: none; width: 30px; height: 30px; }
.tok-rank-mid { display: grid; flex: 1; gap: 5px; min-width: 0; }
.tok-rank-mid strong { font-size: 0.86rem; font-weight: 600; }
.tok-meter { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.tok-meter i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.tok-rank b, .tok-fans b { color: var(--gold-bright); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tok-fans { counter-reset: fan; }
.tok-fans li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--t-line); counter-increment: fan; }
.tok-fans li:first-child { border-top: 0; }
.tok-fans li::before { content: counter(fan); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(216, 180, 106, 0.16); color: var(--gold-bright); font-size: 0.74rem; font-weight: 700; }
.tok-fans a { flex: 1; min-width: 0; overflow: hidden; color: var(--white); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tok-reg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.tok-reg-head h2 { flex: 1; margin: 0; }
.tok-filter { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); }
.tok-filter button { padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--t-ink-2); font: 600 0.8rem var(--sans); cursor: pointer; }
.tok-filter button[aria-pressed='true'] { background: rgba(216, 180, 106, 0.2); color: var(--gold-bright); }
.tok-table { overflow-x: auto; }
.tok-table table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tok-table th { padding: 8px 10px; border-bottom: 1px solid var(--t-line); color: var(--t-ink-3); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tok-table td { padding: 9px 10px; border-bottom: 1px solid var(--t-line); white-space: nowrap; }
.tok-table .num { font-variant-numeric: tabular-nums; text-align: right; }
.tok-table time, .tok-dim { color: var(--t-ink-3); }
.tok-table a { color: var(--gold-bright); }
.tok-reg-gift { display: inline-flex; align-items: center; gap: 8px; }
.tok-reg-gift .gift-art { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .tok-box { padding: 16px; }
  .tok-box-facts { grid-template-columns: 1fr; min-width: 0; flex-basis: 100%; }
  .tok-box .btn { width: 100%; }
  .tok-bars { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .tok-bar > i { animation: none; }
}
.tok-pack { display: flex; flex-direction: column; }
.tok-pack .tok-price { margin-top: auto; }
.tok-pack .tok-extras { min-height: 78px; align-content: end; }

/* ---- tokens: barra compacta de saldo y recarga por cantidad libre ---- */
.tok-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px 10px 18px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 999px; background: linear-gradient(90deg, rgba(216, 180, 106, 0.2), rgba(90, 6, 16, 0.42) 60%, rgba(18, 3, 10, 0.5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 34px rgba(0, 0, 0, 0.28); }
.tok-strip-coin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(216, 180, 106, 0.18); }
.tok-strip-coin .tok-mark { width: 20px; height: 20px; }
.tok-strip-main { display: flex; align-items: baseline; gap: 6px; }
.tok-strip-main strong { color: var(--gold-bright); font: 600 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tok-strip-main span { color: var(--t-ink-2); font-size: 0.86rem; }
.tok-strip-facts { display: flex; flex: 1; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0 0 0 16px; border-left: 1px solid rgba(255, 255, 255, 0.16); list-style: none; }
.tok-strip-facts li { display: flex; align-items: baseline; gap: 6px; color: var(--t-ink-2); font-size: 0.84rem; }
.tok-strip-facts b { color: var(--white); font-variant-numeric: tabular-nums; }
.tok-custom-lead { margin: -6px 0 14px; color: var(--t-ink-2); font-size: 0.9rem; }
.tok-custom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tok-custom-input { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1.5px solid rgba(216, 180, 106, 0.5); border-radius: 16px; background: rgba(0, 0, 0, 0.3); transition: border-color 160ms ease, box-shadow 160ms ease; }
.tok-custom-input:focus-within { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.18); }
.tok-custom-input .tok-mark { width: 20px; height: 20px; }
.tok-custom-input input { width: 130px; padding: 4px 0; border: 0; outline: 0; background: transparent; color: var(--gold-bright); font: 600 1.6rem var(--serif); font-variant-numeric: tabular-nums; }
.tok-custom-input span { color: var(--t-ink-3); font-size: 0.84rem; }
.tok-custom-off { display: grid; justify-items: center; padding: 8px 14px; border-radius: 14px; background: rgba(95, 214, 168, 0.12); }
.tok-custom-off b { color: #5fd6a8; font: 700 1.3rem var(--serif); }
.tok-custom-off span { color: var(--t-ink-2); font-size: 0.72rem; }
.tok-custom-price { display: grid; flex: 1; min-width: 150px; }
.tok-custom-price s { color: var(--t-ink-3); font-size: 0.8rem; }
.tok-custom-price strong { font-size: 1.25rem; }
.tok-custom-price small { color: var(--t-ink-3); font-size: 0.76rem; }
.tok-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tok-tiers li { display: grid; justify-items: center; gap: 1px; min-width: 96px; padding: 8px 12px; border: 1px solid var(--t-line); border-radius: 12px; background: rgba(0, 0, 0, 0.22); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 180ms var(--ease-out); }
.tok-tiers li:hover { transform: translateY(-2px); }
.tok-tiers li.is-on { border-color: #5fd6a8; background: rgba(95, 214, 168, 0.12); }
.tok-tiers b { color: #5fd6a8; font-size: 0.95rem; }
.tok-tiers span { color: var(--t-ink-3); font-size: 0.72rem; }
.tok-custom-welcome { margin-top: 12px; color: var(--rose); font-size: 0.84rem; }
.tok-custom .form-error { margin-top: 12px; }
@media (max-width: 640px) {
  .tok-strip { border-radius: 22px; padding: 12px 14px; }
  .tok-strip-facts { flex-basis: 100%; padding-left: 0; border-left: 0; }
  .tok-strip .btn { flex: 1; }
  .tok-custom-row .btn { width: 100%; }
}

/* ---- rangos de la realeza: insignia, escalera y avance ---- */
.rank { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border: 1px solid currentColor; border-radius: 999px; color: #c8b9a0; font-size: 0.74rem; line-height: 1.5; white-space: nowrap; }
.rank .glyph { width: 15px; height: 15px; }
.rank b { font-weight: 600; }
.rank-2 { color: #d9dde6; }
.rank-3 { color: var(--gold); }
.rank-4 { color: var(--gold-bright); background: rgba(216, 180, 106, 0.12); }
.rank-5 { border-color: transparent; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a0810; }
.msg-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.msg-name-row .msg-name { min-width: 0; }
.tok-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tok-ladder li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--t-line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); opacity: 0.55; }
.tok-ladder li.is-done { opacity: 0.85; }
.tok-ladder li.is-now { border-color: rgba(216, 180, 106, 0.7); background: rgba(216, 180, 106, 0.12); opacity: 1; box-shadow: 0 0 26px rgba(216, 180, 106, 0.16); }
.tok-ladder small { color: var(--t-ink-3); font-size: 0.72rem; }
.tok-rank-meter { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.tok-rank-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width 500ms var(--ease-out); }
.tok-rank-note { margin-top: 10px; color: var(--t-ink-2); font-size: 0.9rem; }
.tok-rank-note b { color: var(--gold-bright); }
@media (max-width: 640px) {
  .tok-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ====================================================================================
   Niveles de la realeza: la insignia, el marco sobre la foto de perfil y la tarjeta que
   aparece al pasar el cursor por el nombre.
   ==================================================================================== */
.rk-ins { display: block; width: 100%; height: 100%; overflow: visible; }
.rk-rays { transform-origin: 32px 37px; animation: turn 26s linear infinite; }
.rank { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px 1px 3px; border: 1px solid currentColor; border-radius: 999px; background: rgba(0, 0, 0, 0.26); color: #e0a878; font-size: 0.74rem; line-height: 1.5; white-space: nowrap; }
.rank .rk-ins { width: 20px; height: 20px; }
.rk-ava { position: relative; display: inline-flex; flex: none; padding: 2px; border-radius: 50%; background: linear-gradient(160deg, #f3c7a2, #96552b); }
.rk-ava-2 { background: linear-gradient(160deg, #ffffff, #8792a6); }
.rk-ava-3 { background: linear-gradient(160deg, #fff3c9, #b8862c); box-shadow: 0 0 12px rgba(216, 180, 106, 0.45); }
.rk-ava-4 { background: linear-gradient(160deg, #fff6d6, #c79a34 55%, #7b2a9a); box-shadow: 0 0 14px rgba(216, 180, 106, 0.55); }
.rk-ava-5 { background: conic-gradient(from 0deg, #fffbe6, #e3ac30, #c1121f, #e3ac30, #fffbe6); box-shadow: 0 0 18px rgba(246, 227, 171, 0.7); }
.rk-ava .avatar { border: 2px solid #1d080f; box-shadow: none; }
.rk-pin { position: absolute; right: -7px; bottom: -8px; width: 54%; min-width: 22px; max-width: 46px; aspect-ratio: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.rk-ava-xs .rk-pin { right: -9px; bottom: -9px; }
.msg-profile .rk-ava .avatar.lg { box-shadow: none; }
.msg-ava .rk-ava + .msg-dot { right: auto; left: -1px; }

.rk-hover { position: relative; }
.rk-card { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; display: none; gap: 10px; width: 264px; padding: 16px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 18px; background: linear-gradient(180deg, #3a0f1a, #1d080f); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); color: var(--white); font-size: 0.84rem; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; cursor: default; }
.nav-rk .rk-card { right: 0; left: auto; }
.rk-hover:hover > .rk-card, .rk-hover:focus-within > .rk-card, .rk-hover.is-open > .rk-card { display: grid; animation: panel-in 180ms var(--ease-out); }
.rk-card::before { content: ''; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
.rk-card-top { display: flex; align-items: center; gap: 12px; }
.rk-card-top .rk-ins { flex: none; width: 62px; height: 62px; }
.rk-card-top small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.rk-card-top strong { font: 600 1.35rem var(--serif); color: var(--gold-bright); }
.rk-card-tokens { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.rk-card-tokens .tok-mark { align-self: center; }
.rk-card-tokens b { color: var(--gold-bright); font: 600 1.3rem var(--serif); font-variant-numeric: tabular-nums; }
.rk-card-tokens span { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; }
.rk-card-meter { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.rk-card-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.rk-card-line { color: rgba(255, 255, 255, 0.78); }
.rk-card-line b { color: var(--gold-bright); }
.rk-card-perk { display: grid; gap: 1px; padding: 8px 10px; border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; background: rgba(216, 180, 106, 0.1); }
.rk-card-perk small { color: var(--gold-bright); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.rk-card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rk-card-links a:not(.btn) { color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; text-decoration: underline; }
.nav .rk-card a:not(.btn) { padding: 0; background: none; }
.nav .nav-rk { display: inline-flex; }

.tok-next { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 18px; background: linear-gradient(100deg, rgba(216, 180, 106, 0.2), rgba(90, 6, 16, 0.3)); }
.tok-next-ins { flex: none; width: 84px; height: 84px; animation: rank-float 3.600s ease-in-out infinite alternate; }
.tok-next-text { flex: 1; min-width: 220px; }
.tok-next-text small { color: var(--t-ink-2); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tok-next-text strong { display: block; color: var(--gold-bright); font: 600 1.6rem/1.15 var(--serif); }
.tok-next-text p { margin: 4px 0 10px; color: var(--t-ink-2); font-size: 0.9rem; }
.tok-next-text p b { color: var(--gold-bright); }
.tok-next-text p em { color: var(--white); font-style: normal; font-weight: 600; }
.tok-next .tok-rank-meter { margin-top: 0; }
@keyframes rank-float { from { transform: translateY(-3px) rotate(-2deg); } to { transform: translateY(3px) rotate(2deg); } }
.tok-ladder li { align-content: start; padding: 14px 8px; text-align: center; }
.tok-ladder-ins { width: 58px; height: 58px; }
.tok-ladder strong { font: 600 1rem var(--serif); }
.tok-ladder em { color: var(--t-ink-2); font-size: 0.72rem; font-style: normal; line-height: 1.35; }
.tok-ladder li:not(.is-now):not(.is-done) .tok-ladder-ins { filter: grayscale(0.55); }
.tok-levelup { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 2px; color: var(--gold-bright); font-size: 0.76rem; }
.tok-levelup .rk-ins { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .rk-card { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; }
  .nav-rk .rk-card { right: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-rays, .tok-next-ins { animation: none; }
}

/* ---------- Corazones: lo que sube a una modelo en Explorar ---------- */
.heart-full { width: 1em; height: 1em; flex: none; fill: #ff4d6d; filter: drop-shadow(0 0 5px rgba(255, 77, 109, 0.55)); }
.mhearts { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border: 1px solid rgba(255, 77, 109, 0.55); border-radius: 999px; background: rgba(18, 3, 10, 0.74); color: var(--white); font: 700 0.76rem var(--sans); backdrop-filter: blur(6px); }
.mcard:hover .mhearts .heart-full { animation: heart-beat 700ms var(--ease-out); }
.spot-hearts, .xp-hearts { display: inline-flex; align-items: center; gap: 5px; }
.spot-hearts { color: var(--white); font-weight: 700; }
.vitrina-hearts { display: flex; align-items: baseline; gap: 7px; color: var(--white); font-size: 0.95rem; }
.vitrina-hearts .heart-full { align-self: center; width: 20px; height: 20px; }
.vitrina-hearts strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.hearts-box { display: grid; gap: 12px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid rgba(255, 77, 109, 0.4); border-radius: 18px; background: linear-gradient(135deg, rgba(255, 77, 109, 0.14), rgba(0, 0, 0, 0.28)); }
.hearts-box header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hearts-box header .heart-full { width: 30px; height: 30px; animation: heart-beat 1600ms var(--ease-out) infinite; }
.hearts-box header p { margin: 0; color: var(--soft); }
.hearts-box header strong { color: var(--white); font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.hearts-pos { margin-left: auto !important; padding: 4px 12px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 999px; font-size: 0.84rem; }
.hearts-pos b { color: var(--gold-bright); }
.hearts-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hearts-split div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.hearts-split b { font-size: 1.15rem; }
.hearts-split span { color: var(--soft); font-size: 0.8rem; }
.hearts-box .hint { margin: 0; }
.hearts-how .heart-full, .msg-gift-note .heart-full { vertical-align: -0.12em; }
.hearts-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 77, 109, 0.1); color: var(--soft); font-size: 0.86rem; }
.hearts-note b { color: var(--white); }
.msg-gift-hearts { display: inline-flex; align-items: center; gap: 3px; color: #ff9db0; font-size: 0.72rem; font-style: normal; font-weight: 700; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.28); } 36% { transform: scale(0.96); } 54% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .hearts-box header .heart-full, .mcard:hover .mhearts .heart-full { animation: none; } }
.msg-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--m-line); }
.msg-tip label { font-size: 0.82rem; }
.msg-tip input { width: 96px; padding: 7px 10px; border: 1px solid var(--m-line); border-radius: 10px; background: rgba(0, 0, 0, 0.3); color: var(--white); font: inherit; }
.msg-tip input:focus { border-color: var(--m-gold); outline: none; }
.msg-tip-hearts { display: inline-flex; align-items: center; gap: 3px; min-width: 62px; color: #ff9db0; font-size: 0.82rem; font-weight: 700; }

/* ---------- Recompensas por nivel: regalo exclusivo, bandeja destacada y Salón de la realeza ---------- */
.msg-gift-grid button.is-locked { opacity: 0.62; cursor: not-allowed; }
.msg-gift-grid button.is-locked:hover { border-color: var(--m-line); background: rgba(255, 255, 255, 0.05); transform: none; }
.msg-gift-lock { display: inline-flex; align-items: center; gap: 4px; color: var(--m-gold-bright); font-size: 0.7rem; font-style: normal; font-weight: 700; }
.msg-gift-lock .rk-ins { width: 16px; height: 16px; }
.msg-row.is-royal { box-shadow: inset 3px 0 0 var(--m-gold); background: linear-gradient(90deg, rgba(216, 180, 106, 0.16), transparent 62%); }
.tok-hall { margin-top: 12px; }
.hall { display: grid; gap: 12px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 18px; background: linear-gradient(135deg, rgba(216, 180, 106, 0.12), rgba(0, 0, 0, 0.28)); }
.hall ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hall li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.hall li:first-child { background: rgba(216, 180, 106, 0.16); }
.hall-pos { width: 20px; color: var(--gold-bright); font-family: var(--serif); font-size: 1.1rem; text-align: center; }
.hall-ins { flex: none; width: 38px; height: 38px; }
.hall-ins .rk-ins { width: 100%; height: 100%; }
.hall-who { display: grid; flex: 1; min-width: 0; }
.hall-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-who small { color: var(--soft); font-size: 0.78rem; }
.hall li b { display: inline-flex; align-items: center; gap: 5px; }
.hall .hint { margin: 0; }
.hall .btn { justify-self: start; }

/* ---------- El menú de la modelo ---------- */
.msg-menu-list { display: grid; gap: 6px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.msg-menu-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.msg-menu-what, .menu-what, .tok-menu-what { display: grid; flex: 1; min-width: 0; gap: 1px; }
.msg-menu-what small, .menu-what small, .tok-menu-what small { color: var(--soft); font-size: 0.76rem; }
.msg-menu-what strong { font-size: 0.86rem; }
.msg-menu-list .btn { flex: none; gap: 5px; }
.msg-menu-list .tok-mark, .menu-box .tok-mark { width: 14px; height: 14px; }
.menu-box ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu-box li b { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--gold-bright); }
.tok-menu { display: grid; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.tok-menu li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.tok-menu .xp-switch { flex: 1 1 240px; }
.tok-menu-price { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-bright); }
.tok-menu-price .tok-mark { width: 16px; height: 16px; }
.tok-menu-price input { width: 92px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; background: rgba(0, 0, 0, 0.3); color: var(--white); font: inherit; }
.nav .nav-tokens { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-bright); font-weight: 600; }
.nav .nav-tokens .tok-mark { width: 16px; height: 16px; }

/* ---------- Foto de comprobante de un pedido del menú ---------- */
.msg-photo { display: block; margin: 0 0 6px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: none; cursor: zoom-in; }
.msg-photo img { display: block; width: 220px; max-width: 100%; height: 270px; object-fit: cover; }
.msg-proof-row { display: flex; margin: 2px 0 8px; }
.msg-proof-row.mine { justify-content: flex-end; }
.msg-proof-row small { color: var(--m-ink-3); font-size: 0.74rem; }
.msg-proof-row .btn { gap: 6px; }
.msg-proof-row .btn svg { width: 15px; height: 15px; }

/* ---------- Tokens de cumpleaños ---------- */
.tok-birth { display: grid; gap: 10px; }
.tok-birth p { margin: 0; color: var(--soft); }
.tok-birth p b { color: var(--white); }
.tok-birth-table { display: flex; flex-wrap: wrap; gap: 8px; }
.tok-birth-table span { padding: 4px 12px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 999px; color: var(--gold-bright); font-size: 0.82rem; }
.tok-birth-table b { margin-right: 4px; }
.tok-birth-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--soft); font-size: 0.84rem; cursor: pointer; }
.tok-birth-consent input { margin-top: 3px; }
.tok-birth .btn { justify-self: start; }
.tok-birth-needs { display: grid; gap: 4px; margin: 0; padding: 0; color: var(--soft); font-size: 0.86rem; list-style: none; }
.tok-birth-needs li::before { content: '○'; margin-right: 8px; color: var(--soft); }
.tok-birth-needs li.is-ok { color: var(--white); }
.tok-birth-needs li.is-ok::before { content: '✓'; color: #7be0a4; }

/* ---------- Subastas de cajas ---------- */
.auc { display: grid; gap: 22px; }
.auc-head h1 { margin: 0 0 6px; }
.auc-head p { margin: 0; color: var(--soft); }
.auc-mine { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 18px; background: linear-gradient(135deg, rgba(216, 180, 106, 0.12), rgba(0, 0, 0, 0.28)); }
.auc-mine p { margin: 0; color: var(--soft); }
.auc-mine p strong, .auc-mine p b { color: var(--white); }
.auc-mine .btn { justify-self: start; }
.auc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.auc-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.auc-card { display: grid; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; background: rgba(0, 0, 0, 0.3); color: var(--white); transition: transform 220ms var(--ease-out), border-color 180ms ease; }
.auc-card:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-4px); }
.auc-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--wine); }
.auc-cover img { width: 100%; height: 100%; object-fit: cover; }
.auc-clock { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 999px; background: rgba(18, 3, 10, 0.78); color: var(--gold-bright); font: 700 0.76rem var(--sans); }
.auc-clock .is-soon, time.is-soon { color: #ff8095; }
.auc-card-body { display: grid; gap: 3px; padding: 12px 14px 14px; }
.auc-card-body strong { font-family: var(--serif); font-size: 1.08rem; overflow-wrap: anywhere; }
.auc-card-body small { color: var(--soft); }
.auc-card-bid { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--soft); font-size: 0.82rem; }
.auc-card-bid b { color: var(--gold-bright); font-size: 1.05rem; }
.auc-card-bid .tok-mark, .auc-now .tok-mark { width: 16px; height: 16px; color: var(--gold-bright); }
.auc-rules { padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(0, 0, 0, 0.25); }
.auc-rules h3 { margin: 0 0 8px; }
.auc-rules ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--soft); font-size: 0.9rem; }
.auc-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.auc-main { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; background: var(--wine); aspect-ratio: 4 / 5; cursor: zoom-in; }
.auc-main img { width: 100%; height: 100%; object-fit: cover; }
.auc-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.auc-thumbs button { width: 68px; height: 68px; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: none; cursor: pointer; }
.auc-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.auc-info { display: grid; gap: 12px; }
.auc-info h1 { margin: 0; overflow-wrap: anywhere; }
.auc-info h2 { margin: 10px 0 0; font-size: 1.15rem; }
.auc-box { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 18px; background: linear-gradient(135deg, rgba(216, 180, 106, 0.14), rgba(0, 0, 0, 0.3)); }
.auc-now p { display: flex; align-items: baseline; gap: 8px; margin: 2px 0; }
.auc-now strong { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.auc-now span, .auc-box small { color: var(--soft); }
.auc-ends { display: grid; gap: 2px; margin-left: auto; text-align: right; }
.auc-ends time { color: var(--gold-bright); font: 700 1.3rem var(--sans); }
.auc-bid { display: grid; gap: 8px; }
.auc-bid label { color: var(--soft); font-size: 0.9rem; }
.auc-bid label b { color: var(--white); }
.auc-bid-row { display: flex; gap: 10px; }
.auc-bid-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(0, 0, 0, 0.35); color: var(--white); font: 600 1.1rem var(--sans); }
.auc-bid-row input:focus { border-color: var(--gold); outline: none; }
.auc-bid .hint { margin: 0; }
.auc-state { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: var(--soft); }
.auc-state b { color: var(--white); }
.auc-state.is-ok { background: rgba(123, 224, 164, 0.12); color: var(--white); }
.auc-state.is-gold { background: rgba(216, 180, 106, 0.16); color: var(--gold-bright); }
.auc-claim { display: grid; gap: 12px; }
.auc-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.auc-items li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.auc-items li.is-surprise { border: 1px dashed rgba(216, 180, 106, 0.6); background: rgba(216, 180, 106, 0.1); color: var(--gold-bright); }
.auc-items li.is-surprise em { color: var(--white); font-style: normal; }
.auc-desc { margin: 0; color: var(--soft); white-space: pre-line; }
.auc-bids { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.auc-bids li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--soft); font-size: 0.88rem; }
.auc-bids li.is-mine { background: rgba(216, 180, 106, 0.12); color: var(--white); }
.auc-bids b { color: var(--white); }
.auc-bids time { margin-left: auto; font-size: 0.78rem; }
.auc-bid-ins { flex: none; width: 24px; height: 24px; }
.auc-bid-ins .rk-ins { width: 100%; height: 100%; }
.auc-form { max-width: 640px; }
.auc-pick { margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; }
.auc-pick legend { padding: 0 6px; color: var(--soft); font-size: 0.88rem; }
.auc-pick legend b { color: var(--gold-bright); }
.auc-item { cursor: pointer; }
.auc-item input { position: absolute; opacity: 0; pointer-events: none; }
.tag-toggle.auc-item.is-on { border-color: var(--gold); background: rgba(216, 180, 106, 0.32); color: var(--white); box-shadow: inset 0 0 0 1px var(--gold); }
.auc-form h1 { margin-bottom: 8px; }
.auc-form .lede { margin: 0 0 14px; }
.auc-item:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.auc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) {
  .auc-page { grid-template-columns: 1fr; }
  .auc-form-row { grid-template-columns: 1fr; }
}
.tok-birth-manual { padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; }
.tok-birth-manual summary { color: var(--gold-bright); font-weight: 600; cursor: pointer; }
.tok-birth-manual form { display: grid; gap: 12px; margin-top: 12px; }
.tok-birth-key { padding: 2px 10px; border: 1px dashed var(--gold); border-radius: 8px; color: var(--gold-bright); font-size: 1.05rem; letter-spacing: 0.08em; }
.mflag-bday { border-color: transparent; background: linear-gradient(135deg, #e3ac30, #c1121f); color: var(--white); }
.msg-video { display: block; width: 240px; max-width: 100%; max-height: 300px; margin: 0 0 6px; border-radius: 12px; background: #000; }
.msg-proof-row { flex-wrap: wrap; gap: 8px; }
.msg-proof-step { display: block; line-height: 1.5; }

/* ---------- La barra: el módulo en el que se está, en dorado; el contador de tokens con su moneda ---------- */
.nav a[aria-current="page"] { background: linear-gradient(180deg, rgba(216, 180, 106, 0.28), rgba(216, 180, 106, 0.12)); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.5); }
.nav a.nav-tokens { gap: 8px; padding: 8px 14px 8px 10px; border: 0; perspective: 300px; }
.nav a.nav-tokens b { font: 600 1.16rem/1.25 var(--serif); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #c9963f, #fff0c4, #d8b46a, #c9963f); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gold-run 9s linear infinite; }
.nav-coin { flex: none; width: 20px; height: 20px; filter: drop-shadow(0 0 5px rgba(230, 196, 124, 0.4)); animation: coin-spin 5.5s linear infinite; }
@keyframes coin-spin { to { transform: rotateY(360deg); } }
@keyframes gold-run { to { background-position: -240% 0; } }

/* ---------- El carrito de la tienda, junto a las pestañas de Explorar ---------- */
.explore-tabs { align-items: center; }
.explore-tabs a.shop-cart { position: relative; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; padding-left: 14px; padding-right: 20px; color: var(--gold-bright); font: italic 600 1rem var(--serif); line-height: inherit; background: linear-gradient(180deg, rgba(216, 180, 106, 0.1), rgba(216, 180, 106, 0.02)); box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.6); transition: box-shadow 240ms ease, background-color 240ms ease; }
.explore-tabs a.shop-cart span { font-size: 0.92rem; line-height: inherit; }
.explore-tabs a.shop-cart::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 42%; background: linear-gradient(100deg, transparent, rgba(255, 236, 190, 0.34), transparent); animation: cart-shine 7s ease-in-out infinite; pointer-events: none; }
.explore-tabs a.shop-cart:hover { box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 18px rgba(216, 180, 106, 0.28); }
.explore-tabs a.shop-cart[aria-current="page"] { background: linear-gradient(180deg, rgba(216, 180, 106, 0.42), rgba(216, 180, 106, 0.18)); box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 20px rgba(216, 180, 106, 0.3); }
.cart-art { flex: none; width: 31px; height: 29px; margin: -9px 0 -7px; overflow: visible; }
.cart-art * { transform-box: fill-box; transform-origin: center; }
.cart-h1 { animation: cart-rise 6s ease-out infinite; }
.cart-h2 { animation: cart-rise 6s ease-out 2.6s infinite; }
.cart-heart { animation: cart-beat 2.8s ease-in-out infinite; }
.cart-star { animation: cart-twinkle 4.6s ease-in-out infinite; }
.shop-cart:hover .cart-art { animation: cart-sway 1.6s ease-in-out; }
@keyframes cart-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes cart-rise { 0% { transform: translateY(3px) scale(0.5); opacity: 0; } 22% { opacity: 1; } 70% { opacity: 0.9; } 100% { transform: translateY(-12px) scale(1.05); opacity: 0; } }
@keyframes cart-beat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.22); } 36% { transform: scale(1); } 52% { transform: scale(1.12); } }
@keyframes cart-twinkle { 0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes cart-sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-7deg) translateX(-1px); } 65% { transform: rotate(5deg) translateX(1px); } }
@media (prefers-reduced-motion: reduce) {
  .nav-coin, .nav a.nav-tokens b, .explore-tabs a.shop-cart::before, .cart-art, .cart-art * { animation: none !important; }
  .cart-h { opacity: 0; }
}
@media (max-width: 640px) {
  .nav a.nav-tokens { gap: 5px; padding: 6px 4px 6px 6px; }
  .nav a.nav-tokens b { font-size: 1rem; }
  .nav-coin { width: 17px; height: 17px; }
  .explore-tabs { max-width: 100%; }
  .explore-tabs a { padding: 8px 13px; font-size: 0.86rem; }
  /* En el celular el carrito va solo, sin la palabra. */
  .explore-tabs a.shop-cart { padding: 8px 13px 8px 11px; }
  .explore-tabs a.shop-cart span { display: none; }
}

/* ---------- Revisión del 12 de octubre: lo que se salía de la pantalla en el celular ---------- */
/* Tokens: una tabla ancha ya no ensancha toda la página. */
.tok { grid-template-columns: minmax(0, 1fr); }
.tok-card, .tok-two > *, .tok-tiles > * { min-width: 0; }
.msg-bubble.is-gift .msg-meta { white-space: nowrap; }
@media (max-width: 640px) {
  /* El contador de tokens sube a la fila del logotipo: el menú de la modelo no cabía en una sola. */
  .nav a.nav-tokens { position: absolute; top: 6px; right: 20px; }
  .nav { gap: 2px; }
  /* El chat: herramientas más juntas para que el campo de escribir no se parta en dos renglones. */
  .msg-write { gap: 0; }
  .msg-tool { width: 31px; height: 34px; }
  .msg-write textarea { font-size: 0.9rem; }
  /* «Guardar cambios» deja libre la esquina donde vive Perla. */
  .save-bar { margin-right: 66px; }
}

/* ---- el centro del panel de mensajes sin conversación abierta: nivel, regalos, menú y cumpleaños ---- */
.msg-extras .msg-head { padding-top: 14px; padding-bottom: 14px; }
.msg-extras .msg-name { font: italic 600 1.25rem var(--serif); }
.msg-extras-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.msg-extras-body .tok { max-width: 860px; }
.msg-extras-link { display: none; align-items: center; gap: 10px; margin: 0 12px 8px; padding: 10px 12px 10px 14px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 14px; background: linear-gradient(90deg, rgba(216, 180, 106, 0.18), rgba(216, 180, 106, 0.04)); color: var(--m-gold-bright); font-weight: 600; font-size: 0.9rem; }
.msg-extras-link:hover { text-decoration: none; background: linear-gradient(90deg, rgba(216, 180, 106, 0.26), rgba(216, 180, 106, 0.08)); }
.msg-extras-link span { flex: 1; }
.msg-extras-link .glyph { flex: none; width: 17px; height: 17px; }
.msg-extras-link .glyph:last-child { transform: rotate(-90deg); }
@media (max-width: 860px) {
  .msg-extras-link { display: flex; }
  .msg-extras-body { padding: 12px; }
  .msg-extras .msg-head .btn { padding-inline: 10px; font-size: 0.78rem; }
  .msg-extras .msg-name { white-space: normal; font-size: 1.08rem; line-height: 1.15; }
  .msg-extras .msg-status { display: none; }
}

/* ---- la administración: su sello en vez de foto, su etiqueta y sus mensajes ---- */
.avatar.avatar-staff, .avatar.xs.avatar-staff { padding: 0; overflow: hidden; background: #16050a; box-shadow: 0 0 0 1.5px rgba(216, 180, 106, 0.75), 0 0 16px rgba(216, 180, 106, 0.32); }
.avatar.lg.avatar-staff { border: 0; box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.8), 0 0 44px rgba(216, 180, 106, 0.42); }
.avatar-staff svg { display: block; width: 100%; height: 100%; }
.tag-staff { gap: 5px; margin-left: 8px; padding: 2px 10px 2px 7px; border: 1px solid rgba(216, 180, 106, 0.7); background: linear-gradient(135deg, rgba(216, 180, 106, 0.3), rgba(216, 180, 106, 0.08)); color: var(--gold-bright, #f6e3ab); font-size: 0.66rem; white-space: nowrap; }
.staff-shield { flex: none; width: 13px; height: 13px; color: var(--gold-bright, #f6e3ab); }
.staff-mark { display: inline-flex; margin-left: 5px; vertical-align: -2px; }
.staff-mark .staff-shield { width: 14px; height: 14px; }
.msg-row.is-staff { background: linear-gradient(90deg, rgba(216, 180, 106, 0.12), transparent 70%); }
.msg-thread.is-staff .msg-head { background: linear-gradient(90deg, rgba(216, 180, 106, 0.14), rgba(255, 255, 255, 0.035) 60%); }
.msg-thread.is-staff .msg-bubble:not(.mine) { border: 1px solid rgba(216, 180, 106, 0.55); background: linear-gradient(180deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.05)); }
.msg-staff-note { color: var(--m-ink-3); font-size: 0.8rem; line-height: 1.35; }
.msg-cast { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--gold-bright, #f6e3ab); font: 600 0.68rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.msg-cast .glyph, .msg-cast .ico { flex: none; width: 14px; height: 14px; }

/* ---- administración: enviar un aviso y los avisos enviados ---- */
.cast { display: grid; gap: 20px; max-width: 760px; margin-bottom: 16px; padding: 22px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); color: var(--ink-1); }
.cast-group { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cast-legend { padding: 0; color: var(--ink-2); font: 600 0.74rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.cast-tos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cast-to { position: relative; cursor: pointer; }
.cast-to input { position: absolute; opacity: 0; pointer-events: none; }
.cast-to-in { display: grid; gap: 3px; height: 100%; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.cast-to-in strong { font-size: 1rem; }
.cast-to-in small { color: var(--ink-3); font-size: 0.8rem; line-height: 1.3; }
.cast-to-n { margin-top: 6px; color: var(--ink-2); font-size: 0.84rem; }
.cast-to-n b { color: var(--gold-bright, #f6e3ab); font: 600 1.5rem var(--serif); font-variant-numeric: tabular-nums; }
.cast-to:hover .cast-to-in { border-color: rgba(216, 180, 106, 0.45); }
.cast-to input:checked + .cast-to-in { border-color: var(--gold, #d8b46a); background: linear-gradient(180deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.04)); box-shadow: inset 0 0 0 1px var(--gold, #d8b46a); }
.cast-to input:focus-visible + .cast-to-in { outline: 2px solid var(--gold-bright, #f6e3ab); outline-offset: 2px; }
.cast textarea { width: 100%; min-height: 150px; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.26); color: var(--ink-1); font: 400 0.96rem/1.5 var(--sans); resize: vertical; }
.cast textarea:focus { outline: none; border-color: var(--gold, #d8b46a); }
.cast-count { justify-self: end; color: var(--ink-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.cast-preview { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(50, 17, 27, 0.94), rgba(24, 7, 13, 0.96)); border: 1px solid rgba(216, 180, 106, 0.26); }
.cast-preview-in { display: grid; gap: 7px; min-width: 0; }
.cast-preview-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.cast-bubble { justify-self: start; max-width: 100%; padding: 10px 14px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 6px 18px 18px 18px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.05)); }
.cast-echo { display: block; font-size: 0.94rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cast-echo.is-empty { color: var(--ink-3); font-style: italic; }
.cast-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cast-send small { flex: 1; min-width: 220px; color: var(--ink-3); font-size: 0.82rem; }
.cast-one { gap: 8px; }
.cast-one .hint { margin: 0; }
.cast-one-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cast-at { display: flex; align-items: center; flex: 1; min-width: 200px; max-width: 320px; padding: 0 14px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.26); color: var(--ink-3); }
.cast-at input { flex: 1; min-width: 0; padding: 10px 6px; border: 0; background: transparent; color: var(--ink-1); font: 400 0.95rem var(--sans); }
.cast-at input:focus { outline: none; }
.cast-at:focus-within { border-color: var(--gold, #d8b46a); }
.cast-item { max-width: 760px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card); color: var(--ink-1); }
.cast-item header, .cast-item footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cast-item header time, .cast-item header small { color: var(--ink-3); font-size: 0.82rem; }
.cast-item-to { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 999px; color: var(--gold-bright, #f6e3ab); font: 600 0.78rem var(--sans); }
.cast-item-to .ico { width: 15px; height: 15px; }
.cast-item-body { margin: 12px 0; padding-left: 12px; border-left: 2px solid rgba(216, 180, 106, 0.5); color: var(--ink-1); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cast-fact { color: var(--ink-2); font-size: 0.86rem; }
.cast-fact b { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.cast-meter { flex: 1; min-width: 90px; max-width: 220px; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.cast-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b8863a, #f6e3ab); }
.cast-item footer .btn { margin-left: auto; }
.cast-item.is-removed { opacity: 0.6; }
@media (max-width: 860px) {
  /* En el teléfono el nombre necesita el sitio: de la etiqueta queda solo el escudo. */
  .msg-head .tag-staff { padding: 3px 5px; margin-left: 6px; }
  .msg-head .tag-staff > span { display: none; }
}
@media (max-width: 640px) {
  .cast { padding: 16px; }
  .cast-tos { grid-template-columns: minmax(0, 1fr); }
}

/* ---- avisos obligatorios: la pantalla que pide activarlos ---- */
.push-gate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: radial-gradient(90% 70% at 50% 0%, rgba(193, 18, 31, 0.42), transparent 70%), rgba(14, 3, 8, 0.94); backdrop-filter: blur(10px); animation: gate-in 260ms var(--ease-out, ease-out); }
.push-gate-card { display: grid; justify-items: center; gap: 14px; width: min(440px, 100%); padding: 30px 26px 22px; border: 1px solid rgba(216, 180, 106, 0.42); border-radius: 26px; background: linear-gradient(180deg, rgba(58, 18, 30, 0.97), rgba(26, 7, 14, 0.98)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6); color: #fff; text-align: center; }
.push-gate-card h2 { font-size: 1.55rem; font-style: italic; line-height: 1.2; }
.gate-bell { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid rgba(216, 180, 106, 0.5); border-radius: 50%; background: rgba(216, 180, 106, 0.1); color: #f6e3ab; box-shadow: 0 0 44px rgba(216, 180, 106, 0.22); }
.gate-bell svg { width: 46px; height: 46px; transform-origin: 50% 12%; animation: gate-ring 3.6s ease-in-out infinite; }
.gate-bell-dot { animation: gate-dot 3.6s ease-in-out infinite; transform-origin: 35px 11px; }
.gate-why { color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; line-height: 1.5; }
.gate-hint { color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; line-height: 1.4; }
.gate-steps { display: grid; gap: 8px; width: 100%; margin: 0; padding: 14px 16px 14px 34px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(0, 0, 0, 0.24); color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; line-height: 1.4; text-align: left; }
.gate-out { margin-top: 2px; color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; text-decoration: underline; }
.gate-out:hover { color: #fff; }
.push-gate .form-error { width: 100%; }
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-ring { 0%, 62%, 100% { transform: rotate(0); } 68% { transform: rotate(13deg); } 74% { transform: rotate(-11deg); } 80% { transform: rotate(8deg); } 86% { transform: rotate(-5deg); } 92% { transform: rotate(2deg); } }
@keyframes gate-dot { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.35); } 84% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .push-gate, .gate-bell svg, .gate-bell-dot { animation: none; } }

/* ---- administración: avisos al celular ---- */
.cast-required { align-items: flex-start; }
.cast-required > span { display: grid; gap: 4px; }
.cast-required strong { font-size: 1rem; }
.cast-required small { color: var(--ink-3); font-size: 0.84rem; line-height: 1.4; }
.cast-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cast-phone { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.cast-phone p { color: var(--ink-2); font-size: 0.88rem; }
.cast-phone b { color: var(--gold-bright, #f6e3ab); font: 600 1.5rem var(--serif); font-variant-numeric: tabular-nums; }
.cast-phone .cast-meter { flex: none; max-width: none; }
.cast-phone small { color: var(--ink-3); font-size: 0.78rem; }
@media (max-width: 640px) { .cast-phones { grid-template-columns: minmax(0, 1fr); } }

/* ---- administración: pagar a las modelos ---- */
.pay-sums { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pay-sums p { display: grid; gap: 3px; padding: 16px 18px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card); }
.pay-sums small { color: var(--ink-2); font-size: 0.8rem; }
.pay-sums strong { font: 600 1.55rem var(--serif); font-variant-numeric: tabular-nums; }
.pay-sums em { color: var(--ink-3); font-size: 0.8rem; font-style: normal; }
.pay-sums .is-main { border-color: rgba(216, 180, 106, 0.6); background: linear-gradient(180deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.04)); }
.pay-sums .is-main strong { color: var(--gold-bright, #f6e3ab); }
.pay-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: paso; }
.pay-steps li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 46px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.2); counter-increment: paso; }
.pay-steps li::before { content: counter(paso); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(216, 180, 106, 0.2); color: var(--gold-bright, #f6e3ab); font: 600 0.8rem var(--sans); }
.pay-steps strong { font-size: 0.92rem; }
.pay-steps span { color: var(--ink-3); font-size: 0.82rem; line-height: 1.35; }
.pay-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.pay-tools .btn { display: inline-flex; align-items: center; gap: 6px; }
.pay-tools .ico { width: 16px; height: 16px; }
.pay-card { display: grid; gap: 14px; max-width: 860px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); box-shadow: var(--lift); color: var(--ink-1); }
.pay-card header { display: flex; align-items: center; gap: 12px; }
.pay-who { flex: 1; min-width: 0; display: grid; }
.pay-who strong { overflow: hidden; font-size: 1.05rem; white-space: nowrap; text-overflow: ellipsis; }
.pay-who small { color: var(--ink-3); font-size: 0.84rem; }
.pay-who a { color: var(--ink-2); }
.pay-total { display: grid; justify-items: end; gap: 1px; text-align: right; }
.pay-total small { color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pay-total strong { color: var(--gold-bright, #f6e3ab); font: 600 1.45rem var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.pay-field { display: grid; gap: 1px; min-width: 0; }
.pay-field small { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pay-field b { overflow-wrap: anywhere; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-field .link { justify-self: start; color: var(--gold-bright, #f6e3ab); font-size: 0.78rem; }
.pay-parts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pay-parts li { display: flex; align-items: baseline; gap: 10px; font-size: 0.92rem; }
.pay-parts span { color: var(--ink-2); }
.pay-parts small { flex: 1; color: var(--ink-3); font-size: 0.8rem; }
.pay-parts b { font-variant-numeric: tabular-nums; }
.pay-detail summary { cursor: pointer; color: var(--ink-2); font-size: 0.86rem; }
.pay-detail ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.pay-detail li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.88rem; }
.pay-detail li > span:not(.state) { flex: 1; min-width: 120px; overflow: hidden; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.pay-detail a { color: var(--ink-1); text-decoration: underline; }
.pay-form { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--card-line); }
.pay-form input { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(0, 0, 0, 0.26); color: var(--ink-1); font: 400 0.92rem var(--sans); }
.pay-form input:focus { outline: none; border-color: var(--gold, #d8b46a); }
.pay-past { display: grid; gap: 0; max-width: 860px; margin: 0; padding: 4px 18px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card); list-style: none; }
.pay-past li { display: grid; grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--card-line); font-size: 0.88rem; }
.pay-past li:last-child { border-bottom: 0; }
.pay-past time, .pay-past-what, .pay-past-ref { overflow: hidden; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.pay-past a { color: var(--ink-1); }
.pay-past b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .pay-card { padding: 14px; }
  .pay-card header { flex-wrap: wrap; }
  .pay-total { flex-basis: 100%; justify-items: start; text-align: left; }
  .pay-form input, .pay-form .btn { flex: 1 1 100%; }
  .pay-past li { grid-template-columns: minmax(0, 1fr) auto; }
  .pay-past time, .pay-past-what, .pay-past-ref { grid-column: 1; }
  .pay-past b { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---- Perla en el celular: más pequeña, y la página deja sitio para que no tape lo último ---- */
@media (max-width: 640px) {
  .perla { right: 10px; bottom: 10px; }
  .perla-fab { width: 48px; height: 48px; }
  main.wrap { padding-bottom: 104px; }
  /* En el panel de administración estorba más de lo que ayuda: ahí el teléfono es todo tablas y botones. */
  body:has(.dash) .perla { display: none; }
  .save-bar { margin-right: 54px; }
}

/* ---- «Para modelos»: lo que ganan, cómo cobran, su privacidad y los pasos ---- */
.fm { margin-top: 26px; padding: 26px 28px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); color: var(--white); }
.fm h2 { margin-bottom: 16px; font-size: 1.5rem; font-style: italic; }
.fm-earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fm-earn li { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 18px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.14), rgba(216, 180, 106, 0.03)); }
.fm-earn strong { color: #f6e3ab; font: 600 2.4rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.fm-earn b { font-size: 1.02rem; }
.fm-earn span { margin-top: 4px; color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; line-height: 1.4; }
.fm-note { margin-top: 14px; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.fm-steps, .fm-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.fm-steps li, .fm-path li { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 18px 16px 56px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 16px; background: rgba(0, 0, 0, 0.22); counter-increment: paso; }
.fm-steps li::before, .fm-path li::before { content: counter(paso); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(216, 180, 106, 0.22); color: #f6e3ab; font: 600 0.9rem var(--sans); }
.fm-steps strong, .fm-path strong { font-size: 1rem; }
.fm-steps span, .fm-path span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; line-height: 1.45; }
.fm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 34px; }
.fm-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.fm-list li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, 0.86); font-size: 0.94rem; line-height: 1.45; }
.fm-list li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: #d8b46a; font-size: 0.8rem; }
.fm .hero-actions { margin-top: 22px; }
@media (max-width: 640px) {
  .fm { margin-top: 18px; padding: 20px 18px; }
  .fm h2 { font-size: 1.3rem; }
  .fm-earn strong { font-size: 2rem; }
}

/* ---- la página informativa: dos paneles (modelo / usuario) y sus tarjetas ---- */
.join-tabs { display: inline-flex; gap: 4px; margin-bottom: 16px; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(0, 0, 0, 0.3); }
.join-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: 999px; color: rgba(255, 255, 255, 0.8); font: 600 0.94rem var(--sans); transition: background-color 180ms ease, color 180ms ease; }
.join-tabs a:hover { color: #fff; text-decoration: none; }
.join-tabs a[aria-current="page"] { background: linear-gradient(135deg, rgba(216, 180, 106, 0.42), rgba(216, 180, 106, 0.16)); color: #fff; box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.7); }
.fm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fm-cards li { display: grid; align-content: start; gap: 5px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 16px; background: rgba(0, 0, 0, 0.22); }
.fm-cards strong { font-size: 1rem; }
.fm-cards span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; line-height: 1.45; }
.fm-ico { width: 26px; height: 26px; margin-bottom: 4px; color: #f6e3ab; }
@media (max-width: 640px) {
  .join-tabs { display: flex; }
  .join-tabs a { flex: 1; justify-content: center; padding: 9px 10px; }
}

/* ---- el recorrido guiado: el foco, Perla de cuerpo entero y su burbuja ---- */
.tour { position: fixed; inset: 0; z-index: 320; }
.tour-hole { position: fixed; left: 0; top: 0; width: 80px; height: 40px; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(10, 2, 6, 0.82), 0 0 0 2px #d8b46a, 0 0 28px 4px rgba(216, 180, 106, 0.45); pointer-events: none; will-change: transform, width, height; }
.tour-guide { position: fixed; left: 0; top: 0; display: flex; align-items: flex-start; gap: 10px; width: min(460px, calc(100vw - 20px)); will-change: transform; }
.tour-guide.is-flip { flex-direction: row-reverse; }
.tour-perla { flex: none; width: 124px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }
.tour-perla svg { display: block; width: 100%; height: auto; overflow: visible; }
.tour-bubble { position: relative; flex: 1; min-width: 0; margin-top: 26px; padding: 16px 18px 14px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 20px; background: linear-gradient(180deg, #3a1220, #1c0810); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6); color: #fff; }
.tour-bubble::before { content: ''; position: absolute; top: 26px; left: -8px; width: 14px; height: 14px; border-left: 1px solid rgba(216, 180, 106, 0.55); border-bottom: 1px solid rgba(216, 180, 106, 0.55); background: #34101d; transform: rotate(45deg); }
.tour-guide.is-flip .tour-bubble::before { left: auto; right: -8px; border: 0; border-right: 1px solid rgba(216, 180, 106, 0.55); border-top: 1px solid rgba(216, 180, 106, 0.55); }
.tour-step { color: #d8b46a; font: 600 0.72rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.tour-bubble h2 { margin: 2px 0 6px; font-size: 1.35rem; font-style: italic; line-height: 1.15; }
.tour-text { color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; line-height: 1.5; text-wrap: pretty; }
.tour-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tour-dots { display: flex; flex: 1; flex-wrap: wrap; gap: 5px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.tour-dots i.on { background: #d8b46a; }
.tour-exit { color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; text-decoration: underline; }
/* Mientras dura, la Perla de la esquina no está: es la que va por la pantalla. */
body.touring .perla { visibility: hidden; }
body.touring.tour-ends .perla { visibility: visible; }
body.touring { overflow: hidden; }
@media (max-width: 640px) {
  .tour-perla { width: 74px; }
  .tour-bubble { margin-top: 16px; padding: 13px 14px 12px; }
  .tour-bubble h2 { font-size: 1.15rem; }
  .tour-text { font-size: 0.9rem; }
}

/* ====================================================================================
   La página informativa (primera impresión): una pregunta, dos lados, y cada lado contado
   en secciones de dos columnas. Cabeceras en Fraunces; el texto sigue en la letra del sitio.
   ==================================================================================== */
main.wrap:has(.join) { max-width: 1180px; }
.join { --display: 'Fraunces', 'Playfair Display', Georgia, serif; --hair: rgba(255, 255, 255, 0.11); --gold-1: #f6e3ab; --gold-2: #d8b46a; color: #fff; }
.join h1, .join h2 { font-family: var(--display); font-optical-sizing: auto; font-style: normal; font-weight: 500; text-wrap: balance; }
.join em { color: var(--gold-1); font-style: italic; font-weight: 400; }

.join-top { display: grid; gap: 18px; padding: 18px 0 8px; }
.join-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font: 500 0.9rem var(--sans); letter-spacing: 0.02em; }
.join-ask { max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 0.98; letter-spacing: -0.03em; }
.join-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.join-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 22px 24px 20px; border: 1px solid var(--hair); border-radius: 22px; background: rgba(0, 0, 0, 0.26); color: rgba(255, 255, 255, 0.78); transition: border-color 220ms ease, background-color 220ms ease, transform 220ms var(--ease-out, ease-out), box-shadow 220ms ease; }
.join-card:hover { border-color: rgba(216, 180, 106, 0.55); color: #fff; text-decoration: none; transform: translateY(-2px); }
.join-card:active { transform: translateY(0) scale(0.99); }
.join-card:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.join-card-who { color: var(--gold-2); font: 500 0.84rem var(--sans); }
.join-card strong { color: #fff; font: 500 clamp(1.6rem, 3vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.02em; }
.join-card-note { max-width: 36ch; font-size: 0.95rem; line-height: 1.45; }
.join-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: rgba(255, 255, 255, 0.6); font: 500 0.86rem var(--sans); }
.join-card-go i { font-style: normal; transition: transform 220ms var(--ease-out, ease-out); }
.join-card:hover .join-card-go i { transform: translateX(4px); }
.join-card.is-on { border-color: var(--gold-2); background: linear-gradient(160deg, rgba(216, 180, 106, 0.2), rgba(120, 16, 34, 0.28) 55%, rgba(0, 0, 0, 0.2)); color: rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 22px 50px rgba(0, 0, 0, 0.35); }
.join-card.is-on:hover { transform: none; }
.join-card.is-on .join-card-go { color: var(--gold-1); }
.join-card.is-on:hover .join-card-go i { transform: translateY(3px); }

.join-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px 56px; align-items: center; margin-top: 18px; padding: 44px 0 46px; border-top: 1px solid var(--gold-2); }
.join-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.025em; }
.join-lead { max-width: 52ch; margin-top: 16px; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; line-height: 1.6; text-wrap: pretty; }
.join-intro .hero-actions { margin-top: 26px; }
.join-intro .note { margin: 18px 0 0; }
.join-points { display: grid; margin: 0; padding: 0; list-style: none; }
.join-points li { display: grid; gap: 3px; padding: 16px 0; border-top: 1px solid var(--hair); }
.join-points li:last-child { border-bottom: 1px solid var(--hair); }
.join-points strong { font: 500 1.2rem/1.2 var(--display); letter-spacing: -0.01em; }
.join-points span { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; line-height: 1.45; }

/* Cada sección: el título, numerado, a la izquierda; lo que cuenta, a la derecha. */
.join { counter-reset: tramo; }
.join .fm { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 18px 56px; margin: 0; padding: 46px 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; background: none; counter-increment: tramo; }
.join .fm-h { align-self: start; margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.08; letter-spacing: -0.02em; }
.join .fm-h::before { content: counter(tramo, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--gold-2); font: italic 400 1rem var(--display); letter-spacing: 0; }
.join .fm-c { min-width: 0; }
@media (min-width: 861px) { .join .fm-h { position: sticky; top: 92px; } }

.join .fm-earn { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; }
.join .fm-earn li { gap: 4px; padding: 4px 22px 6px; border: 0; border-left: 1px solid var(--hair); border-radius: 0; background: none; }
.join .fm-earn li:first-child { padding-left: 0; border-left: 0; }
.join .fm-earn strong { color: var(--gold-1); font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.join .fm-earn b { font: 600 1rem var(--sans); }
.join .fm-note { margin-top: 20px; max-width: 62ch; color: rgba(255, 255, 255, 0.68); font-size: 0.93rem; line-height: 1.55; }

/* Los pasos, como una línea que se recorre de arriba abajo. */
.join .fm-steps, .join .fm-path { grid-template-columns: minmax(0, 1fr); gap: 0; }
.join .fm-steps li, .join .fm-path li { gap: 3px; padding: 0 0 26px 54px; border: 0; border-radius: 0; background: none; }
.join .fm-steps li:last-child, .join .fm-path li:last-child { padding-bottom: 0; }
.join .fm-steps li::before, .join .fm-path li::before { left: 0; top: 0; width: 34px; height: 34px; border: 1px solid rgba(216, 180, 106, 0.6); background: rgba(216, 180, 106, 0.12); color: var(--gold-1); font: 500 1rem var(--display); }
.join .fm-steps li::after, .join .fm-path li::after { content: ''; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.5), rgba(216, 180, 106, 0.08)); }
.join .fm-steps li:last-child::after, .join .fm-path li:last-child::after { display: none; }
.join .fm-steps strong, .join .fm-path strong { font: 600 1.06rem var(--sans); }
.join .fm-steps span, .join .fm-path span { max-width: 56ch; font-size: 0.95rem; line-height: 1.5; }

/* Las ventajas, en filas con su dibujo: sin cajas. */
.join .fm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.join .fm-cards li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; padding: 18px 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; background: none; }
.join .fm-cards li:nth-child(-n + 2) { border-top: 0; padding-top: 2px; }
.join .fm-ico { grid-row: span 2; width: 26px; height: 26px; margin: 1px 0 0; color: var(--gold-1); }
.join .fm-cards strong { font: 600 1.02rem var(--sans); }
.join .fm-cards span { grid-column: 2; font-size: 0.92rem; line-height: 1.5; }
.join .fm-list { gap: 12px; }
.join .fm-list li { max-width: 60ch; font-size: 1rem; line-height: 1.5; }
.join .fm .hero-actions { margin-top: 30px; }
.join-more { padding: 26px 0 6px; border-top: 1px solid var(--hair); }
.join-more a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 4px; }
.join-more a:hover { color: #fff; }

@media (max-width: 860px) {
  .join-intro { grid-template-columns: minmax(0, 1fr); padding: 34px 0 36px; }
  .join .fm { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 36px 0; }
  .join .fm-cards { grid-template-columns: minmax(0, 1fr); }
  .join .fm-cards li:nth-child(2) { border-top: 1px solid var(--hair); padding-top: 18px; }
}
@media (max-width: 640px) {
  .join-pick { gap: 10px; }
  .join-card { padding: 16px 16px 14px; border-radius: 18px; }
  .join-card-note { display: none; }
  .join-card-go { margin-top: 4px; font-size: 0.8rem; }
  .join .fm-earn { grid-template-columns: minmax(0, 1fr); }
  .join .fm-earn li { padding: 14px 0; border-left: 0; border-top: 1px solid var(--hair); }
  .join .fm-earn li:first-child { border-top: 0; padding-top: 0; }
}

/* ---- caja de sugerencias: la pestaña del borde, su panel y el aviso de «en desarrollo» ---- */
.sug { position: fixed; right: 0; top: 50%; z-index: 54; display: flex; align-items: center; transform: translateY(-50%); pointer-events: none; }
.sug-tab { display: inline-flex; align-items: center; gap: 7px; padding: 14px 6px 12px; border: 1px solid rgba(246, 227, 171, 0.75); border-right: 0; border-radius: 12px 0 0 12px; background: linear-gradient(180deg, #ecd092, #c79d4e); box-shadow: -6px 8px 22px rgba(0, 0, 0, 0.45); color: #2a1206; font: 600 0.76rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; writing-mode: vertical-rl; cursor: pointer; pointer-events: auto; transition: padding 180ms var(--ease-out), filter 160ms ease; }
.sug-tab span { transform: rotate(180deg); }
.sug-tab svg { width: 17px; height: 17px; transform: rotate(90deg); }
.sug-tab:hover, .sug.is-open .sug-tab { padding-right: 10px; filter: brightness(1.06); }
.sug-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sug-panel { display: grid; gap: 10px; width: 292px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 16px 16px 14px; overflow-y: auto; border: 1px solid rgba(216, 180, 106, 0.55); border-right: 0; border-radius: 18px 0 0 18px; background: linear-gradient(180deg, #3a1220, #1c0810); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), -18px 24px 60px rgba(0, 0, 0, 0.6); color: #fff; pointer-events: auto; animation: sug-in 240ms var(--ease-out); }
.sug-panel[hidden] { display: none; }
@keyframes sug-in { from { opacity: 0; transform: translateX(18px); } }
.sug-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sug-head h2 { font: italic 500 1.3rem/1.15 'Fraunces', var(--serif); letter-spacing: -0.01em; }
.sug-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); cursor: pointer; }
.sug-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.sug-close svg { width: 15px; height: 15px; }
.sug-faces { display: flex; gap: 8px; }
.sug-faces button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; background: rgba(0, 0, 0, 0.2); color: rgba(255, 255, 255, 0.6); cursor: pointer; transition: transform 160ms var(--ease-out), color 160ms ease, border-color 160ms ease; }
.sug-faces button svg { width: 26px; height: 26px; }
.sug-faces button:hover { color: #fff; transform: translateY(-2px); }
.sug-faces button[aria-checked="true"] { border-color: #d8b46a; background: rgba(216, 180, 106, 0.16); color: #f6e3ab; transform: scale(1.08); }
.sug-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.sug-kinds button { padding: 5px 11px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.82); font: 500 0.8rem var(--sans); cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease; }
.sug-kinds button:hover { border-color: rgba(255, 255, 255, 0.5); }
.sug-kinds button[aria-checked="true"] { border-color: #d8b46a; background: rgba(216, 180, 106, 0.16); color: #f6e3ab; }
.sug-faces button:focus-visible, .sug-kinds button:focus-visible, .sug-close:focus-visible { outline: 2px solid #f6e3ab; outline-offset: 2px; }
.sug-panel textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(0, 0, 0, 0.3); color: #fff; font: 400 0.93rem/1.45 var(--sans); resize: vertical; }
.sug-panel textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.sug-panel textarea:focus { outline: none; border-color: #d8b46a; }
.sug-about { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.sug-about b { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.sug-panel .form-error { margin: 0; font-size: 0.84rem; }
.sug-fine { padding-top: 10px; border-top: 1px solid rgba(216, 180, 106, 0.28); color: rgba(246, 227, 171, 0.82); font: italic 400 0.8rem/1.45 'Fraunces', var(--serif); text-wrap: pretty; }
.sug-done { justify-items: center; gap: 4px; padding: 26px 18px; text-align: center; }
.sug-done svg { width: 40px; height: 40px; color: #d8b46a; }
.sug-done strong { font: italic 500 1.2rem 'Fraunces', var(--serif); }
.sug-done span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }
/* No acompaña a la administración, ni al recorrido, ni a la pantalla que exige los avisos. */
body.sug-off .sug, body.sug-off .footer-dev-ask, body.sug-off .footer-sug, body.touring .sug, body:has(.push-gate) .sug, body:has(.dash) .sug { display: none; }
.footer .footer-dev { max-width: 640px; margin: 16px auto 0; color: rgba(246, 227, 171, 0.8); font: italic 400 0.86rem/1.55 'Fraunces', var(--serif); letter-spacing: 0.005em; text-wrap: balance; }
.footer-dev-tag { display: inline-block; margin-right: 6px; padding: 2px 9px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 999px; color: #f6e3ab; font: 600 0.64rem/1.5 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; vertical-align: 1px; }
.footer-sug { padding: 0; border: 0; border-bottom: 1px solid rgba(246, 227, 171, 0.6); background: none; color: #f6e3ab; font: inherit; cursor: pointer; }
.footer-sug:hover { border-bottom-color: #fff; color: #fff; }
.sug-kind, .sug-mood { padding: 3px 11px; border: 1px solid var(--card-line); border-radius: 999px; color: var(--ink-2); font: 600 0.78rem var(--sans); }
.sug-kind-fallo { border-color: rgba(255, 107, 127, 0.7); color: var(--rose); }
.sug-kind-idea { border-color: rgba(216, 180, 106, 0.6); color: var(--gold-bright, #f6e3ab); }
.sug-mood-1, .sug-mood-2 { color: var(--rose); }
.sug-mood-3, .sug-mood-4 { color: #8fe0ad; }
.sug-item footer .cast-fact code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); font-size: 0.9em; }
.sug-item footer .sug-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sug-item footer .sug-actions .btn { margin-left: 0; }
.sug-item.is-done { opacity: 0.72; }
@media (max-width: 720px) {
  .sug { top: 44%; }
  .sug-tab { gap: 5px; padding: 10px 4px 9px; font-size: 0.66rem; letter-spacing: 0.06em; }
  .sug-tab svg { width: 14px; height: 14px; }
  .sug-panel { width: min(292px, calc(100vw - 40px)); }
  body:has(.msg.has-thread) .sug { display: none; }
}
@media print {
  .sug { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sug-panel { animation: none; }
}

/* ---- tratos: guardar, ofertas por tiempo limitado, haz tu oferta, apartar y encargos ---- */
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: rgba(18, 3, 10, 0.62); color: #fff; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.fav .glyph { width: 17px; height: 17px; }
.fav:hover { transform: scale(1.08); border-color: #f6e3ab; }
.fav:focus-visible, .fav-wide:focus-visible { outline: 2px solid #f6e3ab; outline-offset: 2px; }
.fav.is-on { border-color: #d8b46a; background: #d8b46a; color: #2a1206; }
.fav.is-on .glyph, .fav-wide.is-on .glyph { fill: currentColor; }
.fav-wide { display: inline-flex; align-items: center; gap: 7px; }
.fav-wide .glyph { width: 16px; height: 16px; }
.fav-wide.is-on { border-color: #d8b46a; color: #f6e3ab; }
.deal-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: #d8b46a; color: #2a1206; font: 700 0.78rem var(--sans); letter-spacing: 0.02em; }
.card-img .sold ~ .deal-tag, .card-img .deal-tag ~ .sold { top: 40px; }
.deal-early { background: rgba(18, 3, 10, 0.78); border: 1px solid rgba(216, 180, 106, 0.7); color: #f6e3ab; }
.card-price { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; }
.price-was { color: rgba(255, 255, 255, 0.5); font-size: 0.86em; font-weight: 400; }
.listing-price { display: flex; align-items: baseline; gap: 12px; }
.listing-price .price-was { font-size: 1rem; }
.until { font-variant-numeric: tabular-nums; white-space: nowrap; }
.deal-banner { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 4px; padding: 11px 14px; border: 1px solid rgba(255, 107, 127, 0.5); border-radius: 12px; background: rgba(193, 18, 31, 0.16); color: #fff; font-size: 0.93rem; line-height: 1.45; }
.deal-banner .glyph { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--rose); }
.deal-banner.is-gold { border-color: rgba(216, 180, 106, 0.6); background: rgba(216, 180, 106, 0.12); }
.deal-banner.is-gold .glyph { color: #d8b46a; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.deal-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--veil-line); border-radius: 12px; background: var(--veil); color: var(--soft); font-size: 0.92rem; }
.deal-note .glyph { width: 16px; height: 16px; color: #d8b46a; }
.deal-note b, .deal-note strong { color: #fff; }
.deal-note.is-ask { display: grid; border-color: rgba(216, 180, 106, 0.55); }
.deal-note .link, .deal-item .link { border: 0; background: none; color: var(--rose); font: inherit; text-decoration: underline; cursor: pointer; }
.deal-hint { margin-top: 10px; }
.deal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.deal-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--veil-line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.deal-form[hidden] { display: none; }
.deal-form .hint { margin: 0; }
.deal-amount { width: 170px; }
.deal-amount input { padding: 8px 0 8px 8px; font-size: 1.3rem; }
.deal-pick { display: grid; gap: 4px; color: var(--soft); font-size: 0.8rem; }
.deal-pick select { padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(18, 3, 10, 0.6); color: #fff; font: 500 0.95rem var(--sans); }
.deal-owner { display: grid; gap: 12px; margin-top: 14px; }
.deal-owner .deal-note { margin-top: 0; }
.deal-box { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.12), rgba(216, 180, 106, 0.03)); }
.deal-box h3 { font: italic 600 1.15rem var(--serif); }
.deal-box .deal-row { margin-top: 2px; align-items: flex-end; }
.deal-box .btn { justify-self: start; }
.deal-switch { margin: 4px 0 16px; }
.deal-switch small, .deal-publish small { display: block; color: var(--soft); font-size: 0.82rem; font-weight: 400; }
.deal-publish { margin-top: 16px; }
.deal-tabs { display: flex; gap: 6px; margin: -6px 0 18px; padding: 5px; border: 1px solid var(--veil-line); border-radius: 999px; background: rgba(0, 0, 0, 0.25); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.deal-tabs::-webkit-scrollbar { display: none; }
.deal-tabs a { flex: none; padding: 8px 18px; border-radius: 999px; color: var(--soft); font: 600 0.9rem var(--sans); white-space: nowrap; }
.deal-tabs a:hover { color: #fff; text-decoration: none; }
.deal-tabs a.on { background: linear-gradient(180deg, rgba(216, 180, 106, 0.28), rgba(216, 180, 106, 0.1)); color: #f6e3ab; box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.5); }
.deal-sub { max-width: 720px; margin-bottom: 20px; color: var(--soft); }
.deal-head { margin-top: 34px; }
.deal-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; max-width: 820px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--veil-line); border-radius: 16px; background: var(--veil); }
.deal-thumb { display: block; width: 76px; height: 95px; border-radius: 10px; overflow: hidden; background: var(--wine); }
.deal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.deal-custom .deal-thumb { display: grid; place-items: start center; height: auto; background: none; }
.deal-main { min-width: 0; }
.deal-main header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 4px; }
.deal-main header strong { font-size: 1.05rem; color: #fff; }
.deal-main > p { color: var(--soft); overflow-wrap: anywhere; }
.deal-main > p b { color: #fff; }
.deal-main > small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.5); font-size: 0.82rem; }
.deal-quote { margin-top: 8px; padding: 10px 14px; border-left: 2px solid #d8b46a; background: rgba(216, 180, 106, 0.08); border-radius: 0 10px 10px 0; }
.deal-quote b { font: 600 1.25rem var(--serif); color: #f6e3ab; }
.deal-new { max-width: 720px; margin: 0 0 26px; }
.deal-new h2 { margin-bottom: 6px; font-size: 1.4rem; font-style: italic; }
.deal-ship h3 { font: italic 600 1.15rem var(--serif); }
.alert-list { display: grid; gap: 8px; max-width: 820px; margin: 0; padding: 0; list-style: none; }
.alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border: 1px solid var(--veil-line); border-radius: 14px; background: var(--veil); }
.alert-what { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-right: auto; }
.alert-row small { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; }
.finder-alert { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 5px 12px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 999px; background: rgba(216, 180, 106, 0.1); color: #f6e3ab; font: 600 0.8rem var(--sans); cursor: pointer; }
.finder-alert:hover { background: rgba(216, 180, 106, 0.2); }
.finder-alert .glyph { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .deal-item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .deal-thumb { width: 56px; height: 70px; }
  .deal-tabs a { padding: 8px 14px; font-size: 0.86rem; }
  .fav { width: 34px; height: 34px; }
}
.card-price { flex: none; margin-right: 8px; }
.card-meta .seller { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-form textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(0, 0, 0, 0.3); color: #fff; font: 400 0.95rem/1.45 var(--sans); resize: vertical; }
.deal-form textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.deal-form textarea:focus { outline: none; border-color: #d8b46a; }

/* ---- misiones de la semana ---- */
.mission-top { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 820px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.12), rgba(216, 180, 106, 0.03)); color: var(--soft); }
.mission-top p { display: inline-flex; align-items: center; gap: 6px; }
.mission-top b { color: #f6e3ab; font: 600 1.2rem var(--serif); }
.mission-top .glyph { width: 16px; height: 16px; color: #d8b46a; }
.mission-top .until { font: 600 0.95rem var(--sans); color: #fff; }
.mission { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; max-width: 820px; margin-bottom: 12px; padding: 18px 20px; border: 1px solid var(--veil-line); border-radius: 16px; background: var(--veil); }
.mission-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; color: var(--rose); }
.mission-mark .glyph { width: 20px; height: 20px; }
.mission h3 { font: italic 600 1.2rem var(--serif); color: #fff; }
.mission-main p { margin-top: 2px; color: var(--soft); font-size: 0.93rem; }
.mission-bar { display: block; height: 6px; margin: 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.mission-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c79d4e, #f6e3ab); transition: width 500ms var(--ease-out); }
.mission-main small { color: rgba(255, 255, 255, 0.62); font-size: 0.84rem; }
.mission-main small b { color: #fff; }
.mission-prize { display: grid; justify-items: end; gap: 6px; color: #f6e3ab; white-space: nowrap; }
.mission-prize b { font: 600 1.25rem var(--serif); margin-right: 3px; }
.mission.is-done { border-color: rgba(216, 180, 106, 0.55); }
.mission.is-done .mission-mark { border-color: #d8b46a; background: #d8b46a; color: #2a1206; }
.mission-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 999px; background: rgba(216, 180, 106, 0.1); color: #f6e3ab; font: 600 0.76rem var(--sans); white-space: nowrap; }
.mission-badge .glyph { width: 13px; height: 13px; }
.mission-worn { max-width: 820px; margin: 18px 0 8px; color: var(--soft); }
.vitrina-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
@media (max-width: 640px) {
  .mission { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .mission-mark { width: 36px; height: 36px; }
  .mission-prize { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
}

/* ---- lo nuevo en Pantsell ---- */
.news { max-width: 720px; margin: 0 auto; --display: 'Fraunces', var(--serif); }
.news-kicker { display: inline-block; padding: 2px 10px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 999px; color: #f6e3ab; font: 600 0.66rem/1.6 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.news h1 { margin: 12px 0 10px; font: 500 clamp(2.1rem, 6vw, 3.1rem)/1.05 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.news h1 em { color: #f6e3ab; font-style: italic; }
.news-lead { max-width: 60ch; margin-bottom: 30px; color: var(--soft); font-size: 1.05rem; line-height: 1.6; }
.news-item { padding: 22px 0; border-top: 1px solid rgba(216, 180, 106, 0.28); }
.news-item header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-item time { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.news-tag { padding: 2px 10px; border-radius: 999px; background: rgba(216, 180, 106, 0.16); color: #f6e3ab; font: 600 0.74rem var(--sans); }
.news-tag-arreglo { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.news-tag-nuevo { background: #d8b46a; color: #2a1206; }
.news-item h2 { font: 500 1.5rem/1.2 var(--display); letter-spacing: -0.01em; }
.news-item p { margin-top: 6px; color: var(--soft); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-ask { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(216, 180, 106, 0.28); color: var(--soft); font: italic 400 0.98rem/1.5 'Fraunces', var(--serif); }
[data-news-link].has-news::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #d8b46a; vertical-align: 2px; }
.sug-fine a { color: #fff; text-decoration: underline; font-style: normal; font-family: var(--sans); font-size: 0.78rem; }
.mission-prize { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 4px; max-width: 180px; }
.mission-prize .glyph { width: 16px; height: 16px; color: var(--rose); }
/* En celular las pestañas de Explorar ya no caben todas: se deslizan de lado en vez de desbordar la página. */
.explore-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }
.explore-tabs a { flex: none; white-space: nowrap; }

/* ---- misiones: para qué sirven los corazones y los retos mayores ---- */
.mission-why { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; max-width: 820px; margin-bottom: 14px; padding: 20px 22px; border: 1px solid rgba(255, 107, 127, 0.55); border-radius: 18px; background: linear-gradient(135deg, rgba(193, 18, 31, 0.3), rgba(90, 6, 16, 0.18)); }
.mission-why-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--rose); color: #2a0610; }
.mission-why-mark .glyph { width: 26px; height: 26px; }
.mission-why h2 { font: italic 600 1.45rem/1.2 var(--serif); color: #fff; text-wrap: balance; }
.mission-why p { margin-top: 6px; color: rgba(255, 255, 255, 0.86); line-height: 1.5; }
.mission-why b { color: #fff; }
.mission-why .glyph { vertical-align: -2px; }
.mission-rank, .mission-total { font-size: 0.95rem; }
.mission-rank b { font: 600 1.15rem var(--serif); color: #f6e3ab; }
.mission-total .glyph, .mission-rank .glyph { width: 15px; height: 15px; margin: 0 2px; color: var(--rose); }
.mission-head { max-width: 820px; margin: 26px 0 12px; }
.mission-head h2 { font-size: 1.35rem; }
.mission.is-major { border-color: rgba(216, 180, 106, 0.4); background: linear-gradient(180deg, rgba(216, 180, 106, 0.1), rgba(216, 180, 106, 0.02)); }
.mission.is-major .mission-prize b { font-size: 1.5rem; }
.mission.is-major .mission-mark { border-color: rgba(216, 180, 106, 0.55); color: #f6e3ab; }
.mission-note { max-width: 820px; margin-top: 14px; }
.mission-note .glyph { width: 14px; height: 14px; color: var(--rose); vertical-align: -2px; }
@media (max-width: 640px) {
  .mission-why { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .mission-why-mark { width: 44px; height: 44px; }
}

/* ---- la barra de misiones diarias de Mensajes y el registro en la vitrina ---- */
.mission-slot:empty, .mission-room-slot:empty { display: none; }
.mission-slot { margin-bottom: 16px; max-width: 860px; }
.mission-slot-list { margin: 0 12px 8px; }
.mbar { display: grid; gap: 7px; padding: 11px 14px 10px; border: 1px solid rgba(216, 180, 106, 0.32); border-radius: 14px; background: rgba(216, 180, 106, 0.08); color: #fff; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out); }
.mbar:hover { border-color: rgba(216, 180, 106, 0.7); background: rgba(216, 180, 106, 0.15); text-decoration: none; }
.mbar:active { transform: scale(0.99); }
.mbar:focus-visible { outline: 2px solid #f6e3ab; outline-offset: 2px; }
.mbar-top, .mbar-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mbar-title { font: 500 0.92rem var(--sans); }
.mbar-title b { color: #f6e3ab; font-weight: 600; }
.mbar-prize { display: inline-flex; align-items: center; gap: 4px; flex: none; color: #f6e3ab; font-size: 0.86rem; white-space: nowrap; }
.mbar-prize b { font: 600 1rem var(--serif); }
.mbar-prize .glyph { width: 14px; height: 14px; color: var(--rose); }
.mbar-prize.is-done .glyph { color: #f6e3ab; }
.mbar-track { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.mbar-track i { display: block; height: 100%; min-width: 5px; border-radius: 999px; background: linear-gradient(90deg, #c79d4e, #f6e3ab); transition: width 500ms var(--ease-out); }
.mbar-foot { color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; }
.mbar-foot em { color: rgba(255, 255, 255, 0.9); font-style: normal; }
.mbar-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar-go { display: inline-flex; align-items: center; gap: 2px; flex: none; color: #f6e3ab; opacity: 0; transform: translateX(-4px); transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.mbar-go .glyph { width: 14px; height: 14px; }
.mbar:hover .mbar-go, .mbar:focus-visible .mbar-go { opacity: 1; transform: none; }
.mission-room { margin: 0 0 30px; scroll-margin-top: 90px; }
.hearts-box { scroll-margin-top: 90px; }
.mission-room .mission, .mission-room .mission-why, .mission-room .mission-head, .mission-room .mission-note, .mission-room .mission-worn { max-width: none; }
.mission-head .hint b { color: #f6e3ab; }
.mission-head .hint .glyph { width: 13px; height: 13px; color: var(--rose); vertical-align: -2px; }
.mission.is-daily { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 14px 18px; }
.mission.is-daily .mission-mark { width: 36px; height: 36px; }
.mission.is-daily h3 { font-size: 1.08rem; }
@media (min-width: 861px) {
  /* En pantalla ancha la barra ya está en el panel de la derecha: no se repite en la lista. */
  .msg:has(.msg-extras) .mission-slot-list { display: none; }
}
@media (hover: none) {
  .mbar-go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mbar, .mbar-go, .mbar-track i { transition: none; }
}
.mbar > * { min-width: 0; }
.mbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  /* En el teléfono caben el número y el corazón; el resto se entiende por el contexto. */
  .mbar-prize > span:last-child:not(:only-child) { display: none; }
  .mbar-go > span { display: none; }
}

/* ---- barra de misiones pequeña, a la derecha del título de «Tu menú y tus regalos» ---- */
.mission-slot-head { flex: none; width: 210px; margin: 0 4px 0 auto; }
.mission-slot-head + .btn { margin-left: 0; }
.mbar { gap: 5px; padding: 7px 11px 8px; border-radius: 12px; }
.mbar-top { gap: 8px; }
.mbar-title { flex: 1; font-size: 0.78rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.mbar-count { flex: none; font-size: 0.78rem; color: rgba(255, 255, 255, 0.82); white-space: nowrap; }
.mbar-count b { color: #f6e3ab; font-weight: 600; }
.mbar-prize { font-size: 0.78rem; gap: 3px; }
.mbar-prize b { font-size: 0.86rem; }
.mbar-prize .glyph { width: 12px; height: 12px; }
.mbar-track { height: 4px; }
/* En la lista del teléfono va en el mismo renglón que «Tu menú y tus regalos», a su derecha. */
.msg-extras-row { display: flex; align-items: stretch; gap: 8px; margin: 0 12px 8px; }
.msg-extras-row:not(:has(.msg-extras-link)):not(:has(.mbar)) { display: none; }
.msg-extras-row .msg-extras-link { flex: 1; min-width: 0; margin: 0; }
.msg-extras-row .mission-slot-list { flex: none; width: 150px; margin: 0; }
.msg-extras-row .mission-slot-list .mbar { height: 100%; align-content: center; }
.msg-extras-row .mission-slot-list .mbar-top { flex-wrap: wrap; row-gap: 2px; }
.msg-extras-row .mission-slot-list .mbar-title { flex-basis: 100%; }
@media (min-width: 861px) {
  .msg:has(.msg-extras) .msg-extras-row { display: none; }
}
@media (max-width: 860px) {
  /* En el teléfono el encabezado del panel no tiene sitio: la barra ya está en la lista. */
  .mission-slot-head { display: none; }
}

/* ---- todas las misiones en un solo recuadro, en la vitrina ---- */
.mission-box { margin: 0 0 30px; padding: 22px 24px 20px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 22px; background: linear-gradient(180deg, rgba(216, 180, 106, 0.08), rgba(255, 255, 255, 0.02)); scroll-margin-top: 90px; }
.mission-box-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.mission-box-head h2 { font: italic 600 1.6rem/1.15 var(--serif); color: #fff; }
.mission-box-sum { color: var(--soft); font-size: 0.92rem; }
.mission-box-sum b { color: #f6e3ab; font: 600 1.25rem var(--serif); }
.mission-box-sum .glyph, .mgroup-note .glyph { width: 14px; height: 14px; color: var(--rose); vertical-align: -2px; }
.mission-box .mission-why { max-width: none; margin: 0 0 6px; padding: 14px 16px; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; border-radius: 14px; }
.mission-box .mission-why-mark { width: 40px; height: 40px; }
.mission-box .mission-why-mark .glyph { width: 20px; height: 20px; }
.mission-box .mission-why h2 { font-size: 1.12rem; }
.mission-box .mission-why p { font-size: 0.9rem; }
.mgroup { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin: 20px 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(216, 180, 106, 0.28); }
.mgroup h3 { font: italic 600 1.15rem var(--serif); color: #fff; }
.mgroup h3 em { margin-left: 6px; color: var(--soft); font: 500 0.82rem var(--sans); font-style: normal; }
.mgroup h3 em b { color: #f6e3ab; }
.mgroup-note { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; }
.mgroup-note b { color: #f6e3ab; }
.mlist { margin: 0; padding: 0; list-style: none; }
.mrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mlist .mrow:last-child { border-bottom: 0; }
.mrow-mark { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 50%; color: #2a1206; }
.mrow-mark .glyph { width: 14px; height: 14px; }
.mrow.is-done .mrow-mark { border-color: #d8b46a; background: #d8b46a; }
.mrow-main strong { color: #fff; font-weight: 600; }
.mrow.is-done .mrow-main strong { color: rgba(255, 255, 255, 0.7); }
.mrow-main p { margin-top: 1px; color: rgba(255, 255, 255, 0.62); font-size: 0.86rem; line-height: 1.4; }
.mrow-main .mission-bar { max-width: 320px; height: 4px; margin: 8px 0 4px; }
.mrow-main small { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; }
.mrow-main small b { color: #fff; }
.mrow-main .mission-badge { margin-left: 4px; vertical-align: 1px; }
.mrow-prize { display: inline-flex; align-items: center; gap: 3px; color: #f6e3ab; white-space: nowrap; }
.mrow-prize b { font: 600 1.05rem var(--serif); }
.mrow.is-major .mrow-prize b { font-size: 1.25rem; }
.mrow-prize .glyph { width: 14px; height: 14px; color: var(--rose); }
.mrow.is-done .mrow-prize { opacity: 0.6; }
.mission-box .mission-note, .mission-box .mission-worn { max-width: none; }
@media (max-width: 640px) {
  .mission-box { padding: 18px 16px 16px; border-radius: 18px; }
  .mission-box .mission-why { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; }
}

/* ---- la barra y «Ver mis ganancias», una al lado de la otra y del mismo tamaño ---- */
/* Dos columnas iguales: en cualquier idioma miden lo mismo de ancho y de alto. */
.msg-head-pair { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; gap: 8px; }
.mission-slot-head { width: auto; max-width: none; margin: 0; display: grid; }
.mission-slot-head .mbar { align-content: center; gap: 4px; padding: 0 15px; border-width: 1.5px; border-radius: 999px; }
.mission-slot-head .mbar-top { gap: 10px; }
.mission-slot-head .mbar-title, .mission-slot-head .mbar-count { font-size: 0.72rem; line-height: 1.2; }
.mission-slot-head .mbar-title { color: #fff; }
/* A este tamaño no cabe el premio: lo dicen la lista del teléfono y el registro. */
.mission-slot-head .mbar-prize { display: none; }
.mission-slot-head .mbar-track { height: 3px; }
@media (max-width: 860px) {
  .mission-slot-head { display: none; }
}
.mission-slot-head .mbar-title, .msg-extras-row .mbar-title { overflow: visible; text-overflow: clip; }

/* ---- la compra es una tarjeta clara: la nota de los corazones lleva texto oscuro, y el aviso del cobro
   va debajo de ella sin montarse encima ---- */
#checkout .hearts-note { color: var(--muted); background: var(--blush); border: 1px solid var(--line); }
#checkout .hearts-note b { color: var(--red-deep); }
.hearts-note + .charge-note { margin-top: 10px; }

/* ---- paquetes al extranjero (paquete.js) ---- */
.bundle-box { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(216, 180, 106, 0.42); border-radius: 16px; background: linear-gradient(90deg, rgba(216, 180, 106, 0.14), rgba(216, 180, 106, 0.04)); color: #fff; }
.bundle-box strong { font: italic 600 1.08rem var(--serif); }
.bundle-box p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; line-height: 1.45; }
.bundle-box p.hint { color: rgba(255, 255, 255, 0.58); font-size: 0.82rem; }
.bundle-box.is-open { border-color: #d8b46a; }
.bundle-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(216, 180, 106, 0.18); color: #f6e3ab; }
.bundle-mark .glyph { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .bundle-box { grid-template-columns: 40px minmax(0, 1fr); }
  .bundle-box > .btn { grid-column: 1 / -1; justify-self: start; }
}
.card.is-picked .card-img { outline: 2px solid #d8b46a; outline-offset: -2px; }
.bundle-pick { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; background: rgba(18, 3, 10, 0.78); color: #fff; font: 600 0.78rem var(--sans); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.bundle-pick .glyph { width: 14px; height: 14px; }
.bundle-pick[aria-pressed="true"] { border-color: #d8b46a; background: #d8b46a; color: #2a1206; }
.bundle-pick:active { transform: scale(0.96); }
.bundle-bar { position: fixed; left: 50%; bottom: 18px; z-index: 58; width: min(560px, calc(100vw - 32px)); transform: translateX(-50%); }
.bundle-bar-in { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid rgba(216, 180, 106, 0.55); border-radius: 18px; background: rgba(28, 10, 17, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); color: #fff; }
.bundle-bar .bundle-mark { flex: none; width: 34px; height: 34px; }
.bundle-sum { flex: 1; min-width: 0; display: grid; }
.bundle-sum strong { font-weight: 600; }
.bundle-sum strong b { color: #f6e3ab; }
.bundle-sum small { color: rgba(255, 255, 255, 0.66); font-size: 0.8rem; }
.bundle-bar .link { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }
.bundle-bar .btn.is-off { opacity: 0.45; pointer-events: auto; cursor: not-allowed; box-shadow: none; }
@media (max-width: 520px) {
  /* Por encima de la burbuja de Perla, que vive en la esquina. */
  .bundle-bar { bottom: 88px; }
  .bundle-bar .bundle-mark, .bundle-bar .link { display: none; }
}
.bundle-list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.bundle-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--blush); }
.bundle-list img, .bundle-list .order-thumb { flex: none; width: 46px; height: 58px; border-radius: 8px; object-fit: cover; }
.bundle-list div { flex: 1; min-width: 0; display: grid; }
.bundle-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bundle-list small { color: var(--muted); }
.bundle-list .link { color: var(--red-deep); font-size: 0.86rem; }
.bundle-list-sm li { padding: 6px 8px; }
.totals .subsidy dt, .totals .subsidy dd { color: #2f7a4b; }
.duties-note, .customs-note { font-size: 0.88rem; }
.abroad-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.abroad-hint .glyph { width: 16px; height: 16px; }
.listing .btn .glyph { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }

/* ---------- Sugerencias: casilla de la compra, monedas, avisos para el extranjero, invitaciones ---------- */
/* La casilla obligatoria antes de pagar. */
.accept-check { margin: 18px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--blush); color: var(--ink); line-height: 1.45; }
.accept-check a { color: var(--red); text-decoration: underline; }
/* El precio aproximado en la moneda de quien compra. */
.fx-price { margin-left: 6px; color: var(--muted); font: 500 0.82em var(--sans); white-space: nowrap; }
.listing-price .fx-price, .bundle-sum .fx-price, .abroad-note .fx-price { color: rgba(255, 255, 255, 0.62); }
/* Aviso de la portada para quien llega desde fuera, y recordatorio del paquete a medias. */
.abroad-note, .bundle-reminder { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 22px; padding: 16px 44px 16px 16px; border: 1px solid rgba(216, 180, 106, 0.45); border-radius: 16px; background: linear-gradient(90deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.04)); color: #fff; }
.abroad-note strong { font: italic 600 1.1rem var(--serif); }
.abroad-note p { margin: 4px 0 0; max-width: 68ch; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; line-height: 1.5; }
.abroad-note-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px !important; }
.abroad-note-links .link { color: #f6e3ab; }
.abroad-note-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.7); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background-color 160ms ease; }
.abroad-note-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.bundle-reminder { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: 10px 44px 10px 12px; }
.bundle-reminder p { margin: 0; font-size: 0.92rem; }
.bundle-reminder a:not(.btn) { color: #f6e3ab; }
@media (max-width: 640px) {
  .bundle-reminder { grid-template-columns: 40px minmax(0, 1fr); }
  .bundle-reminder > .btn { grid-column: 1 / -1; justify-self: start; }
}
/* El enlace de la modelo para invitar compradores, en Ganancias. */
.invite-card { margin-top: 22px; }
.invite-link { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.invite-link input { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: #fff; font: 0.88rem var(--sans); }
/* Panel: ganancia limpia, seguimiento automático y guía en Envia. */
.admin-net small, .admin-evidence small, .ship-auto { opacity: 0.72; }
.admin-net .is-loss { color: var(--rose); }
.ship-auto { font-size: 0.8em; font-weight: 400; }
.envia-guide { margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }

/* ---------- Lanzamiento: la cuenta atrás de Explorar y Subastas ---------- */
/* Todo el fondo de la página, difuminado: solo se lee la cuenta atrás. La barra de arriba queda encima. */
.launch::before { content: ''; position: fixed; inset: 0; z-index: 0; background: rgba(18, 3, 10, 0.4); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); pointer-events: none; }
.launch-tease { z-index: 0; }
.launch { position: relative; display: grid; place-items: center; min-height: calc(100dvh - 160px); margin: -8px 0 0; padding: 32px 0 48px; overflow: hidden; }
/* La vitrina de fondo: tarjetas de mentira, difuminadas, para que se intuya lo que viene. */
.launch-tease { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 8px; filter: blur(16px) saturate(1.1); opacity: 0.8; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 35%, transparent 85%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 35%, transparent 85%); }
.launch-card { position: relative; display: grid; align-content: end; gap: 8px; aspect-ratio: 3 / 4; padding: 14px; border-radius: 18px; background: radial-gradient(120% 90% at 30% 20%, rgba(255, 107, 127, 0.55), rgba(193, 18, 31, 0.35) 45%, rgba(43, 6, 17, 0.9)), linear-gradient(160deg, #3a0c18, #12030a); animation: launch-breathe 6s var(--ease-in-out) calc(var(--i) * -0.5s) infinite alternate; }
.launch-card:nth-child(3n) { background: radial-gradient(120% 90% at 70% 25%, rgba(216, 180, 106, 0.5), rgba(143, 10, 26, 0.4) 50%, rgba(18, 3, 10, 0.9)); }
.launch-card i { position: absolute; inset: 18% 22% 38%; border-radius: 40% 40% 30% 30%; background: rgba(255, 220, 225, 0.35); }
.launch-card b { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.4); }
.launch-card b + b { width: 55%; background: rgba(255, 107, 127, 0.6); }
@keyframes launch-breathe { from { transform: scale(0.98); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .launch-card { animation: none; } }
.launch::after { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 50% at 50% 48%, rgba(18, 3, 10, 0.45), transparent 80%); pointer-events: none; }
.launch-box { position: relative; z-index: 1; width: min(640px, 100%); padding: 36px 28px; border: 1px solid rgba(216, 180, 106, 0.4); border-radius: 26px; background: rgba(28, 8, 15, 0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08); color: #fff; text-align: center; }
.launch-box .eyebrow { margin-bottom: 10px; color: #f6e3ab; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; font-weight: 600; }
.launch-box h1 { font: italic 600 clamp(1.7rem, 4.6vw, 2.5rem) / 1.12 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.launch-box h1 em { color: var(--rose); }
.launch-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 10px; }
.launch-cell { display: grid; gap: 4px; padding: 16px 6px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.launch-cell b { font: 600 clamp(2rem, 7vw, 3.1rem) / 1 var(--serif); font-variant-numeric: tabular-nums; color: #fff; }
.launch-cell span { color: rgba(255, 255, 255, 0.62); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.launch-when { margin: 0 0 18px; color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }
.launch-when::first-letter { text-transform: uppercase; }
.launch-when span { color: rgba(255, 255, 255, 0.5); }
.launch-soon { margin: 22px 0; font: italic 600 clamp(2.2rem, 8vw, 3.4rem) var(--serif); color: var(--rose); }
.launch-box .lead { max-width: 52ch; margin: 0 auto 16px; color: rgba(255, 255, 255, 0.8); line-height: 1.55; }
.launch-count { margin: 0 0 16px; color: #f6e3ab; }
.launch-count b { font: 600 1.3rem var(--serif); }
.launch-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.launch-note { flex-basis: 100%; margin: 4px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.launch-ok { color: #f6e3ab; font-size: 0.95rem; }
/* Acceso anticipado y lista de deseos (lanzamiento.js) */
.launch-early { max-width: 52ch; margin: 0 auto 16px; color: #f6e3ab; font-size: 0.92rem; line-height: 1.45; }
.launch-early-note .spark { color: #f6e3ab; }
.wish { flex-basis: 100%; text-align: left; }
.wish-cta, .wish-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid rgba(216, 180, 106, 0.35); border-radius: 14px; background: rgba(216, 180, 106, 0.08); }
.wish-title { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; line-height: 1.4; }
.wish-title b { display: block; color: #f6e3ab; font: 600 1.05rem var(--serif); }
.wish-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; flex-basis: 100%; }
.wish-tag { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.82rem; }
.wish-form { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid rgba(216, 180, 106, 0.35); border-radius: 14px; background: rgba(20, 4, 10, 0.55); }
.wish-group { margin: 0; padding: 0; border: 0; }
.wish-group legend { margin-bottom: 6px; color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wish-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wish .tag-toggle[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, #c1121f, #8f0a1a); color: #fff; box-shadow: 0 6px 16px rgba(193, 18, 31, 0.34); }
.wish-actions { display: flex; align-items: center; gap: 14px; }
.wish-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; }
.wish-stat h4 { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, rgba(255, 255, 255, 0.6)); }
.wish-bars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wish-bars li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 8px; font-size: 0.86rem; }
.wish-bars i { display: block; height: 8px; width: var(--w); min-width: 4px; border-radius: 0 4px 4px 0; background: #c1121f; }
.wish-bars b { font-variant-numeric: tabular-nums; }
/* Prueba de los intermediarios de envío (admin.js) */
.ship-check { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.ship-check li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ship-check small { color: rgba(255, 255, 255, 0.65); flex-basis: 100%; }
.guide-error { color: #ffb4bd; }
.launch-admin { justify-content: flex-start; }
.launch-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 640px) {
  .launch-tease { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-box { padding: 28px 16px; border-radius: 22px; }
  .launch-clock { gap: 8px; }
  .launch-cell { padding: 12px 2px 10px; }
  .launch-actions .btn { width: 100%; justify-content: center; }
}
.launch-zone::before { content: "("; }
.launch-zone::after { content: ")"; }

/* ---------- Modelos fundadoras ---------- */
.founder-badge { display: inline-block; vertical-align: middle; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }
.spot-body h2 .founder-badge { margin-left: 6px; vertical-align: -4px; }
.mcard-founder { position: absolute; top: 8px; right: 8px; z-index: 2; line-height: 0; }
.mcard-photo .mcard-founder img.founder-badge, .spot-body h2 img.founder-badge, .vitrina-founder img.founder-badge { width: auto; max-width: none; object-fit: contain; }
.mcard-photo .mcard-founder img.founder-badge { height: 46px; }
.spot-body h2 img.founder-badge { height: 40px; }
.vitrina-founder img.founder-badge { height: 92px; }
.vitrina-founder { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; text-align: left; }
.vitrina-founder b { display: block; font: italic 600 1.05rem var(--serif); color: #f6e3ab; }
.vitrina-founder small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; line-height: 1.35; }
.launch-founders { display: flex; align-items: center; gap: 12px; max-width: 52ch; margin: 0 auto 18px; padding: 10px 14px; border: 1px solid rgba(216, 180, 106, 0.35); border-radius: 14px; background: rgba(216, 180, 106, 0.08); color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; text-align: left; line-height: 1.45; }
.launch-founders b { color: #f6e3ab; }
.launch-founders img { flex: none; }
.founders-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.founders-list li { display: flex; align-items: center; gap: 10px; }
.founders-list small { color: rgba(255, 255, 255, 0.6); }

/* ---------- La lista de la modelo para el lanzamiento ---------- */
.launch-list { flex-basis: 100%; text-align: left; }
.launch-progress { height: 6px; margin: 4px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.launch-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d8b46a, #f6e3ab); transition: width 400ms var(--ease-out); }
.launch-steps { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.launch-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.launch-steps li.is-done { opacity: 0.7; }
.launch-tick { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 50%; color: #12030a; font-weight: 700; font-size: 0.85rem; }
.launch-steps li.is-done .launch-tick { background: #d8b46a; }
.launch-step b { display: block; font-weight: 600; }
.launch-step small { display: block; color: rgba(255, 255, 255, 0.65); font-size: 0.82rem; }
@media (max-width: 640px) {
  .launch-steps li { grid-template-columns: 26px minmax(0, 1fr); }
  .launch-steps li .btn { grid-column: 2; justify-self: start; }
}
.launch-table { overflow-x: auto; }
.launch-table td small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }
.launch-table img { vertical-align: middle; }
