:root {
  /* Colores tomados del logo de M&P: azul marino, azul y blanco */
  --ink: #0b1424;
  --ink-2: #2c3a52;
  --muted: #5d6b82;
  --bg: #ffffff;
  --bg-alt: #eef2f8;
  --line: #dbe2ee;
  --accent: #2563d6;
  --accent-dark: #1b4fb3;
  --accent-light: #6f9cf5;
  --dark: #0b1424;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 30, 25, .10);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: background .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa svg { width: 1.35em; height: 1.35em; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent-light); margin-bottom: .8em; }
.eyebrow.dark { color: var(--accent-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 54px; height: auto; flex: none; }
.brand-text { font-family: var(--head); font-size: 1.45rem; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.brand-text b { font-weight: 600; color: var(--ink-2); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .97rem; }
.nav a:hover { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .4em .8em; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.lang:hover { border-color: var(--ink); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,15,30,.9) 0%, rgba(8,15,30,.68) 45%, rgba(8,15,30,.15) 100%), linear-gradient(0deg, rgba(8,15,30,.6), transparent 50%); }
.hero-content { position: relative; padding: 120px 0 64px; max-width: 1160px; }
.hero-content h1 { max-width: 17ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40rem; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.9); }
.hero-badges li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.service p { color: var(--muted); margin: 0; }

.builders { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--bg-alt); border-left: 5px solid var(--accent); }
.builders h3 { margin-bottom: .3em; }
.builders p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.builders .btn { flex: none; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--line); position: relative; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-text > p { color: var(--ink-2); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Contact */
.section-dark { background: var(--dark); color: #fff; padding-bottom: 0; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.contact-info > p { color: rgba(255,255,255,.78); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact-list > li > span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-light); font-weight: 700; margin-bottom: 2px; }
.contact-list a, .contact-list p { font-size: 1.15rem; font-weight: 600; text-decoration: none; margin: 0; }
.contact-list a:hover { color: var(--accent-light); }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-link svg { width: 22px; height: 22px; fill: var(--wa); }
.wa-link:hover { color: var(--wa) !important; }
.contact-list p { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.85); }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,214,.2); }
.form textarea { resize: vertical; }
.form-error { grid-column: 1 / -1; margin: 0; color: #b42318; font-weight: 600; font-size: .9rem; }
.form-note { margin: -4px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

.map iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(.3); }

/* Footer */
.footer { background: #070d18; color: rgba(255,255,255,.7); font-size: .9rem; padding: 40px 0 24px; }
.footer-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.footer-brand img { width: 220px; height: auto; background: #fff; border-radius: 16px; padding: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.credit { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }
.credit a { color: rgba(255,255,255,.8); font-weight: 600; }
.credit a:hover { color: var(--accent-light); }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Floating call button (mobile) */
.call-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; align-items: center; gap: 8px; padding: .85em 1.3em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.call-fab svg { width: 20px; height: 20px; fill: currentColor; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10,14,12,.88); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: auto; border-radius: 10px; }
.lb-caption { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 500; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about-img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .hide-sm { display: none; }
  .header-actions { margin-left: auto; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px; border-top: 1px solid var(--line); }
  .call-fab { display: inline-flex; }
  .footer { padding-bottom: 88px; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .builders { flex-direction: column; align-items: flex-start; padding: 24px; }
  .checks { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .hero-content { padding: 96px 0 48px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,15,30,.92) 0%, rgba(8,15,30,.7) 55%, rgba(8,15,30,.35) 100%); }
  .brand-mark { width: 46px; }
  .brand-text { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
