/* ============ Layout base ============ */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 245, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.nav__brand img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: right 0.25s ease;
}

.nav__links a:hover::after { right: 0; }

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(14, 124, 123, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 124, 123, 0.28);
}

.nav__tools,
.ui-tools { display: flex; align-items: center; gap: 8px; }
.mobile-menu-toggle { display: none; font-size: 17px; }
.mobile-menu,
.mobile-menu-backdrop { display: none; }

.ui-tool {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font: 600 12px var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ui-tool:hover { transform: translateY(-2px); border-color: var(--teal); }
[data-theme='dark'] .nav { background: rgba(11, 21, 24, 0.86); }

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
}

/* ============ Hero ============ */

.hero {
  padding: 72px 0 40px;
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hero::before {
  width: min(42vw, 560px);
  aspect-ratio: 1;
  top: -25%;
  right: -10%;
  background: radial-gradient(circle, rgba(14, 124, 123, 0.13), transparent 68%);
}

.hero::after {
  width: 360px;
  aspect-ratio: 1;
  left: -180px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(108, 74, 182, 0.08), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--check-green);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--teal);
}

.hero p.lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--teal);
  color: #fff;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(14, 124, 123, 0.25);
}

.btn--primary:hover {
  background: var(--teal-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.hero__meta {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.hero__meta strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

/* ============ Signature: escáner de barras ============ */

.scanner {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner::before {
  content: '';
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 124, 123, 0.16), transparent 68%);
  animation: scanner-pulse 3.2s ease-in-out infinite;
}

.scanner__logo-card {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 10%;
  width: 43%;
  aspect-ratio: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px rgba(18, 35, 43, 0.17), 0 0 0 8px rgba(255, 255, 255, 0.18);
  transform: rotate(-7deg);
  animation: logo-card-float 5s ease-in-out infinite;
}

.scanner__logo-card img {
  position: relative;
  z-index: 1;
  width: 68%;
  height: auto;
  filter: drop-shadow(0 7px 10px rgba(14, 124, 123, 0.22));
}

.scanner__store-icon {
  width: 44%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0;
  animation: bars-in 0.55s ease forwards 0.18s;
}

.scanner__store-icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(18, 35, 43, 0.12));
}

.scanner__logo-label {
  position: relative;
  z-index: 1;
  color: #12232b;
  font-family: var(--font-display);
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.scanner__logo-glow {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(59, 199, 189, 0.24);
  filter: blur(18px);
}

@keyframes logo-card-float {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-9px) rotate(-4deg); }
}

.scanner__frame {
  position: relative;
  width: 78%;
  height: 78%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scanner__corner {
  position: absolute;
  width: 30%;
  height: 30%;
  border: 5px solid var(--teal);
}

.scanner__corner.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 10px 0 0 0;
}
.scanner__corner.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 10px 0 0;
}
.scanner__corner.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 10px;
}
.scanner__corner.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 10px 0;
}

.scanner__bars {
  display: flex;
  align-items: center;
  gap: 6%;
  width: 56%;
  height: 46%;
  opacity: 0;
  animation: bars-in 0.5s ease forwards 0.15s;
}

.scanner__bars span {
  display: block;
  flex: 1;
  background: var(--ink);
  border-radius: 3px;
}

.scanner__bars span:nth-child(1) { height: 70%; }
.scanner__bars span:nth-child(2) { height: 100%; }
.scanner__bars span:nth-child(3) { height: 55%; }
.scanner__bars span:nth-child(4) { height: 88%; }
.scanner__bars span:nth-child(5) { height: 40%; }
.scanner__bars span:nth-child(6) { height: 95%; }
.scanner__bars span:nth-child(7) { height: 65%; }

.scanner__line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 3px;
  top: 6%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 12px 2px rgba(14, 124, 123, 0.5);
  animation: scan-sweep 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s 1;
  opacity: 0;
}

