/* =============================================================
   PulsoTop — comparativa de smartwatches y pulseras de actividad
   ============================================================= */

:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F3EEE4;
  --text: #1B1B1F;
  --text-muted: #6B665D;
  --border: #E7E1D6;

  --accent: #E8542A;
  --accent-dark: #C23E1B;
  --accent-soft: #FCE4DA;
  --gold: #C98A1E;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -24px rgba(27, 20, 12, 0.22);
  --shadow-sm: 0 10px 22px -14px rgba(27, 20, 12, 0.22);

  --display: "Unbounded", sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17151A; --surface: #201E25; --surface-2: #2A2731;
    --text: #F1EEE7; --text-muted: #A9A39B; --border: #37333D;
    --accent: #FF7952; --accent-dark: #FFA184; --accent-soft: #3A241C;
    --gold: #E4B04D;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 10px 22px -14px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #17151A; --surface: #201E25; --surface-2: #2A2731;
  --text: #F1EEE7; --text-muted: #A9A39B; --border: #37333D;
  --accent: #FF7952; --accent-dark: #FFA184; --accent-soft: #3A241C;
  --gold: #E4B04D;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 22px -14px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; margin: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.container { max-width: 980px; margin-inline: auto; padding-inline: 1.4rem; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.site-header-row { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.logo strong { color: var(--accent); font-weight: 800; }
.site-nav { display: flex; gap: 1.4rem; font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.site-nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .site-nav { display: none; } }

/* ---- hero ---- */
.hero { padding-block: 3.2rem 2rem; text-align: center; max-width: 760px; }
.hero-eyebrow { display: inline-block; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); margin-bottom: 1rem; }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; margin-inline: auto 1.6rem; margin-top: 0; }
.hero .btn { margin-top: 1.6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; padding: .8rem 1.5rem; transition: background .15s var(--ease-out), transform .15s var(--ease-out), box-shadow .15s var(--ease-out); cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---- disclosure ---- */
.disclosure { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .85rem; color: var(--text-muted); margin-block: 1.6rem 2.4rem; }
.disclosure span { font-size: 1rem; line-height: 1.3; }
.disclosure--footer { margin: 0 0 1.4rem; background: transparent; border: none; padding: 0; }

/* ---- section shared ---- */
section h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.6rem; max-width: 62ch; }
.comparativa, .analisis, .guia, .faq { padding-block: 2.6rem; }

/* ---- comparison table ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .88rem; }
.compare-table th, .compare-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare-table thead th { background: var(--surface-2); font-weight: 700; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--accent-soft); }
.compare-table tr.is-featured { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.cp-name { font-weight: 700; }
.badge-top { display: inline-block; margin-left: .4rem; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: #fff; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.btn-table { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: .82rem; padding: .45rem .9rem; border-radius: 999px; white-space: nowrap; transition: background .15s var(--ease-out), border-color .15s var(--ease-out); }
.btn-table:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- ad slot ---- */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; background: var(--surface-2); margin-block: 2rem; }

/* ---- product cards ---- */
.product-card { display: grid; grid-template-columns: 160px 1fr; gap: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.product-card.is-featured { border-color: var(--accent); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--accent) 45%, transparent); }
.product-media { display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius-sm); min-height: 140px; }
.product-icon { font-size: 3rem; opacity: .55; }
.product-badge { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.product-badge--top { background: var(--accent); color: #fff; }
.product-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.product-meta { display: flex; gap: 1.1rem; align-items: baseline; margin-bottom: .8rem; flex-wrap: wrap; }
.product-meta .price { font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); }
.product-meta .rating { font-size: .88rem; color: var(--gold); font-weight: 700; }
.rating-count { color: var(--text-muted); font-weight: 500; font-family: var(--sans); }
.product-body > p { color: var(--text-muted); margin-bottom: 1rem; max-width: 66ch; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.pros h4, .cons h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.pros h4 { color: #2f8f4e; }
.cons h4 { color: #c1401f; }
.pros ul, .cons ul { display: flex; flex-direction: column; gap: .4rem; }
.pros li, .cons li { font-size: .88rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 0; color: #2f8f4e; font-weight: 800; }
.cons li::before { content: "–"; position: absolute; left: 0; color: #c1401f; font-weight: 800; }
@media (max-width: 640px) {
  .product-card { grid-template-columns: 1fr; }
  .product-media { min-height: 100px; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* ---- guía de compra ---- */
.guia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.guia-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.guia-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--accent-dark); }
.guia-card p { font-size: .88rem; color: var(--text-muted); }

/* ---- faq ---- */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .7rem; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; font-size: .96rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--text-muted); font-size: .92rem; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding-block: 2.2rem; margin-top: 1rem; }
.footer-content { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-links { display: flex; gap: 1.2rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .8rem; color: var(--text-muted); }
