/* ===== Tokens ===== */
:root {
  --violet: #7C3AED;
  --indigo: #5B6CF5;
  --ink: #1A1730;
  --ink-soft: #4B475F;
  --muted: #6E6A82;
  --line: #E9E6F2;
  --bg: #FFFFFF;
  --bg-alt: #F7F5FD;
  --wa: #25D366;
  --grad: linear-gradient(120deg, #7C3AED 0%, #5B6CF5 100%);
  --shadow-sm: 0 4px 14px rgba(40, 20, 90, 0.06);
  --shadow-md: 0 18px 40px rgba(40, 20, 90, 0.12);
  --shadow-lg: 0 30px 70px rgba(40, 20, 90, 0.18);
  --radius: 16px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav__brand { font-family: 'Poppins', system-ui, sans-serif; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.asterisk { font-size: .5em; vertical-align: super; -webkit-text-fill-color: var(--indigo); color: var(--indigo); margin-left: 1px; }
.cta .asterisk { -webkit-text-fill-color: #fff; color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(108, 60, 220, .28); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(108, 60, 220, .38); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #cfc8ec; background: #faf9ff; }
.btn--white { background: #fff; color: var(--violet); box-shadow: var(--shadow-md); }
.btn--white:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--icon {
  padding: 0; width: 42px; height: 42px; flex-shrink: 0; font-size: 17px;
  background: linear-gradient(135deg, #A7F3D0, #6EE7B7); border-color: transparent; color: #065F46;
}
.btn--icon:hover { background: linear-gradient(135deg, #6EE7B7, #34D399); border-color: transparent; color: #064E3B; }
.btn--icon i { margin: 0; }
/* Etiquetas de botón: versión corta solo en móvil */
.lbl-short { display: none; }

/* Tooltip / burbuja en hover */
.has-tip { position: relative; }
.has-tip::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #14112A; color: #fff; font-family: 'Inter'; font-size: 12px; font-weight: 600;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 60; box-shadow: var(--shadow-md);
  transition: opacity .15s ease, transform .15s ease;
}
.has-tip::before {
  content: ""; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #14112A;
  opacity: 0; pointer-events: none; z-index: 60; transition: opacity .15s ease;
}
.has-tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.has-tip:hover::before { opacity: 1; }

.pill {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--violet); background: #F1ECFE;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 12px;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);   /* sin backdrop-filter: evita repintados costosos al hacer scroll (Firefox) */
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand { display: flex; align-items: center; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--violet); }
.nav__login-mobile { display: none; }   /* solo visible en el menú móvil */
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero::before {
  content: ""; position: absolute; top: -260px; right: -180px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.16), transparent 62%);
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -.02em; font-weight: 800; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 30em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__bullets { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; list-style: none; }
.hero__bullets li { font-size: 14px; color: var(--muted); font-weight: 500; }

/* Phone mockup */
.hero__preview { position: relative; display: flex; justify-content: center; }
.phone {
  width: 320px; background: #fff; border-radius: 30px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden;
}

/* Etiqueta "Ejemplo" sobre los mockups */
.preview-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: var(--grad); color: #fff; font-family: 'Inter';
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(108, 60, 220, .3);
}
.preview-tag--dark { background: #14112A; box-shadow: 0 6px 16px rgba(20, 17, 42, .25); }
.preview-clickable { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.preview-clickable:hover { transform: translateY(-4px); box-shadow: 0 36px 80px rgba(40, 20, 90, .22); }
.preview-clickable:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.phone__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #F4F2FB; border-bottom: 1px solid var(--line);
}
.phone__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #d9d4ea; }
.phone__url { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.phone__screen { padding: 18px; background: #fff; }
.phone__screen--gif { padding: 0; }
.phone__gif { display: block; width: 100%; height: auto; }
.store__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.store__logo {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-family: 'Poppins'; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.store__head strong { display: block; font-size: 15px; }
.store__head small { color: var(--muted); font-size: 12px; }
.store__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prod { display: flex; flex-direction: column; }
.prod__img { height: 76px; border-radius: 12px; margin-bottom: 7px; }
.prod__img--a { background: linear-gradient(135deg, #C4B5FD, #818CF8); }
.prod__img--b { background: linear-gradient(135deg, #FBCFE8, #F9A8D4); }
.prod__img--c { background: linear-gradient(135deg, #FDE68A, #FCA5A5); }
.prod__img--d { background: linear-gradient(135deg, #A7F3D0, #6EE7B7); }
.prod__name { font-size: 12.5px; font-weight: 600; }
.prod__price { font-size: 12.5px; color: var(--violet); font-weight: 700; }
.store__buy {
  width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  font-family: 'Inter';
}

.float-card {
  position: absolute; background: #fff; border-radius: 14px;
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  animation: float 4s ease-in-out infinite;
  will-change: transform;   /* mantiene la tarjeta en su propia capa (animación fluida) */
}
.float-card--card { top: 30px; left: -8px; color: var(--ink); }
.float-card--wa { bottom: 44px; right: -10px; color: #128C4B; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ===== Trust ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; flex-wrap: wrap; }
.trust__inner > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.trust__logos { display: flex; gap: 30px; flex-wrap: wrap; }
.trust__logos span { font-family: 'Poppins'; font-weight: 700; color: #B7B1CC; font-size: 17px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section__head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 14px; }

/* Features cards */
/* Flexbox (en vez de grid) para que las tarjetas solas en una fila queden centradas */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cards > .card { flex: 0 0 calc((100% - 48px) / 3); }   /* 3 por fila en desktop */
/* Subtítulo de grupo que ocupa toda la fila */
.cards__head {
  flex: 0 0 100%;
  display: flex; align-items: center; gap: 11px;
  font-family: 'Poppins'; font-weight: 700; font-size: 1.15rem; color: var(--ink);
  margin: 30px 0 0;
}
.cards__head:first-child { margin-top: 0; }
.cards__head i { color: var(--violet); font-size: 1rem; flex-shrink: 0; }
.cards__head::after { content: ""; flex: 1; height: 1px; margin-left: 4px; background: var(--line); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: #F1ECFE;
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.card h4 { font-size: 1.12rem; margin-bottom: 8px; }
.card__opt {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-family: 'Inter'; font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--violet); background: #F1ECFE;
  padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.card p { color: var(--muted); font-size: .95rem; }

/* Payments */
.payments { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.payments h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); letter-spacing: -.02em; font-weight: 800; line-height: 1.15; }
.payments__copy > p { color: var(--ink-soft); font-size: 1.08rem; margin: 14px 0 28px; }
.pay-list { display: flex; flex-direction: column; gap: 18px; }
.pay { display: flex; gap: 16px; align-items: flex-start; }
.pay__badge {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pay__badge--card { background: #EEF0FF; }
.pay__badge--wa { background: #E4F8EC; }
.pay h3 { font-size: 1.05rem; margin-bottom: 3px; }
.pay p { color: var(--muted); font-size: .95rem; }
.payments__copy p.pay-note {
  margin-top: 18px; padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: .68rem; line-height: 1.45;
}
.pay-note strong { color: var(--ink-soft); font-weight: 700; }

/* Checkout visual */
.payments__visual { position: relative; display: flex; justify-content: center; }
.checkout {
  width: 340px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow-md);
}
.checkout__head { font-family: 'Poppins'; font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; }
.checkout__opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 14px; margin-bottom: 12px;
}
.checkout__opt--active { border-color: var(--violet); background: #FAF8FF; }
.checkout__opt .check { color: var(--violet); }
.checkout__field {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--muted); font-size: 14px; margin-bottom: 12px; letter-spacing: .04em;
}
.checkout__row { display: flex; gap: 12px; }
.checkout__field.sm { flex: 1; margin-bottom: 0; }
.checkout__divider { text-align: center; position: relative; margin: 18px 0; }
.checkout__divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.checkout__divider span { position: relative; background: #fff; padding: 0 12px; color: var(--muted); font-size: 13px; }
.checkout__wa {
  width: 100%; padding: 13px; border: 0; border-radius: 12px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: 'Inter';
}
.checkout__note { display: block; text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad);
  color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  position: relative;
}
.plan--featured { border-color: var(--violet); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__tag--soft { background: #F1ECFE; color: var(--violet); }
.plan__name { font-size: 1.2rem; }
.plan__price {
  font-family: 'Poppins'; font-weight: 800; font-size: 1.5rem; margin: 8px 0 4px;
  display: flex; align-items: baseline; flex-wrap: nowrap; gap: 4px; white-space: nowrap;
}
.plan__price span { font-size: .82rem; font-weight: 500; color: var(--muted); }
.plan__price .plan__iva {
  font-family: 'Inter'; font-size: .6rem; font-weight: 700; color: var(--violet);
  background: #F1ECFE; padding: 2px 6px; border-radius: 6px; align-self: center; white-space: nowrap;
}
.plan__total { color: var(--muted); font-size: .82rem; font-weight: 500; margin: 0 0 16px; }
.plan__desc { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.plan__example {
  display: inline-block; margin: 0 0 20px;
  font-size: .72rem; font-weight: 600; line-height: 1.45;
  color: #0E7490; background: #E0F7FA; border: 1px solid #B6E6EC;
  padding: 7px 10px; border-radius: 9px;
}
.plan__example i { margin-right: 5px; color: #0891B2; }
.plan__feat { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan__feat li { font-size: .95rem; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 760px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.acc summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; color: var(--violet); font-weight: 400; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { color: var(--muted); padding: 0 0 18px; }

/* Final CTA */
.cta { padding: 30px 0 90px; }
.cta__inner {
  background: var(--grad); border-radius: 28px; text-align: center;
  padding: 64px 32px; color: #fff; position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; top: -80px; left: -60px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); border-radius: 50%;
}
.cta__inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; position: relative; }
.cta__inner p { font-size: 1.1rem; margin: 14px auto 28px; max-width: 30em; opacity: .92; position: relative; }
.cta__inner .btn { position: relative; }

/* Footer */
.footer { background: #14112A; color: #C8C3DE; padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { margin-bottom: 14px; }
.footer__brand p { color: #908AAD; max-width: 22em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: #908AAD; font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer__cols a:hover { color: #fff; }
.footer__note { padding-top: 22px; }
.footer__note p { color: #908AAD; font-size: .82rem; line-height: 1.5; max-width: 70ch; }
.footer__note p + p { margin-top: 8px; }
.footer__note strong { color: #B7B1CC; font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; flex-wrap: wrap; gap: 14px; }
.footer__bottom span { color: #807A9C; font-size: .88rem; }
.footer__social { display: flex; gap: 20px; }
.footer__social a { color: #908AAD; font-size: .88rem; }
.footer__social a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  /* Tablet: el header muestra Demo + Crear mi tienda + Login (icono) */
  .nav__links { display: none; }
  .nav__cta { display: flex; gap: 8px; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 6px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { padding: 10px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__preview { order: 2; }
  .payments { grid-template-columns: 1fr; gap: 40px; }
  .cards > .card { flex-basis: calc((100% - 26px) / 2); }   /* 2 por fila en tablet */
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 600px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards > .card { flex-basis: 100%; }   /* 1 por fila en móvil */
  .plans { grid-template-columns: 1fr; max-width: 360px; }
  .trust__inner { justify-content: center; text-align: center; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 70px; }
  .section { padding: 64px 0; }
  /* Nav móvil: header solo con Demo + Crear mi tienda (login pasa al menú) */
  .nav__inner { gap: 8px; }
  .nav__brand img { height: 26px; }
  .nav__cta { gap: 8px; }
  .nav__cta .btn--icon { display: none; }   /* icono de login oculto en móvil */
  .nav__cta .btn { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
  .nav__burger { padding: 6px; }
  /* Etiquetas cortas en móvil: "Demo" y "Crear tienda" */
  .nav__cta .lbl-full { display: none; }
  .nav__cta .lbl-short { display: inline; }
  /* Login destacado como primer ítem del menú móvil */
  .nav__links.is-open .nav__login-mobile {
    display: flex; align-items: center; gap: 9px;
    background: linear-gradient(135deg, #A7F3D0, #6EE7B7);
    color: #065F46; font-weight: 700; font-size: 15px;
    padding: 12px 14px; border-radius: 10px; margin-bottom: 4px;
  }
}
@media (max-width: 360px) {
  .nav__cta .btn { padding: 7px 9px; font-size: 12px; }
  .nav__brand img { height: 24px; }
}

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay {
  position: absolute; inset: 0; background: rgba(20, 17, 42, .55);
  backdrop-filter: blur(3px); animation: fade .2s ease;
}
.modal__dialog {
  position: relative; z-index: 1; width: min(480px, calc(100% - 32px));
  margin: 6vh auto; background: #fff; border-radius: 22px;
  padding: 34px 32px 30px; box-shadow: var(--shadow-lg);
  max-height: 88vh; overflow-y: auto; animation: pop .22s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 16px; right: 18px; border: 0; background: none;
  font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 10px; transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--bg-alt); color: var(--ink); }
.modal__title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.modal__sub { color: var(--muted); margin: 6px 0 22px; font-size: .98rem; }

/* Form */
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform__row { display: flex; flex-direction: column; gap: 7px; }
.cform__row label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.cform__row input,
.cform__row select,
.cform__row textarea {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.cform__row textarea { resize: vertical; min-height: 64px; }
.cform__row input:focus,
.cform__row select:focus,
.cform__row textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
}
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__submit { margin-top: 4px; }
.cform__status { text-align: center; font-size: 14px; font-weight: 600; margin: 2px 0 0; min-height: 1px; }
.cform__status.is-ok { color: #128C4B; }
.cform__status.is-error { color: #D33A4B; }

@media (max-width: 480px) {
  .cform__grid { grid-template-columns: 1fr; }
  .modal__dialog { padding: 28px 22px 24px; margin: 4vh auto; }
}

/* ===== Demo modal (iframe) ===== */
.demo-modal { position: fixed; inset: 0; z-index: 110; display: none; }
.demo-modal.is-open { display: block; }
.demo-modal__overlay {
  position: absolute; inset: 0; background: rgba(20, 17, 42, .6);
  backdrop-filter: blur(3px); animation: fade .2s ease;
}
.demo-modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80vw; height: 100vh; height: 100dvh;     /* desktop: 80% ancho · alto completo */
  background: #fff; overflow: hidden; box-shadow: var(--shadow-lg);
  border-radius: 16px; display: flex; flex-direction: column;
  /* abre desde el centro y se expande */
  animation: demo-expand .34s cubic-bezier(.16, .84, .3, 1);
}
.demo-modal.is-open .demo-modal__overlay { animation: fade .34s ease; }
@keyframes demo-expand {
  from { transform: translate(-50%, -50%) scale(.35); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Barra superior con pestañas */
.demo-modal__bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px; background: #14112A;
}
.demo-modal__tabs { display: flex; gap: 8px; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter'; font-size: 14px; font-weight: 600;
  color: #C8C3DE; background: transparent; border: 0; cursor: pointer;
  padding: 9px 16px; border-radius: 10px; transition: background .15s, color .15s;
}
.demo-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.demo-tab.is-active { color: #fff; background: var(--grad); }

/* Cuerpo (iframe o panel) */
.demo-modal__body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.demo-modal__frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.demo-modal__frame[hidden] { display: none; }
.demo-modal__admin { width: 100%; height: 100%; overflow: auto; background: var(--bg-alt); }
.demo-modal__admin[hidden] { display: none; }
.demo-modal__admin img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* Spinner de carga */
.demo-modal__loader {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 600;
  transition: opacity .35s ease;
}
.demo-modal__loader.is-hidden { opacity: 0; pointer-events: none; }
.demo-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--violet);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-modal__close {
  flex-shrink: 0; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.demo-modal__close:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 768px) {
  .demo-modal__dialog { width: 100vw; height: 100vh; height: 100dvh; }   /* móvil: 100% × 100% */
  .demo-tab { font-size: 13px; padding: 8px 12px; }
}

/* ===== WhatsApp flotante ===== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-float__btn {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* Anillo de pulso: animación de transform/opacity (compuesta en GPU, sin repintados) */
.wa-float__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1;
  animation: wa-ring 2.6s ease-out infinite;
}
.wa-float__btn:hover { transform: scale(1.06); box-shadow: 0 14px 32px rgba(37, 211, 102, .55); }
@keyframes wa-ring {
  0%   { transform: scale(1); opacity: .45; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}

.wa-bubble {
  width: 300px; max-width: calc(100vw - 44px);
  background: #fff; border-radius: 18px; padding: 18px 18px 20px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  position: relative; animation: pop .2s ease;
}
.wa-bubble[hidden] { display: none; }
.wa-bubble::after {
  content: ""; position: absolute; bottom: -8px; right: 24px; width: 16px; height: 16px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.wa-bubble__close {
  position: absolute; top: 8px; right: 10px; border: 0; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); width: 26px; height: 26px; border-radius: 8px;
}
.wa-bubble__close:hover { background: var(--bg-alt); color: var(--ink); }
.wa-bubble__head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.wa-bubble__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #25D366; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wa-bubble__head strong { display: block; font-size: 14px; color: var(--ink); }
.wa-bubble__head small { color: var(--muted); font-size: 12px; }
.wa-bubble__msg { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
.wa-bubble__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px; border-radius: 12px; transition: background .15s;
}
.wa-bubble__cta::before { content: "💬"; }
.wa-bubble__cta:hover { background: #1ebe5a; }

@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__btn { width: 54px; height: 54px; }
}

/* ===== Página legal (Términos) ===== */
.legal { padding: 56px 0 80px; background: var(--bg); }
.legal__inner { max-width: 820px; }
.legal__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 10px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.legal__intro {
  margin-top: 24px; padding: 18px 20px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink-soft); font-size: 1rem; line-height: 1.7;
}
.legal h2 {
  font-family: 'Poppins'; font-size: 1.3rem; font-weight: 700; color: var(--ink);
  margin: 38px 0 12px; letter-spacing: -.01em;
}
.legal p { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--violet); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal__back { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.legal__back a { color: #fff; }
.legal__back a.btn--ghost { color: var(--ink); }

@media (max-width: 560px) {
  .legal { padding: 36px 0 56px; }
}

/* ===== Iconos Font Awesome ===== */
.card__icon i { color: var(--violet); font-size: 23px; line-height: 1; }
.pill i { margin-right: 3px; }
.pay__badge i { font-size: 20px; }
.pay__badge--card i { color: var(--indigo); }
.pay__badge--wa i { color: #25D366; }
.float-card i { margin-right: 4px; }
.float-card--card i { color: #16A34A; }
.checkout__opt span i { margin-right: 6px; }
.checkout__wa i { margin-right: 4px; }
.wa-float__btn i { font-size: 28px; line-height: 1; }
.wa-bubble__avatar i { font-size: 20px; line-height: 1; }
.hero__bullets li i { color: #16A34A; margin-right: 6px; }
.plan__feat li i { color: #16A34A; margin-right: 7px; }

/* ===== Modal de promoción de lanzamiento ===== */
.promo-modal { position: fixed; inset: 0; z-index: 120; display: none; }
.promo-modal.is-open { display: block; }
.promo-modal__overlay {
  position: absolute; inset: 0; background: rgba(20, 17, 42, .6);
  backdrop-filter: blur(3px); animation: fade .25s ease;
}
.promo-modal__dialog {
  position: relative; z-index: 1; width: min(520px, calc(100% - 32px));
  margin: 6vh auto; background: #fff; border-radius: 22px;
  padding: 34px 30px 26px; box-shadow: var(--shadow-lg);
  max-height: 88vh; overflow-y: auto; text-align: center;
  animation: promo-pop .3s cubic-bezier(.16, .84, .3, 1);
}
@keyframes promo-pop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.promo-modal__close {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 10px; transition: background .15s, color .15s;
}
.promo-modal__close:hover { background: var(--bg-alt); color: var(--ink); }
.promo-modal__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.promo-modal__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.promo-modal__sub { color: var(--ink-soft); font-size: 1rem; margin: 10px auto 22px; max-width: 34em; }
.promo-modal__sub strong { color: var(--ink); }

.promo-offers { display: grid; gap: 14px; margin-bottom: 22px; }
.promo-offer {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  background: var(--bg-alt); text-align: left;
}
.promo-offer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.promo-offer__plan { font-family: 'Poppins'; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.promo-offer__deal {
  font-size: 12px; font-weight: 700; color: var(--violet); background: #F1ECFE;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.promo-offer__deal--free { color: #047857; background: #D1FAE5; }
.promo-offer__desc { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-bottom: 12px; }

/* Cupón */
.coupon {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2px dashed var(--violet); background: #fff;
  border-radius: 12px; padding: 9px 9px 9px 14px;
}
.coupon--free { border-color: #34D399; }
.coupon__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: 15px; letter-spacing: .09em; color: var(--violet);
  overflow: hidden; text-overflow: ellipsis;
}
.coupon--free .coupon__code { color: #047857; }
.coupon__copy {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-family: 'Inter'; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--violet); border: 0; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; transition: background .15s, transform .1s;
}
.coupon--free .coupon__copy { background: #059669; }
.coupon__copy:hover { transform: translateY(-1px); filter: brightness(1.08); }
.coupon__copy.is-copied { background: #047857; }

.promo-modal__cta { margin-bottom: 10px; }
.promo-modal__note { color: var(--muted); font-size: 12px; }

@media (max-width: 480px) {
  .promo-modal__dialog { padding: 30px 20px 22px; margin: 4vh auto; }
  .promo-modal__title { font-size: 1.5rem; }
  .coupon__code { font-size: 13.5px; letter-spacing: .06em; }
}

/* ===== Panel de promoción sobre los planes ===== */
.promo-panel {
  max-width: 820px; margin: -22px auto 34px;
  background: #fff; border: 1px solid #E1DBF4; border-radius: 20px;
  padding: 24px 24px 20px; box-shadow: var(--shadow-md); text-align: center;
}
.promo-panel__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 12px;
}
.promo-panel__title {
  font-family: 'Poppins'; font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--ink);
}
.promo-panel__sub { color: var(--ink-soft); font-size: .95rem; margin: 8px auto 20px; max-width: 40em; }
.promo-panel__sub strong { color: var(--ink); }
.promo-offers--row { grid-template-columns: 1fr 1fr; }
.promo-panel__note { color: var(--muted); font-size: 12px; margin-top: 16px; }

@media (max-width: 700px) {
  .promo-offers--row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .promo-panel { margin: -14px auto 26px; padding: 20px 16px 16px; }
  .promo-panel__title { font-size: 1.25rem; }
}

/* ===== Accesibilidad / rendimiento: respetar reduce-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .float-card, .wa-float__btn::before, .demo-spinner {
    animation: none !important;
  }
  * { scroll-behavior: auto !important; }
}

/* ===== Tabla comparativa ===== */
.compare {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.compare__table { width: 100%; min-width: 680px; border-collapse: collapse; }
.compare__table th, .compare__table td {
  padding: 18px 16px; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }
/* Primera columna (nombres de características) alineada a la izquierda */
.compare__rowhead { text-align: left; font-family: 'Inter'; }
thead .compare__rowhead { font-family: 'Poppins'; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
tbody .compare__rowhead { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
/* Encabezados de plataforma */
.compare__logo { display: flex; align-items: center; justify-content: center; height: 42px; }
.compare__logo img { height: 40px; width: auto; border-radius: 10px; }
.compare__logo i { font-size: 32px; color: var(--ink); }
.compare__logo .fa-shopify { color: #95BF47; }
.compare__logo .fa-wordpress { color: #21759B; }
.compare__name { display: block; margin-top: 7px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.compare__col--tienly .compare__name { color: var(--violet); }
/* Columna Tienly resaltada */
.compare__col--tienly, .compare__cell--tienly { background: #F3F0FE; }
thead .compare__col--tienly { border-top-left-radius: 14px; border-top-right-radius: 14px; }
/* Marcas ✓ / ✗ */
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-size: 14px;
}
.mark--yes { background: #D1FAE5; color: #059669; }
.mark--no { background: #FEE2E2; color: #EF4444; }

@media (max-width: 560px) {
  .compare__table th, .compare__table td { padding: 14px 12px; }
}

/* ============================================================
   BLOG  (/blogs, /blogs/slug)
   ============================================================ */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0 8px;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 20px 22px 24px; }
.blog-card__meta { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.blog-card__meta i { color: var(--violet); margin-right: 4px; }
.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}
.blog-card__excerpt { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; margin: 0 0 14px; }
.blog-card__more { font-weight: 600; color: var(--violet); font-size: .9rem; }
.blog-card__more i { margin-left: 4px; transition: transform .18s ease; }
.blog-card:hover .blog-card__more i { transform: translateX(4px); }
.blog-empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* Artículo individual: hereda el layout .legal y da formato al contenido del editor */
.blog-post__cover { margin: 24px 0; }
.blog-post__cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.blog-post__content { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.blog-post__content h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  font-size: 1.5rem;
  margin: 34px 0 12px;
}
.blog-post__content h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  font-size: 1.2rem;
  margin: 26px 0 10px;
}
.blog-post__content p { margin: 0 0 18px; }
.blog-post__content ul, .blog-post__content ol { margin: 0 0 18px; padding-left: 22px; }
.blog-post__content li { margin-bottom: 8px; }
.blog-post__content a { color: var(--violet); text-decoration: underline; }
.blog-post__content img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.blog-post__content blockquote {
  border-left: 3px solid var(--violet);
  padding-left: 16px;
  margin: 18px 0;
  color: var(--muted);
  font-style: italic;
}
.blog-post__content figure { margin: 18px 0; }
.blog-post__content table { border-collapse: collapse; width: 100%; margin: 18px 0; }
.blog-post__content th, .blog-post__content td { border: 1px solid var(--line); padding: 10px 12px; }

.blog-latest__more { text-align: center; margin-top: 34px; }
