/* HallazgosTop — High-Conversion Temu Influencer Deals Storefront */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --brand: #f97316;
  --brand-hover: #ea580c;
  --brand-soft: #ffedd5;
  --accent: #dc2626;
  --accent-soft: #fee2e2;
  --tg: #0088cc;
  --wa: #16a34a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  --max-w: 1140px;
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --surface: #111827;
  --surface-alt: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #263248;
  --brand-soft: rgba(249, 115, 22, 0.16);
  --accent-soft: rgba(220, 38, 38, 0.18);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
}

/* Sticky Top Coupon Bar */
.coupon-topbar {
  background: linear-gradient(90deg, #0f172a, #7c2d12, #ea580c);
  color: #fff;
  padding: 9px 14px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 600;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px dashed rgba(255, 255, 255, 0.75);
  color: #fff;
  padding: 3px 10px;
  border-radius: 7px;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.topbar-btn {
  background: #fff;
  color: #c2410c;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.topbar-btn:hover { background: #ffedd5; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none !important;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top right, #ea580c 0%, #9a3412 38%, #0f172a 100%);
  color: #fff;
  padding: 48px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero p {
  color: #fed7aa;
  font-size: 1.03rem;
  margin-bottom: 20px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hero Coupon Box */
.coupon-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1.5px solid rgba(251, 146, 60, 0.55);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(8px);
}

.coupon-card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fdba74;
  font-weight: 800;
  margin-bottom: 6px;
}

.coupon-big-offer {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.coupon-box-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-display {
  flex: 1;
  background: #0f172a;
  border: 2px dashed #f97316;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 0.08em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, background 0.15s;
  text-decoration: none !important;
}

.btn:active { transform: scale(0.98); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { opacity: 0.92; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { opacity: 0.92; }
.btn-secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); }

/* 3 Steps Section */
.steps-strip {
  margin: 28px 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.step-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-box h3 { font-size: 0.96rem; margin-bottom: 3px; }
.step-box p { font-size: 0.84rem; color: var(--text-muted); }

/* Search & Filters */
.catalog-section { padding: 28px 0 40px; }

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
  outline: none;
}

.search-box input:focus { border-color: var(--brand); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.product-thumb {
  height: 175px;
  background: linear-gradient(135deg, var(--surface-alt), var(--brand-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-emoji {
  font-size: 3.6rem;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.product-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0f172a;
  color: #fdba74;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.product-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.28;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
}

.price-now {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand);
}

.price-old {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.card-actions .btn-brand { flex: 1; padding: 10px 12px; font-size: 0.88rem; }
.card-actions .btn-wa { padding: 10px 12px; font-size: 0.85rem; }

/* Community Banner */
.community-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  margin: 18px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.community-box h2 { font-size: 1.45rem; margin-bottom: 6px; }
.community-box p { color: #cbd5e1; max-width: 560px; font-size: 0.94rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 999;
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 0;
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a { color: #fdba74; }
