:root {
  --bg: #07060d;
  --bg-2: #0e0c18;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f3f1fa;
  --muted: #a39fb8;
  --dim: #6d6884;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--cyan));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0 0 0.4em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.85rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- Fondo animado ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: float 18s ease-in-out infinite; }
.orb-a { width: 520px; height: 520px; background: #6d28d9; top: -180px; left: -120px; }
.orb-b { width: 460px; height: 460px; background: #be185d; top: 20%; right: -160px; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; background: #0e7490; bottom: -160px; left: 30%; animation-delay: -12s; opacity: 0.3; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.small { font-size: 1.2rem; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 0.92rem; transition: 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.88rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: #fff; }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .user-chip .uname { display: none; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(10, 9, 18, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.7rem; color: var(--muted); padding: 6px 0; border-radius: 10px; }
  .mobile-nav a.active { color: var(--text); }
  .mobile-nav a.active svg { stroke: url(#navgrad); }
  .mobile-nav svg { width: 22px; height: 22px; }
  body { padding-bottom: 72px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--panel); color: var(--text); font-weight: 600; font-size: 0.92rem;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s; white-space: nowrap;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { border: 0; background: var(--grad); background-size: 160% 160%; color: #fff; box-shadow: 0 8px 30px -8px rgba(236, 72, 153, 0.6); }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 10px 40px -6px rgba(139, 92, 246, 0.75); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel); }
.btn.danger { border-color: rgba(248, 113, 113, 0.35); color: var(--red); background: rgba(248, 113, 113, 0.06); }
.btn.success { border-color: rgba(52, 211, 153, 0.35); color: var(--green); background: rgba(52, 211, 153, 0.07); }
.btn.sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 10px; }
.btn.lg { padding: 15px 24px; font-size: 1rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Paneles / tarjetas ---------- */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card.glow { position: relative; }
.card.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0.5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 28px; text-align: center; }
.hero h1 { max-width: 900px; margin: 18px auto 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--panel); font-size: 0.85rem; color: var(--muted);
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(52, 211, 153, 0.15); display: grid; place-items: center; }
.pill .dot svg { width: 13px; height: 13px; stroke: var(--green); }
.search {
  display: flex; gap: 8px; max-width: 720px; margin: 0 auto; padding: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border-2); border-radius: 18px;
  box-shadow: var(--shadow);
}
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 10px 12px; font-size: 1rem; }
.search .sep { width: 1px; background: var(--border-2); margin: 8px 0; }
@media (max-width: 600px) {
  .search { flex-wrap: wrap; }
  .search input { flex: 1 1 100%; }
  .search .sep { display: none; }
  .search .btn { flex: 1; }
}
.hero-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; overflow: hidden; }
.step .num { position: absolute; right: 14px; top: 6px; font-family: var(--display); font-size: 3.2rem; font-weight: 700; color: rgba(255,255,255,.05); }
.step .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); }
.step .ico svg { width: 22px; height: 22px; stroke: #c4b5fd; }
.step:nth-child(2) .ico { background: rgba(236, 72, 153, .14); border-color: rgba(236, 72, 153, .3); }
.step:nth-child(2) .ico svg { stroke: #f9a8d4; }
.step:nth-child(3) .ico { background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .3); }
.step:nth-child(3) .ico svg { stroke: #67e8f9; }
.step:nth-child(4) .ico { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); }
.step:nth-child(4) .ico svg { stroke: #6ee7b7; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: 0.86rem; font-weight: 500; cursor: pointer; transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Grilla de servicios ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svc { padding: 0; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; }
.svc:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.svc .cover { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--bg-2); }
.svc .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .cover img { transform: scale(1.05); }
.svc .cover .tag { position: absolute; left: 12px; top: 12px; }
.svc .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc h3 { margin: 0; }
.svc .meta { display: flex; gap: 10px; color: var(--muted); font-size: 0.84rem; flex-wrap: wrap; }
.svc .price-row { display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.price { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #2e1065, #831843 60%, #164e63); font-family: var(--display); font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.7); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; background: rgba(7, 6, 13, 0.7); border: 1px solid var(--border-2); backdrop-filter: blur(8px); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 0.8rem; font-weight: 600; }
.verified svg { width: 15px; height: 15px; stroke: var(--green); }

/* ---------- Detalle ---------- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding: 28px 0 40px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.gallery .main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 76px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .6; transition: .2s; }
.thumbs button.active { border-color: var(--pink); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.book-card { position: sticky; top: 84px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.shield {
  display: flex; gap: 12px; padding: 14px; border-radius: 14px; margin: 16px 0;
  background: linear-gradient(135deg, rgba(52,211,153,.08), rgba(34,211,238,.06)); border: 1px solid rgba(52,211,153,.22);
  font-size: 0.86rem; color: #c8f5e4;
}
.shield svg { width: 22px; height: 22px; stroke: var(--green); flex: none; margin-top: 1px; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row, .row3 { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-2);
  background: rgba(255,255,255,.04); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 0.95rem;
}
textarea.input { min-height: 110px; resize: vertical; }
select.input option { background: var(--bg-2); }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }
/* Reportes */
.report-btn { margin-top: 10px; padding-left: 4px; color: var(--dim); }
.report-btn:hover { color: var(--text); }
.report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.rp-opt { position: relative; cursor: pointer; }
.rp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rp-opt > span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--border); background: var(--panel); transition: border-color .15s, box-shadow .15s;
}
.rp-opt img { width: 100%; height: 100%; object-fit: cover; }
.rp-all { gap: 4px; padding: 6px; text-align: center; font-size: 0.72rem; color: var(--muted); }
.rp-all svg { width: 20px; height: 20px; }
.rp-opt input:checked + span { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25); }
.rp-opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.report-reasons { display: grid; gap: 8px; margin-top: 6px; }
.report-reasons .check { color: var(--text); }
.card.report-urgent { border-color: rgba(248, 113, 113, 0.55); box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25), 0 10px 40px -18px rgba(248, 113, 113, 0.6); }

