/* Páginas de servicio, presupuesto y landings. Se carga después de styles.css. */

.nav__inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,251,252,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.wordmark svg { height: 30px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--body); font-weight: 600; font-size: 15px; }
.nav__link:hover { color: var(--orange); }
@media (max-width: 760px) { .nav__link { display: none; } .nav__links { gap: 12px; } .nav .btn { padding: 11px 16px; font-size: 14px; } }

.pg-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--light-accent) 0%, var(--bg) 100%); }
.pg-hero__inner { max-width: 860px; }
.pg-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.pg-crumbs a { color: var(--muted); }
.pg-crumbs a:hover { color: var(--orange); }
.pg-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 22px; }
.pg-hero__sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 62ch; margin-bottom: 32px; }
.pg-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pg-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.pg-section { padding: 72px 0; }
.pg-section--surface { background: var(--surface); }
.pg-section h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 16px; max-width: 26ch; }
.pg-lead { font-size: 18px; max-width: 64ch; margin-bottom: 36px; }
.pg-section p + p { margin-top: 14px; }

.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.pg-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.pg-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.01em; }
.pg-card p { font-size: 15.5px; }
.pg-card--accent { border-color: rgba(232,119,34,.4); box-shadow: var(--shadow-md); }
.pg-card__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.pg-card a { font-weight: 700; font-size: 15px; display: inline-block; margin-top: 12px; }

.pg-pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.pg-pains li { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; padding: 16px 20px; font-size: 16.5px; color: var(--heading); }

.pg-steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pg-steps li { counter-increment: paso; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.pg-steps li::before { content: counter(paso); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }
.pg-steps strong { display: block; color: var(--heading); font-size: 17px; margin-bottom: 6px; }

.pg-faq { max-width: 820px; }
.pg-faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.pg-faq summary { cursor: pointer; font-weight: 700; color: var(--heading); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
.pg-faq details[open] summary::after { content: "−"; }
.pg-faq details p { margin-top: 12px; max-width: 70ch; }

.pg-closer { background: var(--navy); color: rgba(255,255,255,.85); padding: 80px 0; text-align: center; }
.pg-closer h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; margin: 0 auto 16px; max-width: 22ch; }
.pg-closer p { max-width: 56ch; margin: 0 auto 30px; font-size: 18px; }
.pg-closer .pg-actions { justify-content: center; }
.pg-closer .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); }

.pg-related { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-related a { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--heading); }
.pg-related a:hover { border-color: var(--orange); color: var(--orange); }

.pg-footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 15px; }
.pg-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.pg-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pg-footer a { display: block; color: var(--body); margin-bottom: 8px; }
.pg-footer a:hover { color: var(--orange); }
.pg-footer__legal { margin-top: 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .pg-footer__cols { grid-template-columns: 1fr; } .pg-section { padding: 56px 0; } .pg-hero { padding: 48px 0 40px; } }

