:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --ink: #14212b;
  --muted: #5b6b78;
  --brand: #0f6cbd;
  --brand-dark: #0a4f8c;
  --accent: #f2a900;
  --line: #dde4ea;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink);
  background: var(--bg); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.lead { color: var(--muted); max-width: 640px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.4rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 30px; height: 30px; border: 3px solid var(--brand); border-radius: 4px; position: relative; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: var(--brand); }
.logo-mark::before { left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); }
.logo-mark::after { top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); }
.logo span { color: var(--brand); }
.menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 500; color: var(--muted); }
.menu a:hover { color: var(--brand); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  color: #fff; padding: 110px 0 120px;
  background: linear-gradient(120deg, rgba(10,40,70,.88), rgba(15,108,189,.65)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=70") center/cover;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 720px; }
.hero p { font-size: 1.15rem; max-width: 560px; opacity: .92; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; }
.hero-stats strong { display: block; font-size: 1.8rem; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,33,43,.1); }
.card img { height: 180px; width: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body p { color: var(--muted); margin: 0; }
.alt { background: var(--bg-alt); }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; background: #e3effa; color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; }
.feature p { color: var(--muted); margin: 0; }

/* Cotizador */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }

/* Obras */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 36px; }
.gallery img { height: 220px; width: 100%; object-fit: cover; border-radius: var(--radius); }

/* Contacto */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 36px; }
.contact .card-body h3 { font-size: 1rem; }

footer { background: var(--ink); color: #b9c6d0; padding: 32px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); text-decoration: none; z-index: 20; }

@media (max-width: 820px) {
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu-toggle { display: block; }
  .nav .btn { display: none; }
  .quote, .row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* Páginas internas */
.page-hero { background: linear-gradient(120deg, #0a2846, #0f6cbd); color: #fff; padding: 64px 0; }
.page-hero p { opacity: .9; max-width: 620px; margin: 0; }
.menu a.active { color: var(--brand); font-weight: 700; }
table { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--bg-alt); font-size: .9rem; }
.table-scroll { overflow-x: auto; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 32px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.swatch div { height: 90px; }
.swatch p { margin: 0; padding: 10px 12px; font-weight: 600; font-size: .9rem; }
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.cta { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta .btn { background: #fff; color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.filters button { font: inherit; border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
