:root {
  --teal: #155b6e;
  --teal-dk: #0f4352;
  --teal-2: #1f9aa8;
  --orange: #f4802a;
  --ink: #12313b;
  --bg: #f4f7f8;
  --card: #fff;
  --line: #d5e1e5;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Hero con plano de circuitos */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 22px 34px;
  background:
    radial-gradient(circle at 50% 18%, rgba(244,128,42,.16), transparent 52%),
    linear-gradient(rgba(31,154,168,.10) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(31,154,168,.10) 1px, transparent 1px) 0 0 / 28px 28px,
    #fff;
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { top: 0; right: 0; width: 96px; height: 76px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); box-shadow: -14px 12px 0 -11px var(--orange); }
.hero::after { left: 0; bottom: 0; width: 72px; height: 96px; border-left: 3px solid var(--teal-2); border-bottom: 3px solid var(--teal-2); }
.logo { width: min(88%, 360px); margin: 0 auto 18px; animation: pop .8s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.18; color: var(--teal); max-width: 18ch; margin: 0 auto 12px; }
.lead { color: #3e5b65; max-width: 32ch; margin: 0 auto 22px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto 22px; }
.btn { display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; font: 700 1rem var(--sans); text-align: center; cursor: pointer; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-ghost { border: 2px solid var(--teal); color: var(--teal); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jump a { font-size: .85rem; font-weight: 500; color: var(--teal); background: rgba(255,255,255,.85); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }

/* Bloques */
.block { padding: 38px 20px 8px; max-width: 640px; margin: 0 auto; }
h2 { font-family: var(--serif); font-size: 1.65rem; color: var(--teal); margin-bottom: 16px; }
h3 { font-family: var(--serif); font-size: 1.1rem; margin: 22px 0 12px; padding-left: 12px; border-left: 4px solid var(--orange); }
h3.alt { border-left-color: var(--teal-2); margin-top: 34px; }

/* Tarjetas con ilustración */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(21,91,110,.08); }
.card img { width: 100%; aspect-ratio: 360 / 220; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
h4 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; margin-bottom: 6px; }
.card p { color: #3e5b65; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: #e6f2f4; color: var(--teal); font-size: .85rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; }
.ask { margin-top: 14px; padding: 10px 0; background: none; border: 0; border-bottom: 2px solid var(--orange); font: 700 .95rem var(--sans); color: var(--teal); cursor: pointer; }
.card.pre { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.card.pre.in { opacity: 1; transform: none; }

/* Cómo trabajamos: secuencia real, línea de circuito vertical */
.steps { margin-top: 40px; background: var(--teal); color: #fff; padding: 40px 20px; }
.steps-in { max-width: 640px; margin: 0 auto; }
.steps h2 { color: #fff; }
.steps ol { list-style: none; padding: 0; counter-reset: s; position: relative; }
.steps ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 3px; background: var(--orange); opacity: .7; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 54px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-dk); border: 3px solid var(--orange); display: grid; place-items: center; font: 700 1rem var(--serif); }
.steps strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.steps span { color: #c4e1e7; }

/* Formulario */
.hint { color: #3e5b65; margin-bottom: 16px; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #f7fafb; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(31,154,168,.25); }
.err { color: #b3261e; font-size: .9rem; }

/* Contacto */
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; padding: 14px 16px; }
.contact-list li:nth-child(even) { border-left-color: var(--teal-2); }
.contact-list svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { font-weight: 700; word-break: break-word; }
.contact-list a span { display: block; font-size: .78rem; font-weight: 400; color: #5c7780; }

footer { text-align: center; padding: 34px 20px 10px; font-size: .85rem; color: #5c7780; }
footer img { width: 80px; margin: 0 auto 8px; opacity: .9; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 10; }
.dock a { flex: 1; text-align: center; padding: 13px 0; border-radius: 12px; font-weight: 700; background: var(--teal); color: #fff; }
.dock a.wa { background: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; } html { scroll-behavior: auto; }
  .card.pre { opacity: 1; transform: none; transition: none; }
}
@media (min-width: 700px) {
  .cta-row { flex-direction: row; max-width: none; justify-content: center; }
  .btn { width: auto; min-width: 220px; }
  .block { max-width: 720px; }
}
