:root {
  --navy: #0f1d3d;
  --navy-soft: #1b2d53;
  --ink: #13203b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #eef2f8;
  --card: #ffffff;
  --blue: #1d4ed8;
  --cyan: #2bb3d9;
  --red: #e02b3f;
  --gold: #ffc83d;
  --green: #16a34a;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(15, 29, 61, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 29, 61, 0.18);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

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

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

img { max-width: 100%; }
a { color: var(--blue); }

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

/* ---------------------------------------------------------------- header */

.topbar { background: var(--card); border-bottom: 1px solid var(--line); }

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.logo .mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold), #f0a81e);
  color: var(--navy);
  font-size: 1.3rem;
}

.logo b {
  display: block;
  font-size: clamp(1.25rem, 3.6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.logo span { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.4px; }

.searchbar { background: var(--cyan); padding: 14px 0; text-align: center; }

.searchbar .btn { box-shadow: 0 6px 18px rgba(224, 43, 63, 0.3); }

/* ---------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-red { background: var(--red); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline { background: transparent; border: 2px solid var(--line); color: var(--ink); }
.btn-sm { padding: 9px 15px; font-size: 0.8rem; border-radius: 8px; text-transform: none; letter-spacing: 0; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 34px 0 10px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: center;
}

.hero-photo {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

/* carrusel del premio */

.carousel { position: relative; overflow: hidden; border-radius: 12px; background: var(--bg); }

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 29, 61, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-nav:hover { background: rgba(15, 29, 61, 0.8); }
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.carousel-dots { display: flex; gap: 8px; justify-content: center; padding: 12px 0 2px; }

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}

.carousel-dots button.active { background: var(--navy); }

.kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 6px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -1.4px;
  text-transform: uppercase;
  color: var(--navy);
}

.hero h1 em { font-style: normal; color: var(--blue); }

.hero .subtitle { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: var(--red); }
.hero .desc { margin: 0 0 22px; color: var(--muted); white-space: pre-line; }

/* barra de progreso */

.progress-box {
  padding: 16px 18px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  color: var(--navy);
}

.progress-head span { color: var(--red); font-size: 1.15rem; }

.progress-track {
  height: 15px;
  border-radius: 999px;
  background: #dde5f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.7s ease;
}

.progress-foot { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- secciones */

section.block { padding: 50px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: -0.8px;
  color: var(--navy);
}

.section-head p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- combos */

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 22px 24px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.package:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.package.featured { border-color: var(--gold); }

.package .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(224, 43, 63, 0.3);
}

.package .qty {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--navy);
}

.package .qty small { font-size: 1.1rem; font-weight: 800; color: var(--muted); }

.package .name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue);
}

.package .price { font-size: 2rem; font-weight: 900; letter-spacing: -1px; color: var(--navy); }
.package .currency { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: -6px; }
.package .note { margin: 0; color: var(--muted); font-size: 0.89rem; min-height: 2.6em; }

/* ---------------------------------------------------------------- pasos */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step {
  padding: 26px 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.1rem;
}

.step h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------------------------------------------------------------- consulta */

.lookup-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lookup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup-form input { flex: 1 1 170px; min-width: 0; }
.lookup-form .btn { flex: 0 0 auto; }

.lookup-results { margin-top: 18px; display: grid; gap: 12px; }

.ticket {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.ticket header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.ticket header b { color: var(--navy); font-size: 1rem; }

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

.numbers span {
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.5px;
}

/* ---------------------------------------------------------------- formularios */

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="search"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus, textarea:focus, select:focus { outline: 2px solid rgba(29, 78, 216, 0.4); outline-offset: 1px; }

label.field { display: block; }
label.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.alert { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; display: none; }
.alert.show { display: block; }
.alert.error { background: #fdecee; color: #a21424; border: 1px solid #f6c2c8; }
.alert.ok { background: #e8f8ef; color: #136b3b; border: 1px solid #b7e6ca; }

/* ---------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 29, 61, 0.55);
}

.modal-backdrop.show { display: grid; }

.modal {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  padding: 22px 26px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.modal-head h3 { margin: 0; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -0.3px; }
.modal-head p { margin: 4px 0 0; font-size: 0.86rem; color: #a9c2e8; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-body { padding: 26px; }

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f1f5fb;
}

.order-summary .total { font-size: 1.4rem; font-weight: 900; color: var(--navy); }

.success-box { text-align: center; }

.success-box .tick {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8f8ef;
  color: var(--green);
  font-size: 1.7rem;
}

.success-box h4 { margin: 0 0 6px; font-size: 1.25rem; color: var(--navy); }
.success-box .meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }

.code-chip {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 800;
  letter-spacing: 1px;
}

.success-box .numbers { justify-content: center; margin-bottom: 18px; }
.success-box .payment { text-align: left; font-size: 0.9rem; color: var(--muted); white-space: pre-line; }

/* ---------------------------------------------------------------- checkout */

.checkout-page { padding: 30px 0 50px; }

.checkout-title {
  margin: 0 0 26px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  color: var(--navy);
}

.cart-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #f7f9fc;
}

.cart-notice p { flex: 1 1 260px; margin: 0; font-size: 0.95rem; }
.cart-notice .cart-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
}

.btn-blue { background: var(--blue); color: #fff; text-transform: none; letter-spacing: 0; }

.checkout-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: start; }

.billing h2, .order-box h2 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  color: var(--navy);
}