/* ── Formulario conversacional (presupuesto) ─────────────────── */
.qz { max-width: 680px; margin: 0 auto; padding: 56px 0 96px; }
.qz__progress { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 40px; }
.qz__bar { height: 100%; width: 0; background: var(--orange); transition: width .35s ease; }
.qz__step { display: none; }
.qz__step.is-active { display: block; animation: qzIn .3s ease; }
@keyframes qzIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qz__q { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 10px; }
.qz__hint { color: var(--muted); margin-bottom: 26px; }
.qz__opts { display: grid; gap: 10px; }
.qz__opt { text-align: left; font-family: inherit; font-size: 16.5px; background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 18px; cursor: pointer; color: var(--heading); transition: border-color .2s, background .2s; }
.qz__opt small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; font-weight: 400; }
.qz__opt:hover, .qz__opt:focus-visible { border-color: var(--orange); outline: none; }
.qz__opt.is-selected { border-color: var(--orange); background: var(--light-accent); }
.qz label { display: block; font-weight: 700; color: var(--heading); margin: 18px 0 6px; font-size: 15px; }
.qz label span { font-weight: 400; color: var(--muted); }
.qz input[type=text], .qz input[type=email], .qz input[type=tel], .qz textarea { width: 100%; font-family: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); color: var(--heading); }
.qz input:focus, .qz textarea:focus { border-color: var(--orange); outline: none; }
.qz textarea { min-height: 130px; resize: vertical; }
.qz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.qz__back { background: none; border: none; font-family: inherit; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 15px; padding: 8px 0; }
.qz__back:hover { color: var(--orange); }
.qz__error { color: #B42318; font-size: 14px; margin-top: 12px; min-height: 20px; }
.qz__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qz__done { text-align: center; }
.qz__done .qz__q { margin-bottom: 16px; }
.qz__done p { max-width: 50ch; margin: 0 auto 26px; }

/* ── Demo interactiva del catálogo (demo-catalogo.mjs) ────────── */
.demo { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
@media (min-width: 901px) { .demo__col:first-child { position: sticky; top: 96px; } }
.demo__step { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--heading); margin-bottom: 14px; font-size: 16px; }
.demo__step span { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.demo__sheet { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); font-size: 14px; }
.demo__sheet-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1E7145; color: var(--white); font-size: 12px; font-weight: 600; }
.demo__sheet-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); }
.demo__sheet-bar span { margin-left: 8px; }
.demo__row { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr; gap: 8px; padding: 11px 14px; border: 0; border-top: 1px solid var(--border); background: var(--white); width: 100%; text-align: left; font: inherit; color: var(--body); cursor: pointer; }
.demo__row:hover { background: var(--light-accent); }
.demo__row.is-active { background: var(--light-accent); box-shadow: inset 3px 0 0 var(--orange); color: var(--heading); font-weight: 600; }
.demo__row--head { cursor: default; background: var(--surface); font-weight: 700; color: var(--heading); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
.demo__row--head:hover { background: var(--surface); }
.demo__precio { font-variant-numeric: tabular-nums; border-radius: 4px; }
.demo__hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.demo__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.demo__actions .btn:disabled { opacity: .55; cursor: default; }
.demo__reset { background: none; border: 0; font: inherit; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.demo__status { min-height: 24px; margin-top: 12px; font-weight: 600; color: var(--heading); }
.demo__pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.piece { margin: 0; }
.piece__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; box-shadow: 0 1px 2px rgba(10,37,64,.08), 0 10px 28px rgba(10,37,64,.12); overflow: hidden; transition: transform .2s ease; }
.piece__zoom:hover { transform: translateY(-3px); }
.piece__zoom img { width: 100%; height: auto; display: block; }
.piece figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.piece figcaption strong { display: block; color: var(--heading); font-size: 14px; }
.demo__downloads { margin-top: 20px; font-size: 14px; }
.demo__downloads a { font-weight: 700; }
.is-flash { animation: demoFlash 1.1s ease; }
@keyframes demoFlash { 0% { box-shadow: 0 0 0 3px var(--orange); } 100% { box-shadow: 0 0 0 0 transparent; } }
.demo__zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.demo__zoom::backdrop { background: rgba(10,37,64,.75); }
.demo__zoom img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.demo__zoom-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); color: var(--heading); font-size: 24px; cursor: pointer; box-shadow: var(--shadow-sm); }
.demo__explain { list-style: none; counter-reset: ex; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo__explain li { counter-increment: ex; }
.demo__explain li::before { content: counter(ex); display: block; font-size: 36px; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.demo__explain strong { display: block; color: var(--heading); margin-bottom: 4px; }
.demo__note { margin-top: 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .demo__grid { grid-template-columns: 1fr; } .demo__explain { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .demo__row { grid-template-columns: 1.5fr 1fr; font-size: 13px; } .demo__row > :nth-child(2) { display: none; } .demo__pieces { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .is-flash { animation: none; } .piece__zoom { transition: none; } }

@media (min-width: 1000px) { .pg-steps--5 { grid-template-columns: repeat(5, 1fr); } }
.fotosia__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fotosia__strip img { width: 100%; height: auto; border-radius: 6px; display: block; }
.fotosia__trust { margin-top: 28px; padding: 18px 22px; background: var(--light-accent); border-radius: 10px; color: var(--heading); font-weight: 600; max-width: 760px; }
@media (max-width: 700px) { .fotosia__strip { grid-template-columns: 1fr 1fr; } }

/* ── Ejemplos de automatización, WhatsApp, WordPress y landing (demo-otros.mjs) ── */
.flow { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.flow::before { content: ""; position: absolute; top: 15px; left: 8px; right: 8px; height: 2px; background: var(--border); }
.flow__step { position: relative; padding: 40px 18px 0 0; opacity: .35; transition: opacity .5s ease; }
.flow__step::before { content: ""; position: absolute; top: 8px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); transition: all .4s ease; }
.flow__step.is-on { opacity: 1; }
.flow__step.is-on::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(232,119,34,.15); }
.flow__time { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.flow__step strong { display: block; color: var(--heading); font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.flow__step p { font-size: 14.5px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .flow__step { padding: 0 0 26px 36px; }
  .flow__step::before { top: 2px; }
}

.chatdemo { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.chatdemo__points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.chatdemo__points li { padding-left: 18px; border-left: 3px solid var(--orange); }
.chatdemo__points strong { display: block; color: var(--heading); }
.phone { border-radius: 34px; background: #111; padding: 10px; box-shadow: 0 30px 60px rgba(10,37,64,.22); }
.phone__bar { display: flex; align-items: center; gap: 10px; background: #075E54; color: #fff; padding: 14px 16px; border-radius: 26px 26px 0 0; }
.phone__bar strong { display: block; font-size: 15px; }
.phone__bar small { font-size: 12px; opacity: .8; }
.phone__avatar { width: 36px; height: 36px; border-radius: 50%; background: #2F3E2E; color: #F2EBDF; font-family: Georgia, serif; font-style: italic; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.phone__body { background: #ECE5DD; padding: 16px 12px 22px; border-radius: 0 0 26px 26px; min-height: 520px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 8px 10px 6px; border-radius: 8px; font-size: 14px; line-height: 1.4; color: #111; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.msg.is-on { opacity: 1; transform: none; }
.msg span { display: block; text-align: right; font-size: 10.5px; color: #667; margin-top: 2px; }
.msg--in { background: #fff; align-self: flex-start; border-top-left-radius: 0; }
.msg--out { background: #D9FDD3; align-self: flex-end; border-top-right-radius: 0; }
.msg--note { align-self: center; background: #FFF4D6; color: #6B5300; font-size: 12.5px; border-radius: 6px; text-align: center; max-width: 90%; }
@media (max-width: 900px) { .chatdemo { grid-template-columns: 1fr; gap: 32px; } .phone { max-width: 380px; margin: 0 auto; width: 100%; } }

.diag { border: 1px solid var(--border); border-radius: 14px; background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 980px; }
.diag__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.diag__url { font-weight: 700; color: var(--heading); font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.diag__badge { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.diag__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 22px; border-bottom: 1px solid var(--border); }
.diag__scores small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.diag__scores b { display: block; color: var(--heading); margin-top: 8px; }
.diag__bar { height: 8px; border-radius: 8px; background: #E9F5EC; overflow: hidden; }
.diag__bar i { display: block; height: 100%; background: #D64545; }
.diag__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 14px 22px; border-bottom: 1px solid var(--border); font-size: 15px; }
.diag__row:last-child { border-bottom: 0; }
.diag__row--head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.diag__bad::before { content: "✕"; color: #D64545; font-weight: 800; margin-right: 10px; }
.diag__good::before { content: "✓"; color: #1E7145; font-weight: 800; margin-right: 10px; }
@media (max-width: 700px) { .diag__scores, .diag__row { grid-template-columns: 1fr; gap: 6px; } .diag__row--head { display: none; } }

.landdemo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.landdemo__mock { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #FBF8F2; box-shadow: 0 20px 50px rgba(10,37,64,.12); }
.landdemo__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.landdemo__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.landdemo__bar span { margin-left: 8px; }
.landdemo__blk { position: relative; padding: 22px 26px; border-bottom: 1px dashed #DDD4C4; }
.pin { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(232,119,34,.18); }
.landdemo__blk--hero { background: #2F3E2E; color: #F2EBDF; padding: 34px 26px; }
.lt { font-family: Georgia, serif; font-size: 26px; line-height: 1.15; max-width: 16ch; margin-bottom: 10px; }
.ls { font-size: 14px; opacity: .85; max-width: 34ch; margin-bottom: 16px; }
.lb { display: inline-block; background: #A8673A; color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 4px; }
.landdemo__blk--proof { display: flex; gap: 18px; color: #A8673A; font-size: 15px; letter-spacing: 2px; }
.landdemo__blk--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-right: 54px; }
.landdemo__blk--grid i { height: 54px; background: #EDE5D7; border-radius: 4px; }
.landdemo__blk--cta { text-align: center; }
.landdemo__blk--metric { background: var(--navy); color: rgba(255,255,255,.85); font-size: 13px; font-family: ui-monospace, Menlo, monospace; border-bottom: 0; }
.landdemo__legend { margin: 0; padding: 0; list-style: none; counter-reset: lp; display: grid; gap: 18px; }
.landdemo__legend li { counter-increment: lp; position: relative; padding-left: 42px; }
.landdemo__legend li::before { content: counter(lp); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.landdemo__legend strong { display: block; color: var(--heading); margin-bottom: 2px; }
.landdemo__legend p { font-size: 15px; }
@media (max-width: 900px) { .landdemo { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .flow__step, .msg { transition: none; opacity: 1; transform: none; } }
