:root {
  --black: #000000;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f4f4f3;
  --surface: #ffffff;

  --ink: #111111;
  --ink-muted: #4c4c4c;
  --ink-faint: #767676;
  --ink-hover: #333333;

  --line: rgba(0, 0, 0, 0.13);
  --line-soft: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.55);

  --header-bg: rgba(255, 255, 255, 0.9);

  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1120px;
  --radius: 3px;
  --ease: cubic-bezier(0.65, 0, 0.2, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --bg-alt: #161616;
  --surface: #121212;

  --ink: #f5f5f5;
  --ink-muted: #b7b7b7;
  --ink-faint: #8c8c8c;
  --ink-hover: #d8d8d8;

  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.55);

  --header-bg: rgba(11, 11, 11, 0.85);

  color-scheme: dark;
}

@font-face { font-family: "Hanken Grotesk"; src: url("../fuentes/hanken-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fuentes/hanken-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fuentes/hanken-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fuentes/hanken-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fuentes/hanken-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--bg); }

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.4vw, 40px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.section-head { max-width: 640px; margin: 0 0 44px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-head h2 { letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; color: var(--ink-muted); font-size: 17px; }
.section-head--centro { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--centro p { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.22s var(--ease), background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary, .btn-dark { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn-dark:hover { background: var(--ink-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.25s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.logo span { color: var(--ink-faint); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-muted); transition: color 0.18s; }
.nav-links a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-desktop { display: flex; align-items: center; gap: 36px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.mobile-nav a { padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-nav a.btn { color: var(--bg); border-bottom: none; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; stroke: var(--ink); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.mobile-theme-toggle { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--line-soft); }
.mobile-theme-toggle svg { width: 17px; height: 17px; stroke: var(--ink); }
.mobile-theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .mobile-theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .mobile-theme-toggle .icon-moon { display: block; }
.mobile-nav.open { display: flex; }

.hero { padding: 96px 0 88px; text-align: center; }
.hero h1 { max-width: 18ch; margin: 0 auto; }
.hero-sub { max-width: 560px; margin: 20px auto 0; font-size: 18px; color: var(--ink-muted); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-link { font-size: 15px; color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color 0.18s, border-color 0.18s; }
.hero-link:hover { color: var(--ink); border-color: var(--ink); }
.hero-pie { margin-top: 26px; font-size: 14px; color: var(--ink-faint); }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { padding: 32px 28px; background: var(--bg); }
.service-icon { width: 32px; height: 32px; margin: 0 0 18px; }
.service-icon svg { width: 100%; height: 100%; stroke: var(--ink); }
.service-card p { color: var(--ink-muted); margin-top: 10px; font-size: 15px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { padding: 18px 0 0; border-top: 2px solid var(--ink); }
.step h3 { margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.step p { color: var(--ink-muted); font-size: 14.5px; }

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

.plan-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}
.plan-featured { border-color: var(--ink); background: var(--bg-alt); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 13px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.plan-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan-tagline { color: var(--ink-muted); font-size: 14.5px; line-height: 1.3; min-height: 36px; }

.plan-price { margin: 12px 0 6px; }
.plan-price .from { font-size: 13px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 2px; }
.plan-price .amount { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-price .curr { font-size: 15px; font-weight: 600; color: var(--ink-faint); }

.plan-note { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }

.plan-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 22px; text-align: left; flex-grow: 1; border-top: 1px solid var(--line-soft); }
.plan-list li { padding: 10px 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-muted); border-bottom: 1px solid var(--line-soft); }

.addon-toggle-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 40px; }
.addon-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 14.5px; font-weight: 700;
  transition: border-color .18s, background .18s, transform .18s;
}
.addon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.addon-switch { position: relative; flex-shrink: 0; width: 34px; height: 19px; border: 1.5px solid var(--line-strong); border-radius: 999px; transition: border-color .18s, background .18s; }
.addon-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-faint); transition: transform 0.2s var(--ease), background 0.18s; }
.addon-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.addon-btn[aria-pressed="true"] .addon-switch { border-color: var(--bg); background: var(--ink); }
.addon-btn[aria-pressed="true"] .addon-switch::after { transform: translateX(15px); background: var(--bg); }
.addon-btn-text em { display: block; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-faint); margin-top: 1px; }
.addon-btn[aria-pressed="true"] .addon-btn-text em { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plan-list li.addon-item { display: none !important; color: var(--ink) !important; font-weight: 600; }
#plansGridEmprendedor.tienda-active .plan-list li.addon-item--tienda { display: flex !important; }
#plansGridEmprendedor.cl-active .plan-list li.addon-item--cl { display: flex !important; }

.guarantee-badge { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 32px auto 0; padding: 16px 20px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.guarantee-badge p { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.guarantee-badge strong { color: var(--ink); }

.shopify-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-width: 980px; margin: 8px auto 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shopify-feature-info { padding: 40px 40px 36px; }
.shopify-feature-info h3 { font-size: 26px; margin: 8px 0 12px; }
.shopify-feature-lead { color: var(--ink-muted); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.shopify-feature-info .plan-list { margin-bottom: 14px; }
.plan-excludes { font-size: 11.5px; color: var(--ink-faint); line-height: 1.4; margin-bottom: 16px; }
.shopify-feature-price { padding: 40px 36px; background: var(--bg-alt); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.shopify-feature-price .plan-name { font-size: 16px; color: var(--ink-muted); margin-bottom: 14px; font-weight: 700; }
.shopify-feature-price .plan-price { margin: 0 0 6px; }
.shopify-feature-price .plan-note { margin-bottom: 22px; }
.plan-note--domain { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 5px 12px; margin-bottom: 24px; }

.demos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 900px; margin: 0 auto; }
.demo-card { background: var(--bg); overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.demo-card:hover .demo-thumb { filter: grayscale(1) contrast(1.05); }
.demo-thumb { aspect-ratio: 16/10; position: relative; background-size: cover; background-position: top center; background-color: var(--bg-alt); filter: grayscale(0.4); transition: filter 0.25s var(--ease); border-bottom: 1px solid var(--line-soft); }
.demo-thumb--bloque22 { background-image: url("../img/previews/bloque22.jpg"); }
.demo-thumb--voidline { background-image: url("../img/previews/voidline.jpg"); }
.demo-thumb--airstore { background-image: url("../img/previews/air-store.jpg"); }
.demo-body { padding: 15px 16px 17px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.demo-name { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 11px; }
.demo-body .btn { margin-top: auto; width: 100%; }

.faq-list { max-width: 760px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform 0.3s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.faq-q .plus::before { width: 100%; height: 2px; top: 10px; }
.faq-q .plus::after { width: 2px; height: 100%; left: 10px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--ink-muted); font-size: 15px; max-width: 640px; }

.footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 65%, transparent); padding: 56px 0 32px; text-align: center; }
.footer .logo { color: var(--bg); font-size: 18px; margin-bottom: 10px; }
.footer .logo span { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.footer-tag { font-size: 14px; color: color-mix(in srgb, var(--bg) 50%, transparent); margin-bottom: 30px; }
.footer-links { display: flex; justify-content: center; gap: 28px; list-style: none; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; color: color-mix(in srgb, var(--bg) 65%, transparent); transition: color 0.2s; }
.footer-links a:hover { color: var(--bg); }
.footer-whatsapp { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--bg); border-bottom: 1.5px solid color-mix(in srgb, var(--bg) 50%, transparent); padding-bottom: 3px; margin-bottom: 30px; transition: border-color 0.18s; }
.footer-whatsapp:hover { border-color: var(--bg); }
.footer-copy { font-size: 13px; color: color-mix(in srgb, var(--bg) 40%, transparent); border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); padding-top: 24px; }

.whatsapp-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35); z-index: 90; transition: transform 0.25s var(--ease); }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; fill: var(--bg); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .plans-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; row-gap: 34px; }
  .demos-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    background: none;
    border: none;
    max-width: 100%;
    padding-bottom: 6px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .demos-grid .demo-card { flex: 0 0 78%; scroll-snap-align: start; border: 1px solid var(--line); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .shopify-feature { grid-template-columns: minmax(0, 1fr); }
  .shopify-feature-price { border-left: none; border-top: 1px solid var(--line); }
  section { padding: 72px 0; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 64px; }
  .hero-actions { gap: 16px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .demos-grid { gap: 12px; }
  .demo-body { padding: 12px 12px 14px; }
  .demo-name { font-size: 13px; margin-bottom: 9px; }
  .demo-body .btn { padding: 9px 10px; font-size: 12.5px; width: 100%; }
  .addon-toggle-bar { flex-direction: column; align-items: stretch; }
  .addon-btn { justify-content: center; }
}
