/* =========================================================
   Lavin · Expertos en Ecommerce
   ========================================================= */

:root {
  --navy: #0a3478;
  --ink: #16202e;
  --ink-soft: #4a5568;
  --ivory: #faf8f4;
  --sand: #f1ece4;
  --mist: #e8eef2;
  --champagne: #b5966a;
  --line: rgba(22, 32, 46, .12);
  --white: #fff;
  --oxxo: #e4002b;

  --serif: "Marcellus", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--ink-soft); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); max-width: 15em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: normal; color: var(--champagne); }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 1.1em; font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
section { padding: 100px 0; }
.head { max-width: 660px; margin-bottom: 50px; }
.head p:last-child { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 40px; }
.lead { font-size: 1.12rem; max-width: 40em; }

/* ---------- Navegador con la tienda ---------- */
.demo { padding: 20px 0 100px; }
.browser {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -50px rgba(22, 32, 46, .45);
}
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f2f4f7; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 420px; margin-inline: auto; padding: 6px 14px; border-radius: 8px; background: var(--white); font-size: .8rem; color: var(--ink-soft); text-align: center; }
.device { display: inline-flex; padding: 3px; border-radius: 30px; background: var(--white); border: 1px solid var(--line); }
.device button { border: 0; background: none; padding: 6px 14px; border-radius: 30px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); transition: .3s var(--ease); }
.device button.is-active { background: var(--ink); color: var(--white); }
.open { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.browser__stage { display: flex; justify-content: center; height: 720px; background: var(--mist); }
.browser__stage iframe { width: 100%; height: 100%; border: 0; background: var(--white); }
.browser__stage.is-mobile { padding: 24px 0; }
.browser__stage.is-mobile iframe { width: 390px; max-width: calc(100% - 32px); border-radius: 34px; border: 10px solid var(--ink); }
.demo__hint { margin: 16px 0 0; text-align: center; font-size: .82rem; }

/* ---------- Plataformas ---------- */
.platforms { background: var(--white); }
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plat { padding: 40px 36px; border: 1px solid var(--line); background: var(--ivory); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(22, 32, 46, .25); }
.plat__logo { display: inline-block; margin-bottom: 22px; padding: 8px 18px; border-radius: 30px; font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: .02em; color: var(--white); }
.plat__logo--shopify { background: #5e8e3e; }
.plat__logo--woo { background: #7f54b3; }
.plat ul, .ticks { list-style: none; margin: 0; padding: 0; }
.plat li, .ticks li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plat li:last-child { border-bottom: 0; }
.plat li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--champagne); }

/* ---------- Marketplaces ---------- */
.markets { background: var(--mist); }
.markets__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.ticks { margin-top: 22px; }

.sync { position: relative; padding: 36px 28px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.sync__hub { display: grid; justify-items: center; gap: 10px; width: min(260px, 100%); margin: 0 auto; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--ivory); }
.sync__hub img { width: 150px; height: auto; }
.sync__hub span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); }
.sync__lines { width: 100%; height: 70px; fill: none; stroke: var(--champagne); stroke-width: 1.5; stroke-dasharray: 5 6; animation: flow 1.2s linear infinite; vector-effect: non-scaling-stroke; }
.sync__lines path { vector-effect: non-scaling-stroke; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.sync__nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.node { display: grid; gap: 2px; padding: 16px 10px; text-align: center; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.node strong { font-weight: 500; color: var(--navy); font-size: .98rem; }
.node span { font-size: .72rem; }
.node--amazon strong { color: #232f3e; font-weight: 700; }
.node--meli { background: #fff7b3; border-color: #ffe600; }
.node--meli strong { color: #2d3277; }
.sync__live { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-size: .8rem; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #28c840; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #28c840; animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* ---------- Pagos ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pay { padding: 32px 26px; background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .5s var(--ease); }
.pay:hover { transform: translateY(-5px); border-color: var(--champagne); }
.pay__ic { width: 40px; height: 40px; margin-bottom: 22px; fill: none; stroke: var(--champagne); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pay__oxxo { display: inline-grid; place-items: center; height: 40px; padding: 0 12px; margin-bottom: 22px; border-radius: 8px; background: var(--oxxo); color: var(--white); font-weight: 600; letter-spacing: .04em; }
.pay p { margin: 0; font-size: .92rem; }
.pay-more { margin: 26px 0 0; text-align: center; font-size: .95rem; }

/* ---------- Qué incluye ---------- */
.includes { background: var(--white); }
.inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.inc::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 1px; background: var(--line); }
.inc span { position: relative; display: grid; place-content: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 50%; border: 1px solid var(--champagne); background: var(--white); color: var(--champagne); font-size: .76rem; }
.inc h3 { font-size: 1.12rem; }
.inc p { margin: 0; font-size: .9rem; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .inc { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .inc::before { display: none; }
  .markets__grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 700px) {
  section { padding: 70px 0; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 64px 0 24px; }
  .plat-grid { grid-template-columns: 1fr; }
  .browser__bar { flex-wrap: wrap; gap: 10px; }
  .url { order: 3; flex-basis: 100%; max-width: none; }
  .device { display: none; }
  .browser__stage { height: 640px; }
}
@media (max-width: 520px) {
  .pay-grid, .inc { grid-template-columns: 1fr; }
  .sync { padding: 24px 14px 20px; }
  .sync__nodes { gap: 6px; }
  .node { padding: 12px 4px; }
  .node strong { font-size: .82rem; }
  .node span { font-size: .62rem; }
}
