/* ============================================================
   Tienda Móvil — Landing page
   Mobile-first. Brand: teal (#009688).
   ============================================================ */

:root {
  --ink: #10201e;
  --ink-soft: #40544f;
  --paper: #f1f8f6;
  --paper-2: #e2efec;
  --card: #ffffff;
  --brand: #009688;
  --brand-deep: #00695c;
  --brand-tint: #cceae5;
  --sand: #f5a524;
  --line: #d8e8e4;
  --shadow-sm: 0 2px 10px rgba(12, 40, 36, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(12, 40, 36, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(0, 105, 92, 0.4);
  --radius: 20px;
  --radius-sm: 13px;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain + warm light wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(0, 150, 136, 0.14), transparent 60%),
    radial-gradient(50% 45% at 0% 8%, rgba(245, 165, 36, 0.10), transparent 55%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); background: var(--brand-deep); }

/* ---------------- Hero ---------------- */
.hero { position: relative; z-index: 1; padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 36px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px 6px 9px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.hero h1 {
  font-size: clamp(2.5rem, 11vw, 4rem);
  margin: 20px 0 16px;
}
.hero h1 .accent {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.34em;
  background: var(--brand-tint);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.hero p.lede {
  font-size: clamp(1.02rem, 4.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 28px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--brand);
  color: #fff;
  padding: 15px 24px 15px 20px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-download::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 46px 90px -28px rgba(0,105,92,0.55); }
.btn-download:hover::before { left: 130%; }
.btn-download .ic { width: 30px; height: 30px; flex: none; }
.btn-download small { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.82; letter-spacing: 0.02em; }
.btn-download .lbl { display: block; font-size: 1.02rem; line-height: 1.1; margin-top: 1px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--brand); flex: none; }

/* ---------------- Phone mockup ---------------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.phone-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 8%;
  background: radial-gradient(circle, rgba(0,150,136,0.20), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 19;
  background: #14100e;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(0,0,0,0.04);
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 19px;
  background: #14100e;
  border-radius: 0 0 14px 14px;
  z-index: 4;
}
.app-top {
  background: var(--brand);
  color: #fff;
  padding: 30px 16px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.app-top img { width: 30px; height: 30px; border-radius: 8px; background:#fff; padding:1px; }
.app-top .t-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 0.92rem; }
.app-top .t-sub { font-size: 0.62rem; opacity: 0.85; }
.app-search {
  margin: 12px 12px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 0.66rem;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 7px;
}
.app-list { padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.app-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.app-item .thumb {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-tint), var(--paper-2));
  display: grid; place-items: center; font-size: 1rem;
}
.app-item .info { flex: 1; min-width: 0; }
.app-item .info b { font-size: 0.7rem; display: block; }
.app-item .info small { font-size: 0.58rem; color: var(--ink-soft); }
.app-item .price { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 0.74rem; color: var(--brand-deep); }
.app-tab {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 9px 14px 12px;
  display: flex;
  justify-content: space-between;
}
.app-tab i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); display: block; }
.app-tab i.on { background: var(--brand); width: 26px; }

.float-card {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow-md);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.float-card .ico {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.float-card small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--ink-soft); }
.float-a { top: 16%; left: -2%; animation: bob 5s var(--ease) infinite; }
.float-b { bottom: 13%; right: -4%; animation: bob 5s var(--ease) infinite 1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------------- Marquee strip ---------------- */
.strip {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  border-block: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 13px 0;
}
.strip-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: scroll-x 22s linear infinite;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.strip-track span { display: inline-flex; align-items: center; gap: 34px; }
.strip-track span::after { content: "•"; color: var(--brand); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
.section { position: relative; z-index: 1; padding: 64px 0; }
.section-head { max-width: 38ch; margin-bottom: 36px; }
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.85rem, 7vw, 2.7rem); margin-bottom: 14px; }
.section .sub { color: var(--ink-soft); font-size: 1.02rem; }

.features { display: grid; gap: 16px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-tint); }
.feature .f-ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.16rem; margin-bottom: 7px; }
.feature p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------------- Steps ---------------- */
.steps-wrap { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 44px 26px; position: relative; overflow: hidden; }
.steps-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 100% 0%, rgba(0,150,136,0.28), transparent 60%);
}
.steps-wrap .section-head { position: relative; }
.steps-wrap h2 { color: var(--paper); }
.steps-wrap .eyebrow { color: var(--brand); }
.steps-wrap .sub { color: rgba(241,248,246,0.7); }
.steps { position: relative; display: grid; gap: 18px; margin-top: 30px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.05rem;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,150,136,0.6);
}
.step h3 { font-size: 1.08rem; margin-bottom: 3px; }
.step p { font-size: 0.9rem; color: rgba(241,248,246,0.66); }

/* ---------------- Download CTA ---------------- */
.cta-final {
  text-align: center;
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-radius: 30px;
  padding: 56px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 12% 10%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(50% 50% at 90% 100%, rgba(0,0,0,0.18), transparent 55%);
}
.cta-final .inner { position: relative; }
.cta-final img { width: 70px; height: 70px; border-radius: 18px; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.4); margin-bottom: 20px; }
.cta-final h2 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,0.86); max-width: 36ch; margin: 0 auto 28px; font-size: 1.02rem; }
.btn-download.on-brand { background: #fff; color: var(--brand-deep); box-shadow: 0 26px 60px -18px rgba(0,0,0,0.45); }
.btn-download.on-brand:hover { box-shadow: 0 36px 80px -20px rgba(0,0,0,0.55); }
.cta-final .fine { margin-top: 18px; font-size: 0.78rem; color: rgba(255,255,255,0.8); }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative; z-index: 1;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.foot .brand { font-size: 1rem; }
.foot p { font-size: 0.84rem; color: var(--ink-soft); }
.foot .legal { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .pill { animation: rise 0.7s var(--ease) both; }
.hero h1 { animation: rise 0.7s var(--ease) 0.08s both; }
.hero .lede { animation: rise 0.7s var(--ease) 0.16s both; }
.hero .cta-row { animation: rise 0.7s var(--ease) 0.24s both; }
.hero .hero-meta { animation: rise 0.7s var(--ease) 0.32s both; }
.phone-stage { animation: rise 0.9s var(--ease) 0.3s both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Desktop ---------------- */
@media (min-width: 860px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 20px; }
  .hero p.lede { font-size: 1.24rem; max-width: 34ch; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 22px 30px; }
  .steps-wrap { padding: 60px 50px; }
  .section { padding: 88px 0; }
  .foot { flex-direction: row; justify-content: space-between; align-items: center; }
  .phone { width: 310px; }
}

@media (min-width: 1024px) {
  .phone { width: 330px; }
}