.scanner__check {
  position: absolute;
  bottom: 4%;
  right: 4%;
  width: 30%;
  aspect-ratio: 1;
  background: var(--check-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  animation: check-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards;
  box-shadow: 0 8px 24px rgba(31, 169, 127, 0.35);
}

.scanner__check svg {
  width: 52%;
  height: 52%;
  stroke: white;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: check-draw 0.35s ease 2.3s forwards;
}

@keyframes bars-in {
  from { opacity: 0; transform: scaleY(0.4); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes scan-sweep {
  0% { top: 6%; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

@keyframes check-in {
  to { transform: scale(1); }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes scanner-pulse {
  50% { transform: scale(1.1); opacity: 0.65; }
}

/* ============ Divisor de barras (repetición de marca) ============ */

.stripe-divider {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  overflow: hidden;
  opacity: 0.5;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
}

.stripe-divider span {
  flex: 1;
  min-width: 2px;
  background: var(--border);
}

.stripe-divider span:nth-child(3n) { height: 100%; background: var(--teal); opacity: 0.5;}
.stripe-divider span:nth-child(5n) { height: 70%; }
.stripe-divider span:nth-child(7n) { height: 45%; }
.stripe-divider span:nth-child(2n) { height: 85%; }

/* ============ Secciones genéricas ============ */

section {
  padding: 88px 0;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.section__lead {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 56ch;
  line-height: 1.6;
  margin: 0 0 48px;
}

/* ============ Cómo funciona ============ */

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

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover,
.feature:hover {
  transform: translateY(-7px);
  border-color: rgba(14, 124, 123, 0.3);
  box-shadow: 0 18px 42px rgba(18, 35, 43, 0.1);
}

.step__index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ============ Features ============ */

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

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .nav__brand img,
  .footer__brand img { transition: transform .28s ease, filter .28s ease; }
  .nav__brand:hover img,
  .footer__brand:hover img { transform: rotate(-5deg) scale(1.08); filter: drop-shadow(0 7px 9px rgba(14,124,123,.24)); }

  .scanner { transition: transform .45s cubic-bezier(.22,1,.36,1); }
  .scanner:hover { transform: translateY(-7px) scale(1.02); }
  .scanner__logo-card { transition: box-shadow .35s ease; }
  .scanner:hover .scanner__logo-card { box-shadow: 0 24px 48px rgba(18,35,43,.22), 0 0 0 10px rgba(255,255,255,.22); }
  .scanner:hover .scanner__store-icon { color: var(--teal); }

  .app-preview,
  .photo-frame { transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease; }
  .app-preview:hover { transform: translateY(-6px); box-shadow: 0 38px 88px rgba(18,35,43,.26); }
  .photo-frame:hover { transform: translateY(-8px) rotate(1deg); box-shadow: 0 34px 78px rgba(18,35,43,.25); }
  .photo-frame img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
  .photo-frame:hover img { transform: scale(1.025); }

  .mock-card { transition: transform .25s ease, border-color .25s ease; }
  .mock-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); }
  .mock-tablet__cart-total { transition: transform .25s ease, box-shadow .25s ease; }
  .mock-tablet__cart-total:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(14,124,123,.25); }

  .cta-final { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
  .cta-final:hover { transform: translateY(-5px); box-shadow: 0 30px 72px rgba(10,92,91,.3); }
  .footer__legal a { position: relative; }
  .footer__legal a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--teal); transition: right .25s ease; }
  .footer__legal a:hover::after { right: 0; }
}

@media (max-width: 620px) {
  .nav__cta { display: none; }
  .nav__tools { margin-left: auto; }
  .mobile-menu-toggle { display: inline-flex; }
  .mobile-menu-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(4, 14, 16, .54);
    backdrop-filter: blur(4px);
    transition: opacity .3s ease, visibility .3s ease;
  }
  .mobile-menu {
    position: fixed;
    z-index: 91;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    border-left: 1px solid var(--border);
    background: var(--surface);
    box-shadow: -24px 0 70px rgba(0,0,0,.2);
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.22,1,.36,1);
  }
  .menu-open { overflow: hidden; }
  .menu-open .mobile-menu { transform: none; }
  .menu-open .mobile-menu-backdrop { visibility: visible; opacity: 1; }
  .mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .mobile-menu__header .footer__brand img { height: 34px; }
  .mobile-menu__nav { display: flex; flex-direction: column; padding: 18px 0; }
  .mobile-menu__nav a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent); color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 650; text-decoration: none; }
  .mobile-menu__nav a span { color: var(--teal); font: 11px var(--font-mono); }
  .mobile-menu__legal { display: flex; gap: 16px; margin-top: auto; padding: 18px 4px; }
  .mobile-menu__legal a { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
  .mobile-menu__cta { width: 100%; justify-content: center; margin-top: 4px; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover .feature__icon { transform: rotate(-5deg) scale(1.1); }

.feature h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.feature p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ============ Vista de la app (mockup CSS) ============ */

.app-preview {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 56px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 80px rgba(18, 35, 43, 0.2);
}

.app-preview::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  top: -160px;
  border-radius: 50%;
  background: rgba(14, 124, 123, 0.22);
  filter: blur(20px);
}

.app-preview__label {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-bottom: 24px;
}

.mock-tablet {
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 2.2fr 1fr;
}

@media (max-width: 700px) {
  .mock-tablet {
    grid-template-columns: 1fr;
  }
  .app-preview {
    padding: 24px;
  }
}

.mock-tablet__catalog {
  padding: 20px;
}

.mock-tablet__search {
  height: 38px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.mock-tablet__chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-tablet__chips span {
  height: 22px;
  width: 56px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.mock-tablet__chips span:first-child {
  background: var(--teal);
  border-color: var(--teal);
  width: 48px;
}

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

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.is-visible .mock-card { animation: mock-card-in 0.5s ease both; }
.is-visible .mock-card:nth-child(2) { animation-delay: 60ms; }
.is-visible .mock-card:nth-child(3) { animation-delay: 120ms; }
.is-visible .mock-card:nth-child(4) { animation-delay: 180ms; }
.is-visible .mock-card:nth-child(5) { animation-delay: 240ms; }
.is-visible .mock-card:nth-child(6) { animation-delay: 300ms; }
.is-visible .mock-card:nth-child(n+7) { animation-delay: 360ms; }

@keyframes mock-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
}

.mock-card__icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--teal-soft);
}

