/* ===== Tema oscuro minimalista (solo index.html) ===== */
:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --card: #161617;
  --card-2: #1f1f21;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --mute: #bdbdbd;
  --dim: #7a7a7a;
  --green: #22c55e;
  --green-2: #16a34a;
  --red: #f87171;
  --radius: 18px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #fff; color: #000; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo__img {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #ffe600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}
.logo__text {
  font-weight: 800;
  font-size: clamp(14px, 3.8vw, 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Hero compacto ---------- */
.hero { padding-top: 16px; }
.hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hero__title {
  margin: 0;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.hero__date svg { width: 13px; height: 13px; }
.hero__subtitle {
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}
.hero__subtitle strong { color: var(--text); }

/* ---------- Fila de enlaces ---------- */
.social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  max-width: 480px;
}
.social-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.social-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-chip i { font-size: 16px; flex-shrink: 0; }
.social-chip:hover { background: rgba(255, 255, 255, 0.06); }
.social-chip--wa { border-color: rgba(34, 197, 94, 0.6); }
.social-chip--wa i { color: var(--green); }
.social-chip--fb { border-color: rgba(59, 130, 246, 0.6); }
.social-chip--fb i { color: #60a5fa; }

/* ---------- Buscador: ¿cuánto cuesta tu compra? ---------- */
.coupon-finder { margin-top: 18px; }
.coupon-finder__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
}
.coupon-finder__bar:focus-within { border-color: rgba(255, 255, 255, 0.35); }
.coupon-finder__field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.coupon-finder__icon { width: 18px; height: 18px; color: var(--dim); flex-shrink: 0; }
.coupon-finder__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 8px 0;
}
.coupon-finder__input::placeholder { color: var(--dim); }
.coupon-finder__input::-webkit-outer-spin-button,
.coupon-finder__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.coupon-finder__input[type=number] { -moz-appearance: textfield; }
.coupon-finder__btn {
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  flex-shrink: 0;
}
.coupon-finder__btn:hover { background: var(--mute); }
.coupon-finder__result { margin-top: 10px; }

.finder-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.finder-card__top { display: flex; gap: 12px; align-items: center; }
.finder-card__mascot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffe600;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.finder-card__info { min-width: 0; }
.finder-card__badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--green);
}
.finder-card__badge--warn { color: #fbbf24; }
.finder-card__savings { margin: 2px 0 4px; font-size: 20px; font-weight: 800; }
.finder-card__meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  color: var(--mute); font-size: 12px;
}
.finder-card__meta li { display: inline-flex; align-items: center; gap: 5px; }
.finder-card__meta svg { width: 13px; height: 13px; }
.finder-card__cta {
  margin-top: 14px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 11px;
  border-radius: 12px;
}
.finder-card__cta:hover { background: var(--green-2); }
.finder-card__cta svg { width: 16px; height: 16px; }
.finder-card__upsell {
  margin-top: 12px;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-2);
  font-size: 13px;
  color: var(--mute);
}
.finder-card__upsell strong { color: var(--text); }
.finder-card__upsell-icon svg { width: 16px; height: 16px; color: var(--green); margin-top: 2px; }
.finder-card__upsell-sub { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.finder-card__tip { margin-top: 12px; }
.finder-card__tip-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--mute); margin-bottom: 8px;
}
.finder-card__tip-head svg { width: 14px; height: 14px; }
.finder-card__bank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.finder-card__bank-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--card-2);
}
.finder-card__bank-info { min-width: 0; display: flex; flex-direction: column; }
.finder-card__bank-title { font-size: 13px; }
.finder-card__bank-meta { font-size: 11px; color: var(--dim); }
.finder-card__bank-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.finder-card__bank-btn svg { width: 13px; height: 13px; }
.finder-card__empty-msg { margin: 6px 0 0; color: var(--mute); font-size: 13px; }

