/* Capa editorial compartida — tokens de marca siguen en el CSS de cada producto */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  letter-spacing: -0.014em;
  font-feature-settings: "kern" 1, "liga" 1;
}
h1, h2, h3 {
  letter-spacing: -0.038em;
  text-wrap: balance;
}
h1 { font-weight: 700; font-family: inherit; }

a, button {
  -webkit-tap-highlight-color: color-mix(in srgb, currentColor 12%, transparent);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

nav.fixed {
  padding-top: env(safe-area-inset-top, 0px);
}
nav.nav-compact {
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
nav.nav-compact .h-16 { height: 3.35rem; }
#nav-toggle {
  min-width: 44px;
  min-height: 44px;
}

.btn-premium,
a.bg-amber {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background-color 0.2s ease;
}
a.bg-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px color-mix(in srgb, currentColor 18%, transparent);
}

.card-lift {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform;
}
.card-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.license-line {
  margin-top: 1.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  max-width: 28rem;
  line-height: 1.65;
}

.step-index {
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-devices {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 608px;
  margin-inline: auto;
}
.hero-devices .phone-frame {
  width: 280px;
  height: 608px;
  padding: 12px;
  border-radius: 2.75rem;
  overflow: hidden;
  display: flex;
  flex: none;
  flex-shrink: 0;
  align-self: flex-start;
}
.hero-devices .phone-screen {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 2.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  z-index: 4;
}
.hero-devices .phone-tabs,
.hero-devices .mock-ops {
  flex-shrink: 0;
}
.desk-stack {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}
.desk-frame {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: inherit;
  border: 1px solid currentColor;
  border-color: inherit;
}
.desk-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}
.desk-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.45;
  background: currentColor;
}
@media (min-width: 1024px) {
  .hero-devices {
    width: 540px;
    max-width: 540px;
    min-height: 720px;
  }
  .hero-devices .phone-frame {
    width: 310px;
    height: 672px;
  }
  .desk-stack {
    position: absolute;
    right: 0;
    top: 84px;
    width: 228px;
    margin: 0;
  }
}

footer .store-soon { margin-top: 0.9rem; }

.store-soon {
  margin-top: 1.15rem;
}
.store-soon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#inicio .store-soon-row { justify-content: center; }
@media (min-width: 1024px) {
  #inicio .store-soon-row { justify-content: flex-start; }
}
#demo .store-soon-row,
footer .store-soon-row { justify-content: center; }
footer .store-soon-row { justify-content: flex-start; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  opacity: 0.8;
  cursor: default;
  user-select: none;
  line-height: 1.05;
}
.store-badge i { font-size: 1.15rem; width: 1.1rem; text-align: center; }
.store-badge-copy {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.store-badge-copy span {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}
.store-soon-note {
  margin: 0.4rem 0 0;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.42;
}
#demo .store-soon { margin-top: 0.9rem; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.phone-screen {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-bar {
  backdrop-filter: blur(16px);
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
body:has(.cookie-bar) {
  padding-bottom: 6.5rem;
}

@media (hover: none) {
  .card-lift:hover {
    transform: none;
    box-shadow: none;
  }
  a.bg-amber:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Teléfono: aire, tipografía más respirable, mockups que no aplastan el héroe */
@media (max-width: 1023px) {
  .grain { opacity: 0.022; }
  .float-slow { animation: none; }

  .max-w-7xl {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
  #inicio {
    padding-top: 5.75rem !important;
    padding-bottom: 3.75rem !important;
  }
  #inicio .grid {
    gap: 2.5rem !important;
  }
  #inicio h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.03em;
    margin-bottom: 1rem !important;
  }
  #inicio p.text-lg,
  #inicio .text-lg {
    font-size: 1.0125rem !important;
    line-height: 1.68 !important;
    margin-bottom: 1.35rem !important;
  }
  #inicio .inline-flex.items-center.gap-2 {
    margin-bottom: 1.15rem;
  }
  #inicio .flex.flex-col.sm\\:flex-row,
  #inicio > .max-w-7xl .flex.flex-col.gap-3 {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }
  #inicio .flex.flex-col.gap-3 > a {
    min-height: 3.15rem;
    border-radius: 1.1rem;
  }

  .license-line {
    margin-inline: auto;
    text-align: center;
    letter-spacing: 0.08em;
    font-size: 0.64rem;
    max-width: 20rem;
  }

  .hero-devices {
    max-width: 16.5rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
  }
  .hero-devices .phone-frame {
    width: 236px;
    height: 508px;
    padding: 11px;
    margin-inline: auto;
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.16);
  }
  .hero-devices .phone-screen {
    border-radius: 1.85rem;
  }
  .desk-stack {
    margin-top: 0;
    max-width: 236px;
    gap: 0.7rem;
  }
  .desk-frame {
    border-radius: 0.9rem;
  }
  .desk-chrome { padding: 7px 11px; }
  .hero-devices .mock-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 0.7rem 0.8rem;
  }

  #funciones,
  #como-funciona,
  #demo,
  section.py-16,
  section.py-20 {
    padding-top: 3.35rem !important;
    padding-bottom: 3.35rem !important;
  }
  #funciones .text-center.mb-12,
  #como-funciona .text-center.mb-14,
  section .text-center.mb-12 {
    margin-bottom: 1.75rem !important;
  }
  #funciones h2,
  #como-funciona h2,
  #demo h2 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.03em;
  }
  #funciones .grid,
  #como-funciona .grid {
    gap: 0.9rem !important;
  }
  #funciones .rounded-2xl,
  #como-funciona .rounded-2xl {
    padding: 1.25rem 1.2rem !important;
  }
  #como-funciona .w-20.h-20 {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.85rem;
  }

  .store-soon { margin-top: 1.35rem; }
  #inicio .store-soon-row {
    justify-content: center;
    gap: 0.45rem;
  }
  .store-badge {
    min-height: 2.65rem;
    padding: 0.45rem 0.8rem 0.45rem 0.65rem;
  }
  .store-soon-note {
    text-align: center;
    letter-spacing: 0.16em;
  }

  #nav-menu:not(.hidden) {
    padding: 0.55rem 1.2rem 1.2rem;
    gap: 0.05rem;
  }
  #nav-menu .nav-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.15rem;
    font-size: 1.05rem;
    font-weight: 500;
  }
  #nav-menu a.bg-amber,
  #nav-menu a[href*="wa.me"] {
    justify-content: center;
    margin-top: 0.45rem;
    min-height: 2.85rem;
  }

  .cookie-bar {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    padding: 0.8rem 0.95rem 0.85rem;
    border-radius: 1.05rem;
  }
  .cookie-bar p { font-size: 0.76rem; line-height: 1.5; }
  .cookie-bar .mt-3 { margin-top: 0.6rem; }
  .cookie-bar button {
    min-height: 2.5rem;
    flex: 1 1 auto;
  }
  body:has(.cookie-bar) {
    padding-bottom: 8.25rem;
  }

  footer {
    padding-top: 2.75rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  }
  footer .store-soon-row { justify-content: flex-start; }
}

@media (max-width: 379px) {
  .hero-devices .phone-frame {
    width: 214px;
    height: 462px;
  }
  .desk-stack { max-width: 214px; }
  #inicio h1 { font-size: 1.58rem !important; }
}

@media (min-width: 1024px) {
  .license-line { margin-inline: 0; text-align: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in, .card-lift, .card-lift:hover, a.bg-amber:hover, .phone-screen {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .grain { display: none; }
}