.billing .field { margin-bottom: 16px; }
.billing .form-grid .field { margin-bottom: 0; }
.billing .form-grid { margin-bottom: 16px; }

label.field > span i { color: var(--red); font-style: normal; }
label.field > span small { font-weight: 400; color: var(--muted); }
label.field > span { font-size: 0.9rem; color: var(--navy); font-weight: 700; }

.field-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

.order-box {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.order-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.order-table th, .order-table td { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
.order-table thead th { font-size: 1rem; color: var(--navy); }
.order-table td:last-child, .order-table tfoot td { text-align: right; white-space: nowrap; }
.order-table tbody td { color: var(--ink); line-height: 1.45; }
.order-table .qty { color: var(--muted); }
.order-table tfoot th { font-weight: 700; color: var(--navy); }
.order-table .total-row th, .order-table .total-row td { font-size: 1.05rem; font-weight: 800; border-bottom: 0; }

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-size: 0.95rem;
}

.pse-badge {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1d4ed8, #0b2f8f);
  color: #ffd34d;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
}

.payment-note { margin: 0 0 18px; font-size: 0.86rem; color: var(--muted); white-space: pre-line; }

.order-received {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.order-received .tick {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f8ef;
  color: var(--green);
  font-size: 1.8rem;
}

.order-received h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--navy); }
.order-received h3 { margin: 26px 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.order-received .meta { margin: 0 0 22px; color: var(--muted); }
.order-received .numbers { justify-content: center; }
.order-received .payment { margin: 22px 0 0; font-size: .9rem; color: var(--muted); white-space: pre-line; }

.payment-pending {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.payment-pending-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 800;
}

.payment-pending h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--navy); }
.payment-pending h3 { margin: 26px 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.payment-pending .meta { margin: 0 0 22px; color: var(--muted); }
.payment-pending .numbers { justify-content: center; }
.payment-pending-help { margin: 22px 0 18px; font-size: .9rem; color: var(--muted); }
.bold-payment-host { min-height: 54px; display: flex; justify-content: center; }

.received-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: #f5f7fb;
}

.received-grid small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.received-grid b { font-size: 1.05rem; color: var(--navy); }

.received-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: 30px; padding: 26px 0; background: var(--navy); color: #a9c2e8; font-size: 0.86rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--gold); }

/* ---------------------------------------------------------------- admin */

.admin-warning {
  padding: 10px 18px;
  background: #fdecee;
  border-bottom: 1px solid #f6c2c8;
  color: #a21424;
  font-size: 0.86rem;
  text-align: center;
}

