:root {
  --paper: #f3e7d2;
  --paper-2: #fbf3e4;
  --paper-3: #fff9ee;
  --ink: #2d2640;
  --muted: #6f6780;
  --line: #2d2640;
  --line-soft: rgba(45, 38, 64, 0.16);
  --coral: #d9603a;
  --rose: #cf5d68;
  --rose-dark: #b94b58;
  --green: #1f7d52;
  --purple: #8a6fb0;
  --pink: #ecbcc0;
  --cream: #ffd58a;
  /* Acento "tech" — el mismo cian del banner nocturno de Aiko, usado en todo
     el sitio para que el día cálido y la noche neón combinen. */
  --mint: #45bcd6;
  --cyan: #45bcd6;
  --cyan-bright: #66e0f5;
  /* Superficies oscuras unificadas al azul-noche del banner de Aiko. */
  --dark: #221d3d;
  --darker: #16132b;
  --red: #e9503f;
  --shadow: rgba(45, 38, 64, 0.18);
  --shadow-strong: rgba(45, 38, 64, 0.28);
  --pixel: "Press Start 2P", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 14% 8%, rgba(236, 188, 192, 0.35), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(236, 188, 192, 0.28), transparent 26%),
    radial-gradient(circle at 78% 96%, rgba(138, 111, 176, 0.12), transparent 34%),
    var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ---------- Marca flotante (sin barra de navegación) ---------- */
.brand-float {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.82);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px var(--shadow);
  font-weight: 800;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid var(--coral);
  border-top-color: transparent;
  transform: rotate(-45deg);
}

.brand-mark.small {
  width: 18px;
  height: 18px;
  border-width: 4px;
}

main {
  width: 100%;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding: 116px 7vw 72px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  z-index: 0;
  background: url("hero-art.png") no-repeat center right;
  background-size: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    var(--paper) 0%,
    var(--paper) 38%,
    rgba(243, 231, 210, 0.78) 50%,
    rgba(243, 231, 210, 0) 64%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.coffee-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--paper-3);
  box-shadow: 0 4px 14px var(--shadow);
  font-weight: 600;
  font-size: 0.98rem;
}

h1 {
  font-family: var(--pixel);
  font-size: clamp(1.3rem, 3.3vw, 2.45rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

h1 .hl {
  color: var(--coral);
}

.lead {
  max-width: 460px;
  margin-bottom: 30px;
  color: #4a4358;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* ---------- Botones ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button-primary {
  background: var(--rose);
  color: #fff7f0;
  box-shadow: 0 8px 20px rgba(207, 93, 104, 0.4);
}

.button-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(207, 93, 104, 0.46);
}

.button-ghost {
  background: rgba(255, 249, 238, 0.7);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-soft);
}

.button-ghost:hover {
  background: var(--paper-3);
  transform: translateY(-2px);
}

/* CTA destacado: "Agenda una asesoría" */
.button-cta {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.08rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--rose) 75%);
  color: #fff7f0;
  box-shadow: 0 10px 26px rgba(207, 93, 104, 0.45);
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.button-cta:hover {
  background: linear-gradient(135deg, var(--coral) 0%, var(--rose-dark) 85%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(207, 93, 104, 0.55);
  animation-play-state: paused;
}

.button-cta span {
  transition: transform 150ms ease;
}

.button-cta:hover span {
  transform: translateX(4px);
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(207, 93, 104, 0.4);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(217, 96, 58, 0.55),
      0 0 0 5px rgba(217, 96, 58, 0.13);
  }
}

.pixel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pixel-badges span {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 249, 238, 0.78);
  box-shadow: inset 0 0 0 2px var(--line-soft);
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--coral);
  font-family: var(--pixel);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Barrita de acento antes de cada eyebrow (detalle de diseño consistente) */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--coral), var(--rose));
}

h2 {
  font-family: var(--pixel);
  font-size: clamp(1.1rem, 2.4vw, 1.85rem);
  line-height: 1.55;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Secciones a ancho completo; el contenido se centra hasta 1340px.
   Esto deja que los fondos sangren de borde a borde y rompe la columna central. */
.examples-section,
.system-section,
.process-section,
.contact-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 70px max(26px, calc((100% - 1300px) / 2));
}

/* Árboles decorativos en los márgenes (solo en pantallas anchas) */
.gutter-tree {
  position: absolute;
  bottom: 44px;
  width: 100px;
  height: auto;
  image-rendering: pixelated;
  opacity: 0.9;
  filter: drop-shadow(3px 5px 5px rgba(45, 38, 64, 0.18));
  pointer-events: none;
  display: none;
  z-index: 0;
}

