:root {
  --bg: #e6ecf0;
  --bg-alt: #dbe4ea;
  --surface: #f4f7f9;
  --ink: #0c2230;
  --muted: #4a6272;
  --line: #b9c7d1;
  --accent: #a83f27;
  --accent-ink: #ffffff;
  --dark: #0f2a36;
  --dark-ink: #e8eff3;
  --dark-muted: #a9bdc8;
  --brick: rgba(168, 63, 39, .22);
  --f-title: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a22;
    --bg-alt: #0f222c;
    --surface: #132c38;
    --ink: #e6eef2;
    --muted: #9fb5c1;
    --line: #28424f;
    --accent: #e0694d;
    --accent-ink: #0b1a22;
    --dark: #07131a;
    --brick: rgba(224, 105, 77, .2);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--f-title); text-transform: uppercase; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 8.5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-bottom: 20px; }
h3 { font-size: 1.45rem; }
.tag { font: 500 1rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 14px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer; transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; }

/* Encabezado */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 5; pointer-events: none; }
.bar { display: flex; align-items: center; justify-content: flex-end; padding-top: 12px; position: relative; }
.bar > * { pointer-events: auto; }
.menu-btn { min-height: 44px; padding: 0 18px; background: rgba(10,28,38,.78); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; backdrop-filter: blur(6px); font: 500 .8rem var(--f-mono); text-transform: uppercase; cursor: pointer; }
.nav { display: none; position: absolute; top: 100%; right: 16px; margin-top: 8px; min-width: 220px; background: rgba(10,28,38,.94); border-radius: 14px; padding: 8px 16px 16px; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.nav.open { display: flex; }
.nav a { padding: 14px 0; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); }
.nav a.btn { margin-top: 12px; border: 2px solid var(--accent); background: #d4573a; border-color: #d4573a; color: #fff; justify-content: center; border-radius: 999px; }
@media (min-width: 760px) {
  .bar { justify-content: center; }
  .menu-btn { display: none; }
  .nav, .nav.open { display: flex; position: static; margin: 0; min-width: 0; flex-direction: row; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(10,28,38,.72); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); }
  .nav a { padding: 9px 18px; border: 0; border-radius: 999px; font-size: .95rem; transition: background .2s; }
  .nav a:not(.btn):hover { background: rgba(255,255,255,.16); }
  .nav a.btn { margin: 0; min-height: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #f2f6f8; text-align: center; padding: 96px 0 40px;
  background: linear-gradient(rgba(12,40,56,.82), rgba(12,40,56,.78)), url("assets/hero.webp") center / cover #0f2a36; }
.bricks {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='48'%3E%3Cg fill='none' stroke='%23d4573a' stroke-width='1.5'%3E%3Cpath d='M0 0h72M0 24h72M0 48h72M0 0v24M36 0v24M18 24v24M54 24v24M72 24v24'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .14;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 90%);
  mask-image: linear-gradient(to bottom, transparent, #000 90%);
}
.hero-c { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(260px, 70vw); height: auto; margin-bottom: 28px; }
.hero-logo { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 0 10px rgba(255,255,255,.55)); }
.hero h1 { max-width: 15em; }
.hero .lead { color: #d3dee4; max-width: 44em; margin: 20px auto 28px; }
.hero .actions { justify-content: center; }
.hero .btn { background: #d4573a; border-color: #d4573a; color: #fff; min-width: 160px; }
.hero .btn-ghost { background: transparent; color: #f2f6f8; border-color: #f2f6f8; }
.nw { white-space: nowrap; }
@media (min-width: 900px) {
  .hero { padding: 100px 0 48px; min-height: calc(100vh - 60px); display: flex; align-items: center; }
  .hero-logo { width: 340px; }
}
.lead { font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.two { display: grid; gap: 16px; max-width: 70em; }
.two p { margin: 0; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; gap: 32px; } }
.trio { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }

/* Servicios */
.services { display: grid; gap: 16px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s; }
.svc:hover { transform: translateY(-3px); }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.svc div { padding: 18px 20px 22px; }
.svc h3 { margin-bottom: 8px; }
.svc p { margin: 0; color: var(--muted); }
.equip { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--surface); }
.equip h3 { margin-bottom: 8px; }
.equip p { margin: 0; max-width: 60em; }

/* Calidad */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .tag { color: #f08a70; }
.pillars { display: grid; gap: 16px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillars article { border: 1px solid #2c4756; border-left: 4px solid #e0694d; padding: 22px; }
.num { font: 500 .8rem var(--f-mono); color: #f08a70; }
.pillars h3 { margin: 8px 0 10px; }
.pillars p { margin: 0; color: var(--dark-muted); }

/* Método statement */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 8px 0 32px; }
.node { padding: 18px; text-align: center; font: 700 1.4rem var(--f-title); text-transform: uppercase; border: 2px solid var(--ink); background: var(--surface); }
.node.root { background: var(--ink); color: var(--bg); }
.node.end { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.node-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.node-list li { padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); text-align: center; font-weight: 500; }
.arrow { height: 22px; position: relative; }
.arrow::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 14px; background: var(--accent); transform: translateX(-50%); }
.arrow::before { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
@media (min-width: 900px) {
  .flow { flex-direction: row; align-items: center; gap: 0; }
  .node { flex: 0 0 auto; min-width: 190px; }
  .node-list { flex: 1; grid-template-columns: 1fr 1fr; }
  .arrow { width: 44px; height: 22px; flex: 0 0 44px; }
  .arrow::after { left: 0; top: 50%; width: 30px; height: 2px; transform: translateY(-50%); }
  .arrow::before { left: auto; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left: 8px solid var(--accent); border-right: 0; }
}
.questions { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.questions li { padding: 12px 16px 12px 20px; border-left: 4px solid var(--accent); background: var(--surface); }
@media (min-width: 800px) { .questions { grid-template-columns: 1fr 1fr; } }

/* Galería */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.gallery figcaption { padding: 12px 14px; font: 600 1.15rem/1.2 var(--f-title); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }

/* Contacto */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.datos { list-style: none; margin: 0 0 24px; padding: 0; }
.datos li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.datos span { font: 500 .75rem var(--f-mono); text-transform: uppercase; color: var(--muted); }
.datos a, .datos b { font-weight: 500; overflow-wrap: anywhere; }
.wa { background: #1c7a4a; border-color: #1c7a4a; color: #fff; }
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 22px; align-content: start; }
.form label { display: grid; gap: 6px; font: 500 .78rem var(--f-mono); text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem var(--f-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
}
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.ok { margin: 0; padding: 12px; border-left: 4px solid #1c7a4a; background: var(--bg); }

/* Pie */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 32px 0; font-size: .9rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--dark-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.horario { white-space: pre-line; }

/* Franja de valores */
.strip { background: var(--accent); color: var(--accent-ink); }
.strip ul { list-style: none; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; }
.strip li { padding: 16px 12px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.strip b { font: 700 1.5rem var(--f-title); text-transform: uppercase; }
.strip span { font-size: .85rem; line-height: 1.35; opacity: .92; }
@media (min-width: 800px) { .strip ul { grid-template-columns: repeat(4, 1fr); } .strip li { padding: 22px 16px 22px 0; } }

/* Equipos */
.eq-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .eq-grid { grid-template-columns: repeat(4, 1fr); } }
.eq-grid article { background: var(--surface); border: 1px solid var(--line); padding: 14px 14px 18px; }
.eq-grid img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 12px; background: #e9eef1; padding: 8px; }
.eq-grid h3 { font-size: 1.15rem; margin-bottom: 6px; }
.eq-grid p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }

/* Banda de cotización */
.cta { background: var(--dark); color: var(--dark-ink); padding: 56px 0; text-align: center; }
.cta p { margin: 0 auto 24px; max-width: 36em; color: var(--dark-muted); }
.cta .actions { justify-content: center; }
.btn-light { background: transparent; color: #f2f6f8; border-color: #f2f6f8; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; background: #1c7a4a; color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.wa-float[hidden] { display: none; }

/* Servicios: zoom sutil */
.svc { overflow: hidden; }
.svc img { transition: transform .4s; }
.svc:hover img { transform: scale(1.04); }
.strip svg { width: 34px; height: 34px; margin-bottom: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card svg { width: 36px; height: 36px; margin-bottom: 12px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Iconos de línea */
.svc svg, .equip svg, .pillars svg, .node-list svg, .questions svg, .datos svg { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.svc svg, .equip svg { width: 34px; height: 34px; display: block; margin-bottom: 10px; }
.pillars svg { width: 38px; height: 38px; display: block; margin-top: 10px; stroke: #f08a70; }
.pillars h3 { margin-top: 10px; }
.node-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.node-list svg { width: 26px; height: 26px; }
.questions li { display: flex; align-items: center; gap: 12px; }
.questions svg { width: 24px; height: 24px; }
.datos span { display: flex; align-items: center; gap: 8px; }
.datos svg { width: 18px; height: 18px; }

