/* Colores de la app (src/constants/msl-theme.ts, sección money). */
:root {
  --background: #f4fbf7;
  --background-soft: #e9f6ef;
  --surface: #ffffff;
  --border: #d5ebdd;
  --text: #123a2b;
  --muted: #5e7b6f;
  --accent: #1c7b55;
  --accent-soft: #dff3e7;
  --accent-strong: #14523a;
  --income: #1d8b52;
  --expense: #b43a35;
  --gold: #f2c94c;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(18, 58, 43, 0.04), 0 12px 32px rgba(18, 58, 43, 0.08);
  --shadow-lg: 0 2px 4px rgba(18, 58, 43, 0.06), 0 24px 56px rgba(18, 58, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

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

.muted {
  color: var(--muted);
}

/* Botones y tiendas */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  background: #0d1f17;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store span {
  display: flex;
  flex-direction: column;
}

.store small {
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

a.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 31, 23, 0.25);
}

.store-soon {
  background: transparent;
  color: var(--muted);
  border: 1.5px dashed #b8d4c4;
}

.store-light {
  margin-top: 24px;
  background: #fff;
  color: #0d1f17;
}

/* Barra superior */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 251, 247, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(213, 235, 221, 0.6);
}

.top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--accent-strong);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18, 58, 43, 0.15);
}

.top nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.top nav a:hover {
  color: var(--accent-strong);
}

/* Portada */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.blob-1 {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, #bfe8cf, transparent 70%);
}

.blob-2 {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -160px;
  background: radial-gradient(circle, #d7ecff, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--income);
  box-shadow: 0 0 0 0 rgba(29, 139, 82, 0.5);
  animation: ping 2s infinite;
}

h1 {
  color: var(--accent-strong);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin: 18px 0 18px;
}

.hl {
  background: linear-gradient(90deg, var(--accent), #2fa877);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-points li::before {
  content: "✓ ";
  color: var(--income);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  height: 560px;
}

.shot {
  position: absolute;
  width: 270px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.shot-front {
  left: 22%;
  top: 10px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.shot-back {
  left: 52%;
  top: 60px;
  transform: rotate(6deg);
  opacity: 0.95;
  animation: float-tilt 7s ease-in-out infinite;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip b {
  margin-left: 4px;
}

.chip-1 {
  left: 2%;
  top: 110px;
  animation: float 5s ease-in-out infinite 0.5s;
}

.chip-1 b {
  color: var(--income);
}

.chip-2 {
  right: 0;
  top: 380px;
  animation: float 5.5s ease-in-out infinite 1s;
}

.chip-2 b {
  color: var(--expense);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-in {
  background: var(--income);
}

.dot-out {
  background: var(--expense);
}

.teo-peek {
  position: absolute;
  z-index: 3;
  width: 150px;
  left: 4%;
  bottom: 0;
  animation: peek 4s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Secciones */
.section {
  padding: 88px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--background), var(--background-soft) 30%, var(--background-soft) 70%, var(--background));
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--accent-strong);
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* Funciones: tarjetas */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1200px;
}

.feature {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), var(--tone-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--tone);
}

.feature:hover::before {
  opacity: 1;
}

.feature > * {
  position: relative;
}

.feature.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.feature-text {
  flex: 1;
}

.feature h3 {
  font-size: 1.2rem;
  margin: 16px 0 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tone-soft);
  color: var(--tone);
  transition: transform 0.3s;
}

.feature:hover .icon {
  transform: scale(1.08) rotate(-6deg);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock {
  margin-top: auto;
}

.feature.wide .mock {
  margin-top: 0;
  flex: 0 0 46%;
}

.feature > p {
  margin-bottom: 20px;
}

/* Mini pantalla: saldo */
.mock-balance {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #14523a, #1c7b55);
  color: #fff;
}

.mock-balance small {
  opacity: 0.75;
  font-size: 0.8rem;
}

.mock-balance strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 2px 0 12px;
  font-variant-numeric: tabular-nums;
}

.mock-balance .rows {
  display: grid;
  gap: 6px;
}

.mock-balance .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* Mini pantalla: personas */
.mock-people {
  display: flex;
  padding-left: 8px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--c);
  color: #fff;
  font-weight: 800;
}

.avatar.add {
  background: var(--tone-soft);
  color: var(--tone);
  border-style: dashed;
  border-color: var(--tone);
}

/* Mini pantalla: aviso */
.mock-notif {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tone-soft);
  font-size: 0.82rem;
}

