:root {
  --ink: #161616;
  --muted: #6e6e69;
  --paper: #f3f2ed;
  --warm-white: #fbfaf6;
  --line: rgba(22, 22, 22, .14);
  --dark: #202323;
  --dark-soft: #2c3130;
  --lime: #d8ef43;
  --orange: #ff6946;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.section-pad { padding: 132px 0; }

.site-header { position: absolute; z-index: 5; inset: 0 0 auto; color: white; border-bottom: 1px solid rgba(255,255,255,.16); }
.nav-wrap { min-height: 91px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { display: block; width: 190px; height: auto; }
.site-header .brand-logo { width: 215px; }
.brand-mark { width: 30px; height: 30px; display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; transform: skewY(-18deg); }
.brand-mark span { display: block; height: 4px; background: currentColor; border-radius: 1px; }
.brand-mark span:nth-child(1) { width: 22px; }
.brand-mark span:nth-child(2) { width: 28px; }
.brand-mark span:nth-child(3) { width: 18px; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1; }
.brand-name small { display: block; margin-top: 6px; font-size: 8px; font-weight: 500; letter-spacing: .31em; opacity: .64; }
.main-nav { display: flex; align-items: center; gap: 37px; font-size: 16px; font-weight: 500; }
.main-nav a:not(.nav-cta) { opacity: .82; transition: opacity .2s ease; }
.main-nav a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { padding: 13px 16px; border: 1px solid rgba(255,255,255,.4); font-size: 15px; transition: background .2s, color .2s, border .2s; }
.nav-cta:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.nav-cta span, .button span { margin-left: 12px; font-size: 17px; line-height: 0; }
.menu-toggle { display: none; border: 0; background: none; color: white; cursor: pointer; }

.hero { position: relative; min-height: 780px; height: min(92vh, 900px); overflow: hidden; color: white; background: var(--dark); }
.hero-image { position: absolute; inset: 0; background: url("assets/hero-dean.webp") 58% center / cover no-repeat; transform: scale(1.01); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,13,.94) 0%, rgba(11,13,13,.79) 31%, rgba(11,13,13,.15) 72%, rgba(11,13,13,.2) 100%), linear-gradient(0deg, rgba(11,13,13,.45), transparent 40%); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.hero-copy { max-width: 700px; }
.eyebrow { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.7); }
.eyebrow.accent { color: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { margin-bottom: 27px; max-width: 690px; font-size: clamp(3.6rem, 6.3vw, 6.2rem); font-weight: 500; letter-spacing: -.07em; line-height: .94; }
h1 em, h2 em { color: var(--lime); font-style: normal; }
.hero .eyebrow { font-size: 13px; letter-spacing: .16em; }
.mobile-break { display: none; }
.hero-lead { max-width: 475px; margin-bottom: 35px; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 16px 19px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--lime); }
.button-primary:hover { background: #e6ff5b; }
.text-link { display: inline-flex; align-items: center; gap: 17px; padding-bottom: 7px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700; }
.text-link span { font-size: 17px; font-weight: 400; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.light-link { color: white; }
.hero-note { position: absolute; right: 3%; bottom: 11%; display: flex; align-items: flex-start; gap: 17px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; letter-spacing: .03em; }
.hero-note strong { color: white; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.04em; }
.note-line { width: 33px; height: 1px; margin-top: 7px; background: var(--lime); }

.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 50px; }
.section-kicker { display: flex; align-items: center; gap: 15px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .13em; }
.section-kicker .section-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--orange); }
.intro-main h2 { max-width: 790px; margin-bottom: 29px; font-size: clamp(2.6rem, 4.4vw, 4.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .99; }
.large-copy { max-width: 650px; margin-bottom: 32px; color: #595955; font-size: 18px; line-height: 1.62; }
.dark-link { color: var(--ink); }
.intro-aside { align-self: end; padding-left: 23px; font-size: 13px; color: #5d5d58; line-height: 1.4; }
.aside-rule { width: 100%; height: 1px; margin-bottom: 24px; background: var(--ink); opacity: .25; }
.intro-aside p { margin-bottom: 17px; }

.services { color: white; background: var(--dark); }
.section-heading { display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 50px; margin-bottom: 75px; }
.section-heading > div:last-child { grid-column: 2 / -1; }
.on-dark span { color: rgba(255,255,255,.4); }
.section-heading h2 { margin-bottom: 0; color: white; font-size: clamp(3rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 350px; display: flex; flex-direction: column; padding: 25px 24px 23px; border: 1px solid rgba(255,255,255,.19); background: rgba(255,255,255,.025); transition: transform .25s, background .25s, border .25s; }
.service-image { height: 178px; margin: -25px -24px 22px; background-position: center 28%; background-size: cover; background-repeat: no-repeat; filter: saturate(.82); }
.service-image-urban { background-image: linear-gradient(90deg, rgba(20,24,23,.12), rgba(20,24,23,.02)), url("assets/CalleCentrica.webp"); }
.service-image-development { background-image: linear-gradient(90deg, rgba(20,24,23,.18), rgba(20,24,23,.03)), url("assets/lasCigarras.webp"); }
.service-image-road { background-image: linear-gradient(90deg, rgba(20,24,23,.2), rgba(20,24,23,.04)), url("assets/rodilloAmarilloColectivo.webp"); }
.service-image-urban,
.service-image-road { background-position: center 0%; }
.service-card:hover { transform: translateY(-6px); border-color: var(--lime); background: rgba(216,239,67,.06); }
.featured-service { background: #29302e; }
.service-title-row { display: flex; align-items: center; gap: 18px; }
.service-title-row { margin-bottom: 18px; }
.service-title-row h3 { flex: 1; margin: 0; }
.service-icon { font-size: 27px; font-weight: 300; line-height: .6; }
.service-icon img { display: block; width: 32px; height: 32px; object-fit: contain; filter: brightness(0) saturate(100%) invert(88%) sepia(96%) saturate(900%) hue-rotate(20deg) brightness(105%); }
.service-card h3 { margin: auto 0 18px; color: white; font-size: 32px; font-weight: 500; letter-spacing: -.06em; line-height: .97; }
.service-card p { max-width: 290px; margin-bottom: 28px; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.55; }
.service-line { width: 100%; height: 1px; background: rgba(255,255,255,.25); }
.service-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600; transition: color .2s ease, padding .2s ease; }
.service-link span { font-size: 18px; font-weight: 400; transition: transform .2s ease; }
.service-link:hover { color: var(--lime); }
.service-link:hover span { transform: translateX(4px); }

.process { background: var(--warm-white); }
.process-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 14%; }
.process-intro h2 { max-width: 430px; margin: 78px 0 25px; font-size: clamp(2.8rem, 4.6vw, 4.6rem); font-weight: 500; letter-spacing: -.07em; line-height: .97; }
.process-intro h2 em { color: var(--orange); }
.process-intro p { max-width: 340px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.steps { padding-top: 59px; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 28px 0 31px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-number { color: var(--orange); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; }
.step h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.04em; }
.step p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.contact { color: white; background: var(--dark-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13%; }
.contact-copy h2 { max-width: 480px; margin: 49px 0 24px; font-size: clamp(3.2rem, 5.3vw, 5.4rem); font-weight: 500; letter-spacing: -.075em; line-height: .94; }
.contact-copy > p:not(.eyebrow) { max-width: 410px; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; }
.contact-signature { display: flex; align-items: center; gap: 12px; margin-top: 83px; color: rgba(255,255,255,.64); font-size: 15px; }
.signature-icon { position: relative; display: block; width: 31px; height: 31px; flex: 0 0 31px; overflow: hidden; }
.signature-icon img { position: absolute; top: -10px; left: 0; display: block; width: 110px; max-width: none; height: auto; }
.brand-mark.small { width: 21px; height: 22px; gap: 2px; color: var(--lime); }
.brand-mark.small span { height: 3px; }
.brand-mark.small span:nth-child(1) { width: 15px; }.brand-mark.small span:nth-child(2) { width: 20px; }.brand-mark.small span:nth-child(3) { width: 13px; }
.contact-form { padding: 28px 30px 30px; background: var(--paper); color: var(--ink); }
.contact-form label { display: block; margin-bottom: 21px; color: #5c5c57; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; display: block; margin-top: 9px; padding: 12px 0 14px; border: 0; border-bottom: 1px solid rgba(22,22,22,.25); outline: 0; color: var(--ink); background: transparent; font-size: 15px; letter-spacing: normal; text-transform: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9b9b93; }
.form-button { width: 100%; margin-top: 8px; }
.form-feedback { min-height: 18px; margin: 13px 0 0; color: #56720e; font-size: 12px; }

/* HubSpot renderiza el formulario después de cargar el embed. */
.contact-form .hs-form { display: flex; flex-direction: column; }
.contact-form .hs-form-field { margin-bottom: 21px; }
.contact-form .hs-form-field > label { display: block; margin-bottom: 0; }
.contact-form .hs-input { width: 100%; max-width: none; display: block; margin-top: 9px; padding: 12px 0 14px; border: 0; border-bottom: 1px solid rgba(22,22,22,.25); outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.contact-form .hs-input:focus { border-color: var(--orange); }
.contact-form textarea.hs-input { min-height: 98px; resize: vertical; }
.contact-form .hs-error-msgs { margin: 7px 0 0; padding: 0; color: #bf513a; font-size: 11px; list-style: none; }
.contact-form .hs-submit { margin-top: 8px; }
.contact-form .hs-button { width: 100%; border: 0; padding: 16px 19px; color: var(--ink); background: var(--lime); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s; }
.contact-form .hs-button:hover { transform: translateY(-2px); background: #e6ff5b; }
.contact-form .hs-form-required { color: var(--orange); }
.contact-form .submitted-message { color: #56720e; font-size: 14px; line-height: 1.5; }

.site-footer { color: rgba(255,255,255,.58); background: #171a1a; }
.footer-wrap { min-height: 190px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: start; gap: 46px; padding: 40px 0 24px; font-size: 14px; }
.footer-brand { color: white; }
.footer-intro > p { margin: 22px 0 0; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column a { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.15); transition: color .2s; }
.footer-column a:hover { color: var(--lime); }
.footer-link-main { display: flex; align-items: center; gap: 9px; }
.footer-link-main svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.contact-column a:first-of-type .footer-link-main svg { fill: currentColor; stroke: none; }
.footer-column a > span:last-child { color: rgba(255,255,255,.38); text-align: right; }
.footer-label { margin: 0 0 10px; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer-legal { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }.footer-legal span { margin: 0 5px; color: var(--lime); }

.whatsapp-float { position: fixed; z-index: 10; right: 26px; bottom: 25px; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: white; background: #20b957; box-shadow: 0 10px 26px rgba(0,0,0,.24); transition: transform .2s, background .2s; animation: whatsapp-attention 4.5s ease-in-out infinite; }
.whatsapp-float::before { position: absolute; content: ""; inset: -6px; border: 2px solid rgba(32,185,87,.58); border-radius: inherit; animation: whatsapp-pulse 3.2s ease-out infinite; pointer-events: none; }
.whatsapp-float:hover { transform: translateY(-4px); background: #159b47; }
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }
@keyframes whatsapp-pulse { 0%, 55% { opacity: 0; transform: scale(.96); } 15% { opacity: 1; } 75%, 100% { opacity: 0; transform: scale(1.08); } }
@keyframes whatsapp-attention { 0%, 72%, 100% { transform: scale(1); } 76% { transform: scale(1.06); } 80% { transform: scale(1); } 84% { transform: scale(1.035); } 88% { transform: scale(1); } }

@media (min-width: 851px) and (max-width: 2200px) {
  .container { width: min(calc(100% - 48px), var(--max)); }
  .nav-wrap { min-height: 68px; }
  .site-header .brand-logo { width: 150px; }
  .main-nav { gap: 22px; font-size: 13px; }
  .nav-cta { font-size: 12px; padding: 10px 12px; }
  .hero { min-height: 560px; height: min(100svh, 900px); }
  .hero-content { justify-content: flex-start; padding-top: 86px; }
  .hero-copy { max-width: 570px; }
  .hero .eyebrow { font-size: 13px; }
  h1 { max-width: 570px; font-size: clamp(calc(3.2rem + 2px), calc(4.2vw + 2px), calc(4.1rem + 2px)); line-height: .92; }
  .hero-lead { max-width: 430px; font-size: 17px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 15px; }
  .hero-actions .button span, .hero-actions .text-link span { font-size: 19px; }
  .hero-note { right: 10%; bottom: 13%; font-size: 14px; }
  .hero-actions { gap: 42px; }
  .hero-note strong { font-size: 22px; }
  .whatsapp-float { width: 56px; height: 56px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (min-width: 1501px) and (max-width: 2200px) {
  .hero-content { justify-content: center; padding-top: 40px; }
  .hero-note { bottom: 18%; }
  .site-header { background: linear-gradient(90deg, rgba(10,12,12,.34), rgba(10,12,12,.12) 58%, rgba(10,12,12,.48)); backdrop-filter: blur(2px); }
  .main-nav a:not(.nav-cta) { text-shadow: 0 1px 8px rgba(0,0,0,.65); }
}

@media (min-width: 2201px) {
  .hero .eyebrow { font-size: 15px; }
  h1 { font-size: clamp(calc(3.6rem + 2px), calc(6.3vw + 2px), calc(6.2rem + 2px)); }
  .hero-lead { font-size: 19px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 16px; }
  .hero-actions .button span, .hero-actions .text-link span { font-size: 19px; }
  .hero-note { font-size: 16px; }
  .hero-note strong { font-size: 24px; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .container { width: min(calc(100% - 40px), var(--max)); }
  .section-pad { padding: 92px 0; }
  .site-header { position: absolute; }
  .main-nav { position: absolute; display: none; top: 75px; right: 20px; left: 20px; padding: 22px; flex-direction: column; align-items: stretch; gap: 20px; background: rgba(32,35,35,.98); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 4px 0; }.main-nav .nav-cta { text-align: center; }
  .site-header .brand-logo { width: 185px; }
  .menu-toggle { display: flex; width: 33px; padding: 7px 0; flex-direction: column; gap: 6px; }
  .menu-toggle span { width: 28px; height: 1px; background: #fff; }
  .hero { min-height: 690px; height: 88vh; }.hero-content { padding-top: 80px; }
  h1 { font-size: clamp(3.2rem, 12vw, 5rem); }.hero-note { right: 20px; bottom: 32px; }
  .intro-grid, .section-heading, .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .intro-aside { max-width: 350px; margin-top: 10px; padding-left: 0; }.aside-rule { width: 100px; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 48px; }.section-heading > div:last-child { grid-column: auto; }.service-grid { grid-template-columns: 1fr; }.service-card { min-height: 280px; }.service-card h3 { margin-top: 80px; }.service-title-row h3 { margin-top: 0; }
  .process-intro h2 { margin-top: 44px; }.steps { padding-top: 12px; }
  .contact-signature { margin-top: 42px; }.contact-form { padding: 24px 20px; }
  .footer-wrap { grid-template-columns: 1fr; min-height: 0; padding: 32px 0 24px; gap: 28px; }.footer-legal { grid-column: auto; margin-top: 0; }.footer-column a { max-width: 360px; }
  .whatsapp-float { right: 18px; bottom: 18px; width: 58px; height: 58px; }.whatsapp-float svg { width: 29px; height: 29px; }
  .service-image { height: 155px; }
}

@media (min-width: 501px) and (max-width: 850px) {
  .hero-copy { text-align: center; }
  .hero-lead { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 500px) {
  .hero { min-height: 0; height: 720px; }
  .hero-content { padding-top: 58px; }
  .hero-copy { text-align: center; }
  .mobile-break { display: inline; }
  .hero-lead { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
  .button { padding: 12px 13px; font-size: 12px; }
  .button span { margin-left: 8px; font-size: 15px; }
  .hero-note { right: 0; bottom: 8px; width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; }
  .hero-note .note-line { display: none; }
}

@media (max-width: 350px) {
  .hero { height: 700px; }
  .hero-content { padding-top: 42px; }
  h1 { font-size: 2.7rem; line-height: .9; }
  .hero-lead { margin-bottom: 22px; font-size: 14px; line-height: 1.5; }
  .hero-actions { gap: 12px; }
  .button { padding: 10px 9px; font-size: 11px; line-height: 1.2; }
  .button span { margin-left: 7px; font-size: 14px; }
  .text-link { gap: 7px; font-size: 11px; }
  .text-link span { font-size: 14px; }
  .hero-note { bottom: 8px; font-size: 11px; }
  .hero-note strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; }.button, .service-card { transition: none; } }
