:root {
  --blue: #0077c8;
  --blue-dark: #005a99;
  --navy: #141e2e;
  --ink: #1b2433;
  --muted: #5b6676;
  --soft: #f2f6fa;
  --line: #dde5ee;
  --wsp: #1fa855;
  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--blue); text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.btn-wsp { background: var(--wsp); color: #fff; }
.btn-wsp:hover { background: #188a46; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.brand strong { color: var(--blue); }
.brand-mark { width: 32px; height: 32px; color: var(--blue); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,90,153,.96) 0%, rgba(0,119,200,.85) 45%, rgba(0,119,200,.35) 100%); }
.hero-in { position: relative; z-index: 1; padding: 6rem 20px 5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 16ch; text-transform: uppercase; }
.eyebrow { font-weight: 600; opacity: .9; letter-spacing: .02em; }
.lead { font-size: 1.2rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.5rem; }
.zones { font-size: .95rem; opacity: .9; margin: 0; }

/* Franja de atributos */
.strip { background: var(--navy); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); }
.strip-in div { background: var(--navy); padding: 1.4rem 1rem; display: flex; flex-direction: column; }
.strip strong { font-size: 1.25rem; color: #6cc0ff; }
.strip span { font-size: .9rem; opacity: .85; }

/* Secciones */
.section { padding: 5rem 0; }
.section.alt { background: var(--soft); }
.sub { font-weight: 700; font-size: 1.15rem; margin-bottom: 1.6rem; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.panel { background: var(--soft); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.section.alt .panel { background: #fff; }
.panel h3 { color: var(--blue); text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; margin-bottom: 1rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(20,30,46,.08); transform: translateY(-2px); }
.card svg { width: 40px; height: 40px; fill: var(--blue); margin-bottom: .9rem; }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Proyectos */
.projects { display: grid; gap: 2rem; }
.project { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.project img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.project-body { padding: 1.8rem; align-self: center; }
.project-body h3 { color: var(--blue); font-size: 1.3rem; }
.project-body p:last-child { margin: 0; color: var(--muted); }
.tag { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: .4rem; }

/* Calidad */
.quality { align-items: center; }
.quality-img { margin: 0; border: 3px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.quality-img img { width: 100%; }
.quality .tag { margin-bottom: .6rem; }

/* Contacto */
.contact { background: var(--blue); color: #fff; padding: 5rem 0; }
.contact h2 { color: #fff; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-actions { display: grid; gap: .9rem; }
.contact-line { display: flex; flex-direction: column; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 1rem 1.3rem; color: #fff; text-decoration: none; transition: background .15s; }
.contact-line:hover { background: rgba(255,255,255,.2); }
.contact-line span { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.contact-line strong { font-size: clamp(1.05rem, 2.6vw, 1.5rem); word-break: break-word; }

/* Pie */
.footer { background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.footer-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 20px; }
.footer a { color: #fff; text-decoration: none; }

/* WhatsApp flotante */
.wsp-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wsp); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wsp-float svg { width: 32px; height: 32px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .topbar-in { justify-content: space-between; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-in, .project { grid-template-columns: 1fr; gap: 2rem; }
  .project { gap: 0; }
  .project img { min-height: 200px; }
  .section, .contact { padding: 3.5rem 0; }
  .hero-in { padding: 4rem 20px 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
