@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --deep: #1e3a8a;
  --blue: #2563eb;
  --mist: #eff4ff;
  --white: #ffffff;
  --muted: #475569;
  --muted-dark: #a9b6cd;
  --focus: #1d4ed8;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #93c5fd; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: relative; z-index: 2; padding: 1.1rem 0; }
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.brand b { color: var(--blue); font-weight: 700; }
.site-nav { display: flex; gap: clamp(.9rem, 3vw, 1.8rem); }
.site-nav a { text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--blue); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero .wrap { position: relative; z-index: 1; padding: calc(clamp(3rem, 9vw, 7rem) + 3.5rem) 0 clamp(4rem, 11vw, 8.5rem); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; max-width: 14em; }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 33rem; margin: 1.6rem 0 2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-mark {
  position: absolute; z-index: 0; right: -7%; top: 50%; transform: translateY(-50%);
  height: min(118%, 800px); width: auto; pointer-events: none;
}
.hero-mark .arc-top, .hero-mark .tip-top { color: #cddcff; }
.hero-mark .arc-bot, .hero-mark .tip-bot { color: #b3caff; }
.hero-mark .arc { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) backwards; }
.hero-mark .arc-top { animation-delay: .15s; }
.hero-mark .arc-bot { animation-delay: .6s; }
.hero-mark .tip { transform-box: fill-box; transform-origin: center; animation: pop .4s ease-out backwards; }
.hero-mark .tip-top { animation-delay: 1.2s; }
.hero-mark .tip-bot { animation-delay: 1.65s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark .arc, .hero-mark .tip { animation: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 1rem var(--text); text-decoration: none;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn svg { width: 1.05em; height: 1.05em; }

/* Product bands */
.band { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: 0; }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.product-id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.product-id img { width: 64px; height: 64px; border-radius: 16px; }
.product-id h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
.product .lead { font-size: 1.25rem; max-width: 34rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; max-width: 34rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem;
  background: var(--blue); border-radius: 2px;
}
.note { font-size: .95rem; color: var(--muted); margin: 1rem 0 0; max-width: 34rem; }

.finzo { background: var(--white); }
.talleros { background: var(--ink); color: var(--white); }
.talleros .lead { color: #dbe5f7; }
.talleros .ticks li::before { background: #60a5fa; }
.talleros .note { color: var(--muted-dark); }
.talleros .product-mock { order: -1; }
.tos-mark {
  width: 64px; height: 64px; border-radius: 16px; background: #1d4ed8; color: #fff;
  display: grid; place-items: center; font: 700 1.9rem var(--display); letter-spacing: -0.04em;
}

.product-mock { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.mock-caption { font-size: .85rem; color: var(--muted); margin: 0; }
.talleros .mock-caption { color: var(--muted-dark); }

/* Phone illustration */
.phone {
  width: min(100%, 300px); aspect-ratio: 9 / 18.4; border: 9px solid var(--ink); border-radius: 40px;
  background: var(--mist); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 34px 60px -26px rgba(30, 58, 138, .5);
}
.phone-head { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 1.5rem 1.1rem 1.5rem; }
.phone-head small { display: block; font-size: .72rem; opacity: .85; }
.phone-head strong { display: block; font: 700 1.9rem var(--display); letter-spacing: -0.03em; margin-top: .15rem; }
.chips { display: flex; gap: .4rem; margin-top: .8rem; }
.chip { font-size: .62rem; padding: .22rem .6rem; border-radius: 999px; background: rgba(255,255,255,.18); }
.chip.on { background: #fff; color: #1e3a8a; font-weight: 600; }
.phone-body { flex: 1; padding: .8rem; display: grid; gap: .6rem; align-content: start; }
.phone-card { background: #fff; border-radius: 20px; padding: .75rem .9rem; box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .45); }
.phone-card h4 { margin: 0 0 .45rem; font: 600 .7rem var(--text); color: var(--muted); }
.tx { display: flex; justify-content: space-between; font-size: .74rem; padding: .22rem 0; }
.tx.in b { color: #15803d; }
.tx.out b { color: #b91c1c; }
.bars { display: flex; align-items: flex-end; gap: .4rem; height: 3.1rem; }
.bar { flex: 1; background: #bfd3ff; border-radius: 5px 5px 2px 2px; }
.bar.cur { background: var(--blue); }
.b1 { height: 55%; } .b2 { height: 80%; } .b3 { height: 45%; } .b4 { height: 70%; } .b5 { height: 60%; } .b6 { height: 92%; }
.cat { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; gap: .5rem; font-size: .7rem; padding: .18rem 0; }
.meter { display: block; height: .45rem; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--w), #dbe7ff var(--w)); }
.m1 { --w: 78%; } .m2 { --w: 46%; } .m3 { --w: 22%; }
.phone-nav { display: flex; gap: .2rem; padding: .5rem .45rem .6rem; background: #fff; }
.phone-nav span { flex: 1; text-align: center; font-size: .56rem; padding: .38rem .1rem; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.phone-nav .on { background: var(--blue); color: #fff; font-weight: 600; }

/* Estimate illustration */
.ticket { width: min(100%, 390px); background: #fff; color: var(--ink); border-radius: 20px; padding: 1.4rem; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .7); }
.ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.ticket h3 { font-size: 1.25rem; }
.badge { font-size: .72rem; font-weight: 600; background: #fef3c7; color: #78350f; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.ticket .veh { font-size: .9rem; color: var(--muted); margin: .25rem 0 1rem; }
.lines { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lines td { padding: .5rem 0; border-bottom: 1px solid #e2e8f0; }
.lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: .8rem; }
.lines tr.sum td { border-bottom: 0; color: var(--muted); padding: .3rem 0; }
.lines tr.total td { border-bottom: 0; font-weight: 700; font-size: 1.05rem; padding-top: .7rem; }
.sign { margin-top: 1rem; text-align: center; background: var(--blue); color: #fff; font-weight: 600; padding: .65rem; border-radius: 12px; font-size: .92rem; }

/* Studio */
.studio { background: var(--mist); }
.studio .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 5rem); }
.studio h2 { font-size: clamp(2rem, 4vw, 3rem); }
.studio-list { display: grid; gap: 2rem; }
.studio-list h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.studio-list p { margin: 0; color: var(--muted); max-width: 36rem; }

/* Contact */
.contact { background: var(--deep); color: #fff; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.contact p { max-width: 34rem; color: #dbe7ff; }
.mail { display: inline-block; font: 600 clamp(1.4rem, 4.6vw, 2.5rem) var(--display); letter-spacing: -0.02em; text-underline-offset: .2em; text-decoration-thickness: 2px; word-break: break-word; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 1.6rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.site-footer a { color: #fff; }

/* Legal page */
.legal { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .7rem; }
.legal p, .legal li { max-width: 40rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin: 0 0 1em; }
.legal .meta { color: var(--muted); }
.legal a { color: var(--blue); text-underline-offset: .15em; }
.pendiente { background: #fef3c7; color: #78350f; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }

@media (max-width: 860px) {
  .product, .studio .wrap { grid-template-columns: minmax(0, 1fr); }
  .talleros .product-mock { order: 0; }
  .hero-mark { right: -22%; height: 100%; opacity: .75; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.25rem; }
  .site-nav { gap: .9rem; }
}

/* Product pages */
.site-header.tint { background: var(--mist); }
.site-nav a[aria-current="page"] { border-color: var(--blue); }
.page-hero { background: var(--mist); }
.page-hero .wrap { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.page-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 16em; }
.page-hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 36rem; margin: 1.4rem 0 1.8rem; color: var(--muted); }
.page-hero .product-id { margin: 2rem 0 1.2rem; }
.page-hero .note { margin-top: 1rem; }
.crumbs { font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.kicker { margin: 0; font-weight: 600; color: var(--deep); }
.detail { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.detail.alt { background: var(--mist); }
.detail .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.detail h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 12em; }
.items { display: grid; gap: 1.9rem; }
.items h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.items p { margin: 0 0 .8em; color: var(--muted); max-width: 38rem; }
.items p:last-child { margin-bottom: 0; }
.items a { color: var(--blue); text-underline-offset: .15em; }
.hero-actions + .note { margin-top: 1rem; }
@media (max-width: 860px) {
  .detail .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Webs para negocios */
.big { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
.webs { background: var(--white); }
.webs .kicker { margin-bottom: .6rem; }
.webs .lead { margin-top: 1rem; }
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; max-width: 34rem; }
.steps li { counter-increment: paso; position: relative; padding-left: 2.6rem; color: var(--muted); }
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(paso); position: absolute; left: 0; top: .05em; width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--deep);
  font: 700 .95rem var(--display);
}

.mockweb { position: relative; width: min(100%, 480px); padding: 2.6rem 0 3.4rem; }
.mw-search {
  position: absolute; z-index: 3; top: 0; left: 4%; display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid #d6e2fb; border-radius: 999px; padding: .55rem 1.1rem .55rem .9rem;
  font-size: .88rem; color: var(--muted); box-shadow: 0 14px 28px -14px rgba(30, 58, 138, .45);
}
.mw-search svg { width: 1.05rem; height: 1.05rem; color: var(--blue); flex: none; }

.browser { position: relative; width: 100%; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #d6e2fb; box-shadow: 0 34px 60px -26px rgba(30, 58, 138, .5); }
.browser-bar { display: flex; align-items: center; gap: .35rem; padding: .6rem .8rem; background: #e8effc; }
.browser-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #b3c4e6; }
.browser-bar span { margin-left: .6rem; flex: 1; background: #fff; border-radius: 99px; padding: .15rem .8rem; font-size: .75rem; color: var(--muted); }
.mw-nav { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; font-size: .7rem; color: var(--muted); border-bottom: 1px solid #eef2fb; }
.mw-nav b { margin-right: auto; font: 700 .85rem var(--display); color: #0b3a5c; letter-spacing: -0.01em; }
.b-hero { background: linear-gradient(135deg, #1e3a8a, #0e7490); color: #fff; padding: 1.6rem 1.1rem 1.7rem; display: grid; gap: .3rem; justify-items: start; }
.b-hero strong { font: 700 1.45rem/1.1 var(--display); letter-spacing: -0.02em; max-width: 12em; }
.b-hero small { opacity: .9; font-size: .8rem; }
.b-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.b-btn { background: #fff; color: #0b3a5c; font-weight: 600; font-size: .72rem; padding: .42rem .9rem; border-radius: 99px; }
.b-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); padding: .3rem .85rem; }
.b-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; width: 62%; padding: .9rem 0 0 1rem; box-sizing: content-box; }
.b-grid span:nth-child(3) { display: none; }
.b-grid span { display: grid; gap: .4rem; justify-items: start; background: var(--mist); border-radius: 10px; padding: .6rem .6rem .65rem; font-size: .7rem; font-weight: 600; color: var(--deep); }
.b-grid i { width: 1.3rem; height: 1.3rem; border-radius: 7px; background: linear-gradient(135deg, #2563eb, #0e7490); }
.b-foot { display: flex; justify-content: space-between; width: 62%; box-sizing: border-box; margin: .9rem 0 1rem 1rem; padding-top: .7rem; border-top: 1px solid #eef2fb; font-size: .68rem; color: var(--muted); }
.b-foot span:last-child { font-weight: 700; color: #0b3a5c; }

.mw-phone {
  position: absolute; z-index: 2; right: -3%; bottom: .6rem; width: 30%; aspect-ratio: 9 / 16.5;
  background: #fff; border: 6px solid var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 28px 44px -20px rgba(15, 23, 42, .6);
}
.mp-head { background: #0b3a5c; color: #fff; padding: .65rem .6rem; font-size: .58rem; }
.mp-body { padding: .7rem .6rem; display: grid; gap: .5rem; justify-items: start; }
.mp-body strong { font: 700 .82rem/1.1 var(--display); color: #0b3a5c; }
.mp-btn { background: #f97316; color: #fff; font-weight: 700; font-size: .55rem; padding: .3rem .6rem; border-radius: 99px; }
.mp-cards { display: grid; gap: .35rem; width: 100%; margin-top: .2rem; }
.mp-cards span { background: var(--mist); color: var(--deep); font-size: .55rem; font-weight: 600; padding: .4rem .5rem; border-radius: 7px; }
.mp-bar { position: absolute; left: 0; right: 0; bottom: 0; background: #0b3a5c; color: #fff; text-align: center; font-size: .55rem; font-weight: 600; padding: .55rem .4rem; }

/* Ejemplos */
.ejemplos { background: var(--mist); }
.ejemplos .lead { max-width: 38rem; margin: 1rem 0 2.2rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; border: 1px solid #d6e2fb; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(30, 58, 138, .55); }
.card-top { height: 120px; display: block; }
.c-fontaneria .card-top { background: linear-gradient(135deg, #1e3a8a, #0e7490); }
.c-peluqueria .card-top { background: linear-gradient(135deg, #831843, #db2777); }
.c-clinica .card-top { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.card h3 { font-size: 1.35rem; padding: 1.2rem 1.3rem 0; }
.card p { padding: .5rem 1.3rem 0; margin: 0; color: var(--muted); font-size: 1rem; }
.card-link { margin-top: auto; padding: 1.1rem 1.3rem 1.3rem; font-weight: 600; color: var(--blue); }
.card-link::after { content: " \2192"; }

.proof { background: var(--white); padding-bottom: 0; }
.proof h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.proof .lead { margin: .8rem 0 0; max-width: 38rem; color: var(--muted); }

/* Contacto con formulario */
.contact { background: radial-gradient(120% 140% at 0% 0%, #2549b3 0%, var(--deep) 55%, #172b6b 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.kicker-light { margin: 0 0 .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; color: #93c5fd; }
.contact h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 1.1rem; }
.contact-lead { max-width: 30rem; color: #dbe7ff; font-size: 1.1rem; }
.contact-points { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: .75rem; color: #fff; }
.contact-points li { position: relative; padding-left: 2rem; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: #60a5fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.contact .alt { margin: 0; color: #dbe7ff; }
.contact .alt .mail { font-size: 1rem; letter-spacing: 0; display: inline; font-weight: 600; }

.form {
  background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(1.3rem, 3vw, 2.2rem);
  display: grid; gap: 1.1rem; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .65);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 600; font-size: .9rem; color: var(--deep); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #f3f6fd;
  border: 1.5px solid #e1e9f8; border-radius: 12px; padding: .8rem .95rem; transition: border-color .15s, background-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #8a99b5; }
.field input:hover, .field textarea:hover { border-color: #bccbea; }
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 0; border-color: var(--blue); background: #fff; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .22rem; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }
.btn-send { justify-content: center; width: 100%; padding: 1rem 1.4rem; font-size: 1.05rem; cursor: pointer; }
.btn-send svg { width: 1.2em; height: 1.2em; transition: transform .15s; }
.btn-send:hover svg { transform: translateX(3px); }
.btn-send[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin: 0; padding: .85rem 1rem; border-radius: 12px; font-size: .95rem; }
.form-msg.show, .form-msg:target { display: block; }
.form-msg.ok { background: #dcfce7; color: #14532d; }
.form-msg.err { background: #fee2e2; color: #7f1d1d; }
.form-msg:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 860px) {
  .cards, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .mw-nav span:nth-of-type(3) { display: none; }
}

/* ===== Servicios: navegación, secciones y páginas de servicio ===== */
.site-nav { align-items: center; }
.site-nav .n-mob { display: none; }
.site-nav .n-cta {
  background: var(--ink); color: var(--white); border: 0; padding: .5rem 1.05rem; border-radius: 999px; font-weight: 600;
  transition: background-color .15s;
}
.site-nav .n-cta:hover { background: var(--blue); }
@media (max-width: 900px) {
  .site-nav .n-svc, .site-nav .n-more { display: none; }
  .site-nav .n-mob { display: inline; }
}

.eyebrow { margin: 0 0 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; color: var(--deep); }
.hero .lead { max-width: 36rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: #fff; color: var(--deep); border: 1px solid #d6e2fb; border-radius: 999px; padding: .5rem 1rem .5rem .8rem;
  transition: border-color .15s, transform .15s;
}
.pill:hover { border-color: var(--blue); transform: translateY(-1px); }
.pill .ic { width: 1.15rem; height: 1.15rem; }
.ic { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
.section-head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.15rem; }

/* Tres servicios */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.svc {
  display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 2.6vw, 2rem); border-radius: 24px;
  border: 1px solid #d6e2fb; background: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -28px rgba(30, 58, 138, .55); }
.svc-ic { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; background: var(--mist); color: var(--blue); }
.svc-ic .ic { width: 1.7rem; height: 1.7rem; }
.svc h3 { font-size: 1.65rem; }
.svc p { margin: 0; color: var(--muted); }
.svc ul { list-style: none; padding: 0; margin: .2rem 0 0; display: grid; gap: .45rem; font-size: .98rem; }
.svc li { position: relative; padding-left: 1.35rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 2px; background: var(--blue); }
.svc-link { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--blue); }
.svc-link::after { content: " \2192"; }
.svc.auto { background: var(--mist); }
.svc.auto .svc-ic { background: #fff; }
.svc.dev { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc.dev p, .svc.dev li { color: #dbe5f7; }
.svc.dev .svc-ic { background: #1e293b; color: #93c5fd; }
.svc.dev li::before { background: #60a5fa; }
.svc.dev .svc-link { color: #93c5fd; }

/* Flujo de automatización */
.flowband { background: var(--mist); }
.flowband .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.flowband h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.flowband .lead { color: var(--muted); font-size: 1.15rem; max-width: 32rem; }
.flowband .ticks { margin-bottom: 1.6rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: nodo; }
.flow li {
  position: relative; counter-increment: nodo; background: #fff; border: 1px solid #d6e2fb; border-radius: 18px;
  padding: 1rem 1.2rem 1rem 4rem; box-shadow: 0 16px 30px -22px rgba(30, 58, 138, .5); font-weight: 500;
}
.flow li small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.flow li::before {
  content: counter(nodo); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 12px; background: var(--blue); color: #fff; font: 700 1rem var(--display);
}
.flow li + li { margin-top: 1.5rem; }
.flow li + li::after {
  content: ""; position: absolute; left: 2.05rem; top: -1.5rem; height: 1.5rem; border-left: 2px dashed #93b4f5;
}
.flow .alt-note { background: transparent; border: 0; box-shadow: none; padding: .8rem 0 0; font-size: .85rem; color: var(--muted); font-weight: 400; }
.flow .alt-note::before, .flow .alt-note::after { display: none; }
.flow li.alt-note + li, .flow li + li.alt-note { margin-top: 0; }

/* Cómo trabajamos */
.process { background: var(--white); }
.process-list { list-style: none; counter-reset: fase; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.process-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-list li { counter-increment: fase; background: var(--mist); border-radius: 20px; padding: 1.4rem 1.3rem 1.5rem; }
.process-list li::before { content: counter(fase); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; font: 700 1rem var(--display); margin-bottom: 1rem; }
.process-list h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.process-list p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Por qué nosotros */
.why { background: var(--ink); color: #fff; }
.why .section-head p { color: #c3cfe6; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.why-grid h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.why-grid p { margin: 0; color: #c3cfe6; }
.why-grid .num { display: block; font: 700 .95rem var(--display); color: #60a5fa; margin-bottom: .6rem; }

/* Productos propios */
.products { background: var(--white); }
.prod-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.prod { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.4rem, 2.6vw, 2rem); border-radius: 24px; border: 1px solid #d6e2fb; }
.prod.tos { background: var(--ink); border-color: var(--ink); color: #fff; }
.prod .product-id { margin: 0; }
.prod .product-id h3 { font-size: 2rem; }
.prod p { margin: 0; color: var(--muted); }
.prod.tos p { color: #dbe5f7; }
.prod-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; margin-top: auto; padding-top: .6rem; }
.prod-actions a:not(.btn) { font-weight: 600; color: var(--blue); }
.prod.tos .prod-actions a:not(.btn) { color: #93c5fd; }

/* Preguntas frecuentes */
.faq { background: var(--white); }
.faq.alt { background: var(--mist); }
.faq-list { max-width: 50rem; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid #d6e2fb; border-radius: 16px; padding: 0; }
.faq.alt details { background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; font: 600 1.1rem var(--text); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.45rem;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); max-width: 42rem; }

/* Selector del formulario */
.field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #f3f6fd; border: 1.5px solid #e1e9f8;
  border-radius: 12px; padding: .8rem .95rem; appearance: none; transition: border-color .15s, background-color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.2rem; padding-right: 2.6rem;
}
.field select:hover { border-color: #bccbea; }
.field select:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 0; border-color: var(--blue); background-color: #fff; }

/* Páginas de servicio */
.page-hero .hero-actions { margin-top: 1.6rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chips-row li { background: #fff; border: 1px solid #d6e2fb; border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; color: var(--deep); font-weight: 500; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.case { background: #fff; border: 1px solid #d6e2fb; border-radius: 20px; padding: 1.4rem 1.3rem 1.5rem; }
.detail.alt .case { border-color: #d6e2fb; }
.case h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.case p { margin: 0; color: var(--muted); font-size: .98rem; }
.case .ic { width: 1.7rem; height: 1.7rem; color: var(--blue); margin-bottom: .8rem; }
.band-head { margin-bottom: 2rem; }
.band-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; max-width: 18em; }
.band-head p { margin: .8rem 0 0; color: var(--muted); max-width: 38rem; font-size: 1.1rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--mist); }
.related { background: var(--white); }
.related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related .card h3 { padding-top: 1.3rem; }
.card.s-webs .card-top { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.card.s-auto .card-top { background: linear-gradient(135deg, #0e7490, #38bdf8); }
.card.s-dev .card-top { background: linear-gradient(135deg, #0f172a, #334155); }
.card.s-webs .card-top, .card.s-auto .card-top, .card.s-dev .card-top { height: 90px; }
.cta-band { background: radial-gradient(120% 140% at 0% 0%, #2549b3 0%, var(--deep) 55%, #172b6b 100%); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; }
.cta-band h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); max-width: 16em; }
.cta-band p { margin: .8rem 0 0; color: #dbe7ff; max-width: 34rem; }

/* Pie ampliado */
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 1rem 0 1.6rem; }
.foot-grid h2 { font: 700 .95rem var(--text); letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-grid a { color: var(--muted-dark); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand { font: 700 1.3rem var(--display); color: #fff; letter-spacing: -0.03em; margin-bottom: .6rem; }
.foot-brand b { color: #60a5fa; }
.foot-grid p { margin: 0; max-width: 20rem; font-size: .95rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1.2rem; border-top: 1px solid #243046; }

@media (max-width: 960px) {
  .svc-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .process-list, .process-list.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flowband .wrap, .prod-cards { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .process-list, .process-list.three, .cases, .related .cards, .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
