/* Section styles. Everything here is the final, fully visible state; motion.js only
   moves things when html[data-motion="on"]. Colors come from tokens.css. */
.sprite { position: absolute; }
svg use { pointer-events: none; }
.band { padding: clamp(64px, 9vw, 128px) 0; }
.band-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; max-width: 58ch; }
.section-head.center, .center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 .9rem/1 var(--font-display); vertical-align: 2px; }
.only-dark, [data-theme="dark"] .only-light { display: none; }
[data-theme="dark"] .only-dark { display: block; }
p.center { margin-top: clamp(36px, 5vw, 56px); }

/* Hero product shot: the real builder, tilted in 3D. */
.hero-stage { perspective: 1600px; }
.stage-screen { position: absolute; inset: 6% -18% auto 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg); transform-origin: left center; }
.laptop-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.laptop-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.laptop-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .78rem; }
.stage-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 700 .95rem/1.2 var(--font-display); color: var(--ink); white-space: nowrap; }
.stage-chip svg { width: 22px; height: 22px; flex: none; }
.chip-wa { left: -4%; bottom: 14%; }
.chip-wa svg { color: var(--whatsapp); }
.chip-pub { right: 2%; top: 0; }
.chip-pub svg { color: var(--accent); }
@media (max-width: 860px) {
  .hero-stage { perspective: none; padding-top: 8px; }
  .stage-screen { position: relative; inset: auto; transform: none; }
  .chip-wa { left: 10px; bottom: -18px; }
  .chip-pub { right: 10px; top: -8px; }
  .stage-chip { padding: 9px 13px; font-size: .82rem; }
}

