:root {
  --bg: #f5f4ef;
  --ink: #181b1d;
  --muted: #5b6365;
  --green: #0b5b4d;
  --gold: #d8b76d;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(15, 30, 32, .16);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; height: auto; }

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 38px clamp(18px, 5vw, 78px) 28px;
  background: #0b1616;
  color: white;
}

.hero__copy { max-width: 620px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

h1, h2, p { margin-top: 0; }

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: .95;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  margin-bottom: 18px;
}

.hero p, .split p, .problem {
  color: rgba(255,255,255,.82);
  font-size: 20px;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__image {
  width: min(620px, 100%);
  justify-self: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.btn--primary {
  background: var(--gold);
  color: #17120b;
}

.buy-shake {
  --animate-duration: .7s;
}

.btn--ghost {
  color: white;
  border: 1px solid rgba(255,255,255,.38);
}

.btn--full { width: 100%; }

main { overflow: hidden; }

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 14px 34px rgba(7, 94, 84, .28);
  color: white;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  position: fixed;
  right: 18px;
  text-decoration: none;
  z-index: 18;
}

.whatsapp-float::before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  height: 22px;
  width: 22px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19.11 17.35c-.28-.14-1.65-.81-1.9-.9-.25-.1-.44-.14-.63.14-.18.27-.72.9-.88 1.08-.16.18-.32.2-.6.07-.28-.14-1.18-.44-2.25-1.39-.83-.74-1.39-1.66-1.55-1.94-.16-.28-.02-.43.12-.57.13-.12.28-.32.42-.48.14-.16.18-.28.28-.46.09-.18.05-.35-.02-.49-.07-.14-.63-1.51-.86-2.07-.23-.54-.46-.47-.63-.48h-.53c-.18 0-.49.07-.74.35-.25.28-.97.95-.97 2.32s1 2.69 1.14 2.87c.14.18 1.97 3 4.77 4.21.67.29 1.19.46 1.59.59.67.21 1.28.18 1.76.11.54-.08 1.65-.67 1.88-1.32.23-.65.23-1.21.16-1.32-.07-.12-.25-.19-.53-.33ZM16.02 4A11.94 11.94 0 0 0 6 22.43L4.7 28l5.7-1.5A11.96 11.96 0 1 0 16.02 4Zm0 21.9c-1.9 0-3.65-.56-5.12-1.53l-.37-.22-3.38.89.9-3.29-.24-.38A9.9 9.9 0 1 1 16.02 25.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19.11 17.35c-.28-.14-1.65-.81-1.9-.9-.25-.1-.44-.14-.63.14-.18.27-.72.9-.88 1.08-.16.18-.32.2-.6.07-.28-.14-1.18-.44-2.25-1.39-.83-.74-1.39-1.66-1.55-1.94-.16-.28-.02-.43.12-.57.13-.12.28-.32.42-.48.14-.16.18-.28.28-.46.09-.18.05-.35-.02-.49-.07-.14-.63-1.51-.86-2.07-.23-.54-.46-.47-.63-.48h-.53c-.18 0-.49.07-.74.35-.25.28-.97.95-.97 2.32s1 2.69 1.14 2.87c.14.18 1.97 3 4.77 4.21.67.29 1.19.46 1.59.59.67.21 1.28.18 1.76.11.54-.08 1.65-.67 1.88-1.32.23-.65.23-1.21.16-1.32-.07-.12-.25-.19-.53-.33ZM16.02 4A11.94 11.94 0 0 0 6 22.43L4.7 28l5.7-1.5A11.96 11.96 0 1 0 16.02 4Zm0 21.9c-1.9 0-3.65-.56-5.12-1.53l-.37-.22-3.38.89.9-3.29-.24-.38A9.9 9.9 0 1 1 16.02 25.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.problem {
  background: var(--green);
  padding: 30px clamp(18px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.problem p, .problem strong {
  margin: 0;
  color: white;
}

.image-section, .offer {
  padding: 42px clamp(16px, 5vw, 72px);
}

.image-section img, .offer img, .image-grid img, .split img {
  width: min(1000px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 34px;
  align-items: center;
  padding: 54px clamp(18px, 6vw, 92px);
  background: #102121;
  color: white;
}

.image-grid {
  display: grid;
  gap: 28px;
  padding: 42px clamp(16px, 5vw, 72px);
}

.offer {
  background: #101716;
}

.offer__bar {
  max-width: 1000px;
  margin: 18px auto 0;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.offer__bar span {
  display: block;
  color: var(--gold);
  font-weight: 700;
}

.offer__bar strong {
  display: block;
  font-size: 38px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  z-index: 20;
}

.modal.is-open { display: flex; }

.modal__panel {
  width: min(620px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--panel);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal__panel p { color: var(--muted); }

.modal__panel.is-success #formTitle,
.modal__panel.is-success > p {
  display: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef0ee;
  cursor: pointer;
  font-weight: 800;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #d7d9d6;
  border-radius: 8px;
  padding: 13px 12px;
  font: inherit;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.offer-picker {
  display: grid;
  gap: 10px;
}

.offer-picker legend {
  color: #2f6a59;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  line-height: .95;
  text-align: center;
  width: 100%;
}

.offer-picker > p {
  color: #2f6a59;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 8px;
  text-align: center;
}

.offer-option {
  display: block;
  cursor: pointer;
}

.offer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offer-card {
  align-items: center;
  border: 2px solid #d3d5d0;
  border-radius: 8px;
  color: #050505;
  display: grid;
  gap: 14px;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 14px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.offer-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 84px;
  object-fit: cover;
  width: 84px;
}

.offer-card__copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.offer-card__copy strong {
  display: block;
  font-size: clamp(18px, 4vw, 25px);
  font-weight: 900;
  line-height: 1.14;
}

.offer-card__copy b {
  align-self: start;
  background: #e01818;
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  justify-self: start;
  line-height: 1;
  padding: 8px 11px;
}

.offer-card__price {
  display: grid;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  gap: 4px;
  justify-items: end;
  white-space: nowrap;
}

.offer-card__price s {
  font-size: 18px;
  font-weight: 700;
}

.offer-option input:checked + .offer-card {
  background: #e8f7e8;
  border-color: #16802f;
  box-shadow: 0 0 0 2px rgba(22, 128, 47, .12);
}

.offer-option:focus-within .offer-card {
  outline: 3px solid rgba(216, 183, 109, .5);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.commitment-box {
  border: 2px dashed #e28f50;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  color: #152332;
  background: #fffdfa;
}

.commitment-box strong,
.commitment-box b {
  display: block;
  font-weight: 900;
}

.commitment-box strong {
  color: #c86424;
  font-size: 15px;
  margin-bottom: 6px;
}

.commitment-box p {
  margin: 8px 0;
  color: #243243;
  line-height: 1.35;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-weight: 700;
}

.form-status.ok { color: #0b6b3a; }
.form-status.error { color: #b3261e; }

.order-success {
  display: grid;
  gap: 14px;
  padding: 26px 4px 8px;
  text-align: center;
}

.order-success[hidden] {
  display: none;
}

.order-success span {
  color: #0b6b3a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.order-success h3 {
  color: #152332;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1;
  margin: 0;
}

.order-success p {
  color: #243243;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 auto 8px;
  max-width: 460px;
}

button:disabled {
  cursor: wait;
  opacity: .72;
}

.supervisora-page {
  background: #f7f8f6;
}

.supervisora-login {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 18px;
}

.login-card {
  background: white;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 420px;
  padding: 24px;
  width: 100%;
}

.login-card h1 {
  color: #152332;
  font-size: 42px;
  line-height: 1;
  margin: 0 0 8px;
}

.supervisora {
  padding: 28px clamp(14px, 4vw, 52px);
}

.supervisora__header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.supervisora__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.supervisora__header h1 {
  color: #152332;
  font-size: clamp(34px, 6vw, 58px);
  margin: 0;
}

.supervisora__summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.supervisora__summary div {
  background: white;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  padding: 16px;
}

.supervisora__summary span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.supervisora__summary strong {
  color: #152332;
  display: block;
  font-size: 34px;
  line-height: 1;
}

.panel-tools {
  background: white;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 14px;
}

.filters-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto auto;
}

.orders-table-wrap {
  background: white;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  overflow: auto;
}

.orders-table {
  border-collapse: collapse;
  min-width: 1180px;
  width: 100%;
}

.orders-table th,
.orders-table td {
  border-bottom: 1px solid #edf0ec;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.orders-table th {
  background: #f1f4f0;
  color: #394240;
  font-size: 13px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.orders-table a {
  color: #0b5b4d;
  font-weight: 800;
}

.orders-table__empty {
  color: var(--muted);
  font-weight: 800;
  text-align: center !important;
}

.actions-menu {
  position: relative;
}

.actions-menu summary {
  background: #eef0ee;
  border-radius: 8px;
  color: #152332;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  list-style: none;
  min-height: 38px;
  padding: 9px 12px;
}

.actions-menu summary::-webkit-details-marker {
  display: none;
}

.actions-menu__list {
  background: white;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 30, 32, .14);
  display: grid;
  gap: 7px;
  min-width: 160px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
}

.actions-menu__list .btn {
  justify-content: flex-start;
  width: 100%;
}

.referer-cell {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 180px;
  overflow-wrap: anywhere;
}

.source-badge {
  background: #e8f7e8;
  border-radius: 999px;
  color: #0b6b3a;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 7px;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 0 0;
}

.pagination span {
  color: #394240;
  font-weight: 900;
}

.btn--small {
  background: #eef0ee;
  color: #152332;
  min-height: 38px;
  padding: 9px 12px;
}

.btn--whatsapp {
  background: #25d366;
  color: white;
}

.btn--dropi {
  background: #dff0ff;
  color: #15527c;
}

.btn--danger {
  background: #ffe1dc;
  color: #a6291f;
}

.status-stack {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.status-pill--new {
  background: #fff1d8;
  color: #875100;
}

.status-pill--confirmed {
  background: #dff5e6;
  color: #0b6b3a;
}

.dropi-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.dropi-pill--pendiente {
  background: #eef0ee;
  color: #394240;
}

.dropi-pill--enviado {
  background: #dff0ff;
  color: #15527c;
}

.dropi-pill--error {
  background: #ffe1dc;
  color: #a6291f;
}

.drawer {
  background: rgba(0,0,0,.46);
  inset: 0;
  position: fixed;
  z-index: 30;
}

.drawer__panel {
  background: white;
  box-shadow: var(--shadow);
  height: 100%;
  margin-left: auto;
  max-width: 520px;
  overflow: auto;
  padding: 28px;
  position: relative;
  width: min(100%, 520px);
}

.drawer__panel h2 {
  color: #152332;
  font-size: 38px;
  margin-bottom: 18px;
}

.order-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-tabs {
  background: #f5f7f4;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
}

.settings-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #5d6872;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 8px;
}

.settings-tab.is-active {
  background: #152332;
  color: white;
}

.settings-section {
  display: grid;
  gap: 14px;
}

.settings-section__head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.settings-section__head h3 {
  color: #152332;
  font-size: 20px;
  margin-bottom: 4px;
}

.settings-section__head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.settings-group {
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-group legend {
  color: #152332;
  font-weight: 900;
  padding: 0 6px;
}

.settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-details div {
  border-bottom: 1px solid #edf0ec;
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.order-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-details dd {
  color: #152332;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.long-response summary {
  color: #0b5b4d;
  cursor: pointer;
  font-weight: 900;
}

.long-response pre {
  background: #f5f7f4;
  border: 1px solid #e2e5e0;
  border-radius: 8px;
  color: #152332;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  margin: 8px 0 0;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .hero, .split, .problem {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero p, .split p, .problem {
    font-size: 18px;
  }

  .form-row, .offer__bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .offer-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .offer-card img {
    height: 64px;
    width: 64px;
  }

  .offer-card__price {
    grid-column: 2;
    justify-items: start;
  }

  .supervisora__header {
    align-items: stretch;
    display: grid;
  }

  .supervisora__actions {
    justify-content: stretch;
  }

  .supervisora__actions .btn {
    width: 100%;
  }

  .pagination {
    align-items: stretch;
    display: grid;
    justify-content: stretch;
  }

  .filters-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .supervisora__summary {
    grid-template-columns: 1fr;
  }

  .drawer__panel {
    max-width: none;
    width: 100%;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    grid-template-columns: 1fr;
  }

  .settings-section__head {
    grid-template-columns: 1fr;
  }
}
