:root {
  --ink: #171411;
  --ink-2: #2a211a;
  --paper: #fff8ed;
  --paper-2: #f4ead9;
  --orange: #d7752a;
  --orange-2: #f0a246;
  --green: #3f6f51;
  --cream: #fffdf7;
  --muted: #75695d;
  --line: rgba(23, 20, 17, 0.12);
  --shadow: 0 22px 60px rgba(52, 34, 18, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.modal-open {
  overflow: hidden;
}

.home-choice-page {
  background:
    linear-gradient(135deg, rgba(23, 20, 17, 0.94), rgba(23, 20, 17, 0.82)),
    var(--orange);
}

a,
button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.home-choice {
  min-height: 100vh;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(14px, 3vw, 26px);
  padding: clamp(18px, 4vw, 42px) clamp(24px, 6vw, 64px) clamp(24px, 6vw, 64px);
  color: #fff;
  text-align: center;
}

.home-choice__logo {
  width: min(420px, 82vw);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.34));
  margin-top: 8px;
}

.home-choice__content {
  display: grid;
  gap: 6px;
}

.home-choice__content .eyebrow {
  color: var(--orange-2);
}

.home-choice__content p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.home-choice__actions {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.choice-card--club {
  background: var(--orange);
  color: #fff;
}

.choice-card span,
.choice-card small {
  font-weight: 900;
  text-transform: uppercase;
}

.choice-card span {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.choice-card--club span {
  color: #fff8ed;
}

.choice-card strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(2.3rem, 7vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.choice-card small {
  color: rgba(255, 255, 255, 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
}

.brand img {
  width: 240px;
  height: 88px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a,
.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.nav-tab.is-active,
.site-nav a:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.nav-action {
  min-width: 178px;
}

.button--primary,
.nav-action {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.compact-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: stretch;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(18px, 4vw, 52px);
}

.hero__media {
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

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

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.hero__feature {
  display: grid;
  align-content: center;
  gap: 14px;
}

.hero-club-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-club-card span {
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-club-card strong {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-family: "Barlow Condensed", Inter, sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-club-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 14vw, 9.5rem);
}

h2 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero__content p:not(.eyebrow),
.club-copy p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.hero__content p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.hero__actions,
.club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.section {
  padding: clamp(42px, 8vw, 92px) clamp(16px, 4vw, 52px);
}

.section__head {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section__head--left {
  margin-left: 0;
  text-align: left;
}

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

.menu-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.menu-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-grid div {
  padding: 18px;
}

.menu-grid span,
.reward span,
.rule span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-grid p,
.reward p,
.rule p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.sheet-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 16px;
  align-items: start;
}

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

.menu-price-block,
.sheet-menu__side article,
.menu-fallback {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.menu-price-block {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.menu-price-block > strong {
  color: var(--orange);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.menu-price-block ul,
.sheet-menu__side ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-price-block li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-transform: uppercase;
}

.menu-price-block li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.menu-price-block li span {
  align-self: flex-start;
  padding: 3px 6px;
  border-radius: var(--radius);
  background: rgba(63, 111, 81, 0.12);
  color: var(--green);
  font-size: 0.72rem;
}

.sheet-menu__side {
  display: grid;
  gap: 14px;
}

.sheet-menu__side article,
.menu-fallback {
  padding: 18px;
}

.sheet-menu__side span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-menu__side h3 {
  line-height: 1.2;
  text-transform: uppercase;
}

.sheet-menu__side li {
  text-transform: uppercase;
  font-weight: 800;
}

.menu-page {
  padding-bottom: 120px;
}

.floating-club {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 18px 48px rgba(45, 25, 10, 0.32);
  animation: floatClub 2.6s ease-in-out infinite;
}

.floating-club span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.86;
}

.floating-club strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 1.8rem;
  line-height: 0.9;
  text-transform: uppercase;
}

@keyframes floatClub {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.club-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.club-band--full {
  min-height: calc(100vh - 96px);
}

.club-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.club-copy .eyebrow {
  color: var(--orange-2);
}

.member-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #d7752a, #3f2413 68%, #18130f);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.member-card--mesa {
  background: linear-gradient(135deg, #eaa152, #d7752a 55%, #4d2a16);
}

.member-card--decasa {
  background: linear-gradient(135deg, #d7752a, #7f3e1c 52%, #21150f);
}

.member-card--favorito {
  background: linear-gradient(135deg, #171411, #d7752a 64%, #fff8ed);
  color: #fff;
}

.member-card--leyenda {
  background: linear-gradient(135deg, #090806, #2a211a 50%, #c8833c);
}

.member-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.member-card__top img {
  width: 118px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.member-card__top span,
.member-card small {
  font-weight: 800;
}

.member-card strong {
  font-size: clamp(2.3rem, 8vw, 4.7rem);
  font-family: "Barlow Condensed", Inter, sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
}

.member-card p {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.member-card__progress,
.progress-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.member-card__progress span,
.progress-line span {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: inherit;
  background: #fff;
}

.hours-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 24px;
}

.hours-list {
  display: grid;
  gap: 10px;
}

.hours-list div,
.metric-grid article,
.work-card,
.auth-card,
.reward,
.rule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.hours-list span,
.metric-grid span {
  color: var(--muted);
  font-weight: 700;
}

.modal[hidden],
[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 17, 0.62);
}

.modal__card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

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

.form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.form input,
.form select {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.phone-field span {
  padding: 0 13px;
  color: var(--orange);
  font-weight: 900;
}

.phone-field input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-message {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--muted);
}

.form-message[data-state="success"] {
  background: rgba(63, 111, 81, 0.14);
  color: var(--green);
}

.form-message[data-state="error"] {
  background: rgba(215, 117, 42, 0.16);
  color: #8f3710;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 20, 17, 0.68);
  backdrop-filter: blur(5px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(320px, 100%);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 16px 72px;
}

.auth-card,
.work-card {
  padding: clamp(18px, 4vw, 28px);
}

.auth-card {
  width: min(100%, 520px);
  margin: 36px auto;
}

.portal-view {
  display: grid;
  gap: 18px;
}

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

.metric-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.metric-grid strong {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-family: "Barlow Condensed", Inter, sans-serif;
}

.qr-card {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.reward-list,
.rule-list {
  display: grid;
  gap: 12px;
}

.reward,
.rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.reward--ready {
  border-color: rgba(63, 111, 81, 0.42);
  background: #f4fff5;
}

.reward__meta {
  display: grid;
  gap: 8px;
}

.progress-line {
  background: rgba(23, 20, 17, 0.12);
}

.progress-line span {
  background: var(--orange);
}

.camera-panel {
  display: grid;
  gap: 12px;
}

.receipt-camera {
  width: 100%;
  max-height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #111;
  object-fit: cover;
}

.camera-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.camera-actions .button {
  flex: 1 1 150px;
}

.receipt-preview {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.receipt-preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}

.result-head,
.inline-reward,
.receipt-sale,
.receipt-items__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-reward,
.receipt-sale,
.receipt-items {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.inline-reward {
  flex-wrap: wrap;
}

.receipt-sale {
  align-items: flex-start;
  flex-direction: column;
}

.receipt-sale strong {
  font-size: 1.8rem;
}

.receipt-items {
  display: grid;
  gap: 10px;
}

.receipt-items__row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.receipt-items__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.portal-logout {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .brand img {
    width: 220px;
    height: 80px;
  }

  .hero,
  .club-band,
  .hours-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__media {
    min-height: 250px;
  }

  .menu-grid,
  .sheet-menu,
  .sheet-menu__blocks,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    min-height: 360px;
  }

  .reward,
  .rule {
    grid-template-columns: 1fr;
  }

  .home-choice__actions {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 170px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 12px;
  }

  .site-nav a,
  .nav-tab {
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .nav-action,
  .button {
    width: 100%;
  }

  .home-choice__logo {
    width: min(360px, 90vw);
  }

  .floating-club {
    right: 12px;
    bottom: 12px;
  }

  .hero,
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hours-list div,
  .result-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
