:root {
  --ink: #061a16;
  --forest: #08231d;
  --mint: #27d9a0;
  --mint-bright: #3ef0b5;
  --cream: #e8fff5;
  --fog: rgba(232, 255, 245, 0.75);
  --line: rgba(232, 255, 245, 0.14);
  --warn-soft: rgba(255, 214, 102, 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--forest);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(39, 217, 160, 0.22), transparent 55%),
    linear-gradient(180deg, #061a16 0%, #08231d 50%, #0a2f26 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(8, 35, 29, 0.75);
  border-bottom: 1px solid var(--line);
}

.brand-mark img,
.footer-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(232, 255, 245, 0.85);
}

.top-link:hover {
  color: var(--mint);
}

.btn-nav {
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(39, 217, 160, 0.14);
  color: var(--mint);
  border: 1px solid rgba(39, 217, 160, 0.35);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.page-center {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-center {
  width: 100%;
  text-align: center;
  padding: 2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-word {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.hero-center h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}

.hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  color: var(--fog);
  text-align: center;
  max-width: none;
}

.qr-center-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.start-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--mint-bright);
  animation: bounce-arrow 1.35s ease-in-out infinite;
}

.start-arrow span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.start-arrow svg {
  display: block;
  margin: 0 auto;
}

.qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.qr-frame {
  position: relative;
  width: 230px;
  aspect-ratio: 1;
  padding: 0.9rem;
  border-radius: 28px;
  background: #f4fffa;
  box-shadow: 0 0 0 1px rgba(39, 217, 160, 0.35), 0 20px 50px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.qr-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

#qrcode {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

#qrcode img,
#qrcode canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.qr-logo-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 42%;
  min-width: 72px;
  padding: 0.42rem 0.5rem;
  border-radius: 12px;
  background: #08231d;
  box-shadow: 0 0 0 5px #f4fffa;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.qr-logo-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fog);
  text-align: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}

.card-art {
  width: min(46vw, 170px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
  transform: rotate(-8deg);
  animation: drift 7s ease-in-out infinite;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint-bright), var(--mint));
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(39, 217, 160, 0.28);
}

.btn-ghost,
.btn-secondary {
  background: rgba(232, 255, 245, 0.06);
  color: var(--cream);
  border: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.6rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--fog);
  font-size: 1.02rem;
}

.process {
  padding: 2rem 0 1.5rem;
}

.process-flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem;
}

.process-flow > li:not(.flow-arrow) {
  flex: 1 1 0;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.45rem;
  padding: 1.35rem 1.15rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(232, 255, 245, 0.05);
  position: relative;
}

.process-flow strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  padding-top: 0.35rem;
}

.process-flow p {
  margin: 0;
  color: var(--fog);
  font-size: 0.92rem;
  line-height: 1.5;
}

.flow-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  padding: 0 0.1rem;
  align-self: center;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--mint);
}

.products {
  padding: 1.5rem 0 2rem;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
}

.product-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.35rem 0;
}

.product-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint-bright), var(--mint));
}

.product-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.product-list p {
  margin: 0;
  color: var(--fog);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pay-bridge {
  padding: 0.5rem 0 2.4rem;
}

.pay-bridge .section-head {
  margin-bottom: 1.1rem;
}

.access {
  padding: 0.5rem 0 2.5rem;
}

.access-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6, 26, 22, 0.45);
}

.access-copy {
  text-align: left;
}

.access-copy h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.access-copy p {
  margin: 0 0 0.9rem;
  color: var(--fog);
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-form label {
  display: grid;
  gap: 0.35rem;
}

.login-form label span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fog);
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 26, 22, 0.7);
  color: var(--cream);
  padding: 0.7rem 0.9rem;
  font: inherit;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(39, 217, 160, 0.65);
}

.login-submit {
  width: 100%;
}

.login-error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffd0d0;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-brand p {
  margin: 0;
  color: var(--fog);
}

.legal {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(232, 255, 245, 0.6);
  max-width: 60ch;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--warn-soft);
  border: 1px solid rgba(255, 214, 102, 0.18);
}

.footer-meta {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(232, 255, 245, 0.5);
}

@keyframes bounce-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-8px);
  }
}

@media (max-width: 800px) {
  .top-nav .top-link:not([href="#acceso"]) {
    display: none;
  }

  .process-flow {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
  }

  .process-flow > li:not(.flow-arrow) {
    width: min(100%, 360px);
    max-width: none;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.15rem 0;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .access-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .access-copy {
    text-align: center;
    display: grid;
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
