/* PRICEIA · web pública (priceia.es)
   Mismos colores que la app: morado de marca y rojo PRICEIA para precios. */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --red: #c8102e;
  --green: #1e7d3a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --surface: #ffffff;
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--text { max-width: 760px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo img { width: 28px; height: 28px; flex-shrink: 0; }
.logo strong em { font-style: normal; color: var(--brand); }
.logo strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.logo span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) { .logo span { display: none; } }
.nav { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Portada */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.035em; }
.hero p.lead { margin: 0 0 28px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ejemplo de resultado */
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.result-card__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.result-card__product { margin: 6px 0 14px; font-size: 1.05rem; font-weight: 700; }
.result-card__best { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px; border-radius: 12px; background: #fdf2f4; }
.result-card__price { font-size: 1.9rem; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.result-card__shop { font-weight: 700; }
.result-card__meta { width: 100%; font-size: 0.85rem; color: var(--green); font-weight: 600; }
.result-card__rows { margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.result-card__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--line); }
.result-card__rows li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.result-card__note { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); }

/* Secciones */
.section { padding: 56px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.2; }
.section .intro { margin: 0 0 32px; color: var(--muted); max-width: 40em; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section--white .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: #ede9fe; color: var(--brand); font-weight: 800; }

/* Preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta-band { text-align: center; }
.cta-band p { color: var(--muted); margin: 0 auto 24px; max-width: 36em; }

/* Páginas legales */
.legal { padding: 48px 0 64px; }
.legal h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.5vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.15; }
.legal .updated { margin: 0 0 32px; color: var(--muted); font-size: 0.9rem; }
.legal h2 { margin: 36px 0 10px; font-size: 1.25rem; letter-spacing: -0.01em; }
.legal h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--bg); }
.table-scroll { overflow-x: auto; }
.placeholder { background: #fef3c7; color: #92400e; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; background: var(--surface); }

/* Pie */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer h4 { margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .disclosure { margin-top: 10px; font-size: 0.82rem; }

/* Aviso de almacenamiento técnico */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--ink); color: #e2e8f0; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 0.9rem;
}
.consent p { margin: 0; flex: 1 1 260px; }
.consent a { color: #c4b5fd; }
.consent .btn { padding: 8px 14px; }
.consent[hidden] { display: none; }

/* Móvil */
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Nombre PRICEIA con las letras del logo */
.brand-word { font-weight: 700; letter-spacing: -0.02em; text-transform: none; white-space: nowrap; color: var(--ink); }
.brand-word em { font-style: normal; color: var(--brand); }
.footer .brand-word, .site-footer .brand-word { color: inherit; }
