:root {
  --bg: #12081f;
  --bg2: #1a0f33;
  --navy: #0c1222;
  --gold: #d4a017;
  --gold2: #f0d48a;
  --text: #f5f0e8;
  --muted: #b8a9c9;
  --green: #22c55e;
  --red: #ef4444;
  --card: #1e1435;
  --line: rgba(212,160,23,.28);
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; height: auto; overflow-x: hidden; overflow-y: auto; max-width: 100%; overscroll-behavior-x: none; -webkit-overflow-scrolling: touch; }
body {
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, #4a1a6b 0%, #12081f 42%, #0c1222 100%);
  color: var(--text);
  min-height: 100dvh;
  padding-bottom: calc(72px + var(--safe));
}
a { color: var(--gold); text-decoration: none; }
.app-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 12px;
  min-height: 128px;
  background: rgba(18,8,31,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-head img { width: 112px; height: 112px; border-radius: 0; object-fit: contain; background: transparent; }
.app-head h1 { font-size: 15px; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 6px;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); color: var(--text);
  background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 13px;
}
.chip.on { background: var(--gold); color: #1a1000; font-weight: 700; border-color: var(--gold); }
.card {
  margin: 12px 16px; background: var(--card); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
}
.card .pic { aspect-ratio: 1/1; width: 100%; object-fit: cover; display: block; background: #000; }
.card .meta { padding: 12px 14px 14px; position: relative; }
.heart {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(0,0,0,.45); color: #fff;
  border: 0; font-size: 18px;
}
.title { font-size: 18px; font-weight: 700; }
.sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #333; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.dot.on { background: var(--green); }
.pill { font-size: 11px; border: 1px solid var(--gold); color: var(--gold); padding: 3px 8px; border-radius: 999px; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: center;
  height: calc(64px + var(--safe)); padding-bottom: var(--safe);
  background: #140a24; border-top: 1px solid var(--line);
}
.nav a { color: var(--muted); font-size: 9px; text-align: center; flex: 1; padding-top: 6px; line-height: 1.15; }
.nav svg { width: 20px; height: 20px; }
.nav a.on { color: var(--gold); }
.nav svg { display: block; margin: 0 auto 3px; }
.btn {
  display: block; width: 100%; background: var(--gold); color: #1a1000; border: 0;
  border-radius: 12px; padding: 14px; font-weight: 800; font-size: 16px;
}
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.wrap { padding: 16px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #0d0818; color: var(--text); font-size: 16px;
}
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .slot { aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 12px; overflow: hidden; background: #0d0818; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.legal { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px; }
.banner {
  margin: 10px 16px; padding: 12px; border-radius: 12px;
  background: #3a1760; border: 1px solid var(--gold); display: flex; gap: 10px; align-items: center;
}
.chat { padding: 12px 16px 90px; }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 14px; margin: 8px 0; font-size: 15px; }
.me { margin-left: auto; background: var(--gold); color: #1a1000; }
.them { background: #2a1b45; }

/* extras */
.badge.ok { background:rgba(80,180,120,.22); color:#6dcea0; border:1px solid rgba(109,206,160,.35); }
.badge.warn { background:rgba(214,175,90,.15); color:var(--gold2); border:1px solid rgba(214,175,90,.35); }
.verify-box { margin:14px 0 6px; padding:14px; border-radius:14px; background:rgba(214,175,90,.1); border:1px solid rgba(214,175,90,.28); text-align:left; font-size:14px; line-height:1.45; color:var(--text); }
.verify-box b { color:var(--gold2); }
.badge { display:inline-block; font-size:10px; padding:2px 7px; border-radius:999px; margin-right:4px;
  background: rgba(212,160,23,.15); color: var(--gold2); border: 1px solid var(--line); }
.userline { display:flex; align-items:center; gap:8px; margin-top:10px; }
.userline .who { flex:1; min-width:0; }
.userline .name { font-size:13px; font-weight:600; }
.userline .num { font-size:11px; color: var(--muted); }
.presence { display:flex; align-items:center; gap:6px; font-size:11px; color: var(--muted); margin-top:6px; }
.heart-abs {
  position:absolute; top:8px; right:8px;
  width:28px; height:28px; min-width:28px; min-height:0; max-height:28px;
  padding:0; margin:0; border:0; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff;
  font-size:14px; line-height:28px; text-align:center;
  display:flex; align-items:center; justify-content:center;
  box-sizing:border-box; flex:none;
}
.heart-abs.on { color:#ef4444; }
.card { position: relative; }
.share { width:36px; height:36px; border:0; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; }
.price { font-size:20px; font-weight:800; color: var(--gold2); margin-top:6px; }
.specs { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.install { margin:10px 16px; padding:12px 14px; border-radius:14px; background:#3a1760; border:1px solid var(--gold);
  display:flex; gap:10px; align-items:center; }
.install img { width:96px; height:96px; border-radius:0; object-fit:contain; background:transparent; }
.install b { display:block; font-size:13px; }
.install span { font-size:12px; color: var(--gold2); }
.seg { display:flex; gap:8px; }
.seg button { flex:1; padding:10px 8px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--text); font-size:13px; }
.seg button.on { background:var(--gold); color:#1a1000; font-weight:700; border-color:var(--gold); }
.tags { display:flex; flex-wrap:wrap; gap:8px; }
.tags button { border:1px solid var(--line); background:transparent; color:var(--text); border-radius:999px; padding:8px 12px; font-size:13px; }
.tags button.on { background:var(--gold); color:#1a1000; font-weight:700; }
.chat-head { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); }
.chat-foot { position:absolute; left:0; right:0; bottom:64px; padding:8px 12px 10px; background:#140a24; border-top:1px solid var(--line); }
.chat-foot form { display:flex; gap:8px; }
.chat-foot input { flex:1; }
.chat-foot button { width:auto; padding:12px 16px; }
.accept { margin:12px 16px; }
.faq a, .legal a { display:block; padding:12px; border-bottom:1px solid var(--line); color:var(--text); }
.avatar-pick { display:flex; gap:12px; margin:12px 0; }
.avatar-pick button { flex:1; background:#0d0818; border:1px solid var(--line); border-radius:12px; color:var(--text); padding:10px; }
.avatar-pick img { width:64px; height:64px; border-radius:50%; display:block; margin:0 auto 6px; }
.avatar-pick button.on { border-color:var(--gold); }
.big-avatar { width:96px; height:96px; border-radius:50%; display:block; margin:8px auto; object-fit:cover; }
.views { font-size:12px; color:var(--muted); }
.page-title { font-size:22px; font-weight:800; padding:8px 16px 0; }
.hint { font-size:12px; color:var(--muted); margin-top:4px; }
.slot.add { display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:28px; }
.unlock { text-align:center; padding:16px; border:1px dashed var(--gold); border-radius:14px; margin:12px 16px; }
.unlock strong { color:var(--gold2); font-size:28px; display:block; }

html { -webkit-text-size-adjust: 100%; }
#app { width: 100%; max-width: 520px; margin: 0 auto; }
.feed { display: block; }
.pic { max-width: 100%; height: auto; }
img, svg, video { max-width: 100%; }
.seg { flex-wrap: wrap; }
.seg button { min-width: calc(33% - 8px); }
.chat-foot { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--safe)); max-width: 520px; margin: 0 auto; }
.nav { max-width: 520px; left: 50%; transform: translateX(-50%); width: 100%; }
button:not(.heart-abs):not(.slot-x):not(.install-x), .btn, .chip, .nav a { min-height: 40px; }

@media (max-width: 380px) {
  .title { font-size: 16px; }
  .price { font-size: 17px; }
  .chip { padding: 7px 11px; font-size: 12px; }
  .card { margin: 10px 12px; }
  .wrap { padding: 12px; }
}

@media (min-width: 720px) {
  #app { max-width: 920px; }
  .nav { max-width: 920px; }
  .chat-foot { max-width: 920px; }
  .feed { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 0 8px 16px; }
  .feed .card { margin: 12px 8px; }
  .app-head, .chips, .install { max-width: 920px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 1100px) {
  #app { max-width: 1080px; }
  .nav, .chat-foot { max-width: 1080px; }
  .feed { grid-template-columns: 1fr 1fr 1fr; }
}

@media (hover: hover) {
  .chip:hover, .tags button:hover, .seg button:hover { border-color: var(--gold); }
  .btn:hover { filter: brightness(1.05); }
}

/* instalar en pantalla */
.install { flex-wrap: wrap; position: relative; }
.install-txt { flex: 1; min-width: 0; }
.install-x {
  position: absolute; top: 6px; right: 8px; background: transparent; border: 0;
  color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; min-height: 0;
}
.install-cta {
  flex: 0 0 auto; background: var(--gold); color: #1a1000; border: 0; border-radius: 10px;
  padding: 11px 14px; font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.install-cta .arrow { font-style: normal; animation: ot-bounce 1.2s infinite; }
@keyframes ot-bounce {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(4px); opacity: 1; }
}
.install.ready { box-shadow: 0 0 0 2px rgba(212,160,23,.35); }
@media (max-width: 420px) {
  .install-cta { width: 100%; justify-content: center; margin-top: 10px; }
}
.sheet {
  position: fixed; inset: 0; z-index: 60; background: rgba(6,4,12,.72);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.sheet-box {
  width: 100%; max-width: 520px; background: #1a1030; border-top: 1px solid var(--gold);
  border-radius: 18px 18px 0 0; padding: 20px 20px calc(24px + var(--safe));
  animation: ot-up .22s ease-out;
}
@keyframes ot-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-logo { width: 52px; height: 52px; display: block; margin: 0 auto 10px; }
.sheet-box h3 { text-align: center; color: var(--gold2); font-size: 17px; margin-bottom: 12px; }
.sheet-box ol { margin: 0 0 16px 20px; color: var(--text); font-size: 14px; line-height: 1.7; }
.sheet-box b { color: var(--gold2); }

.stones { font-size: 12px; color: var(--gold2); margin-top: 4px; }
.pill.stone { border-color: var(--gold2); color: var(--gold2); }
.tags.multi button.on { background: var(--gold); color: #1a1000; font-weight: 700; }

/* logo centrado, sin texto duplicado */
.app-head .brand { width: 112px; height: 112px; border-radius: 0; display: block; margin: 0 auto; object-fit: contain; background: transparent; }
.app-head img { border-radius: 0; }
.app-head .back, .app-head .back-sp { width: 32px; flex: 0 0 32px; text-align: center; }
.app-head .back { color: var(--gold); font-size: 26px; line-height: 1; text-decoration: none; }
.page-title { font-size: 20px; font-weight: 800; padding: 12px 16px 0; color: var(--text); }

/* barra de accion fija sobre el menu */
.action-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(64px + var(--safe)); width: 100%; max-width: 520px; z-index: 25;
  padding: 10px 16px 12px;
  background: linear-gradient(to top, rgba(12,8,24,.98) 60%, rgba(12,8,24,0));
}
body.has-action { padding-bottom: calc(200px + var(--safe)); }
.action-spacer { height: 88px; width: 100%; flex-shrink: 0; }
@media (min-width: 720px) { .action-bar { max-width: 920px; } }
@media (min-width: 1100px) { .action-bar { max-width: 1080px; } }

.photos .slot { position: relative; }
.slot-x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; min-height: 0;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; line-height: 1;
}
.sheet-box .btn + .btn { margin-top: 10px; }

/* formulario compacto: dos columnas y desplegables */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 > div { min-width: 0; }
select {
  width: 100%; padding: 13px 34px 13px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0d0818; color: var(--text);
  font-size: 16px; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option { background: #12081f; color: var(--text); }
.wrap label { margin: 12px 0 6px; }
.grid2 label { margin-top: 12px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(90px + var(--safe)); z-index: 80; max-width: 88%;
  background: #2a1b45; color: var(--text); border: 1px solid var(--gold);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.toast.bad { border-color: var(--red); }
.btn:disabled { opacity: .55; }

.gallery { position:relative; background:#000; }
.gallery-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
.gallery-track::-webkit-scrollbar { display:none; }
.gallery-track img { flex:0 0 100%; width:100%; aspect-ratio:1/1; object-fit:cover; scroll-snap-align:start; display:block; }
.gallery-dots { position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:6px; pointer-events:none; }
.gallery-dots i { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.4); }
.gallery-dots i.on { background:var(--gold); }
.gallery-count { position:absolute; top:10px; right:10px; background:rgba(0,0,0,.55); color:#fff; font-size:12px; padding:4px 8px; border-radius:999px; }
.action-bar.duo { display:flex; gap:8px; }
.action-bar.duo .btn { flex:1; }
.slot-x { position:absolute; top:4px; right:4px; width:26px; height:26px; border:0; border-radius:50%; background:rgba(0,0,0,.65); color:#fff; font-size:16px; line-height:1; }
.photos .slot { position:relative; }

.card-row { display:flex; gap:12px; padding:12px 12px 0; }
.card-pic { position:relative; width:110px; flex:0 0 110px; }
.card-pic .pic { width:100%; aspect-ratio:1; object-fit:cover; border-radius:12px; display:block; }
.card-pic .heart-abs { top:6px; right:6px; width:26px; height:26px; min-width:26px; max-height:26px; font-size:13px; line-height:26px; }
.card .meta { padding:0; flex:1; min-width:0; }
.card .title { font-size:16px; line-height:1.25; }
.card .price { margin-top:4px; font-size:18px; }
.card .sub { margin-top:6px; font-size:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.loc { display:inline-flex; align-items:center; gap:4px; margin-top:8px; font-size:12px; color:var(--text); }
.loc svg { flex:0 0 auto; color:var(--gold2); }
.card-foot { display:flex; align-items:center; gap:8px; padding:10px 12px 12px; border-top:1px solid rgba(255,255,255,.06); margin-top:10px; }
.card-foot .who { flex:1; min-width:0; }
.card-foot .name { font-size:12px; }
.ago { font-size:11px; color:var(--muted); white-space:nowrap; }
.avatar-wrap { position:relative; width:28px; height:28px; flex:0 0 auto; }
.avatar-wrap .avatar { width:28px; height:28px; }
.online-dot { position:absolute; right:-1px; bottom:-1px; width:9px; height:9px; border-radius:50%; background:var(--red); border:2px solid var(--card); }
.online-dot.on { background:var(--green); }
.ficha-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:8px; }
.ficha-meta .loc { margin-top:0; }
@media (min-width:720px) {
  .card-pic { width:140px; flex-basis:140px; }
}


/* lock horizontal scroll — do NOT clip .wrap (breaks <select> on iPhone) */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  overscroll-behavior-x: none;
}
#app {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow-x: visible;
}
.wrap, .feed, .action-bar, .nav, .chat, .chat-head {
  max-width: 100%;
  overflow-x: visible;
}
.card, .meta { max-width: 100%; }
select, input, textarea { position: relative; z-index: 2; }
.gallery { max-width: 100%; overflow: hidden; }
.gallery-track { touch-action: pan-x; }
.card-row { max-width: 100%; min-width: 0; }
.card .meta, .card-foot .who, .userline .who { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.title, .sub, .price { overflow-wrap: anywhere; word-break: break-word; }
input, select, textarea, .btn { max-width: 100%; box-sizing: border-box; }
.chips { max-width: 100%; }
.specs { max-width: 100%; }
.card-foot { max-width: 100%; }

.specs-text { margin-top:10px; font-size:14px; line-height:1.55; color:var(--text); }
.specs-text div { padding:2px 0; }
.specs-text b { color:var(--gold2); font-weight:600; margin-right:4px; }

.price-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:4px; }
.price-row .price { margin-top:0; }
.modo-tag {
  display:inline-block; font-size:11px; font-weight:700; padding:3px 8px; border-radius:999px;
  background:rgba(212,160,23,.18); color:var(--gold2); border:1px solid rgba(212,160,23,.45);
  white-space:nowrap;
}

.acepta-pagos {
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  margin-top:6px; font-size:12px; color:var(--muted);
}
.acepta-pagos .acepta-label { font-weight:600; color:var(--gold2); margin-right:2px; }
.pill.pago {
  border-color: rgba(109,206,160,.55); color:#9be0c0;
  background: rgba(109,206,160,.12); padding:2px 8px; font-size:11px;
}
.pill.arreglo {
  border-color: rgba(212,160,23,.55); color:var(--gold2);
  background: rgba(212,160,23,.12); padding:2px 8px; font-size:11px;
}
.specs-text .acepta-pagos { margin: 6px 0; }


.badge.negocio { background:rgba(96,140,255,.2); color:#9db7ff; border:1px solid rgba(157,183,255,.4); }
.badge.privado { background:rgba(255,255,255,.08); color:var(--muted); border:1px solid rgba(255,255,255,.15); }

.badge.nivel-inicio { background:rgba(255,255,255,.08); color:var(--muted); border-color:rgba(255,255,255,.18); }
.badge.nivel-bronce { background:rgba(176,112,64,.25); color:#e0a878; border-color:rgba(224,168,120,.45); }
.badge.nivel-plata { background:rgba(180,190,210,.2); color:#d0d7e6; border-color:rgba(208,215,230,.45); }
.badge.nivel-oro { background:rgba(212,160,23,.22); color:var(--gold2); border-color:rgba(212,160,23,.5); }
.badge.nivel-platino { background:rgba(160,220,255,.18); color:#b8e6ff; border-color:rgba(184,230,255,.45); }

.mine-card { margin: 10px 0; }
.mine-row { display:flex; gap:12px; padding:12px; align-items:stretch; }
.mine-pic {
  width: 88px; height: 88px; flex: 0 0 88px;
  border-radius: 12px; object-fit: cover; background: #0d0818;
}
.mine-info { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; }
.mine-info .name { font-size:15px; font-weight:700; line-height:1.25; }
.mine-info .sub { font-size:12px; color:var(--muted); }
.mine-actions { display:flex; gap:8px; margin-top:8px; }
.btn-mini {
  flex:0 0 auto; min-height:0; height:32px; padding:0 12px;
  border-radius:8px; border:1px solid var(--gold); background:transparent;
  color:var(--gold); font-size:12px; font-weight:700; line-height:30px;
}
.btn-mini.danger { border-color:#c9455f; color:#ff8098; }

/* Medidor de talla */
.ring-tool { padding-bottom: 40px; }
.card-cal-wrap { display:flex; justify-content:center; padding: 12px 0 8px; overflow:hidden; }
.card-cal {
  height: 54px; max-width: 100%;
  border: 2px dashed var(--gold);
  border-radius: 10px;
  background: rgba(212,160,23,.08);
  position: relative;
}
.card-cal::after {
  content: "Tarjeta";
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  font-size: 12px; color: var(--gold2); font-weight: 700;
}
.ring-adj { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:12px; }
.ring-adj .btn { min-width: 52px; padding: 0 14px; }
.ring-size-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 8px 0; }
.ring-size-lab { font-size: 22px; font-weight: 800; text-align:center; flex:1; }
.ring-size-lab b { color: var(--gold2); }
.ring-stage {
  display:flex; flex-direction:column; align-items:center;
  padding: 28px 12px 18px;
  background: #070b14;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 10px;
}
.ring-circle {
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(212,160,23,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  background: transparent;
  flex: 0 0 auto;
}
.ring-tip { text-align:center; max-width: 280px; margin-top: 18px; }
.ring-picks {
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  margin-top: 16px;
}
.ring-picks button {
  width: 42px; height: 42px; min-height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text);
  font-weight: 700; font-size: 14px;
}
.ring-picks button.on {
  border-color: var(--gold); color: var(--gold2);
  background: rgba(212,160,23,.16);
}

.width-line-wrap {
  width: min(92%, 340px);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.width-line { display: none; }
.width-bar-solid {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e8c04a;
  box-shadow: none;
  outline: none;
  flex: 0 0 auto;
  min-height: 0;
  box-sizing: content-box;
}
.width-picks {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 16px;
}
.width-picks button {
  width: 36px; height: 36px; min-height: 36px; padding: 0;
  border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text);
  font-weight: 700; font-size: 12px;
}
.width-picks button.on {
  border-color: var(--gold); color: var(--gold2);
  background: rgba(212,160,23,.16);
}

.ring-tool input[type=range] {
  -webkit-appearance: none; appearance: none; height: 28px; background: transparent;
}
.ring-tool input[type=range]::-webkit-slider-runnable-track {
  height: 6px; background: rgba(255,255,255,.18); border-radius: 999px;
}
.ring-tool input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--gold); border: 2px solid #1a1000;
}

.ring-stage-ref {
  position: relative;
  min-height: 280px;
  justify-content: center;
}
.ring-grid {
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 12px 12px;
}


.card-cal-short {
  height: 18px !important;
  border-radius: 6px !important;
  border-style: solid !important;
}
.card-cal-short::after {
  content: "Lado corto" !important;
  font-size: 11px !important;
}

.cal-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin: 8px 0 4px;
}
.cal-visual { flex: 1; min-width: 0; }
.cal-howto {
  flex: 0 0 140px;
  text-align: center;
}
.cal-howto img {
  width: 140px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c1222;
}
.card-cal-wrap-vert {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  overflow: visible;
  padding: 8px 0;
}
.card-cal-vert {
  width: 52px !important;
  max-width: 52px;
  height: 160px;
  border-radius: 8px !important;
  border: 2px solid var(--gold) !important;
  border-style: solid !important;
  background: rgba(212,160,23,.16) !important;
}
.card-cal-vert::after {
  content: "Altura" !important;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px !important;
}
@media (max-width: 360px) {
  .cal-howto { flex-basis: 110px; }
  .cal-howto img { width: 110px; }
}

.card-cal-wrap-coin {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 12px 0;
}
.card-cal-coin {
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(212,160,23,.12);
  box-shadow: none;
  flex: 0 0 auto;
}


.cal-howto { flex: 0 0 148px; }
.howto-card {
  background: #0c1222;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px 12px;
}
.howto-title {
  text-align: center;
  color: var(--gold2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.howto-cols { display: flex; gap: 6px; }
.howto-col { flex: 1; text-align: center; }
.howto-label { font-size: 10px; color: var(--gold2); font-weight: 700; margin-bottom: 4px; }
.howto-phone {
  height: 88px;
  border: 1px solid rgba(212,160,23,.55);
  border-radius: 10px;
  background: #161b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.howto-coin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: block;
  background: rgba(212,160,23,.12);
}
.howto-bar {
  width: 12px; height: 58px; border-radius: 3px;
  background: var(--gold);
  display: block;
}
.howto-cap {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.2;
}
@media (max-width: 360px) {
  .cal-howto { flex-basis: 120px; }
  .howto-phone { height: 76px; }
}

/* Medidor: diámetro EXACTO (border-box global no debe restar borde) */
.ring-disk, .cal-disk {
  box-sizing: content-box !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 auto;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.ring-disk {
  background: #f5f0e8;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.cal-disk {
  background: rgba(232,192,74,.2);
  box-shadow: 0 0 0 2px var(--gold);
}
.ring-circle, .ring-circle-lg {
  /* legacy — por si queda alguna referencia */
  box-sizing: content-box !important;
  border: 0 !important;
  background: #f5f0e8;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.card-cal-vert, .card-cal-coin, .width-bar-solid {
  box-sizing: content-box !important;
}
.card-cal-vert {
  border: 0 !important;
  box-shadow: 0 0 0 2px var(--gold);
  background: rgba(212,160,23,.25) !important;
}

.ring-stage-ref {
  background: #f3f0ea !important;
  border: 1px solid rgba(0,0,0,.12);
}
.ring-stage-ref .ring-grid {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 10px 10px;
}
.ring-stage-ref .ring-size-lab,
.ring-stage-ref .hint {
  color: #2a2433 !important;
}

#cal-mode button { font-size: 12px; padding: 8px 4px; min-width: calc(25% - 8px); }


/* Medidor dedo: guías verticales (ancho = diámetro del dedo) */
.finger-stage {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.finger-gap-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  position: relative;
  z-index: 1;
}
.finger-rail {
  flex: 1 1 auto;
  min-width: 12px;
  background: rgba(42, 36, 51, 0.52);
}
.finger-rail-l { border-radius: 14px 0 0 14px; }
.finger-rail-r { border-radius: 0 14px 14px 0; }
.finger-gap {
  flex: 0 0 auto;
  box-sizing: content-box !important;
  width: 40px;
  min-height: 220px;
  background: transparent;
  border-left: 3px solid #2a2433;
  border-right: 3px solid #2a2433;
  position: relative;
}
.finger-gap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 0;
  border-left: 1px dashed rgba(42, 36, 51, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Guía visual: cómo poner el dedo */
.dedo-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 4px;
}
.dedo-row .finger-stage {
  flex: 1;
  min-width: 0;
}
.dedo-howto {
  flex: 0 0 132px;
  text-align: center;
}
.dedo-howto .howto-card { padding: 10px 8px 12px; }
.dedo-howto-phone {
  height: 110px;
  max-width: 108px;
  margin: 0 auto;
  padding: 6px;
  box-sizing: border-box;
}
.dedo-illus {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f0ea;
}
.dedo-illus-rail {
  flex: 1 1 auto;
  min-width: 10px;
  background: rgba(42, 36, 51, 0.42);
  display: block;
}
.dedo-illus-rail-l { border-radius: 4px 0 0 4px; }
.dedo-illus-rail-r { border-radius: 0 4px 4px 0; }
.dedo-illus-finger {
  flex: 0 0 22px;
  display: block;
  position: relative;
  align-self: stretch;
  margin: 2px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0 14%, transparent 22%),
    linear-gradient(180deg, #e8b89a 0%, #d4a07a 55%, #c48a68 100%);
  border-radius: 11px 11px 7px 7px;
  border-left: 1.5px solid #2a2433;
  border-right: 1.5px solid #2a2433;
  box-sizing: border-box;
}
.dedo-illus-finger::before {
  /* uña en la punta (arriba) */
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 9px;
  border-radius: 5px 5px 3px 3px;
  background: rgba(255, 245, 235, 0.55);
  box-shadow: 0 0 0 1px rgba(42, 36, 51, 0.12);
}
.dedo-illus-finger::after {
  /* marca donde irá el anillo */
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 52%;
  height: 7px;
  border-top: 1.5px dashed rgba(212, 160, 23, 0.85);
  border-bottom: 1.5px dashed rgba(212, 160, 23, 0.85);
  background: rgba(212, 160, 23, 0.18);
  pointer-events: none;
}
.dedo-howto-cap {
  font-size: 9px;
  line-height: 1.25;
  margin-top: 6px;
  text-align: center;
}
@media (max-width: 380px) {
  .dedo-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .dedo-howto {
    flex: 0 0 auto;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 8px;
  }
  .dedo-howto-phone {
    max-width: 120px;
    height: 96px;
  }
}

.ring-tip-text { transition: opacity .18s ease; }
.tip-dim { opacity: 0.22; }

#rt-metodo button { min-width: calc(50% - 8px); }

/* Cortes y tamaño de piedra */
.cut-tool .cut-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px;
}
.cut-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.cut-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold2);
  margin-top: 2px;
}
.cut-ico svg { display: block; }
.cut-meta { flex: 1; min-width: 0; }
.cut-name { font-size: 14px; line-height: 1.25; }
.cut-en { color: var(--muted); font-weight: 500; font-size: 12px; }
.cut-tip { margin: 3px 0 0; font-size: 12px; line-height: 1.3; }
.cut-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 8px;
}
.cut-picks button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 64px;
  min-height: 58px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}
.cut-picks button.on {
  border-color: var(--gold);
  color: var(--gold2);
  background: rgba(212,160,23,.16);
}
.cut-pick-ico {
  width: 22px;
  height: 22px;
  color: inherit;
}
.cut-pick-ico svg { width: 22px; height: 22px; display: block; }
.cut-pick-lab { text-align: center; }
.cut-stage {
  min-height: 260px;
  justify-content: center;
}
.cut-shape-svg {
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,.35));
  overflow: visible;
}
.cut-shape {
  background: #f5f0e8;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  flex: 0 0 auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-sizing: content-box !important;
}
#ct-tabs button { min-width: calc(50% - 8px); }


/* Pureza del oro — tip table */
.tip-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.tip-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}
.tip-table th,
.tip-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tip-table th {
  color: var(--gold2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
  background: rgba(212,160,23,.10);
  white-space: nowrap;
}
.tip-table td:first-child {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.tip-table tbody tr:last-child td { border-bottom: 0; }
.tip-table td:nth-child(4) { color: var(--muted); font-size: 12px; }
@media (max-width: 380px) {
  .tip-table { font-size: 12px; min-width: 280px; }
  .tip-table th, .tip-table td { padding: 8px 6px; }
}


/* --- pub kind + reparacion sheet --- */
.kind-cards {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 16px;
}
.kind-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--text); cursor: pointer;
}
.kind-card .kind-emoji { font-size: 22px; line-height: 1; }
.kind-card .kind-title { font-size: 16px; font-weight: 800; color: var(--text); }
.kind-card .kind-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.kind-card.on {
  border-color: var(--gold);
  background: rgba(212,160,23,.14);
  box-shadow: 0 0 0 1px rgba(212,160,23,.35);
}
.kind-card.on .kind-title { color: var(--gold2); }

.reparacion-panel {
  margin: 4px 0 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(212,160,23,.45);
  border-radius: 16px;
  background: rgba(212,160,23,.07);
}
.reparacion-head {
  font-weight: 800; font-size: 16px; color: var(--gold2); margin-bottom: 4px;
}
.rep-step {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 14px;
}
.rep-num {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--gold); color: #1a1000;
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.rep-body { flex: 1; min-width: 0; }
.rep-body label { margin-top: 0; }
.arreglos-summary {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 0; min-height: 22px;
}
.btn.block { width: 100%; justify-content: center; }
.rep-extra {
  margin-top: 4px; padding-top: 8px;
  border-top: 1px dashed rgba(212,160,23,.35);
}
.rep-extra summary {
  cursor: pointer; color: var(--gold2); font-size: 13px; font-weight: 600;
  list-style: none;
}
.rep-extra summary::-webkit-details-marker { display: none; }
.rep-extra summary::before { content: '▸ '; }
.rep-extra[open] summary::before { content: '▾ '; }

.sheet-arreglos .arreglo-checks {
  max-height: min(52vh, 420px); overflow: auto;
  display: flex; flex-direction: column; gap: 6px;
  -webkit-overflow-scrolling: touch;
}
.arreglo-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 10px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text); font-size: 14px;
  background: rgba(0,0,0,.15);
}
.arreglo-check input {
  margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px;
  accent-color: var(--gold);
}
.arreglo-check:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212,160,23,.14);
}


/* Gold spot card */
.gold-spot-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(212,160,23,.14), rgba(255,255,255,.03));
}
.gold-spot-main {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.gold-spot-main .gold-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold2);
}
.gold-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gold-calc-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.gold-calc-row input,
.gold-calc-row select {
  width: 100%;
  box-sizing: border-box;
}
.gold-calc-out {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}


