
:root {
  --navy: #0b3d5c;
  --navy-2: #082c42;
  --orange: #e86a4a;
  --orange-2: #f4a48a;
  --green: #2e9a4a;
  --ink: #16324a;
  --muted: #5a6f80;
  --line: #d7e1ea;
  --bg: #f4f7fa;
  --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "DM Sans", "Share Tech Mono", "Courier New", monospace; color: var(--ink); background: var(--white); line-height: 1.55; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { height: 44px; width: auto; background: #fff; border-radius: 50%; padding: 2px; }
.brand b { font-size: 20px; }
.brand b span { color: #7ed321; }
nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; letter-spacing: .06em; }
nav a { color: #d6e6f0; }
nav a:hover, nav a.active { color: #fff; }
.badge { font-size: 10px; letter-spacing: .08em; border: 1px solid #8fb4c8; padding: 4px 8px; color: #d6e6f0; }
.hero {
  min-height: 320px;
  background: linear-gradient(90deg, rgba(8,44,66,.82), rgba(8,44,66,.45)), var(--navy);
  color: #fff; display: grid; align-items: center; padding: 56px 0;
}

.hero p { margin-top: 14px; max-width: 56ch; color: #d6e6f0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; background: var(--orange); color: #fff !important; padding: 10px 16px; border-radius: 3px; border: 0; cursor: pointer; font: inherit; }
.btn.ghost { background: transparent; border: 1px solid #fff; }
section { padding: 52px 0; }
section h2 { font-size: 28px; margin-bottom: 8px; color: var(--navy); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { border: 1px solid var(--line); padding: 18px; background: var(--white); }
.card h3 { font-size: 16px; margin-bottom: 8px; color: var(--navy); }
.icons .card { text-align: center; }
.dot { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.policies { background: var(--green); color: #fff; }
.policies h2, .policies p { color: #fff; }
.policies li { margin: 6px 0; }
.services-band { background: var(--orange); color: #fff; }
.services-band h2, .services-band p, .services-band h3 { color: #fff; }
.services-band .card { background: rgba(255,255,255,.12); border-color: transparent; }
.projects { display: grid; gap: 12px; }
.proj {
  display: grid; gap: 8px; grid-template-columns: 140px 1fr;
  border: 1px solid var(--line); padding: 12px; align-items: start;
}
.proj h3 { font-size: 15px; color: var(--navy); margin: 0 0 4px; }
.proj .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ph { width: 140px; height: 90px; background: var(--bg); border: 1px dashed #c5d0dc; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
footer { background: var(--navy-2); color: #b9c9d4; padding: 28px 0; font-size: 14px; }
footer a { color: #fff; }
.wa { position: fixed; right: 16px; bottom: 16px; background: #25D366; color: #fff !important; padding: 12px 16px; border-radius: 999px; z-index: 30; }
form { display: grid; gap: 10px; max-width: 520px; }
label { font-size: 13px; }
input, textarea, select { width: 100%; padding: 10px; border: 1px solid var(--line); font: inherit; }
@media (max-width: 640px) { .proj { grid-template-columns: 1fr; } .ph { width: 100%; height: 140px; } }


.hero h1 {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
  max-width: 34ch;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #7CFF9A;
  text-shadow: 0 0 8px rgba(124, 255, 154, 0.45);
}


.hero { position: relative; overflow: hidden; background: #06141c; }
.hero #matrix {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.55;
}
.hero-copy { position: relative; z-index: 1; }
.hero .lead {
  margin-top: 16px;
  max-width: 62ch;
  color: #cfe3d6;
  font-size: 16px;
  display: grid;
  gap: 8px;
}
.hero .lead span { display: block; }


/* mono-global */
html, body, button, input, select, textarea, .btn, nav, .brand, .card, footer {
  font-family: "Share Tech Mono", "Courier New", monospace;
}


nav .dl { color: #d6e6f0; font-size: 12px; letter-spacing: .04em; }
nav .dl a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }


nav details.dl { position: relative; }
nav details.dl summary {
  list-style: none; cursor: pointer; color: #d6e6f0;
  font-size: 13px; letter-spacing: .06em;
}
nav details.dl summary::-webkit-details-marker { display: none; }
nav details.dl summary::after { content: " ▾"; font-size: 10px; }
nav .dl-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #082c42; min-width: 220px;
  border: 1px solid #1e4d68; padding: 8px 0; z-index: 30;
}
nav .dl-menu a {
  display: block; padding: 8px 14px; color: #fff;
  letter-spacing: .04em; font-size: 13px;
}
nav .dl-menu a:hover { background: #0b3d5c; }


.foto, .card .foto, figure.foto {
  overflow: hidden;
  padding: 0 !important;
  background: #0e1a24;
  width: 168px;
  min-width: 168px;
  height: 118px;
}
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Miniaturas de proyectos */
article.proj {
  display: grid !important;
  grid-template-columns: 168px 1fr;
  column-gap: 18px;
  align-items: start;
  overflow: hidden;
}
article.proj .ph {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 168px !important;
  height: 118px !important;
  overflow: hidden !important;
  padding: 0 !important;
}
article.proj .ph img {
  width: 168px !important;
  height: 118px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
article.proj h3,
article.proj .meta,
article.proj p {
  grid-column: 2;
}

/* Logo sin elipse */
.brand img,
header .brand img,
.nav .brand img {
  width: auto !important;
  height: 52px !important;
  max-height: 52px !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  object-fit: contain !important;
  clip-path: none !important;
  box-shadow: none !important;
  border: none !important;
}
.brand span b,
.brand > span > b {
  display: none;
}

/* Badge Integrador Festo */
a.festo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  text-decoration: none;
  color: #fff !important;
  line-height: 1.15;
  vertical-align: middle;
}
a.festo-badge img {
  height: 18px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
}
a.festo-badge small {
  display: block;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
  font-style: normal;
}
a.festo-badge:hover {
  border-color: #7ad0ff;
  background: rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