.admin-bar { background: var(--navy); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.admin-bar b { text-transform: uppercase; letter-spacing: 0.5px; }
.admin-bar a { color: #a9c2e8; text-decoration: none; margin-right: 14px; font-size: 0.9rem; }
.admin-bar a:hover { color: #fff; }

.admin-layout { padding: 28px 0 60px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 26px; }

.stat { padding: 18px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.stat span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; }
.stat b { display: block; margin-top: 4px; font-size: 1.7rem; letter-spacing: -1px; color: var(--navy); }

.card { padding: 24px; margin-bottom: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--navy); }
.card > p.hint { margin: 0 0 18px; color: var(--muted); font-size: 0.89rem; }
.card.danger { border: 1px solid #f6c2c8; background: #fffafb; }

.row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: grid; gap: 14px; }

.pkg-editor { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.pkg-editor h4 { margin: 0 0 12px; font-size: 0.9rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; }

.img-preview {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 10px;
}

.table-scroll { overflow-x: auto; }
table.sales { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 860px; }

table.sales th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.sales td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sales tr:last-child td { border-bottom: 0; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; }
.pill.paid { background: #e8f8ef; color: #136b3b; }
.pill.pending { background: #fff5e0; color: #92610b; }
.pill.sent { background: #e8f8ef; color: #136b3b; }
.pill.failed { background: #fdecee; color: #a21424; }
.pill.skipped { background: #eef2f8; color: var(--muted); }

/* Aviso de ventas que Bold aprobó pero el sistema no pudo cerrar solo. */
.sales-alert {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-radius: 10px;
  border-left: 4px solid #a21424;
  background: #fdecee;
  color: #7d1020;
  font-size: 0.88rem;
  line-height: 1.6;
}
.sales-alert code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  font-weight: 700;
}

.nums-cell { display: flex; flex-wrap: wrap; gap: 4px; max-width: 250px; }
.nums-cell code { padding: 2px 7px; border-radius: 6px; background: #eef2f8; font-variant-numeric: tabular-nums; }

.empty { padding: 30px; text-align: center; color: var(--muted); }

.outbox-list { display: grid; gap: 8px; }
.outbox-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.86rem;
  background: #f8fafc;
}
.outbox-item small { color: var(--muted); }

/* ---------------------------------------------------------------- panel: pestañas */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.tabs button {
  flex: 1 1 auto;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.tabs button:hover { background: #f1f5fb; color: var(--ink); }
.tabs button.active { background: var(--navy); color: #fff; }
.tabs button.danger-tab.active { background: var(--red); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------------------------------------------------------- panel: galería */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item .cover-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-actions {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.gallery-actions button {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.gallery-actions button:hover:not(:disabled) { background: #f1f5fb; }
.gallery-actions button:disabled { opacity: 0.35; cursor: not-allowed; }
.gallery-actions button.remove { color: var(--red); border-color: #f6c2c8; }

.dropzone {
  padding: 26px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------------- panel: precios */

.price-auto {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.price-auto b { color: var(--navy); }

label.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

label.switch input { width: auto; }

/* ---------------------------------------------------------------- panel: modal de borrado */

.danger-list {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff5f6;
  border: 1px solid #f6c2c8;
  list-style: none;
  font-size: 0.93rem;
}

.danger-list li { padding: 4px 0; }
.danger-list li b { color: var(--red); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: 340px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  transform: translateY(160%);
  transition: transform 0.25s ease;
}
.toast.show { transform: translateY(0); }
.toast.error { background: var(--red); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .packages, .steps, .row-2, .row-3, .form-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
  .received-grid { grid-template-columns: 1fr; text-align: left; }
  .topbar .wrap { padding: 14px 18px; }
}

/* ---------------------------------------------------------------- refresh visual */

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #dfe6f1;
  --shadow: 0 16px 42px rgba(15, 29, 61, 0.09);
  --shadow-lg: 0 26px 72px rgba(15, 29, 61, 0.16);
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(43, 179, 217, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(255, 200, 61, 0.12), transparent 25rem),
    var(--bg);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 44% 56% 62% 38%;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  filter: blur(2px);
}

body::before {
  top: 30%;
  left: -12rem;
  background: rgba(43, 179, 217, 0.16);
  transform: rotate(24deg);
}

body::after {
  right: -12rem;
  bottom: 12%;
  background: rgba(255, 200, 61, 0.16);
  transform: rotate(-18deg);
}

.wrap { max-width: 1160px; }

.topbar {
  position: relative;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(223, 230, 241, 0.85);
  backdrop-filter: blur(16px);
}

.topbar .wrap {
  justify-content: flex-start;
  min-height: 76px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo { transition: transform 0.2s ease; }
.logo:hover { transform: translateY(-1px); }

.logo .mark {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(240, 168, 30, 0.24);
}

.searchbar {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 11px 18px;
  background: linear-gradient(100deg, #25a8c7, #49bfce 58%, #2bb3d9);
  box-shadow: 0 8px 24px rgba(15, 29, 61, 0.12);
}

.searchbar .btn { min-width: 250px; }

.btn {
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(15, 29, 61, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover:not(:disabled) {
  box-shadow: 0 12px 22px rgba(15, 29, 61, 0.14);
  transform: translateY(-2px);
}

.btn:focus-visible,
.tabs button:focus-visible,
.carousel-nav:focus-visible,
.carousel-dots button:focus-visible,
.gallery-actions button:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: 3px;
}

.hero {
  position: relative;
  padding-top: clamp(36px, 6vw, 76px);
  padding-bottom: clamp(24px, 4vw, 52px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(24px, 5vw, 64px);
}

.hero-photo {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  animation: cardFloat 7s ease-in-out infinite;
}

.hero-photo::after {
  position: absolute;
  right: 10%;
  bottom: -12px;
  left: 10%;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 29, 61, 0.18);
  content: "";
  filter: blur(12px);
  z-index: -1;
}

.carousel { border-radius: 15px; }

.carousel-track { transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1); }

.carousel-track img { aspect-ratio: 5 / 4; }

.carousel-nav {
  width: 44px;
  height: 44px;
  background: rgba(15, 29, 61, 0.68);
  box-shadow: 0 6px 16px rgba(15, 29, 61, 0.18);
}

.carousel-nav:hover { background: var(--navy); }

.carousel-dots button {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active { transform: scale(1.35); }

.hero-copy { position: relative; }

.hero-copy::before {
  position: absolute;
  top: -28px;
  right: 6%;
  width: 70px;
  height: 70px;
  border: 10px solid rgba(255, 200, 61, 0.32);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.kicker {
  padding: 7px 14px;
  background: rgba(15, 29, 61, 0.94);
  box-shadow: 0 8px 18px rgba(15, 29, 61, 0.16);
}

.hero h1 {
  position: relative;
  max-width: 650px;
  margin-top: 16px;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  letter-spacing: -2.6px;
}

.hero .subtitle { font-size: 1.15rem; }
.hero .desc { max-width: 600px; font-size: 1.03rem; }

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-box {
  margin-bottom: 22px;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
}

.progress-fill { background: linear-gradient(90deg, var(--gold), #f48832 60%, var(--red)); }

.hero-actions { gap: 14px; }
.hero-actions .btn-red { min-width: 190px; }

section.block { padding-top: clamp(44px, 7vw, 82px); padding-bottom: clamp(44px, 7vw, 82px); }

.section-head { margin-bottom: 38px; }

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }

.section-head p { font-size: 1rem; }

.packages { gap: 24px; }

.package {
  min-height: 350px;
  padding: 34px 24px 26px;
  border-color: rgba(223, 230, 241, 0.88);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.package:nth-child(2) { transform: translateY(-10px); }
.package:nth-child(2):hover { transform: translateY(-15px); }
.package:hover { border-color: rgba(43, 179, 217, 0.48); }
.package.featured { border-color: rgba(255, 200, 61, 0.9); }

.package .qty { font-size: 3.7rem; }

.lookup-card {
  border: 1px solid rgba(223, 230, 241, 0.9);
  box-shadow: var(--shadow-lg);
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="search"], input[type="password"], textarea, select {
  min-height: 48px;
  border-color: #d7e0ed;
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.site-footer { margin-top: 0; }

/* ---------------------------------------------------------------- admin refresh */

.admin-warning {
  padding-top: 12px;
  padding-bottom: 12px;
  background: #fff4e6;
  border-bottom-color: #ffd9a8;
  color: #8a4b09;
}

.admin-bar { box-shadow: 0 10px 26px rgba(15, 29, 61, 0.16); }

.admin-bar .wrap { min-height: 78px; }

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.admin-brand b,
.admin-brand small { display: block; }
.admin-brand b { text-transform: uppercase; letter-spacing: 0.5px; }
.admin-brand small { margin-top: 2px; color: #a9c2e8; font-size: 0.76rem; }
.admin-actions { display: flex; align-items: center; gap: 12px; }
.admin-actions a { margin-right: 0; }

.admin-layout { padding-top: 40px; }

.admin-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.admin-intro h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.admin-intro p { max-width: 650px; margin: 0; color: var(--muted); }

.admin-tip {
  flex: 0 0 300px;
  padding: 16px 18px;
  border: 1px solid rgba(43, 179, 217, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43, 179, 217, 0.13), rgba(255, 255, 255, 0.84));
}

.admin-tip span,
.admin-tip strong,
.admin-tip small { display: block; }
.admin-tip span { margin-bottom: 4px; color: var(--blue); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.7px; }
.admin-tip strong { color: var(--navy); }
.admin-tip small { margin-top: 4px; color: var(--muted); line-height: 1.4; }

.admin-grid { gap: 16px; margin-bottom: 30px; }

.stat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(223, 230, 241, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat::after {
  position: absolute;
  right: -26px;
  bottom: -36px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(43, 179, 217, 0.11);
  content: "";
}

.stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stat:nth-child(1) { border-top: 3px solid var(--blue); }
.stat:nth-child(2) { border-top: 3px solid var(--cyan); }
.stat:nth-child(3) { border-top: 3px solid var(--green); }
.stat:nth-child(4) { border-top: 3px solid var(--gold); }

.card {
  border: 1px solid rgba(223, 230, 241, 0.88);
  box-shadow: var(--shadow);
}

.card > h2 { font-size: 1.25rem; }

.tabs {
  position: sticky;
  top: 12px;
  z-index: 15;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  border: 1px solid rgba(223, 230, 241, 0.9);
}

.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  min-height: 44px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tabs button.active { box-shadow: 0 6px 14px rgba(15, 29, 61, 0.18); }
.tabs button:hover { transform: translateY(-1px); }

.pkg-editor,
.dropzone,
.outbox-item,
.gallery-item { border-color: #dfe6f1; }

.pkg-editor { background: linear-gradient(180deg, #fbfcfe, #f5f8fc); }

.save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 12;
  align-items: center;
  border: 1px solid rgba(29, 78, 216, 0.14);
  box-shadow: 0 18px 38px rgba(15, 29, 61, 0.18);
}

.gallery-actions button { min-height: 36px; }

table.sales td { border-bottom-color: #e8edf5; }

@keyframes cardFloat {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(0.4deg) translateY(-6px); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package:nth-child(2) { transform: none; }
  .package:nth-child(2):hover { transform: translateY(-5px); }
  .admin-intro { align-items: stretch; flex-direction: column; }
  .admin-tip { flex-basis: auto; }
}

@media (max-width: 640px) {
  .wrap { padding-right: 16px; padding-left: 16px; }

  .topbar .wrap {
    min-height: 70px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .logo { align-items: flex-start; gap: 10px; }
  .logo .mark { width: 42px; height: 42px; border-radius: 13px; }
  .logo b { font-size: 1.02rem; letter-spacing: -0.5px; }
  .logo span { font-size: 0.7rem; line-height: 1.3; }

  .searchbar { padding: 9px 16px; }
  .searchbar .btn { width: 100%; min-width: 0; }

  .hero { padding-top: 28px; }
  .hero-grid { gap: 26px; }
  .hero-photo { padding: 9px; transform: none; animation: none; }
  .hero-photo::after { bottom: -8px; }
  .hero h1 { margin-top: 14px; font-size: clamp(2rem, 11vw, 3rem); letter-spacing: -1.7px; }
  .hero .desc { font-size: 0.98rem; }
  .hero-highlights { gap: 7px; }
  .hero-highlights span { font-size: 0.72rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }

  section.block { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 28px; }
  .packages { grid-template-columns: 1fr; gap: 18px; }
  .package { min-height: 0; padding: 28px 20px 22px; }
  .package .qty { font-size: 3.2rem; }

  .lookup-card { padding: 20px 16px; }
  .lookup-form { flex-direction: column; }
  .lookup-form input,
  .lookup-form .btn { flex: 1 1 auto; width: 100%; }

  .site-footer .wrap { align-items: flex-start; flex-direction: column; }

  .admin-warning { padding-right: 14px; padding-left: 14px; font-size: 0.78rem; line-height: 1.4; }
  .admin-bar .wrap { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .admin-brand b { font-size: 0.88rem; }
  .admin-actions { width: 100%; justify-content: space-between; }
  .admin-actions .btn { min-height: 42px; }
  .admin-layout { padding-top: 28px; }
  .admin-intro { gap: 16px; margin-bottom: 22px; }
  .admin-intro h1 { font-size: 1.85rem; }
  .admin-tip { padding: 14px; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .stat { padding: 14px; }
  .stat span { font-size: 0.66rem; letter-spacing: 0.35px; }
  .stat b { font-size: 1.35rem; }

  .tabs {
    top: 0;
    margin-right: -16px;
    margin-left: -16px;
    padding: 5px;
    border-radius: 0 0 14px 14px;
  }

  .tabs button { flex: 0 0 auto; padding: 10px 13px; font-size: 0.82rem; }
  .card { padding: 18px 16px; margin-bottom: 14px; border-radius: 16px; }
  .save-bar { bottom: 10px; margin-right: -2px; margin-left: -2px; padding: 14px; }
  .save-bar .btn { width: 100%; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dropzone { padding: 20px 14px; }

  .table-scroll { overflow: visible; }
  table.sales { min-width: 0; }
  table.sales thead { display: none; }
  table.sales,
  table.sales tbody,
  table.sales tr,
  table.sales td { display: block; width: 100%; }
  table.sales tr {
    margin-bottom: 12px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfe;
  }
  table.sales td {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid #edf1f6;
    overflow-wrap: anywhere;
  }
  table.sales td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  table.sales td:last-child { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 0; }
  table.sales td:last-child::before { flex: 0 0 100%; }
  table.sales td:last-child .btn { flex: 1 1 auto; min-height: 40px; padding: 8px 10px; }
  .nums-cell { max-width: none; }

  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
