:root {
  --header: #0059db;
  --hero: #01408f;
  --hero-2: #0157ad;
  --blue: #1565d8;
  --navy: #0a3d86;
  --yellow: #ffe000;
  --ink: #142033;
  --muted: #5d7190;
  --line: #e5eef8;
  --soft: #f4f7fb;
  --footer: #13253d;
  --green: #22c55e;
  --shadow: 0 10px 28px rgba(16, 42, 90, 0.07);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
#cupones { scroll-margin-top: 96px; }
html, body, #root { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  font-size: 15px;
}
img { max-width: 100%; }
button, input, select { font-family: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  color: #fff;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  box-sizing: border-box;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  height: auto;
  overflow: visible;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}
.logo-text strong {
  display: block;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.logo-text em {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo img {
  width: 68px;
  height: 68px;
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
  display: block;
}
.footer a.logo {
  display: block;
  flex: none;
  width: 84px;
  height: 84px;
  max-width: 84px;
  margin: 0 auto 8px;
}
.footer a.logo img {
  width: 84px;
  height: 84px;
  max-width: 84px;
  max-height: 84px;
}
.nav { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a.nav-btn {
  background: var(--yellow);
  color: #142033;
  padding: 10px 18px;
  border-radius: 12px;
}
.nav a.nav-btn:hover,
.nav a.nav-btn.active { background: #ffe84a; color: #142033; }
.nav a.nav-text {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
}
.nav a.nav-text:hover,
.nav a.nav-text.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav-user {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(620px 240px at 72% 42%, rgba(56, 140, 255, 0.38), transparent 70%),
    linear-gradient(100deg, #01367c 0%, var(--hero) 48%, var(--hero-2) 100%);
  padding: 36px 0 48px;
}
.spark {
  position: absolute;
  background: var(--yellow);
  border-radius: 4px;
  z-index: 0;
}
.s1 { width: 18px; height: 6px; top: 26px; left: 48%; transform: rotate(24deg); }
.s2 { width: 9px; height: 9px; border-radius: 50%; top: 46px; right: 30%; }
.s3 { width: 20px; height: 6px; bottom: 28px; left: 40%; transform: rotate(-16deg); }
.s4 { width: 8px; height: 8px; border-radius: 50%; top: 18px; right: 12%; }
.s5 { width: 16px; height: 5px; bottom: 42px; right: 22%; transform: rotate(28deg); }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.15fr);
  gap: 12px;
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 span { color: var(--yellow); }
.hero-lead {
  margin: 14px 0 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.trust {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 148px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.hero-banner {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
  justify-self: end;
}

.home-body, .page { padding: 22px 0 36px; }
.search {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}
.search-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d5e2f2;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: #8aa0b8;
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  height: 100%;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}
.search-btn, .btn-primary {
  background: var(--navy);
  color: #fff;
}
.search-btn {
  flex: 0 0 auto;
  width: auto;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.search-btn:hover, .btn-primary:hover { background: #082f68; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.text-link {
  color: #0e56c8;
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
}
.text-link:hover { text-decoration: underline; }

[data-copy].is-done {
  background: #ecfdf5 !important;
  color: #047857 !important;
}
.coupon h3,
.coupon p,
.coupon dd,
.coupon dt { margin-bottom: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.modal-ok { width: 100%; }
.btn-ghost {
  background: #fff;
  color: #1d4ed8;
  border-color: #c9daf8;
}
.btn-ghost:hover { background: #f3f7ff; }
.btn-primary { border: 0; background: var(--blue); }
.btn.is-done { background: #e9f9ef; color: #047857; border-color: #b7ebc9; }

.social-wrap { padding: 8px 0 26px; }
.social {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1.15fr;
  gap: 22px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #edf2f8;
}
.social-intro { display: flex; gap: 12px; align-items: center; }
.people-bubble, .wa-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.people-bubble {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e7f0ff;
  color: #1560c8;
}
.social-intro strong, .wa strong, .fb-link strong { display: block; color: var(--ink); }
.social-intro strong { font-size: 18px; }
.social-intro p { margin: 2px 0 0; color: var(--muted); }
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
}
.fb-link svg { color: #1877f2; margin-top: 2px; }
.fb-link small, .wa small {
  display: block;
  margin-top: 2px;
  color: #7b8da3;
  font-size: 11px;
  word-break: break-all;
}
.wa-head { display: flex; gap: 10px; align-items: flex-start; }
.wa-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.wa strong { font-size: 14px; line-height: 1.3; }
.wa-btn {
  display: inline-flex;
  margin-top: 10px;
  margin-left: 46px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
}
.wa-btn:hover { background: #16a34a; }

.footer { background: var(--footer); color: #c5d2e2; padding: 34px 0 28px; text-align: center; }
.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) auto;
  gap: 26px;
  justify-items: center;
}
.footer h3 { margin: 0 0 8px; color: #fff; font-size: 15px; }
.footer a { color: #d5e2f2; text-decoration: none; display: block; margin: 7px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.disclaimer { font-size: 11.5px; line-height: 1.45; color: #9eb0c6; text-align: center; }
.disclaimer p { margin: 0 0 10px; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ml-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 74px;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
}
.ml-logo {
  width: 68px;
  height: 60px;
  max-width: 68px;
  max-height: 60px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.tagline {
  margin: 10px 0 0;
  font-family: "Caveat", "Segoe Script", cursive;
  color: var(--yellow);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}

.page-hero {
  background: linear-gradient(180deg, #023e86, #014892);
  color: #fff;
  padding: 28px 0 26px;
}
.page-hero h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -0.03em; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.hero-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.chip {
  text-decoration: none;
  border: 1px solid #d7e3f4;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
  color: #1e3a5f;
  cursor: pointer;
}
.chip.on { background: var(--header); color: #fff; border-color: var(--header); }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.result-note { margin: 0; color: #3d5270; font-weight: 700; }
.toolbar select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d5e2f2;
  padding: 0 10px;
  font-weight: 800;
  color: #1e3a5f;
  background: #fff;
}
.empty {
  text-align: center;
  padding: 42px 16px;
  border: 1px dashed #c9d8ee;
  border-radius: 16px;
  color: var(--muted);
}
.empty h3 { margin: 0 0 6px; color: var(--ink); }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.cat-tile .bubble {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: #e8f1ff;
  color: var(--header);
  display: grid;
  place-items: center;
}
.cat-tile em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.cat-tile:hover { transform: translateY(-3px); }

.backdrop[hidden],
.toast[hidden],
.code[hidden],
.stock-list[hidden],
.modal-actions[hidden],
.modal-ok[hidden] {
  display: none !important;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 22, 48, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  position: relative;
  max-height: min(90vh, 740px);
  overflow: auto;
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f2f5f9;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-media {
  height: 180px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 14px;
}
.modal-media img { max-height: 160px; object-fit: contain; }
.modal-title { margin: 14px 0 6px; font-size: 22px; }
.modal-note { margin: 0; color: var(--muted); line-height: 1.45; }
.code {
  margin: 14px 0;
  font-size: 28px;
  letter-spacing: 0.08em;
  font-weight: 800;
  background: var(--soft);
  border: 1px dashed #b9cff5;
  border-radius: 12px;
  text-align: center;
  padding: 12px;
  color: #1d4ed8;
}
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stock-list { margin: 12px 0 16px; padding-left: 18px; color: var(--ink); }
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #13253d;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-body { background: var(--soft); min-height: 100vh; }
.admin-bar { background: var(--header); color: #fff; }
.admin-bar-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.admin-brand img {
  width: 52px;
  height: 52px;
  max-width: 52px;
  object-fit: contain;
}
.admin-brand strong { display: block; color: var(--yellow); font-size: 16px; line-height: 1.05; }
.admin-brand em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-bar-actions { display: flex; align-items: center; gap: 8px; }
.admin-link, .admin-bar-actions button {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.admin-link { color: #fff; background: rgba(255, 255, 255, 0.14); }
.admin-bar-actions button {
  border: 0;
  background: var(--yellow);
  color: #142033;
  cursor: pointer;
}
.admin-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.admin-main .result-note { margin: 0 0 14px; }
.admin-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-intro h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.admin-intro p { margin: 6px 0 18px; color: var(--muted); font-weight: 600; }
.btn-nuevo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: #142033;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.btn-nuevo:hover { background: #ffe84a; }
.dash { display: flex; min-height: 100vh; background: #f3f6fb; color: var(--ink); }
.dash-side {
  width: 248px;
  flex: none;
  background: #101828;
  color: #d5deea;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  margin: 0 8px 22px;
}
.dash-brand img { width: 42px; height: 42px; max-width: 42px; object-fit: contain; }
.dash-brand strong { display: block; font-size: 15px; line-height: 1.1; }
.dash-brand em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5c400;
  color: #142033;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.dash-nav { display: grid; gap: 4px; }
.dash-nav a, .dash-side-foot a, .dash-side-foot button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c9d4e3;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.dash-nav a.active { background: #2f6bff; color: #fff; }
.dash-nav a:hover, .dash-side-foot a:hover, .dash-side-foot button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dash-side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 18px; }
.dash-side-foot form { margin: 0; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  padding: 18px 28px;
  border-bottom: 1px solid #e7eef6;
}
.dash-top h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.dash-content { padding: 22px 28px 40px; }
.cupon-card {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(16, 32, 70, 0.04);
}
.cupon-card h2 { margin: 0 0 18px; font-size: 18px; }
.cupon-card label, .form-2 label {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
.offer-form { display: grid; gap: 20px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.cupon-card input, .cupon-card select {
  height: 46px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
}
.switch {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d5deea;
  position: relative;
  flex: none;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.switch input:checked + .switch-ui { background: #22c55e; }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch b, .switch small { display: block; }
.switch small { color: var(--muted); font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.btn-yellow, .btn-cancel {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check-line input { width: 16px; height: 16px; margin: 0; }
.btn-yellow { border: 0; background: var(--yellow); color: #142033; }
.btn-yellow:hover { background: #ffe84a; }
.btn-cancel { border: 1px solid #d7e1ee; background: #fff; color: #24384f; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.list-head h2 { margin: 0; font-size: 20px; }
.stats-3 { display: flex; flex-wrap: wrap; gap: 14px; }
.stats-3 .kpi { width: 230px; flex: 0 0 230px; box-sizing: border-box; }
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid #eef3f8;
}
.dash-row:last-child { border-bottom: 0; }
.dash-row strong { display: block; font-size: 16px; line-height: 1.3; }
.dash-row small { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; line-height: 1.4; }
.dash-row .mini { white-space: nowrap; }
.list-head form { margin: 0; }
.panel-body { margin: 0; min-height: 100vh; background: #f4f7fb; color: var(--ink); }
.panel-top { background: var(--header); color: #fff; }
.panel-top-inner, .panel-wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.panel-top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.panel-brand img { width: 46px; height: 46px; max-width: 46px; object-fit: contain; }
.panel-top-actions { display: flex; align-items: center; gap: 8px; }
.panel-top-actions a, .panel-top-actions button {
  height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font-weight: 800; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.panel-wrap { padding: 22px 0 48px; }
.panel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.panel-pills a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: #3d5270; font-weight: 800; font-size: 13px; text-decoration: none;
  border: 1px solid #e1eaf6;
}
.panel-pills a.on { background: var(--yellow); color: #142033; border-color: var(--yellow); }
.panel-title { margin: 0 0 16px; font-size: 28px; letter-spacing: -0.03em; }
.panel-flash { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #e8f8ee; color: #157a3a; font-weight: 800; }
.offer-form label small, .check-line { color: var(--muted); font-weight: 700; }
.money-wrap { position: relative; display: block; }
.money-wrap b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #7b8ba3; }
.money-wrap input { padding-left: 28px; }
.check-line, .check-card { display: flex !important; align-items: center; gap: 8px; }
.check-card { border: 1px solid #e6eef8; border-radius: 16px; padding: 12px 14px; background: #f8fbff; }
.check-card input, .check-line input { width: 16px; height: 16px; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.offer-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.offer-table th, .offer-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef3f8; vertical-align: top; }
.offer-table th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #7b8ba3; }
.offer-table small { display: block; margin-top: 3px; color: var(--muted); font-weight: 700; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.row-actions a, .row-actions button { border: 0; background: transparent; color: var(--blue); font-weight: 800; cursor: pointer; padding: 0; }
.row-actions .danger, .agotado { color: #b42318; font-weight: 800; }
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; padding: 14px; }
.pager a { font-weight: 800; color: var(--blue); text-decoration: none; }
.admin-empty { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
.admin-page { background: var(--soft); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eef3f8;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.05);
}
.kpi b { display: block; font-size: 28px; line-height: 1; letter-spacing: -0.03em; }
.kpi > div span { display: block; margin-top: 4px; color: #8aa0b8; font-size: 13px; font-weight: 700; }
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.kpi-icon i { line-height: 1; }
.kpi-icon.blue { background: #e8f1ff; color: #3b82f6; }
.kpi-icon.green { background: #e7f8ee; color: #22c55e; }
.kpi-icon.pink { background: #fde8ea; color: #f43f5e; }
.kpi-icon.amber { background: #fff6d6; color: #eab308; }
.admin-solo { grid-template-columns: 1fr; }
.stat, .panel, .login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.admin-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.panel { padding: 16px; }
.admin-list-title { margin: 0 0 8px; font-size: 18px; }
.form-grid { display: grid; gap: 10px; }
.form-grid h3, .login-card h2 { margin: 0; }
.form-grid label, .login-card label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #24384f;
}
.form-grid input, .form-grid select, .login-card input {
  height: 42px;
  border: 1px solid #d5e2f2;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: flex !important; align-items: center; grid-template-columns: none; }
.checks input { width: 16px; height: 16px; }
.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid #eef3f8;
}
.coupon-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--soft);
  border-radius: 10px;
}
.coupon-row strong, .coupon-row small { display: block; }
.coupon-row small { color: var(--muted); margin-top: 3px; }
.mini-actions { display: flex; gap: 6px; }
.mini {
  border: 1px solid #d5e2f2;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px;
}
.mini.danger { color: #b42318; border-color: #f3c7c3; }
.login-card { max-width: 440px; margin: 12px auto; padding: 28px 22px; }
.login-card form, .login-card { display: grid; gap: 12px; }
.cuenta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 18px;
}
.cuenta-grid .login-card { margin: 0; width: 100%; }
.auth-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(520px 220px at 80% 0%, rgba(255, 224, 0, 0.22), transparent 70%),
    linear-gradient(160deg, #01367c 0%, #0059db 55%, #01408f 100%);
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 24px 50px rgba(8, 28, 68, 0.28);
}
.auth-logo {
  display: block;
  width: 72px;
  margin: 0 auto 14px;
  line-height: 0;
}
.auth-logo img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  object-fit: contain;
}
.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.auth-note {
  margin: 8px 0 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.auth-card form { display: grid; gap: 12px; }
.auth-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}
.auth-card input {
  height: 46px;
  border: 1px solid #d5e2f2;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.auth-card .btn { width: 100%; height: 46px; }
.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 700;
  color: #5d7190;
}
.auth-switch a { color: #0059db; font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.hint { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.error { margin: 0; color: #b42318; font-size: 13px; font-weight: 800; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer-grid, .social { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .header-inner { min-height: 68px; padding: 10px 16px; }
  .logo { width: auto; max-width: none; height: auto; }
  .logo img {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
  }
  .logo-text strong { font-size: 14px; }
  .logo-text em { font-size: 10px; }
  .hero { padding: 28px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-lead { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }
  .hero-banner { max-height: 240px; justify-self: center; }
  .trust { flex-wrap: wrap; }
  .admin-wrap, .stats-row { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .social, .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand, .ml-badge { justify-content: center; text-align: center; }
  .footer a.logo, .footer a.logo img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
  }
  .tagline { text-align: center; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; row-gap: 8px; padding: 10px 16px; }
  .admin-bar-inner { flex-wrap: wrap; padding: 10px 0; }
  .admin-intro { flex-direction: column; }
  .admin-intro h1 { font-size: 26px; }
  .dash { flex-direction: column; }
  .dash-side { width: 100%; padding-bottom: 10px; }
  .dash-nav { display: flex; gap: 6px; overflow: auto; }
  .dash-side-foot { margin-top: 10px; display: flex; }
  .dash-top, .dash-content { padding-left: 16px; padding-right: 16px; }
  .form-2 { grid-template-columns: 1fr; }
  .nav { margin-left: auto; }
  .nav a.nav-btn, .nav a.nav-text { padding: 8px 12px; font-size: 14px; }
  .stats-row, .modal-actions, .row-2, .cuenta-grid { grid-template-columns: 1fr; }
  .search { flex-direction: row; }
  .search-field { width: auto; flex: 1; }
  .search-btn { width: auto; }
  .trust { flex-wrap: wrap; }
  .section-head, .toolbar, .hero-title-row { flex-direction: column; align-items: flex-start; }
  .section-head h2, .page-hero h1 { font-size: 24px; }
  .coupon-row { grid-template-columns: 56px 1fr; }
  .mini-actions { grid-column: 2; }
}

/* Comunidad (redes) */
.comu { padding: 56px 0 64px; background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%); border-top: 1px solid #e6edf8; }
.comu-head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.comu-badge { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 14px; border-radius: 50%; background: #e7f0ff; color: #1560c8; box-shadow: 0 0 0 8px rgba(21, 96, 200, .07); }
.comu-head h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.comu-head p { margin: 8px 0 0; color: var(--muted); font-size: 16px; font-weight: 600; }
.comu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.comu-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; border: 1px solid #e3eaf5; border-radius: 22px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 18px 40px -28px rgba(15, 40, 80, .45); transition: transform .2s, box-shadow .2s, border-color .2s; }
.comu-card:hover { transform: translateY(-4px); border-color: #c9daf8; box-shadow: 0 26px 50px -26px rgba(0, 89, 219, .4); }
.comu-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: 18px; color: #fff; }
.comu-ico.fb { background: #1877f2; }
.comu-ico.wa { background: #22c55e; }
.comu-tag { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.comu-card strong { display: block; color: var(--ink); font-size: 19px; line-height: 1.3; }
.comu-text { flex: 1; margin-bottom: 14px; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.comu-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 14px; color: #fff; font-size: 15px; font-weight: 800; }
.comu-cta.fb { background: #1877f2; }
.comu-cta.wa { background: #22c55e; }
.comu-card:hover .comu-cta.fb { background: #0f63d1; }
.comu-card:hover .comu-cta.wa { background: #16a34a; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wa-float-btn { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #22c55e; color: #fff; box-shadow: 0 12px 28px -6px rgba(34, 197, 94, .7); transition: transform .2s, background .2s; }
.wa-float-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; opacity: .5; animation: wa-pulso 2.2s ease-out infinite; z-index: -1; }
.wa-float:hover .wa-float-btn { transform: scale(1.08); background: #16a34a; }
.wa-float-label { padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 28px -10px rgba(15, 40, 80, .45); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.wa-float:hover .wa-float-label { opacity: 1; transform: none; }
@keyframes wa-pulso { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 980px) { .comu-grid { grid-template-columns: 1fr; } .comu-card { padding: 24px; } }
@media (max-width: 560px) { .comu { padding: 40px 0 48px; } .wa-float { right: 14px; bottom: 14px; } .wa-float-label { display: none; } .wa-float-btn { width: 58px; height: 58px; } }
/* Encabezado de cupones: más aire */
#cupones .section-head { margin: 36px 0 0; padding-bottom: 6px; }
#cupones .section-head h2 { line-height: 1.2; }
#cupones .result-note { margin: 0 0 30px; padding: 10px 0 0 4px; color: #0059db; font-size: 15px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
/* Botón y modal "Cómo usar la web" */
.how-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; height: 50px; padding: 0 22px 0 12px; border: 0; border-radius: 999px; background: #ffe000; color: #0a2a5e; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); transition: transform .15s, background .15s; }
.how-btn:hover { background: #ffe84a; transform: translateY(-2px); }
.how-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0a2a5e; color: #ffe000; font-size: 16px; font-weight: 800; }
.ayuda-backdrop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(7, 25, 56, .6); }
.ayuda-backdrop[hidden] { display: none; }
.ayuda { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 32px 30px 28px; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(7, 25, 56, .4); }
.ayuda-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef3fb; color: #3d5270; cursor: pointer; }
.ayuda-x:hover { background: #dfe8f6; }
.ayuda h3 { margin: 0; padding-right: 36px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ayuda-sub { margin: 6px 0 22px; color: var(--muted); font-weight: 600; }
.ayuda-pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.ayuda-pasos li { position: relative; display: flex; gap: 16px; margin-bottom: 18px; counter-increment: paso; }
.ayuda-pasos li::before { content: counter(paso); flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #0059db; color: #fff; font-weight: 800; box-shadow: 0 8px 16px -8px rgba(0, 89, 219, .7); }
.ayuda-pasos strong { display: block; color: var(--ink); font-size: 16px; }
.ayuda-pasos span { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.ayuda-nota { margin: 4px 0 20px; padding: 12px 14px; border-radius: 12px; background: #fff8cc; color: #6b5a00; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.ayuda-ok { width: 100%; height: 50px; border: 0; border-radius: 14px; background: #0059db; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.ayuda-ok:hover { background: #0047b3; }
/* Modal: cupón copiado + redirección */
.modal-carga { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 14px; }
.carga-check { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #22c55e; color: #fff; box-shadow: 0 0 0 10px rgba(34, 197, 94, .15); animation: carga-pop .35s ease-out; }
.carga-texto { display: flex; align-items: center; gap: 10px; color: #0a2a5e; font-size: 15px; font-weight: 800; }
.carga-spinner { width: 18px; height: 18px; border: 3px solid #cfe0fb; border-top-color: #0059db; border-radius: 50%; animation: carga-giro .8s linear infinite; }
.carga-barra { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e6eefb; }
.carga-barra span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0059db, #3b82f6); animation: carga-llenar 2s linear forwards; }
.carga-nota { margin: 0; color: #64748b; font-size: 13px; font-weight: 700; }
@keyframes carga-giro { to { transform: rotate(360deg); } }
@keyframes carga-llenar { to { width: 100%; } }
@keyframes carga-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* Cupón agotado (visible pero no canjeable) */
.coupon.is-agotado { background: #f8fafc; box-shadow: none; }
.coupon.is-agotado h3 { color: #94a3b8; }
.coupon.is-agotado dd { color: #94a3b8; }
/* Tailwind CDN define su propia clase .container (sin márgenes laterales); se refuerza la del sitio */
html body .container { width: min(1180px, calc(100% - 40px)); max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
@media (min-width: 861px) { html body .container { width: min(1180px, calc(100% - 48px)); } }