/* Tipo al lado de Miembro # */
.badge.tipo-inline {
  vertical-align: middle;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.name .badge.tipo-inline,
.title .badge.tipo-inline {
  position: relative;
  top: -1px;
}

.pill.empleo {
  border-color: #6b8cff;
  color: #9db4ff;
  background: rgba(107,140,255,.12);
}
.pill.jornada {
  border-color: var(--gold2);
  color: var(--gold2);
}
.kind-card.disabled {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
}
#detalle {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}


/* Google Sign-In */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or span { flex: 0 0 auto; }
.g-btn-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.g-btn-wrap iframe { margin: 0 auto !important; }
.btn.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  font-weight: 600;
}
.btn.google svg { flex: 0 0 auto; }


/* Chat unread red flag on bottom nav */
.nav a.nav-chats { position: relative; }
.nav-flag {
  position: absolute; top: 4px; right: calc(50% - 18px);
  width: 10px; height: 10px; border-radius: 50%;
  background: #e23b3b; box-shadow: 0 0 0 2px #140a24;
  animation: nav-flag-pulse 1.2s ease-in-out infinite;
}
.nav-flag[hidden] { display: none !important; }
@keyframes nav-flag-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}
.card.unread { border-left: 3px solid #e23b3b; }
.chat-unread-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #e23b3b; margin-right: 6px; vertical-align: middle;
  flex-shrink: 0;
}