.gutter-left { left: 16px; }
.gutter-right { right: 16px; transform: scaleX(-1); }
.gutter-tree.small { width: 74px; bottom: 60px; opacity: 0.85; }

@media (min-width: 1560px) {
  .gutter-tree { display: block; }
}

.price-section {
  width: min(1300px, calc(100% - 52px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

/* ---------- Tarjetas genéricas ---------- */
.case-card,
.steps article,
.contact-form,
.mini-console {
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: 0 14px 30px var(--shadow);
}

/* ---------- Demo / ejemplos ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.arcade-panel {
  border-radius: 20px;
  overflow: hidden;
  background: #efe7d7;
  box-shadow: 0 18px 38px var(--shadow-strong);
}

.panel-top,
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 18px;
  background: var(--dark);
  color: #eaf2ff;
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.case-board {
  display: grid;
  gap: 18px;
}

.case-card {
  padding: 24px;
}

.card-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-card p:not(.card-label),
.steps p,
.price-section p,
.contact-section p:not(.eyebrow) {
  color: #50485e;
  line-height: 1.7;
}

.case-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper-2);
}

.case-button {
  min-height: 56px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 120ms ease;
}

.case-button:hover,
.case-button.active {
  background: var(--cream);
}

/* ---------- Sistema / flujo (banda a ancho completo) ---------- */
.system-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 46px;
  align-items: center;
  background: linear-gradient(180deg, #f9efdc 0%, #f4e8d3 100%);
  box-shadow:
    inset 0 1px 0 rgba(45, 38, 64, 0.07),
    inset 0 -1px 0 rgba(45, 38, 64, 0.07);
}

.mini-console {
  overflow: hidden;
}

.console-bar {
  justify-content: flex-start;
  gap: 9px;
}

.console-bar span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
}

.console-bar span:nth-child(2) {
  background: var(--cream);
}

.console-bar span:nth-child(3) {
  background: var(--mint);
}

.console-bar strong {
  margin-left: auto;
}

.flow-map {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--darker);
}

.flow-node {
  border-radius: 10px;
  padding: 16px;
  background: #dfe9e7;
  color: #20242d;
  font-weight: 700;
}

.flow-node.active {
  background: var(--mint);
}

.flow-arrow {
  width: 16px;
  height: 22px;
  margin-left: 24px;
  background: var(--cream);
  box-shadow:
    0 22px 0 var(--cream),
    8px 33px 0 var(--cream),
    -8px 33px 0 var(--cream);
}

.pixel-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pixel-list li {
  position: relative;
  padding-left: 28px;
  color: #50485e;
  line-height: 1.6;
}

.pixel-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--coral);
  box-shadow: 5px 5px 0 var(--rose);
}

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

.steps article {
  padding: 26px;
}

.steps span {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--cream);
  font-family: var(--pixel);
  font-size: 0.72rem;
}

/* ---------- Precio ---------- */
.price-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 22px;
  background: #fff4dd;
  box-shadow: 0 16px 34px var(--shadow);
}

.price-info h2 {
  color: var(--coral);
}

.price-card {
  display: grid;
  gap: 8px;
  padding: 26px 26px 28px;
  border-radius: 18px;
  background: var(--paper-3);
  box-shadow: 0 12px 28px var(--shadow), inset 0 0 0 2px rgba(45, 38, 64, 0.08);
}

.price-plan {
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

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

.price-amount strong {
  font-family: var(--pixel);
  font-size: 2.1rem;
  color: var(--ink);
}

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

.price-includes {
  display: grid;
  gap: 11px;
  margin: 6px 0 18px;
  padding: 0;
  list-style: none;
}

.price-includes li {
  position: relative;
  padding-left: 30px;
  color: #50485e;
  font-weight: 500;
  line-height: 1.4;
}

.price-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.price-includes li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}

.price-card .button {
  justify-content: center;
}

.price-pixel {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 120%, rgba(236, 188, 192, 0.6), transparent 60%),
    var(--cream);
  box-shadow: inset 0 0 0 4px rgba(45, 38, 64, 0.1);
}

/* ---------- Vaso de café (motivo) ---------- */
.coffee-cup {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 21px;
  margin-top: 4px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 3px 3px 6px 6px;
}

