html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(16, 47, 37, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 47, 37, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 34%, #ffffff 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--surface-dark));
  z-index: 300;
}

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

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

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 16px;
  padding: 10px 14px;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  z-index: 400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(251, 252, 248, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(251, 252, 248, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color var(--transition), background-color var(--transition);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--primary-strong);
  background: var(--primary-soft);
  outline: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #241901;
  border-color: #c99524;
  box-shadow: 0 10px 18px rgba(167, 114, 9, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e3b64e;
  box-shadow: 0 16px 28px rgba(167, 114, 9, 0.23);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-strong);
  border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-nav {
  min-height: 40px;
  margin-left: 8px;
  padding: 10px 15px;
  font-size: 14px;
}

.hero-section {
  position: relative;
  overflow: clip;
  padding: 58px 0 64px;
  background:
    linear-gradient(135deg, rgba(18, 97, 69, 0.1) 0%, transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.8) 0%, rgba(255, 255, 255, 0) 72%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(18, 97, 69, 0.18);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 168, 63, 0.22);
}

.hero-copy h1,
.section-heading h2,
.cta-panel h2,
.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 850;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: 58px;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-lead,
.section-heading p,
.cta-panel p,
.problem-card p,
.module-card p,
.clubs-card p,
.timeline-step p,
.use-card p,
.benefit-card p,
.faq-content p,
.footer-meta p {
  color: var(--text-soft);
  font-size: 16px;
}

.hero-lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.hero-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 31px, rgba(255, 255, 255, 0.22) 32px),
    linear-gradient(180deg, transparent 31px, rgba(255, 255, 255, 0.18) 32px),
    var(--surface-dark);
  background-size: 32px 32px;
  transform: rotate(-1.2deg);
  box-shadow: var(--shadow-lg);
}

.mockup-shell {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: #173d2f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mockup-shell::before {
  content: "Operación conectada";
  display: block;
  grid-column: 1 / -1;
  padding: 8px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 251, 245, 0.8);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mockup-panel {
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xs);
}

.cash-panel,
.kitchen-panel,
.wallet-panel {
  background: var(--surface);
}

.panel-head,
.metric-row,
.wallet-grid,
.kitchen-ticket,
.footer-grid,
.cta-panel,
.why-grid {
  display: flex;
  gap: 12px;
}

.panel-head,
.kitchen-ticket {
  align-items: center;
  justify-content: space-between;
}