/* ---------- Categorías ---------- */
.filters { margin: 20px 0 12px; }
#category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
#category-filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mute);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.14); }
.chip--active { background: #fff; color: #000; }
.chip--active:hover { background: #fff; }

/* ---------- Tarjetas de cupón (mismo diseño que perfumesOF) ---------- */
.coupons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 8px;
}
@media (min-width: 900px) {
  .coupons-grid { grid-template-columns: 1fr 1fr; max-width: none; gap: 1.25rem; }
}

.coupon-card {
  position: relative;
  background: #1a1a1b;
  border-radius: 20px;
  padding: 1.1rem 1rem 1.15rem;
}
.coupon-fade-in { animation: couponIn 0.3s ease-out both; }
@keyframes couponIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.coupon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.views-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 700;
}
.coupon-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.coupon-rank i { color: #ef4444; }

.coupon-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 1px auto;
  column-gap: 8px;
  align-items: center;
}
.coupon-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffe600;
  border: 2px solid #2d3277;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: center;
}
.coupon-logo img { width: 100%; height: 100%; object-fit: contain; }
.coupon-logo-amazon { background: #fff; border: none; padding: 8px; }

.coupon-info { min-width: 0; }
.coupon-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
  font-size: clamp(15px, 6.2vw, 34px);
}
.coupon-meta {
  margin: 0;
  color: #a3a3a3;
  font-weight: 600;
  font-size: clamp(11px, 3.3vw, 15px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-meta--first { margin-top: 6px; }
.coupon-expires {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: clamp(11px, 3.2vw, 15px);
  white-space: nowrap;
  overflow: hidden;
}
.coupon-expires span { white-space: nowrap; }

.coupon-divider {
  width: 1px;
  height: 70%;
  min-height: 44px;
  background: #9a9a9a;
  border-radius: 1px;
  align-self: center;
}
.coupon-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}
.coupon-code {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: clamp(16px, 5vw, 26px);
  text-align: center;
}

.coupon-footer {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 12px;
}
.coupon-footer-split {
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
}
.coupon-btn {
  width: 100%;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  font-size: clamp(8px, 2.4vw, 12px);
  letter-spacing: 0.01em;
  padding: 7px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  line-height: 1.15;
  min-height: 36px;
}
.coupon-btn:hover { background: #16a34a; }
.coupon-footer-split .coupon-btn {
  width: auto;
  flex: 1;
  min-width: 0;
  height: 40px;
  font-size: 9px;
  padding: 0 8px;
  white-space: nowrap;
}
.coupon-footer-split .coupon-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.coupon-bank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 122px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 4px 6px;
  overflow: hidden;
  line-height: 0;
}
.coupon-bank-chip img { width: 100%; height: 100%; object-fit: contain; }
.coupon-bank-chip-wide { width: 136px; }
.coupon-bank-chip-amazon { padding: 0 2px; }
.coupon-bank-chip-amazon img { transform: scale(1.12); }
.coupon-bank-chip-text {
  line-height: 1.1;
  color: #111;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 640px) {
  .coupon-card { padding: 1.25rem 1.25rem 1.3rem; }
  .coupon-logo { width: 60px; height: 60px; }
  .coupon-main { column-gap: 10px; }
  .coupon-bank-chip { width: 130px; height: 44px; padding: 5px 7px; }
  .coupon-bank-chip-wide { width: 144px; }
  .coupon-footer-split .coupon-btn { height: 44px; }
}
@media (min-width: 900px) {
  .coupon-title { font-size: clamp(18px, 2vw, 28px); }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--mute);
  background: var(--card);
  border-radius: var(--radius);
}
.empty-state__title { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.empty-state__text { margin: 0; font-size: 13px; }

/* ---------- Canales ---------- */
.channels {
  margin: 28px 0 24px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0f0f10;
}
.channels__title { margin: 0; text-align: center; font-size: 20px; font-weight: 800; }
.channels__subtitle { margin: 6px auto 16px; text-align: center; color: var(--mute); font-size: 13px; max-width: 420px; }
.channels__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .channels__grid { grid-template-columns: 1fr 1fr; } }
.channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}
.channel__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 22px;
  flex-shrink: 0;
}
.channel__body { flex: 1; min-width: 0; }
.channel__label { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.channel__name { display: block; font-size: 15px; font-weight: 800; }
.channel__desc { display: block; font-size: 12px; color: var(--mute); }
.channel__cta {
  background: var(--green); color: #000;
  font-weight: 800; font-size: 12px;
  padding: 8px 14px; border-radius: 999px;
  flex-shrink: 0;
}
.channel--alt .channel__icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.channel--alt .channel__label { color: var(--mute); }
.channel--alt .channel__cta { background: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 90px;
  color: var(--dim);
  font-size: 12px;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { color: var(--mute); font-size: 18px; }
.footer__social a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 40;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Modal "cómo usar" ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal--open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.modal__dialog {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 20px;
}
.modal__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; color: var(--mute); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title { margin: 0; font-size: 18px; font-weight: 800; }
.modal__subtitle { margin: 4px 0 16px; color: var(--mute); font-size: 13px; }
.modal__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.modal__step { display: flex; gap: 12px; }
.modal__step strong { font-size: 14px; }
.modal__step p { margin: 2px 0 0; color: var(--mute); font-size: 13px; line-height: 1.45; }
.modal__step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.modal__cta {
  margin-top: 18px; width: 100%;
  background: var(--green); color: #fff;
  font-weight: 800; padding: 11px; border-radius: 12px;
}

/* ---------- SweetAlert oscuro ---------- */
.swal2-popup { background: var(--card) !important; color: var(--text) !important; border-radius: 18px !important; }
.swal2-title, .swal2-html-container { color: var(--text) !important; }