/* Aviso +18 */
body.gated { overflow: hidden; }
body.gated #app, body.gated .nav, body.gated .footer { filter: blur(14px); pointer-events: none; user-select: none; }
.age-gate {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(7, 6, 13, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: age-in .25s ease-out; transition: opacity .25s;
}
.age-gate.leaving { opacity: 0; }
@keyframes age-in { from { opacity: 0; } to { opacity: 1; } }
.age-card {
  width: min(420px, 100%); text-align: center; padding: 32px 26px 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 17, 34, 0.97), rgba(12, 10, 22, 0.97));
  border: 1px solid var(--border-2); box-shadow: 0 30px 80px -20px rgba(139, 92, 246, 0.45);
}
.age-card .logo { font-size: 1.6rem; }
.age-badge {
  width: 84px; height: 84px; margin: 18px auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: #fff;
  background: var(--grad); box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.14), 0 12px 40px -8px rgba(236, 72, 153, 0.7);
}
.age-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.age-card p.muted { margin: 0 0 20px; }
.age-card .btn + .btn { margin-top: 8px; }
.age-card a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--text); background: rgba(255,255,255,.07); outline: none; }
.pw-toggle svg { width: 20px; height: 20px; }
.hint { font-size: 0.78rem; color: var(--dim); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--pink); width: 16px; height: 16px; }
.auth-wrap { max-width: 460px; margin: 48px auto; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick .opt { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--panel); transition: .2s; height: 100%; }
.role-pick .opt b { font-family: var(--display); }
.role-pick .opt span { font-size: 0.8rem; color: var(--muted); }
.role-pick input:checked + .opt { border-color: var(--pink); background: rgba(236, 72, 153, 0.08); box-shadow: 0 0 0 3px rgba(236, 72, 153, .15); }

