/* SuMaSoft · estilos */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --fg: #012250;          /* azul del logo */
  --muted: #55607A;
  --line: #DDE2EA;
  --accent: #E85A00;      /* naranja para textos y botones */
  --accent-strong: #C24A00;
  --accent-soft: #FFEADB;
  --orange: #FE6404;      /* naranja del logo */
  --band: #012250;
  --band-fg: #FFFFFF;
  --band-muted: #B6C3DA;
  --ok: #1F7A4D;
  --error: #B42318;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Barra superior */
.topbar { background: #FFFFFF; border-bottom: 1px solid #E3E8F0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: block; height: 58px; width: auto; }
.nav-cta { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--fg); text-decoration: none; border: 1.5px solid var(--orange); padding: 10px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--orange); color: #FFFFFF; }

/* Banda de inicio */
.band { background: var(--band); color: var(--band-fg); }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.85rem; color: #FF9A5A; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: var(--band-muted); font-size: 1.1rem; max-width: 34em; margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-mark { display: flex; justify-content: center; }
.tile { background: #FFFFFF; border-radius: 28px; padding: 28px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.tile img { display: block; width: 100%; max-width: 240px; height: auto; }
.code-strip { border-top: 1px solid #2C3D5C; padding-block: 18px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--band-muted); overflow-x: auto; white-space: nowrap; }
.code-strip b { color: #FF9A5A; font-weight: 500; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 14px 24px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--orange); color: var(--fg); }
.btn-primary:hover { background: #FF8436; }
.btn-ghost { background: transparent; color: var(--band-fg); border: 1.5px solid #3A4C6E; }
.btn-ghost:hover { border-color: var(--band-muted); }
.btn-send { background: var(--accent); color: #FFFFFF; }
.btn-send:hover { background: var(--accent-strong); }
.copy { font: 600 0.85rem var(--font-display); background: transparent; color: var(--accent); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; min-height: 40px; }
.copy:hover { border-color: var(--accent); }

/* Secciones */
.block { padding-block: 72px 24px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }
.section-head .tag { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-head p { color: var(--muted); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.service .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.service h3 { font-size: 1.1rem; font-weight: 700; }
.service p { color: var(--muted); font-size: 0.95rem; }
.service .stack { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: auto; padding-top: 6px; }

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; list-style: none; padding: 0; counter-reset: paso; }
.steps li { counter-increment: paso; border-top: 3px solid var(--accent); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: "0" counter(paso); font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
.steps h3 { font-size: 1.05rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Formulario de contacto */
.form { max-width: 760px; margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field .err { color: var(--error); font-size: 0.85rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted); }

/* Mensaje listo */
.result { border: 1.5px dashed var(--accent); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--accent-soft); }
.result h3 { font-size: 1.05rem; }
.result pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.result .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result .status { font-size: 0.9rem; color: var(--ok); }

/* Pie de página */
footer { margin-top: 72px; background: var(--band); color: var(--band-muted); }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 28px; font-size: 0.9rem; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--band-fg); }
.brand-name span { color: var(--orange); }

/* Tablet */
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 32px 48px; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .tile { padding: 16px; border-radius: 20px; }
  .tile img { max-width: 110px; }
  .logo { height: 44px; }
  .services, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Celular */
@media (max-width: 560px) {
  .services, .steps, .row { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-cta, .copy { transition: background-color .15s, border-color .15s, color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