.panel-label {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-chip,
.module-tags span,
.wallet-tags span,
.why-list span,
.action-pills span,
.mini-chip-soft {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

.mini-chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.mini-chip-soft {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.mockup-panel h2 {
  margin: 10px 0 14px;
  font-size: 22px;
  line-height: 1.12;
}

.metric-row {
  flex-wrap: wrap;
}

.metric-row div {
  flex: 1 1 140px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.metric-row span,
.wallet-grid span,
.kitchen-ticket small,
.floating-card small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.metric-row strong,
.wallet-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.action-pills,
.module-tags,
.wallet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-pills {
  margin-top: 14px;
}

.action-pills span {
  background: #f0f4ef;
  color: var(--text-soft);
}

.kitchen-ticket {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.kitchen-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.kitchen-flow span {
  min-width: 0;
  padding: 8px 5px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-strong);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.wallet-grid {
  align-items: center;
}

.qr-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
}

.qr-box span {
  border-radius: 2px;
  background:
    linear-gradient(135deg, var(--primary) 38%, transparent 38% 62%, var(--accent) 62%);
}

.qr-box span:nth-child(1),
.qr-box span:nth-child(4) {
  background: var(--surface-dark);
}

.wallet-tags {
  margin-top: 14px;
}

.wallet-tags span,
.module-tags span,
.why-list span {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 230px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.floating-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.floating-top {
  top: -20px;
  left: 18px;
}

.floating-right {
  top: 30%;
  right: -18px;
}

.floating-bottom {
  bottom: -18px;
  left: 48px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
}

.status-success {
  background: var(--success);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.status-amber {
  background: var(--warning-soft);
  color: var(--accent-strong);
}

.status-green {
  background: var(--success-soft);
  color: #17633a;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(223, 231, 221, 0.7);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 16px 0 12px;
  font-size: 40px;
  line-height: 1.06;
  text-wrap: balance;
}

.section-heading p {
  max-width: 680px;
  line-height: 1.68;
}

.section-problem {
  background: #ffffff;
}

.section-solution,
.section-why,
.section-faq {
  background: var(--surface-subtle);
}

.problem-grid,
.module-grid,
.clubs-grid,
.use-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.problem-card,
.module-card,
.clubs-card,
.use-card,
.benefit-card,
.timeline-step,
.compare-card,
.faq-item,
.cta-panel,
.why-list,
.reinforcement {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.problem-card,
.module-card,
.clubs-card,
.use-card,
.benefit-card,
.timeline-step,
.compare-card,
.faq-item,
.why-list,
.reinforcement {
  padding: 20px;
}

.problem-card,
.module-card,
.clubs-card,
.use-card,
.benefit-card,
.timeline-step {
  min-height: 100%;
}

.problem-card strong,
.benefit-card h3,
.module-card h3,
.clubs-card h3,
.timeline-step h3,
.use-card h3,
.compare-card h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.24;
}

.problem-card p,
.module-card p,
.clubs-card p,
.timeline-step p,
.use-card p,
.benefit-card p {
  margin: 0;
  line-height: 1.62;
}

.solution-grid {
  display: grid;
  gap: 28px;
}

.benefit-stack {
  display: grid;
  gap: 12px;
}

.benefit-card {
  position: relative;
  padding-left: 72px;
}

.benefit-index {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.module-card {
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.module-tags {
  margin-top: 16px;
}

.section-clubs {
  position: relative;
  background:
    linear-gradient(90deg, rgba(16, 47, 37, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f5f8f2 100%);
  background-size: 40px 40px, auto;
}

.reinforcement {
  position: relative;
  margin-top: 16px;
  padding: 20px 20px 20px 54px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.6;
}

.reinforcement::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  bottom: 20px;
  width: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  counter-reset: steps;
}

.timeline-step {
  position: relative;
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--text-on-dark);
  font-weight: 900;
}

.why-grid {
  flex-direction: column;
  margin-top: 30px;
}

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

.why-list span {
  position: relative;
  display: block;
  padding: 11px 12px 11px 34px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.why-list span::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.use-card,
.problem-card,
.module-card,
.clubs-card,
.benefit-card,
.timeline-step,
.compare-card,
.faq-item {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.use-card:hover,
.problem-card:hover,
.module-card:hover,
.clubs-card:hover,
.benefit-card:hover,
.timeline-step:hover,
.compare-card:hover,
.faq-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.section-compare {
  background: #ffffff;
}

.compare-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.compare-before {
  background: linear-gradient(180deg, #fff8f5, #ffffff);
  border-color: #f1d5cb;
}

.compare-after {
  background: linear-gradient(180deg, #f1faf4, #ffffff);
  border-color: #cde8d7;
}

.compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
}

.compare-card li {
  position: relative;
  padding-left: 24px;
}

.compare-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
}

.compare-after li::before {
  background: var(--success);
}

.compare-card li + li {
  margin-top: 9px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.faq-item {
  overflow: clip;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-trigger::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition), background-color var(--transition);
}

.faq-item.is-open .faq-trigger::after {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
}

.faq-content p {
  margin: 14px 0 0;
  line-height: 1.65;
}

.faq-content a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-cta {
  padding: 82px 0;
  background: var(--surface-dark);
}

.cta-panel {
  display: grid;
  gap: 24px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(215, 168, 63, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(215, 168, 63, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #123b2d, #0c261e);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.cta-panel .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffe5a6;
}

.cta-panel h2 {
  max-width: 760px;
  margin: 16px 0 12px;
  font-size: 42px;
  line-height: 1.06;
  text-wrap: balance;
}

.cta-panel p,
.cta-note {
  color: rgba(248, 251, 245, 0.78);
  line-height: 1.66;
}

.cta-note {
  margin-bottom: 0;
  font-weight: 800;
}

.cta-actions {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-content: start;
}

.site-footer {
  padding: 34px 0;
  background: #091d17;
  color: var(--text-on-dark);
}

.footer-grid {
  flex-direction: column;
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.site-footer p {
  margin: 0;
  color: rgba(248, 251, 245, 0.72);
}

.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a,
.footer-meta a {
  color: #f4cb6b;
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