/* Google → site → WhatsApp */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); counter-reset: flow; }
.flow h3 { margin: 22px 0 8px; }
.flow p { color: var(--ink-soft); }
.flow-shot { position: relative; height: 250px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.flow-shot b { color: var(--ink); }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .95rem; }
.search-bar svg { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.search-result { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.search-result.is-top { border-color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.search-result span { color: var(--accent); font-size: .82rem; }
.search-result small { color: var(--ink-soft); font-size: .84rem; }
.search-result i { display: block; height: 9px; border-radius: 6px; background: var(--line); }
.search-result i + i { width: 60%; margin-top: 6px; }
.mini-site { display: grid; gap: 6px; margin: auto; width: min(230px, 100%); padding: 12px 12px 14px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); text-align: left; }
.mini-photo, .example-photo { width: 100%; object-fit: cover; background-color: var(--line); }
.mini-photo { height: 96px; border-radius: 12px; }
.mini-site small { color: var(--ink-soft); font-size: .8rem; }
.mini-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 9px 12px; border-radius: 999px; background: #0e7a3f; color: #fff; font: 700 .85rem/1 var(--font-display); }
.mini-wa svg { width: 16px; height: 16px; }
.shot-chat { background: color-mix(in srgb, var(--whatsapp) 9%, var(--surface)); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.avatar, .logo-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #b45309; color: #fff; font: 800 .9rem/1 var(--font-display); flex: none; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.4; }
.bubble.in { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #0e7a3f; color: #fff; border-top-right-radius: 4px; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* The assembling site */
.arma-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.arma-copy .lead { margin-top: 18px; }
.assemble-labels { display: grid; gap: 4px; margin: 30px 0 34px; }
.assemble-labels li { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 22px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.assemble-labels li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--line); }
.assemble-labels b { font: 700 1.05rem/1.3 var(--font-display); }
.assemble-labels span { color: var(--ink-soft); font-size: .98rem; }
.assemble-labels li.is-on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.assemble-labels li.is-on::before { background: var(--brand-text); }
.assemble { perspective: 1400px; display: grid; place-items: center; min-height: 600px; }
.phone { width: min(310px, 82vw); padding: 12px; border-radius: 44px; background: #0b0d11; box-shadow: var(--shadow), inset 0 0 0 2px #2a2f3a; transform-style: preserve-3d; }
.phone-screen { display: grid; gap: 10px; padding: 16px 12px 18px; border-radius: 34px; background: #fbfaf7; color: #1c1917; min-height: 540px; align-content: start; transform-style: preserve-3d; }
.piece { border-radius: 14px; will-change: transform, opacity; }
.piece b { font: 700 .95rem/1.25 var(--font-display); color: #1c1917; }
.piece[data-piece="logo"] { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.piece[data-piece="logo"] svg { width: 22px; height: 22px; margin-left: auto; color: #57534e; }
.piece[data-piece="foto"] img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; }
.piece[data-piece="catalogo"] { display: grid; gap: 6px; }
.piece[data-piece="catalogo"] span { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e7e5e4; }
.piece[data-piece="catalogo"] i { font: 700 .9rem/1 var(--font-display); font-style: normal; color: #b45309; }
.piece[data-piece="mapa"] { display: flex; align-items: center; gap: 10px; padding: 12px; background: #eef2ff; }
.piece[data-piece="mapa"] svg { width: 26px; height: 26px; color: #0a55d4; flex: none; }
.piece[data-piece="mapa"] span { display: grid; gap: 2px; }
.piece[data-piece="mapa"] i { font-style: normal; font-size: .8rem; color: #166534; }
.piece[data-piece="whatsapp"] { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 999px; background: #0e7a3f; color: #fff; font: 700 1rem/1 var(--font-display); }
.piece[data-piece="whatsapp"] svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .arma-grid { grid-template-columns: minmax(0, 1fr); }
  .assemble { min-height: 0; order: -1; }
}

/* Real screens */
.devices { margin-bottom: clamp(36px, 5vw, 64px); }
.laptop { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.laptop img { width: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.step img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
.step h3 { margin: 20px 0 8px; }
.step p { color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.examples article { display: flex; flex-direction: column; padding: 14px 14px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.examples article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.example-site { display: grid; gap: 4px; padding: 10px 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.example-photo { height: 150px; border-radius: 10px; margin-bottom: 8px; }
.example-site b { font: 700 1rem/1.25 var(--font-display); }
.example-site small { color: var(--ink-soft); font-size: .84rem; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); font: 700 .72rem/1.4 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.examples h3 { margin: 12px 0 6px; }
.examples p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 14px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 0; font: 700 .98rem/1.2 var(--font-display); color: var(--brand-text); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-link svg { width: 16px; height: 16px; }
@media (max-width: 980px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .examples { grid-template-columns: minmax(0, 1fr); } }

/* Trust */
.datos-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.datos-grid .lead { margin-top: 18px; }
.trust { display: grid; gap: 14px; }
.trust li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trust svg { width: 30px; height: 30px; color: var(--brand-text); flex: none; margin-top: 2px; }
.trust h3 { font-size: 1.1rem; margin-bottom: 6px; }
.trust p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .datos-grid { grid-template-columns: minmax(0, 1fr); } }

/* Prices */
.price-shout { font-size: clamp(2.6rem, 9vw, 6.4rem); letter-spacing: -.045em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan[data-recommended] { border: 2px solid var(--brand-text); box-shadow: var(--shadow); }
.badge { position: absolute; top: -14px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 700 .76rem/1.4 var(--font-display); letter-spacing: .03em; }
.price { display: grid; gap: 2px; }
.price b { font: 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--font-display); letter-spacing: -.04em; }
.price span, .plan-note { color: var(--ink-soft); }
.plan-note { font-size: .96rem; margin-bottom: 8px; }
.plan .btn-primary { margin-top: auto; width: 100%; padding-inline: 14px; text-align: center; }
.pay-note { margin: 22px auto 0; text-align: center; color: var(--ink-soft); }
.table-scroll { margin-top: clamp(36px, 5vw, 56px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare caption { padding: 20px 22px; text-align: left; font: 800 1.2rem/1.2 var(--font-display); border-bottom: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 700 .82rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.compare th:first-child { text-align: left; font-weight: 500; padding-left: 22px; }
.compare tbody th small { display: block; color: var(--ink-soft); font-size: .82rem; overflow-wrap: anywhere; }
.compare td:last-child, .compare thead th:last-child { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.yes, .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0; }
.yes { background: var(--accent); }
.no { background: var(--bg-alt); border: 1px solid var(--line); }
.yes::before, .no::before { content: ""; display: block; }
.yes::before { width: 11px; height: 6px; border-left: 2.5px solid var(--surface); border-bottom: 2.5px solid var(--surface); transform: rotate(-45deg) translate(1px, -1px); }
.no::before { width: 10px; height: 2px; border-radius: 2px; background: var(--ink-soft); }
.fine { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: .88rem; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); gap: 26px; } .plan[data-recommended] { order: -1; } }
@media (max-width: 480px) {
  .compare th, .compare td { padding: 12px 6px; }
  .compare th:first-child { padding-left: 12px; }
  .compare { font-size: .92rem; table-layout: fixed; }
  .compare th:first-child { width: 52%; }
  .compare thead th { font-size: .7rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .compare caption { padding: 16px 12px; }
}

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; cursor: pointer; list-style: none; font: 700 1.12rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 4px 24px; color: var(--ink-soft); max-width: 68ch; }

/* Closing */
.closing { padding: clamp(72px, 10vw, 140px) 0; text-align: center; background: #0b1630; color: #f3f4f6; }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.closing .lead { margin: 20px auto 30px; color: #c3cad8; }
.closing-note { margin-top: 20px; color: #c3cad8; font-size: .95rem; }
.step:nth-child(2) img { object-position: center; }
.step:nth-child(3) img { object-position: right top; }

/* Motion support: 3D context for the assembling site, and no sideways overflow while pieces float. */
#arma { overflow: hidden; }
html[data-motion="on"] .phone { transform-style: preserve-3d; }
html[data-motion="on"] .piece { backface-visibility: hidden; }

/* Example cards: open the example, or start a site from it. */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: auto; }
.card-actions .card-link { margin-top: 0; }
.card-link-primary { padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.card-link-primary:hover { text-decoration: none; border-color: var(--brand-text); }