.mock-notif span {
  color: var(--muted);
}

/* Mini pantalla: lista */
.mock-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--tone-soft);
}

.mock-list b {
  margin-left: auto;
}

.mock-list i {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--tone);
  transition: background 0.3s;
}

.mock-list i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s;
}

/* Mini pantalla: recurrentes */
.mock-auto {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.auto-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--tone-soft);
}

.auto-row em {
  font-style: normal;
  font-weight: 700;
  color: var(--income);
}

/* Mini pantalla: barras */
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding: 16px;
  border-radius: 18px;
  background: var(--tone-soft);
}

.bar {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #2fa877, var(--accent));
  transform-origin: bottom;
}

.bar.out {
  background: linear-gradient(180deg, #e06a64, var(--expense));
}

/* Mini pantalla: tarjeta */
.mock-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 86px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2b2f3a, #4a5163);
  color: #fff;
  font-size: 0.8rem;
}

.mock-card b {
  font-size: 1.3rem;
  color: var(--gold);
}

/* Mini pantalla: línea */
.mock-line {
  width: 100%;
  height: 70px;
}

.mock-line path {
  fill: none;
  stroke: var(--tone);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 300;
  stroke-dashoffset: 0;
}

/* Mini pantalla: documentos */
.mock-docs {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.doc {
  display: grid;
  place-items: end center;
  width: 88px;
  height: 110px;
  padding-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 800;
  color: #fff;
  position: relative;
}

.doc::before {
  content: "";
  position: absolute;
  inset: 16px 16px 46px;
  background: repeating-linear-gradient(180deg, #e3ece7 0 4px, transparent 4px 10px);
}

.doc.pdf {
  transform: rotate(-6deg);
}

.doc.csv {
  transform: rotate(5deg) translateY(10px);
}

.doc.pdf::after,
.doc.csv::after {
  content: "";
}

.doc.pdf {
  background: linear-gradient(#fff 70%, #c0392b 70%);
}

.doc.csv {
  background: linear-gradient(#fff 70%, #1c7b55 70%);
}

/* Animaciones de las tarjetas al aparecer */
.js .feature.in .mock-list li:nth-child(1) i,
.js .feature.in .mock-list li:nth-child(2) i {
  background: var(--tone);
}

.js .feature.in .mock-list li:nth-child(1) i::after,
.js .feature.in .mock-list li:nth-child(2) i::after {
  transform: rotate(45deg) scale(1);
}

.js .feature .mock-list li:nth-child(1) i,
.js .feature .mock-list li:nth-child(1) i::after {
  transition-delay: 0.6s;
}

.js .feature .mock-list li:nth-child(2) i,
.js .feature .mock-list li:nth-child(2) i::after {
  transition-delay: 1.1s;
}

.js .feature .avatar {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .feature.in .avatar {
  transform: scale(1);
}

.js .feature .avatar:nth-child(2) {
  transition-delay: 0.15s;
}

.js .feature .avatar:nth-child(3) {
  transition-delay: 0.3s;
}

.js .feature .avatar:nth-child(4) {
  transition-delay: 0.45s;
}

.js .feature .mock-notif {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.5s 0.5s, transform 0.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .feature.in .mock-notif {
  opacity: 1;
  transform: none;
}

.feature.in .bell svg {
  animation: ring 2.4s ease-in-out 0.4s infinite;
  transform-origin: top center;
}

.js .feature .auto-row em {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s, transform 0.4s;
}

.js .feature.in .auto-row em {
  opacity: 1;
  transform: none;
}

.js .feature .auto-row:nth-child(1) em {
  transition-delay: 0.6s;
}

.js .feature .auto-row:nth-child(2) em {
  transition-delay: 1.1s;
}

.js .feature .bar {
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .feature.in .bar {
  transform: scaleY(1);
}

.js .feature .bar:nth-child(2) { transition-delay: 0.08s; }
.js .feature .bar:nth-child(3) { transition-delay: 0.16s; }
.js .feature .bar:nth-child(4) { transition-delay: 0.24s; }
.js .feature .bar:nth-child(5) { transition-delay: 0.32s; }
.js .feature .bar:nth-child(6) { transition-delay: 0.4s; }

.js .feature .mock-line path {
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.6s ease 0.3s;
}

.js .feature.in .mock-line path {
  stroke-dashoffset: 0;
}

.feature:hover .doc.pdf {
  transform: rotate(-10deg) translateY(-6px);
}

.feature:hover .doc.csv {
  transform: rotate(9deg) translateY(4px);
}

.doc {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Aparecer al hacer scroll */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

.bento .reveal:nth-child(2),
.shots .reveal:nth-child(2),
.plans .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.bento .reveal:nth-child(3),
.shots .reveal:nth-child(3),
.plans .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.bento .reveal:nth-child(4),
.shots .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* Capturas */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.shots img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.js .shots img.in:hover {
  translate: 0 -8px;
}

.swipe-hint {
  display: none;
}

/* Planes */
.period {
  display: flex;
  width: max-content;
  margin: 0 auto 36px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.period button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.period button.active {
  background: var(--accent-strong);
  color: #fff;
}

.save {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #4a3500;
  font-size: 0.72rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.plan h3 {
  font-size: 1.3rem;
  margin: 0;
}

.tagline {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.price b {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-strong);
  letter-spacing: -0.03em;
}

.price small {
  color: var(--muted);
  font-weight: 600;
}

.price-note {
  min-height: 1.5em;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.plans[data-period="year"] .m,
.plans[data-period="month"] .y {
  display: none;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.plan li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7b55' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.featured {
  background: linear-gradient(170deg, #14523a, #1c7b55);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.featured .tagline,
.featured .price small,
.featured .price-note {
  color: rgba(255, 255, 255, 0.78);
}

.featured .price b {
  color: #fff;
}

.featured ul {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.featured li::before {
  background-color: rgba(255, 255, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

.badge {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #4a3500;
  font-size: 0.75rem;
  font-weight: 800;
}

.founders {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff8e1, #fdf0c8);
  border: 1px solid #f3e1a6;
}

.founders img {
  flex-shrink: 0;
  width: 120px;
}

.founders h3 {
  margin: 0 0 6px;
  color: #5c4300;
}

.founders p {
  margin: 0;
  color: #6b5413;
}

/* Cierre */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  border-radius: 32px;
  background: radial-gradient(circle at 85% 20%, #2fa877, transparent 55%), linear-gradient(135deg, #0f3d2c, #14523a);
  color: #fff;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 10px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.section-cta {
  padding-top: 0;
}

.cta-teo {
  filter: drop-shadow(0 0 28px rgba(191, 232, 207, 0.55));
  width: 220px;
  margin: -24px 0 -56px;
  animation: float 6s ease-in-out infinite;
}

/* Pie */
footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

footer p {
  margin: 0;
}

/* Páginas legales */
.legal {
  padding: 48px 0 80px;
}

.legal-wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 8px 0 6px;
}

.legal-date {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
  color: var(--accent-strong);
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: #2c4a3d;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal-summary {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.legal-summary h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.legal-summary ul {
  margin: 0;
}

.footer-links a {
  color: var(--muted);
}

/* Animaciones */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-tilt {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(10px); }
}

@keyframes peek {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-4deg); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(29, 139, 82, 0.5); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(29, 139, 82, 0); }
}

@keyframes ring {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
  50% { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin: 0 auto;
  }

  .stores,
  .hero-points {
    justify-content: center;
  }

  .hero-visual {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Teléfono */
@media (max-width: 640px) {
  .top nav {
    display: none;
  }

  .top-inner {
    justify-content: space-between;
  }

  .hero {
    padding-top: 32px;
  }

  .stores {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 24px;
  }

  .store {
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .store svg {
    width: 20px;
    height: 22px;
  }

  .store small {
    font-size: 0.62rem;
  }

  .hero-visual {
    height: 360px;
    margin-top: 8px;
  }

  .shot {
    width: 165px;
    border-radius: 20px;
  }

  .shot-front {
    left: calc(50% - 150px);
    top: 0;
  }

  .shot-back {
    left: calc(50% - 10px);
    top: 30px;
  }

  .float-chip {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .chip-1 {
    top: 40px;
    left: 0;
  }

  .chip-2 {
    top: 250px;
  }

  .teo-peek {
    width: 86px;
    left: 0;
  }

  .section {
    padding: 64px 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .feature.wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .feature.wide .mock {
    margin-top: 20px;
    flex: none;
  }

  .swipe-hint {
    display: block;
    margin-top: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -16px;
    padding: 0 16px 16px;
  }

  .shots img {
    flex: 0 0 62%;
    min-width: 0;
    scroll-snap-align: center;
  }

  .period button {
    padding: 10px 16px;
  }

  .founders {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px 0;
  }

  .cta-teo {
    width: 180px;
    margin: 0;
  }
}
