/* Gevilens · páginas normales ("pro max"): producto, seguimientos, cómo funciona, 404. */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fafafc; --soft: #f3f3f8; --surface: #ffffff; --surface-2: #f9f9fc; --border: #e5e5ee; --border-strong: #d2d2df;
  --text: #0f1020; --text-2: #1d1e2e; --muted: #4a4b5e;
  --accent: #4f46e5; --accent-2: #2f6bf0; --accent-hover: #4338ca; --accent-soft: #eef0ff; --accent-ink: #ffffff; --star: #f5a524;
  --warn: #9a5b00; --warn-soft: #fdf1dc; --bad: #c0262d; --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 16, 40, .06);
  --shadow: 0 1px 2px rgba(15, 16, 40, .04), 0 8px 24px -10px rgba(15, 16, 40, .12);
  --shadow-lg: 0 2px 6px rgba(15, 16, 40, .05), 0 24px 48px -16px rgba(15, 16, 40, .22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b12; --soft: #14141f; --surface: #12121b; --surface-2: #171723; --border: #24243a; --border-strong: #33334d;
    --text: #eeeef8; --text-2: #c4c5dc; --muted: #8b8ca6; --accent: #8b8cf8; --accent-2: #7aa2ff; --accent-hover: #a5a6ff;
    --accent-soft: #1c1b3a; --accent-ink: #0b0b1a; --warn: #f0b75c; --warn-soft: #30230f; --bad: #ff8a8f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b12; --soft: #14141f; --surface: #12121b; --surface-2: #171723; --border: #24243a; --border-strong: #33334d;
  --text: #eeeef8; --text-2: #c4c5dc; --muted: #8b8ca6; --accent: #8b8cf8; --accent-2: #7aa2ff; --accent-hover: #a5a6ff;
  --accent-soft: #1c1b3a; --accent-ink: #0b0b1a; --warn: #f0b75c; --warn-soft: #30230f; --bad: #ff8a8f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.6 var(--font); font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.logo-mark { color: var(--accent); flex-shrink: 0; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--accent) 30%, transparent)); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.small.ok { color: var(--accent); font-weight: 650; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.top-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.top nav { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--text-2); padding: 7px 12px; border-radius: 10px; font-weight: 550; transition: background .15s; }
.top nav a:hover { background: var(--soft); color: var(--text); }
.theme-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 15px; }
.top .nav-cta { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, var(--accent-2))); color: var(--accent-ink) !important; padding: 8px 18px; border-radius: 99px; font-weight: 650; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.top .nav-cta:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, var(--accent-2))); }

