/* Sitio de Beagle. Misma paleta Tricolor que la extensión (src/popup/popup.css):
   negro del lomo, canela de la cabeza y blanco del hocico. Verde y rojo solo para bajó/subió. */
:root {
  color-scheme: light;
  --bg: #FCFAF7;
  --fg: #1F1E22;
  --muted: #64605B;
  --border: #E6E1DA;
  --card: #F5F1EB;
  --raised: #FFFFFF;
  --accent: #94531A;
  --accent-fg: #FFFFFF;
  --accent-soft: #F6E6D4;
  --tan: #C98A4B;
  --ink: #2A2A30;
  --down: #15803d;
  --up: #dc2626;
  --s1: #257de0;
  --s2: #f47230;
  --s3: #00b894;
  --grid: #ECE7E0;
  --shadow: 0 1px 2px rgba(31, 30, 34, .06), 0 12px 32px rgba(31, 30, 34, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151518;
    --fg: #F1EEEA;
    --muted: #A19C95;
    --border: #2F2F35;
    --card: #1E1E23;
    --raised: #232328;
    --accent: #E0A766;
    --accent-fg: #1F1E22;
    --accent-soft: #3A2D1F;
    --down: #4ade80;
    --up: #f87171;
    --s1: #338ced;
    --s2: #e76624;
    --s3: #00a888;
    --grid: #2A2A30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--raised); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- cabecera */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; display: block; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.lang { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; color: var(--fg) !important; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--raised); }
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 20px; height: 20px; flex: none; }
.soon { display: inline-block; margin-left: 2px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--accent-fg) 22%, transparent); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 20px; color: var(--muted); margin: 20px 0 32px; max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* ---------------------------------------------------------------- mockup del navegador */
.mock { position: relative; padding-bottom: 8px; }
.browser { border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: visible; }
.chrome-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.address { flex: 1; min-width: 0; padding: 5px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-icon { position: relative; width: 26px; height: 26px; flex: none; }
.ext-icon img { width: 26px; height: 26px; display: block; }
.badge { position: absolute; right: -4px; bottom: -6px; padding: 0 4px; border-radius: 4px; background: var(--down); color: #fff; font: 700 10px/15px system-ui, sans-serif; }
.page-skeleton { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px; height: 440px; }
.page-skeleton .img { border-radius: 10px; background: var(--border); height: 120px; }
.page-skeleton .lines i { display: block; height: 10px; border-radius: 5px; background: var(--border); margin-bottom: 10px; }

.popup { position: absolute; top: 46px; right: 8px; width: min(360px, 92%); padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); font-size: 13px; line-height: 1.4; }
.popup-head { display: flex; align-items: center; gap: 8px; margin: -12px -12px 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--card); border-radius: 12px 12px 0 0; font-weight: 800; font-size: 15px; }
.popup-head img { width: 22px; height: 22px; }
.p-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 10px 0 6px; }
.p-title { font-weight: 600; }
.p-price { font-size: 20px; font-weight: 700; }
.alert { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); font-weight: 600; font-size: 12px; }
.offers { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; }
.offers li { display: grid; grid-template-columns: 14px 20px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--border); }
.offers li:first-child { border-top: none; }
.offers li.current { background: var(--card); }
.offers li:last-child { border-radius: 0 0 8px 8px; }
.offers .key { display: inline-block; width: 14px; border-top: 2px solid var(--c); }
.offers img { width: 20px; height: 20px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px var(--border); object-fit: contain; }
.offers .name { font-weight: 600; }
.offers .right { text-align: right; font-variant-numeric: tabular-nums; }
.tag { margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 700; color: var(--down); border: 1px solid currentColor; }
.chart { display: block; width: 100%; height: auto; margin-top: 4px; }
.chart .grid { stroke: var(--grid); }
.chart .series { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--c); stroke: var(--bg); stroke-width: 2; }
.chart text { fill: var(--muted); font-size: 10px; font-family: system-ui, sans-serif; }
@media (max-width: 520px) {
  .page-skeleton { height: 430px; grid-template-columns: 80px 1fr; }
  .page-skeleton .img { height: 80px; }
  .popup { right: 4px; width: calc(100% - 8px); }
}

/* ---------------------------------------------------------------- secciones */
section.band { padding: 88px 0; border-top: 1px solid var(--border); }
section.band.alt { background: var(--card); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin: 14px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--tan); font: 800 20px "Bricolage Grotesque", system-ui, sans-serif; margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px; border-radius: 16px; background: var(--raised); border: 1px solid var(--border); }
.feature .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font: 800 15px system-ui, sans-serif; }
.feature .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }
.legend-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.legend-badges span { padding: 1px 7px; border-radius: 5px; font: 700 12px/20px system-ui, sans-serif; background: var(--ink); color: #fff; }
.legend-badges .d { background: var(--down); }
.legend-badges .u { background: var(--up); }

.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.store { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--raised); }
.store img, .store .plus { width: 44px; height: 44px; padding: 6px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--border); object-fit: contain; }
.store .plus { display: grid; place-items: center; padding: 0; background: var(--accent); color: var(--accent-fg); font: 800 24px/1 system-ui, sans-serif; box-shadow: none; }
.store strong { display: block; font-size: 17px; line-height: 1.3; }
.store span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }
.store.any { grid-column: 1 / -1; background: var(--accent-soft); border-color: transparent; }
.store.any strong { color: var(--accent); }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 20px; }

.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy div { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--raised); }
.privacy h3 { font-size: 19px; margin-bottom: 8px; }
.privacy p { margin: 0; color: var(--muted); }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol { color: var(--muted); margin: 12px 0 0; }
.faq code { font-size: 15px; padding: 1px 6px; border-radius: 5px; background: var(--card); }

.cta-final { text-align: center; padding: 96px 0; background: var(--ink); color: #F1EEEA; }
.cta-final img { width: 72px; height: 72px; margin-bottom: 20px; }
.cta-final h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cta-final p { color: #A19C95; font-size: 19px; margin: 14px auto 32px; max-width: 44ch; }
.cta-final .btn-primary { background: #E0A766; color: #1F1E22; }

footer { padding: 32px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .steps, .privacy { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  section.band { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .feature { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- páginas legales */
.legal { max-width: 760px; padding: 56px 24px 88px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--fg); }
.legal code { font-size: 15px; padding: 1px 6px; border-radius: 5px; background: var(--card); }
@media (max-width: 520px) { .legal { padding: 40px 16px 64px; } }