/* Subida de archivos */
.drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; min-height: 140px; padding: 16px;
  border: 1.5px dashed var(--border-2); border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; transition: .2s; overflow: hidden;
  font-size: 0.84rem; color: var(--muted);
}
.drop:hover { border-color: var(--violet); background: rgba(139, 92, 246, .06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 26px; height: 26px; stroke: var(--violet); }
.drop.has img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has .lbl { position: absolute; bottom: 8px; left: 8px; right: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 0.76rem; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.previews img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* ---------- Estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-gray { color: var(--muted); border-color: var(--border-2); background: var(--panel); }
.b-amber { color: var(--amber); border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); }
.b-violet { color: #c4b5fd; border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.1); }
.b-cyan { color: var(--cyan); border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.08); }
.b-green { color: var(--green); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.b-red { color: var(--red); border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }

.timeline { display: flex; align-items: center; gap: 0; margin: 14px 0 6px; }
.timeline .t { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 70px; font-size: 0.7rem; color: var(--dim); text-align: center; }
.timeline .t i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-2); background: var(--bg-2); display: grid; place-items: center; font-style: normal; font-size: 0.7rem; }
.timeline .t.done { color: var(--text); }
.timeline .t.done i { background: var(--grad); border-color: transparent; color: #fff; }
.timeline .t.now i { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(236,72,153,.18); }
.timeline .bar { flex: 1; height: 2px; background: var(--border-2); margin-bottom: 22px; min-width: 12px; }
.timeline .bar.done { background: var(--grad); }

.list { display: grid; gap: 12px; }
.item { display: flex; gap: 16px; align-items: flex-start; }
.item .thumb { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex: none; background: var(--bg-2); }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item .grow { flex: 1; min-width: 0; }
.item .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 560px) { .item { flex-direction: column; } .item .thumb { width: 100%; height: 150px; } }

.empty { text-align: center; padding: 48px 20px; }
.empty .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border-2); }
.empty .big svg { width: 30px; height: 30px; stroke: var(--pink); }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

.loader { display: grid; place-items: center; padding: 90px 0; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Paneles (prestadora / admin) ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 30px 0 18px; }
.dash-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.tabs .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 0.7rem; display: grid; place-items: center; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat .label { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .value { font-family: var(--display); font-size: 1.75rem; font-weight: 700; margin-top: 6px; }
.stat .sub { font-size: 0.78rem; color: var(--dim); }
.stat .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); }
.stat .ic svg { width: 16px; height: 16px; }