.coffee-cup::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -3px;
  right: -3px;
  height: 7px;
  background: #c9a079;
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.coffee-cup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.coffee-cup.big {
  width: 52px;
  height: 64px;
  border-width: 4px;
  border-radius: 7px 7px 14px 14px;
}

.coffee-cup.big::before {
  top: -16px;
  left: -6px;
  right: -6px;
  height: 18px;
  border-width: 4px;
  border-radius: 8px;
}

.coffee-cup.big::after {
  width: 22px;
  height: 22px;
}

/* ---------- Contacto (banda a ancho completo) ---------- */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 46px;
  align-items: start;
  background: linear-gradient(180deg, #f9efdc 0%, #f4e8d3 100%);
  box-shadow:
    inset 0 1px 0 rgba(45, 38, 64, 0.07),
    inset 0 -1px 0 rgba(45, 38, 64, 0.07);
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 2px var(--line-soft);
  color: var(--ink);
  outline: none;
  font-weight: 500;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: inset 0 0 0 2px var(--rose);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .button {
  justify-content: center;
}

/* ---------- Pétalos de sakura (CC0) ---------- */
.petals {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: calc(22px * var(--s, 1));
  height: calc(15px * var(--s, 1));
  background: url("assets/petal.png") no-repeat center / contain;
  image-rendering: pixelated;
  opacity: 0;
  animation: petal-fall var(--d, 10s) linear var(--delay, 0s) infinite;
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  92% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--drift, 50px), var(--fall, 108vh), 0) rotate(540deg);
    opacity: 0;
  }
}

/* ---------- Sprites de acento (CC0) ---------- */
.accent-sprite {
  image-rendering: pixelated;
  pointer-events: none;
}

.section-heading {
  position: relative;
}

.accent-chibi {
  position: absolute;
  top: -18px;
  right: 4px;
  width: 78px;
  height: auto;
  filter: drop-shadow(2px 4px 4px rgba(45, 38, 64, 0.24));
  animation: bob 3.2s ease-in-out infinite;
}

.price-section {
  position: relative;
}

.accent-pig {
  position: absolute;
  top: -30px;
  right: 34px;
  width: 68px;
  height: auto;
  filter: drop-shadow(2px 4px 4px rgba(45, 38, 64, 0.24));
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Footer en escena pixel ---------- */
.scene-footer {
  position: relative;
  margin-top: 70px;
  padding-top: 64px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, #f7dfdc 55%, #f3d2cf 100%);
}

.scene-copy {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0 24px 30px;
  text-align: center;
}

.brand-float-static {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.scene-copy .brand-name {
  font-size: 1.4rem;
}

.scene-copy p {
  margin: 0;
  color: #5a5168;
  font-weight: 600;
}

.scene {
  position: relative;
  height: 300px;
}

.scene-fuji {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 0;
  width: clamp(240px, 34vw, 380px);
  height: auto;
  transform: translateX(-50%);
  image-rendering: pixelated;
  opacity: 0.92;
}

.scene-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 78px;
  background: #5c8f23;
  box-shadow:
    inset 0 7px 0 #74b72a,
    inset 0 -46px 0 #4d7d1d;
}

.scene-ground > * {
  position: absolute;
  bottom: 50px;
  z-index: 2;
}

.scene-tree {
  width: 96px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(5px 6px 0 rgba(45, 38, 64, 0.14));
}

.scene-tree.t1 { left: 5%; width: 110px; bottom: 46px; }
.scene-tree.t2 { right: 7%; width: 92px; }
.scene-tree.t3 { right: 24%; width: 70px; bottom: 54px; opacity: 0.95; }

.scene-chibi {
  left: 38%;
  width: 64px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 rgba(45, 38, 64, 0.18));
  animation: bob 3s ease-in-out infinite;
}

.scene-pig {
  left: 47%;
  width: 58px;
  bottom: 52px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 rgba(45, 38, 64, 0.18));
  animation: bob 2.4s ease-in-out infinite;
}

.torii {
  left: 20%;
  width: 92px;
  height: 104px;
  bottom: 48px;
}

.torii span {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 88px;
  background: #c0392b;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.2);
}

.torii span:nth-child(1) { left: 14px; }
.torii span:nth-child(2) { right: 14px; }

.torii::before {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  right: -7px;
  height: 15px;
  background: #a93226;
  border-radius: 5px 5px 2px 2px;
}

.torii::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 3px;
  right: 3px;
  height: 11px;
  background: #c0392b;
}

.petals-scene .petal {
  --fall: 300px;
}