.mock-card__line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  width: 70%;
}
.mock-card__line.short {
  width: 40%;
  background: var(--teal-soft);
}

.mock-tablet__cart {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-tablet__cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.mock-tablet__cart-item .mock-card__line {
  width: 60px;
}

.mock-tablet__cart-total {
  margin-top: auto;
  background: var(--teal);
  border-radius: var(--r-md);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}

/* ============ CTA final ============ */

.cta-final {
  background: linear-gradient(135deg, #0a5c5b, #0e7c7b);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 92, 91, 0.24);
}

[data-theme='dark'] .cta-final {
  background: linear-gradient(145deg, #10272a, #153a3b);
  border: 1px solid rgba(59, 199, 189, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme='dark'] .cta-final .btn--primary {
  color: #08211f;
  background: var(--teal);
}

[data-theme='dark'] .cta-final .btn--ghost { background: rgba(255, 255, 255, 0.04); }

/* Espacio preparado para una futura fotografía real. */
.photo-showcase { padding-top: 32px; }

.photo-showcase__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 360px);
  gap: 56px;
  align-items: center;
}

.photo-showcase__copy .section__lead { margin-bottom: 0; }

.photo-showcase__download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}

.photo-showcase__version {
  color: var(--ink-soft);
  font: 12px var(--font-mono);
}

.photo-showcase__version strong { color: var(--ink); }

.photo-frame {
  width: min(100%, 320px);
  aspect-ratio: 596 / 842;
  justify-self: end;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(18, 35, 43, 0.18);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

[data-theme='dark'] .photo-frame {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}
.mobile-key-cta { display: none; }

.btn--disabled { cursor: not-allowed; opacity: 0.56; pointer-events: none; }

.cta-final::before,
.cta-final::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.cta-final::before { width: 280px; height: 280px; top: -180px; right: -40px; }
.cta-final::after { width: 180px; height: 180px; bottom: -120px; left: 8%; }

.cta-final > * { position: relative; z-index: 1; }

@media (max-width: 620px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
  body { touch-action: pan-y; }
  .wrap { padding-inline: 18px; }
  .nav__inner { padding: 11px 18px; }
  .nav__brand { font-size: 16px; }
  .nav__brand img { height: 27px; }
  .nav__cta { padding: 9px 12px; font-size: 12.5px; }
  .hero { padding: 42px 0 20px; }
  .hero__grid { gap: 24px; }
  .hero__grid > div:first-child { grid-row: 2; text-align: center; }
  .hero h1 { max-width: 12ch; margin-inline: auto; font-size: clamp(31px, 10vw, 42px); line-height: 1.04; }
  .hero p.lead { max-width: 35ch; margin-inline: auto; font-size: 15.5px; line-height: 1.55; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero__meta { justify-content: center; gap: 9px 16px; margin-top: 20px; font-size: 12.5px; }
  .scanner { grid-row: 1; display: flex; width: min(72vw, 250px); max-width: 250px; margin: 0 auto; }
  .scanner__logo-card { width: 44%; border-radius: 14px; box-shadow: 0 13px 28px rgba(18, 35, 43, 0.16), 0 0 0 6px rgba(255,255,255,.16); }
  .scanner__corner { border-width: 4px; }
  .scanner__check { width: 27%; }
  .stripe-divider { width: 100%; margin-left: 0; padding-inline: 18px; }
  .stripe-divider span { max-width: 4px; }
  section { padding: 64px 0; }
  .section__lead { margin-bottom: 32px; }
  .steps { gap: 16px; }
  .features { gap: 14px; }
  .app-preview { padding: 18px; border-radius: 18px; }
  .mock-tablet__catalog { padding: 14px; }
  .mock-tablet__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mock-card { height: 82px; padding: 10px; }
  .mock-tablet__cart { border-left: 0; border-top: 1px solid var(--border); padding: 14px; min-height: 190px; }
  .cta-final { padding: 44px 20px; }
  .photo-showcase__download { align-items: center; }
  .photo-showcase__download .btn { width: auto; max-width: 100%; min-width: 218px; white-space: nowrap; justify-content: center; padding-inline: 17px; font-size: 14px; }
  .photo-showcase__version { text-align: center; font-size: 11px; }
  .footer__inner { flex-direction: column; text-align: center; }
  body { padding-bottom: 78px; }
  .photo-showcase {
    display: block;
    padding: 54px 0;
  }
  .photo-showcase__grid {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }
  .photo-showcase__copy .section__title,
  .photo-showcase__copy .section__lead {
    margin-inline: auto;
  }
  .photo-frame {
    width: min(72vw, 260px);
    justify-self: center;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(18, 35, 43, 0.17);
  }
  .mobile-key-cta {
    position: fixed;
    z-index: 80;
    left: 50%;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: calc(100% - 48px);
    max-width: 300px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 56px;
    padding: 10px 11px 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0a6764, #12958f);
    box-shadow: 0 15px 40px rgba(10, 92, 91, 0.42), inset 0 1px rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transform: translateX(-50%);
    margin-inline: 0;
  }
  .mobile-key-cta::after {
    content: '→';
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--teal-deep);
    background: #fff;
    font-size: 18px;
    transition: transform 0.2s ease;
  }
  .mobile-key-cta:active::after { transform: translateX(2px); }
}

@media (max-width: 350px) {
  .hero h1 { font-size: 30px; }
  .hero__actions .btn { padding-inline: 16px; font-size: 14px; }
  .photo-showcase__download .btn { min-width: 0; width: 100%; white-space: normal; }
  .mobile-key-cta { padding-left: 15px; font-size: 13px; }
  .mobile-key-cta::after { width: 34px; height: 34px; }
}

@media (min-width: 621px) and (max-width: 900px) {
  .photo-showcase__grid { grid-template-columns: 1fr; gap: 30px; }
  .photo-frame { justify-self: center; }
}

/* Footer, páginas legales y documentación */
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.footer__legal a, .footer__links a { color: var(--ink-soft); font-size: 13px; text-decoration: none; transition: color .2s ease; }
.footer__legal a:hover, .footer__links a:hover { color: var(--teal); }
.footer__links { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.legal-shell { min-height: 100vh; }
.legal-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.legal-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.legal-back { color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.legal-back:hover { color: var(--teal); }
.legal-main { max-width: 780px; margin: 0 auto; padding: 72px 24px 96px; }
.legal-main h1 { margin: 0 0 12px; font: 800 clamp(30px, 5vw, 46px)/1.08 var(--font-display); letter-spacing: -.03em; }
.legal-main .legal-intro { margin: 0 0 44px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.legal-main h2 { margin: 36px 0 10px; font: 700 20px/1.3 var(--font-display); }
.legal-main h3 { margin: 24px 0 8px; font: 700 16px/1.3 var(--font-display); }
.legal-main p, .legal-main li { color: var(--ink-soft); line-height: 1.72; }
.legal-main li + li { margin-top: 8px; }
.legal-main code { font-family: var(--font-mono); color: var(--teal-deep); }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--teal); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--teal-soft); }

@media (max-width: 620px) {
  .footer__legal { justify-content: center; gap: 14px 20px; }
  .footer__links { align-items: center; }
  .legal-main { padding: 48px 18px 72px; }
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto 32px;
  font-size: 16px;
}

.cta-final .btn--primary {
  background: #fff;
  color: var(--teal-deep);
}

.cta-final .btn--primary:hover {
  background: #eef7f7;
}

.cta-final .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-final .btn--ghost:hover {
  border-color: #fff;
}

/* ============ Footer ============ */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.footer__brand img {
  height: 22px;
}

.footer__note {
  color: var(--ink-soft);
  font-size: 13px;
}

.footer__admin-link {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.footer__admin-link:hover {
  color: var(--ink);
}
