/* Dirección "Perfil de creadora" — crema cálido + magenta de acento.
   Ver design_handoff_cazadora/01-tokens.md, 02-home.md, 03-lista.md para la fuente de verdad. */
:root {
  --bg: #faf2ea;
  --surface: #fffaf5;
  --card: #ffffff;
  --ink: #1a1220;
  --body: #5d5560;
  --muted: #8c8189;
  --line: #ece0d8;
  --line-soft: #f6ece4;
  --accent: #c2185b;
  --accent-ink: #a3134b;
  --accent-soft: #fdeaf1;
  --on-accent: #ffffff;
  --dark: #1a1220;
  --on-dark-accent: #f48fb1;
  --shadow-card: 0 4px 14px rgba(26,18,32,.06);
  --shadow-tile: 0 4px 14px rgba(26,18,32,.05);
  --shadow-badge: 0 5px 13px rgba(194,24,91,.34);
  --shadow-avatar: 0 8px 20px rgba(194,24,91,.16);
  --shadow-hover: 0 10px 26px rgba(26,18,32,.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.page { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; flex: 1; width: 100%; }

/* ── Header ─────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) {
  .site-header-inner { padding: 16px 32px; }
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand .brand-ink { color: var(--ink); }
.brand .brand-accent { color: var(--accent); }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 720px) {
  .nav-links { display: flex; }
}
.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--body);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 4px; }

.ig-pill-button {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter .15s ease;
}
.ig-pill-button:hover { filter: brightness(.95); }

.menu-button {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: none;
  font-size: 15px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Hero (home) — perfil de creadora ───── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .hero {
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px 32px 24px;
  }
}
@media (min-width: 1000px) {
  .hero { padding: 26px 44px 24px; }
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  box-shadow: var(--shadow-avatar);
  justify-self: center;
}
@media (min-width: 720px) {
  .hero-avatar { width: 120px; height: 120px; justify-self: start; }
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 36px;
  font-weight: 800;
}

.hero-text { text-align: center; }
@media (min-width: 720px) {
  .hero-text { text-align: left; }
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-text h1 {
  font-size: 27px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 7px 0 0;
}
@media (min-width: 640px) {
  .hero-text h1 { font-size: 34px; }
}
.hero-text p {
  font-size: 14px;
  color: var(--body);
  margin: 9px 0 0;
  line-height: 1.45;
  max-width: 560px;
}
@media (min-width: 720px) {
  .hero-text p { font-size: 15px; }
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 14px;
  overflow-x: auto;
}
@media (min-width: 720px) {
  .stats-row { justify-content: flex-start; gap: 26px; }
}
.stat { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.stat-value { font-size: 17px; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.hero-cta-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}
@media (min-width: 720px) {
  .hero-cta-col { width: auto; }
}
.hero-cta-col a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  text-align: center;
  transition: filter .15s ease;
}
.cta-primary { background: var(--accent); color: var(--on-accent); }
.cta-primary:hover { filter: brightness(.95); }
.cta-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cta-secondary:hover { filter: brightness(.97); }

/* ── Genérico (portales sin SiteProfile) ── */
.hero-generic { max-width: 20ch; }
@media (min-width: 640px) {
  .hero-generic { max-width: 26ch; }
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0; }
.section-link { font-size: 14px; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ── Cazados hoy (home) ─────────────────── */
.deals-section { padding: 4px 16px 4px; max-width: 1200px; margin: 0 auto; width: 100%; }
@media (min-width: 640px) {
  .deals-section { padding: 4px 32px 4px; }
}

/* ── Explora por categoría (home) ───────── */
.category-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (min-width: 720px) {
  .category-tiles { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}
.category-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-tile);
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.category-tile-top { display: flex; align-items: center; gap: 12px; }
.category-tile-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}
.category-tile-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.category-tile-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.category-tile-arrow { font-size: 19px; font-weight: 800; color: var(--accent); }
.category-tile-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.category-tile-thumb {
  height: 74px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-tile-thumb img { max-width: 85%; max-height: 85%; object-fit: contain; }

.empty { color: var(--muted); margin-top: 24px; font-size: 14px; text-align: center; }

/* ── Category header (listado) ──────────── */
.category-header { padding: 14px 16px 0; max-width: 1200px; margin: 0 auto; width: 100%; }
@media (min-width: 640px) {
  .category-header { padding: 14px 32px 0; }
}
.breadcrumb { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0; }
.breadcrumb a:hover { text-decoration: underline; }
.category-header h1 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 7px 0 0; line-height: 1.08; }
.category-meta { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.curator-note {
  font-size: 13px;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 0;
  max-width: 60ch;
}

@media (min-width: 640px) {
  .category-header h1 { font-size: 30px; }
}

/* ── Filter chips + orden (listado) ─────── */
.filter-chips {
  display: flex;
  gap: 9px;
  align-items: center;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease;
}
.chip:hover { filter: brightness(.97); }
.chip-toggle { margin-left: auto; }
.chip-sort.is-active, .chip-toggle.is-active, .chip-cat.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
.sort-select {
  margin-left: auto;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
}

/* ── Product grid + tarjeta de producto ─── */
/* Componente central del sitio: idéntico en home y listado. */
.product-grid {
  list-style: none;
  padding: 8px 0 4px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.product-link { display: flex; flex-direction: column; height: 100%; }

.product-image {
  position: relative;
  background: #fff;
  height: 160px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.no-image { color: var(--muted); font-size: 9px; text-align: center; padding: 4px; }

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 17px;
  padding: 6px 10px;
  border-radius: 11px;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-badge);
}

.product-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  border-top: 1px solid var(--line-soft);
}
.product-title {
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  height: 33px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; white-space: nowrap; }
.price-muted { font-size: 13px; color: var(--muted); font-weight: 700; }
.original-price { font-size: 12px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }

.savings-chip {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.cta-button {
  margin-top: auto;
  display: block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  transition: filter .15s ease;
}
.product-link:hover .cta-button { filter: brightness(.95); }

/* ── Footer ─────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 12px; }
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .site-footer-inner { padding: 24px 44px; }
}
.site-footer-inner .copy { margin: 9px 0 0; font-weight: 700; }