.petals-page {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

.petals-page .petal {
  --fall: 108vh;
}

/* =====================================================
   ARTE PIXEL DE LA TIENDA (demo interactiva) — intacto
   ===================================================== */
.pixel-world {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 34px 20px 16px;
  background:
    linear-gradient(#e8ddc9 2px, transparent 2px),
    linear-gradient(90deg, #e8ddc9 2px, transparent 2px),
    #fbf4e4;
  background-size: 34px 34px;
}

.pixel-sky span {
  position: absolute;
  display: block;
}

.cloud {
  width: 64px;
  height: 22px;
  background: #fffaf0;
  box-shadow:
    18px -12px 0 #fffaf0,
    36px 0 0 #fffaf0,
    8px 16px 0 rgba(58, 43, 34, 0.08);
}

.cloud-a {
  top: 62px;
  left: 50px;
  animation: drift 8s steps(8) infinite;
}

.cloud-b {
  top: 94px;
  right: 76px;
  transform: scale(0.72);
  animation: drift 11s steps(8) infinite reverse;
}

.star {
  width: 12px;
  height: 12px;
  background: var(--cream);
  box-shadow:
    12px 0 0 #fff8d5,
    -12px 0 0 #fff8d5,
    0 12px 0 #fff8d5,
    0 -12px 0 #fff8d5;
}

.star-a {
  top: 54px;
  right: 150px;
}

.star-b {
  top: 164px;
  left: 74px;
  transform: scale(0.7);
}

.pixel-shop {
  --shop-main: #c4773e;
  --shop-dark: #6b3a21;
  --shop-sign: #ffd58a;
  --shop-accent: #247c96;
  --shop-stripe: #63b9d3;
  position: relative;
  width: min(500px, 100%);
  height: 418px;
  margin: 26px auto 0;
  image-rendering: pixelated;
  filter: drop-shadow(8px 8px 0 rgba(42, 33, 29, 0.42));
}

.shop-clinic {
  --shop-main: #8dd9cd;
  --shop-dark: #285c62;
  --shop-sign: #c8fff0;
  --shop-accent: #43b3aa;
  --shop-stripe: #e9fff6;
}

.shop-builder {
  --shop-main: #d9984a;
  --shop-dark: #5e4a39;
  --shop-sign: #ffe0a3;
  --shop-accent: #6b7880;
  --shop-stripe: #f7b34b;
}

.shop-food {
  --shop-main: #e65342;
  --shop-dark: #57342f;
  --shop-sign: #fbd56c;
  --shop-accent: #6aa43a;
  --shop-stripe: #fff3c0;
}

.roof-garden {
  position: absolute;
  top: 20px;
  left: 58px;
  right: 54px;
  height: 60px;
  background: #5c8f23;
  border: 0;
  box-shadow:
    18px -16px 0 #3f7d1d,
    48px -8px 0 #7fbf32,
    82px -24px 0 #3f7d1d,
    140px -12px 0 #74b72a,
    206px -20px 0 #4a8f21,
    268px -8px 0 #7fbf32,
    330px -18px 0 #3f7d1d,
    -24px 22px 0 #3f7d1d,
    374px 22px 0 #4a8f21;
}

.roof-garden span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff8d5;
}

.roof-garden span:nth-child(1) { left: 22px; top: 18px; }
.roof-garden span:nth-child(2) { left: 116px; top: 4px; }
.roof-garden span:nth-child(3) { right: 80px; top: 22px; }
.roof-garden span:nth-child(4) { right: 16px; top: -10px; }

.roof-unit {
  position: absolute;
  top: 10px;
  left: 260px;
  width: 74px;
  height: 58px;
  border: 8px solid #dfe2da;
  background: #9da7a3;
  box-shadow: inset 16px 10px 0 #f3f2e8, inset -12px -10px 0 #68656d;
}

.shop-sign {
  position: absolute;
  top: 78px;
  left: 78px;
  right: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 8px solid var(--shop-dark);
  background: var(--shop-sign);
  color: var(--shop-dark);
  font-family: var(--pixel);
  font-size: clamp(1rem, 3vw, 1.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 18px 0 0 rgba(255,255,255,0.18), inset -18px 0 0 rgba(0,0,0,0.08);
}

.awning {
  position: absolute;
  top: 156px;
  left: 52px;
  right: 52px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 8px solid var(--shop-dark);
  background: var(--shop-accent);
}

.awning span:nth-child(odd) {
  background: var(--shop-stripe);
}

.shop-body {
  position: absolute;
  top: 222px;
  left: 78px;
  right: 78px;
  height: 158px;
  border-left: 12px solid var(--shop-dark);
  border-right: 12px solid var(--shop-dark);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.14) 20px, transparent 20px 64px, rgba(0,0,0,0.08) 64px 86px, transparent 86px),
    var(--shop-main);
}

.shop-door {
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 82px;
  height: 122px;
  border: 8px solid var(--shop-dark);
  background: #b9e1e4;
  box-shadow: inset 14px 14px 0 rgba(255,255,255,0.62), inset -14px -14px 0 rgba(0,0,0,0.16);
}

.shop-window {
  position: absolute;
  right: 28px;
  top: 22px;
  width: 138px;
  height: 72px;
  border: 8px solid var(--shop-dark);
  background: #f7f1e8;
  box-shadow: inset -42px 0 0 #e4e6e5;
}

.shop-counter {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 210px;
  height: 28px;
  background: #e5a46a;
  border-top: 8px solid #ffe0a6;
  box-shadow: 0 20px 0 var(--shop-dark);
}

.side-plants {
  position: absolute;
  left: 30px;
  top: 212px;
  width: 38px;
  height: 130px;
  background: #3b7e1d;
  box-shadow:
    -22px 22px 0 #4f9a22,
    24px -14px 0 #70bd35,
    386px 20px 0 #3b7e1d,
    410px 48px 0 #70bd35;
}

.side-plants span {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff8d5;
}

.side-plants span:nth-child(1) { left: -10px; top: 22px; }
.side-plants span:nth-child(2) { left: 20px; top: 54px; }
.side-plants span:nth-child(3) { left: 390px; top: 10px; }
.side-plants span:nth-child(4) { left: 420px; top: 80px; }

.pixel-crates {
  position: absolute;
  right: 52px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.pixel-crates span {
  width: 58px;
  height: 52px;
  border: 6px solid var(--shop-dark);
  background:
    linear-gradient(#b86733 6px, transparent 6px 18px, #b86733 18px 24px, transparent 24px),
    #d98744;
}

.pixel-crates span:nth-child(2) {
  transform: translateY(-14px);
}

.ground-line {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 14px;
  background: #30343d;
  box-shadow: 0 12px 0 #8c8174;
}

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}

/* ---------- Nubes flotantes en el hero ---------- */
.hero-cloud {
  position: absolute;
  z-index: 1;
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  opacity: 0.7;
  pointer-events: none;
}

.hero-cloud.hc1 {
  top: 122px;
  left: 5%;
  animation: cloud-drift 26s ease-in-out infinite;
}

.hero-cloud.hc2 {
  top: 208px;
  left: 23%;
  width: 84px;
  opacity: 0.55;
  animation: cloud-drift 38s ease-in-out infinite;
  animation-delay: -12s;
}

@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(46px); }
}

