: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; }
.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; }
.chat-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.chat-head .report-link, .panel .report-link { color: var(--muted); padding: 0; }
.chat-blocked { justify-content: center; color: var(--muted); font-size: 0.93rem; }
.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, .composer 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); }

/* ---------- mensajes ---------- */

.inbox { max-width: 720px; margin: 0 auto; }
.inbox h1 { font-size: 2rem; font-style: italic; margin-bottom: 20px; }

.convo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--veil-line);
  border-radius: var(--radius);
  color: var(--white);
  margin-bottom: 10px;
  background: var(--veil);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.convo:hover { text-decoration: none; border-color: var(--rose); background: var(--veil-line); }
.convo.unread { border-left: 4px solid var(--rose); box-shadow: -8px 0 26px -10px rgba(255, 107, 127, 0.8); }
.convo .mid { flex: 1; min-width: 0; }
.convo .mid p { color: var(--soft); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .mid p { color: var(--white); font-weight: 600; }
.convo time { color: var(--soft); font-size: 0.8rem; white-space: nowrap; }

.chat {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  height: calc(100vh - 124px);
  min-height: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: #fffafa;
  color: var(--ink);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--blush); }
.chat-head a { color: var(--red); }
.chat-head a.back { font-size: 1.4rem; line-height: 1; padding: 0 6px; }
.chat-head a.name { color: var(--ink); font-weight: 600; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

.bubble {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-color: transparent;
  color: var(--white);
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 18px rgba(193, 18, 31, 0.3);
}
.bubble.new { animation: rise 200ms var(--ease-out) backwards; }
.bubble time { display: block; margin-top: 3px; font-size: 0.72rem; opacity: 0.7; }

.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--white); }
.composer textarea {
  flex: 1;
  height: 48px;
  max-height: 140px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  resize: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

/* ---------- 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, .bubble.new, .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; }
  .chat { height: calc(100vh - 150px); }
}

/* 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: 1fr 1fr; gap: 8px; margin-top: 4px; }
.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); }

/* ====================================================================================
   Pagos solo dentro del sitio: la norma fija sobre el chat y el recordatorio que queda
   bajo un mensaje que propone pagar por otra vía.
   ==================================================================================== */
.chat-rule {
  margin: 0;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(165, 124, 44, 0.35);
  background: linear-gradient(90deg, rgba(165, 124, 44, 0.16), rgba(165, 124, 44, 0.06));
  color: #5c4708;
  font-size: 0.82rem;
  line-height: 1.45;
}
.chat-rule a { color: inherit; text-decoration: underline; white-space: nowrap; }
.chat-flag {
  align-self: flex-start;
  max-width: 76%;
  margin: -2px 0 4px;
  padding: 8px 12px;
  border-left: 3px solid var(--gold-deep);
  border-radius: 4px 10px 10px 4px;
  background: #fff7dd;
  color: #5c4708;
  font-size: 0.8rem;
  line-height: 1.45;
}
.chat-flag.mine { align-self: flex-end; border-left: 0; border-right: 3px solid var(--gold-deep); border-radius: 10px 4px 4px 10px; }
@media (max-width: 560px) {
  .chat-rule { padding: 8px 14px; font-size: 0.78rem; }
  .chat-flag { max-width: 88%; }
}

/* ====================================================================================
   «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; }
.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; }
}