.page { max-width: 1100px; margin: 0 auto; padding: 22px 24px 64px; animation: fadein .4s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 10px; font-weight: 820; }
h2 { font-size: 19px; margin: 0 0 14px; letter-spacing: -.02em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 20px 0; background: var(--surface); box-shadow: var(--shadow); }
.box ul, .box ol { padding-left: 20px; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #fff; background: hsl(var(--h, 160) 55% 42%); margin-right: 8px; vertical-align: middle; flex-shrink: 0; }

/* Ficha de producto */
.product { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 36px; align-items: start; }
.product-img { position: relative; background: #fff; border-radius: 24px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.product-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, transparent 60%, rgba(0, 0, 0, .03)); pointer-events: none; }
.product-img img { max-width: 86%; max-height: 86%; object-fit: contain; transition: transform .4s var(--ease); }
.product-img:hover img { transform: scale(1.04); }
.product-img .ph { font-size: 72px; opacity: .3; }
.store-line { color: var(--muted); margin: 0 0 4px; font-weight: 550; line-height: 1.8; }
.buybox { border: 1px solid var(--border); border-radius: 22px; padding: 22px; margin-top: 16px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.buybox::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.price { font-size: 44px; font-weight: 840; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.price-hidden { font-size: 24px; font-weight: 750; color: var(--accent); margin: 6px 0; letter-spacing: -.02em; }
.insight { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 11px; font-size: 14px; margin: 12px 0 0; }
.insight.good { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.insight.high { background: var(--warn-soft); color: var(--warn); }
.insight.normal { background: var(--soft); color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; transition: background .2s, filter .2s, transform .1s, box-shadow .2s; }
.btn:hover { background: var(--soft); }
.btn:active { transform: scale(.985); }
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, var(--accent-2))); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 11px; }
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13px; padding: 0; cursor: pointer; }
.summary { font-size: 16.5px; line-height: 1.65; color: var(--text-2); background: linear-gradient(90deg, var(--accent-soft), transparent 85%); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 0 16px 16px 0; margin: 26px 0; }
.summary b { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.stats div { background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.stats span { display: block; font-size: 12px; color: var(--muted); font-weight: 550; }
.stats b { font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Gráfica */
.chart { width: 100%; height: auto; display: block; margin: 6px 0; overflow: visible; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .area-top { stop-color: var(--accent); stop-opacity: .22; }
.chart .area-bottom { stop-color: var(--accent); stop-opacity: 0; }
.chart .grid { stroke: var(--border); stroke-dasharray: 4 5; }
.chart .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2; cursor: pointer; transition: r .15s; }
.chart .pt:hover { r: 6; }
.chart .pt.min { fill: var(--accent); }
.chart .pt.now { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .lbl-min { fill: var(--accent); font-weight: 700; }

/* Otras tiendas */
.offers { width: 100%; border-collapse: separate; border-spacing: 0; }
.offers td { border-top: 1px solid var(--border); padding: 13px 8px; vertical-align: middle; }
.offers tr:first-child td { border-top: 0; }
.offers tr.best td { background: var(--accent-soft); }
.offers tr.best td:first-child { border-radius: 12px 0 0 12px; }
.offers tr.best td:last-child { border-radius: 0 12px 12px 0; }
.offers a { font-weight: 650; text-decoration: none; color: var(--text); }
.offers a:hover { text-decoration: underline; }
.offers .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

/* Opiniones */
.reviews .verdict { font-weight: 750; font-size: 17px; margin: 0 0 6px; }
.verdict.recommended { color: var(--accent); } .verdict.not_recommended { color: var(--bad); } .verdict.mixed { color: var(--warn); }
.pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.pc { background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.pc ul { margin: 6px 0 0; padding-left: 18px; }
.pc.pros b { color: var(--accent); } .pc.cons b { color: var(--bad); }
.sources { padding-left: 18px; margin: 4px 0; }
.src-title { display: block; margin-top: 12px; }

/* Mis seguimientos */
.track { display: grid; grid-template-columns: 128px 1fr; gap: 20px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.track:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.track-img { background: #fff; border-radius: 16px; height: 128px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); }
.track-img img { max-width: 90%; max-height: 120px; object-fit: contain; }
.track h2 { font-size: 16.5px; margin-bottom: 4px; }
.track h2 a { color: var(--text); text-decoration: none; }
.track h2 a:hover { text-decoration: underline; }
.price-sm { font-size: 26px; font-weight: 840; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.change { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.change.down { background: var(--accent-soft); color: var(--accent); }
.change.up { background: var(--warn-soft); color: var(--warn); }
.change.same { background: var(--soft); color: var(--muted); }

/* Barra de compra fija (móvil) */
.buybar { display: none; }

/* Diálogo, avisos, código */
dialog { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); padding: 24px; width: min(420px, 92vw); box-shadow: var(--shadow-lg); }
dialog[open] { animation: rise .2s var(--ease); }
dialog::backdrop { background: rgba(8, 9, 8, .5); backdrop-filter: blur(3px); }
dialog h3 { margin: 0 0 8px; }
dialog label { display: block; margin: 14px 0; font-size: 14px; font-weight: 550; }
dialog input[type=number], dialog input[type=email] { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
dialog input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
dialog label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; }
dialog .row { display: flex; gap: 8px; justify-content: flex-end; }
dialog .row button { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
dialog .row .primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 13px 18px; border-radius: 14px; max-width: 92vw; z-index: 30; box-shadow: var(--shadow-lg); animation: rise .25s var(--ease); }
pre, code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
pre { background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }

/* 404 */
.notfound { text-align: center; padding: 8vh 0 4vh; }
.notfound .big { font-size: 96px; font-weight: 850; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 auto; }
.notfound p { color: var(--muted); max-width: 460px; margin: 12px auto 24px; }
.notfound form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.notfound input { flex: 1; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; }
.notfound input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Pie */
.foot { border-top: 1px solid var(--border); background: var(--soft); }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 30px 24px 38px; font-size: 13px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--text); }
.foot-brand span { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 6px 0; }

@media (max-width: 860px) {
  .top nav a:not(.nav-cta) { display: none; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product-img { max-height: 340px; aspect-ratio: auto; height: 300px; }
  .pc-cols { grid-template-columns: 1fr; }
  .track { grid-template-columns: 84px 1fr; gap: 14px; }
  .track-img { height: 84px; }
  .price { font-size: 36px; }
  .buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 18px;
    padding: 10px 10px 10px 16px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease);
  }
  .buybar b { display: block; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .buybar span { font-size: 12px; color: var(--muted); }
  .buybar .btn { padding: 11px 22px; }
  .foot { padding-bottom: 80px; }
}

/* ---------- Páginas de cuenta ---------- */
.auth { max-width: 460px; margin: 32px auto; }
.auth h1 { margin-top: 0; }
.auth form { display: grid; gap: 14px; margin: 16px 0; }
.auth label { display: grid; gap: 6px; font-weight: 600; }
.auth input[type=email], .auth input[type=password] { width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.auth input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-msg { padding: 10px 14px; border-radius: 12px; }
.auth-msg.ok { background: color-mix(in srgb, #16a34a 14%, transparent); }
.auth-msg.err { background: color-mix(in srgb, #dc2626 14%, transparent); }
.faq-q { font-size: 16px; margin: 16px 0 4px; }
.faq-a { margin: 0; color: var(--text-2); }

/* ---------- Marca Gevilens: símbolo "G" con carrito y nombre en minúsculas como en el logo ---------- */
img.logo-mark { border-radius: 24%; filter: none; display: block; }
.wordmark { font-weight: 800; letter-spacing: -.02em; text-transform: lowercase; }
.wordmark .dotcom { color: var(--accent); font-weight: 750; }

/* Comparación compartida */
.table-wrap { overflow-x: auto; }
.share-table { min-width: 640px; font-size: 14.5px; }
.share-table th, .share-table td { border-top: 1px solid var(--border); padding: 12px 8px; text-align: left; vertical-align: middle; }
.share-table thead th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 650; }
.share-table tbody th { font-weight: 600; max-width: 320px; }
.share-table tr.gone { opacity: .6; }
.change.down { white-space: nowrap; }
/* Tus datos: borrar la cuenta */
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.auth label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 14px; margin: 10px 0 14px; }
.auth h2 { font-size: 17px; margin: 22px 0 6px; }
p.aff { color: var(--text-2, var(--muted)); }

/* Encargos (Hunts) */
.mission-form label { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
.mission-form input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
.mission-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.mission-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.form-msg.ok { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.form-msg.err { background: var(--warn-soft); color: var(--warn); }
.mission-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.mission-head h2 { margin: 8px 0 2px; font-size: 18px; }
.mission-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.m-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.m-status.active { background: var(--accent-soft); color: var(--accent); }
.m-status.found { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.mission-best { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--soft); }
.mission-best.under { background: var(--accent-soft); }
.mission-best p { margin: 2px 0; }
.mission-best a { color: var(--text); text-decoration: none; }
.mb-img { width: 72px; height: 72px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); }
.mb-img img { max-width: 90%; max-height: 66px; object-fit: contain; }
.m-price { font-size: 17px; }
.mission-log { margin-top: 12px; font-size: 14px; }
.mission-log ul { margin: 8px 0 0; padding-left: 18px; }
.mission-log li { margin: 3px 0; }
@media (max-width: 760px) {
  .mission-row { grid-template-columns: 1fr; }
  .mission-head { flex-direction: column; }
  .mission-best { grid-template-columns: 56px 1fr; }
  .mission-best .btn { grid-column: 1 / -1; }
}