.checklist { display: grid; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.check-item .ck { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--border-2); font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.check-item.done .ck { background: var(--green); border-color: var(--green); color: #052e1f; }
.check-item.done .txt { color: var(--muted); text-decoration: line-through; }
.check-item .txt { flex: 1; font-size: 0.92rem; }
.progress { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 12px 0 16px; }
.progress > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s; }

.banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; margin-bottom: 18px; border: 1px solid; flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 200px; }
.banner.warn { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.07); }
.banner.info { border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.08); }
.banner.ok { border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.07); }
.banner.err { border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.07); }
.banner b { display: block; font-family: var(--display); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .small { display: block; }

/* Toggle */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border-2); cursor: pointer; transition: .25s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .25s; }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- Fotos protegidas (admin) ---------- */
.privacy-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); font-size: 0.86rem; }
.privacy-bar svg { width: 18px; height: 18px; stroke: var(--cyan); }
.sens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sens {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: pointer; user-select: none;
  background: repeating-linear-gradient(45deg, #13111f, #13111f 10px, #17142a 10px, #17142a 20px); border: 1px solid var(--border-2);
}
.sens img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; -webkit-user-drag: none; }
.sens .veil { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; font-size: 0.76rem; color: var(--muted); text-align: center; padding: 8px; transition: opacity .3s; }
.sens .veil svg { width: 24px; height: 24px; stroke: var(--muted); }
.sens .cap { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.7); font-size: 0.7rem; color: #fff; z-index: 2; }
.sens .eye { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,.65); display: grid; place-items: center; z-index: 2; opacity: 0; transition: .2s; }
.sens .eye svg { width: 15px; height: 15px; stroke: #fff; }
.sens.revealed img { opacity: 1; }
.sens.revealed .veil { opacity: 0; pointer-events: none; }
.sens.revealed .eye { opacity: 1; }
.sens.loading .veil::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--pink); animation: spin .8s linear infinite; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(3, 2, 8, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #110f1d; border: 1px solid var(--border-2); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.modal .x { position: absolute; right: 12px; top: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }

.qr-box { background: #fff; padding: 16px; border-radius: 18px; width: fit-content; margin: 16px auto; box-shadow: 0 0 0 6px rgba(236,72,153,.18), 0 0 60px -10px rgba(139,92,246,.8); }
.qr-box img, .qr-box canvas { display: block; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .25em; text-align: center; font-weight: 700; }

.fake-card { aspect-ratio: 1.6; border-radius: 18px; padding: 20px; background: linear-gradient(135deg, #4c1d95, #9d174d 60%, #155e75); display: flex; flex-direction: column; justify-content: space-between; margin: 14px 0; box-shadow: var(--shadow); }
.fake-card .num { font-family: ui-monospace, monospace; font-size: 1.15rem; letter-spacing: .12em; }

/* Escáner */
.scanner { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--border-2); }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 16%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); }
.scanner .frame::before, .scanner .frame::after { content: ''; position: absolute; inset: -2px; border-radius: 20px; border: 3px solid transparent; background: var(--grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.scanner .laser { position: absolute; left: 16%; right: 16%; height: 2px; background: var(--cyan); box-shadow: 0 0 16px 4px rgba(34,211,238,.7); animation: laser 2.2s ease-in-out infinite; top: 16%; }
@keyframes laser { 50% { top: 84%; } }
.scanner .idle { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 20px; color: var(--muted); }
.success-burst { text-align: center; padding: 10px 0; }
.success-burst .ring { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.12); border: 2px solid var(--green); animation: pop .5s cubic-bezier(.2,.9,.3,1.4); box-shadow: 0 0 60px -10px rgba(52,211,153,.7); }
.success-burst .ring svg { width: 44px; height: 44px; stroke: var(--green); }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: 24px; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
@media (max-width: 760px) { #toasts { bottom: 90px; } }
.toast { padding: 13px 16px; border-radius: 14px; background: #1a1729; border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 0.9rem; display: flex; gap: 10px; align-items: center; animation: pop .25s; }
.toast.ok { border-color: rgba(52,211,153,.4); }
.toast.err { border-color: rgba(248,113,113,.45); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.toast.ok i { background: var(--green); }
.toast.err i { background: var(--red); }

.footer { padding: 40px 16px 50px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 0.82rem; border-top: 1px solid var(--border); margin-top: 40px; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; width: 100%; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Términos y privacidad */
.legal { max-width: 820px; margin: 0 auto; padding-top: 34px; }
.legal h1 { margin: 8px 0 6px; }
.legal .tabs { display: inline-flex; max-width: 100%; }
.legal-summary { margin-bottom: 18px; }
.legal-summary h3 { margin-top: 0; }
.legal-summary ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.legal-summary li { margin-bottom: 6px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.legal-toc button {
  border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 999px;
  padding: 6px 12px; font-size: 0.8rem; cursor: pointer; transition: color .2s, border-color .2s;
}
.legal-toc button:hover { color: var(--text); border-color: var(--violet); }
.legal-sec { scroll-margin-top: 90px; padding: 6px 0 10px; border-top: 1px solid var(--border); }
.legal-sec h2 { font-size: 1.15rem; margin: 18px 0 10px; }
.legal-sec p, .legal-sec li { color: var(--muted); line-height: 1.65; font-size: 0.93rem; }
.legal-sec ul { padding-left: 20px; }
.legal-sec b { color: var(--text); }
.legal-sec a, .legal-summary a, .check a, .privacy-note a { color: var(--cyan, #22d3ee); text-decoration: underline; text-underline-offset: 2px; }
.faq details { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.split-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.split-bar .a { background: var(--grad); }
.split-bar .b { background: var(--panel-2); }

/* Tamaño por defecto de íconos (especificidad cero para que las reglas de arriba ganen) */
:where(svg[viewBox="0 0 24 24"]) { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.i14 { width: 14px !important; height: 14px !important; vertical-align: -2px; }
.banner > svg { width: 24px; height: 24px; }

/* Nota de privacidad (reserva sin cuenta) */
.privacy-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .2); font-size: 0.8rem; color: #bfeaf3; text-align: left; }
.privacy-note svg { width: 16px; height: 16px; stroke: var(--cyan); margin-top: 2px; }
.privacy-note b { color: #e6fbff; }