/* ===================== Sección Aiko (asistente IA, banner nocturno) ===================== */
.vn-section {
  position: relative;
  width: 100%;
  padding: 76px max(26px, calc((100% - 1300px) / 2));
  overflow: hidden;
  color: #eef1ff;
  background: #14122b;
}

.vn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("banner2.png") no-repeat center right;
  background-size: cover;
}

.vn-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      rgba(15, 13, 38, 0.95) 0%,
      rgba(15, 13, 38, 0.88) 34%,
      rgba(15, 13, 38, 0.4) 58%,
      rgba(15, 13, 38, 0) 75%
    ),
    linear-gradient(0deg, rgba(15, 13, 38, 0.55), rgba(15, 13, 38, 0) 42%);
}

.vn-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.vn-section .eyebrow { color: #66e0f5; }
.vn-section h2 { color: #fff; }
.vn-section .section-sub { color: rgba(238, 241, 255, 0.82); }
.vn-head { margin-bottom: 22px; }

.vn-chat {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 16, 40, 0.72);
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1.5px rgba(102, 224, 245, 0.35);
}

.vn-namebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(102, 224, 245, 0.1);
  border-bottom: 1.5px solid rgba(102, 224, 245, 0.25);
}

.vn-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px rgba(102, 224, 245, 0.6);
}

.vn-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.vn-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(238, 241, 255, 0.7);
}

.vn-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4be38a;
  box-shadow: 0 0 8px #4be38a;
}

.vn-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  max-height: 350px;
  overflow-y: auto;
  padding: 18px 16px;
}

.bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 0.98rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bubble.aiko {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: rgba(102, 224, 245, 0.14);
  border: 1px solid rgba(102, 224, 245, 0.3);
  color: #eaf7fb;
}

.bubble.me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--rose);
  color: #fff7f0;
}

.vn-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 16px 18px;
  border-top: 1.5px solid rgba(102, 224, 245, 0.18);
  background: rgba(10, 9, 26, 0.5);
}

.vn-opt {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(102, 224, 245, 0.5);
  background: transparent;
  color: #d8f6fc;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 120ms ease, transform 120ms ease;
}

.vn-opt:hover {
  background: rgba(102, 224, 245, 0.18);
  transform: translateY(-1px);
}

.vn-opt.ghost {
  border-color: rgba(238, 241, 255, 0.3);
  color: rgba(238, 241, 255, 0.75);
}

.vn-opt.primary {
  border: 0;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  color: #fff7f0;
  box-shadow: 0 8px 20px rgba(207, 93, 104, 0.5);
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.vn-opt.primary:hover {
  transform: translateY(-2px) scale(1.03);
  animation-play-state: paused;
}

.vn-input {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
}

.vn-input input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(102, 224, 245, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.vn-input input[type="text"]::placeholder {
  color: rgba(238, 241, 255, 0.5);
}

.vn-input input[type="text"]:focus {
  border-color: #66e0f5;
}

.vn-send {
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: #66e0f5;
  color: #0c1322;
  font-weight: 800;
  cursor: pointer;
}

.vn-send:hover {
  background: #8aeaf9;
}

.vn-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px dashed rgba(102, 224, 245, 0.5);
  color: #d8f6fc;
  cursor: pointer;
  font-weight: 600;
}

.vn-file:hover {
  background: rgba(102, 224, 245, 0.12);
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .demo-grid,
  .system-section,
  .contact-section,
  .price-section {
    grid-template-columns: 1fr;
  }

  .system-section {
    gap: 32px;
  }

  .vn-inner {
    max-width: none;
  }

  .vn-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(15, 13, 38, 0.78) 0%,
        rgba(15, 13, 38, 0.86) 100%
      );
  }

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

  .price-section {
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 120px 24px 70px;
    min-height: auto;
  }

  .hero-art {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 52%;
    background-position: bottom right;
    background-size: contain;
    opacity: 0.92;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(243, 231, 210, 0.96) 0%,
        rgba(243, 231, 210, 0.78) 40%,
        rgba(243, 231, 210, 0.55) 100%
      );
  }

  .hero {
    padding-bottom: 230px;
  }

  .brand-float {
    top: 14px;
    left: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .examples-section,
  .system-section,
  .process-section,
  .contact-section {
    padding: 46px 18px;
  }

  .vn-section {
    padding: 46px 18px;
  }

  .price-section {
    width: calc(100% - 28px);
    padding: 28px;
  }

  .price-amount strong {
    font-size: 1.8rem;
  }

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

  .pixel-world {
    min-height: 400px;
    padding: 22px 8px 12px;
  }

  .pixel-shop {
    width: 330px;
    max-width: 100%;
    height: 360px;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .side-plants {
    display: none;
  }
}

/* ===================== Interactividad ===================== */

/* Acento cian para los eyebrow de la sección oscura de Aiko */
.vn-section .eyebrow::before {
  background: linear-gradient(90deg, var(--cyan-bright), var(--purple));
}

/* Aparición al hacer scroll (progressive enhancement: sólo con JS) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js-reveal .reveal.from-left { transform: translateX(-34px); }
.js-reveal .reveal.from-right { transform: translateX(34px); }

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Escalonado para grupos de tarjetas */
.js-reveal .reveal.d1 { transition-delay: 0.08s; }
.js-reveal .reveal.d2 { transition-delay: 0.16s; }
.js-reveal .reveal.d3 { transition-delay: 0.24s; }

/* Levantar tarjetas al pasar el cursor */
.case-card,
.steps article,
.mini-console,
.price-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover,
.steps article:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px var(--shadow-strong);
}

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 13px 15px;
  border-radius: 999px;
  background: #25d366;
  color: #08331b;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wa-fab svg {
  width: 24px;
  height: 24px;
  fill: #08331b;
}

.wa-fab .wa-text {
  font-size: 0.95rem;
}

.wa-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.55);
}

@media (max-width: 560px) {
  .wa-fab {
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }
  .wa-fab .wa-text {
    display: none;
  }
}

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