/* Mega Constructores — Estilos */
:root {
  --black: #151515;
  --black-2: #1f1f1f;
  --black-3: #2a2a2a;
  --orange: #f39a2b;
  --orange-2: #dc8114;
  --soft: #f4f2ef;
  --line: #e6e2dc;
  --text: #1b1b1b;
  --muted: #646464;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); color: var(--text); line-height: 1.65; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--orange); color: var(--black); padding: .6em 1em; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow { font: 700 .8rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 14px; height: 14px; border: 3px solid currentColor; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(2px,-2px); }
.eyebrow--dark { color: var(--orange-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 1em 1.7em; border-radius: 12px; border: 2px solid transparent; font: 700 1rem var(--font-head); cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--orange); color: var(--black); box-shadow: 0 10px 24px rgba(243,154,43,.35); }
.btn--accent:hover { background: #ffaa40; }
.btn--line { border-color: var(--black); color: var(--black); }
.btn--line:hover { background: var(--black); color: #fff; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; box-shadow: none; }
.btn--block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 6px 22px rgba(0,0,0,.08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--black); }
.brand img { width: 62px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__text { font: 900 1.25rem/1 var(--font-head); text-transform: uppercase; display: flex; flex-direction: column; }
.brand__text b { font-weight: 900; color: var(--orange-2); }
.brand__text small { font: 600 .62rem var(--font-body); letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; position: relative; z-index: 59; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--black); margin: 6px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.backdrop.is-open { opacity: 1; visibility: visible; }

/* Hero */
.hero { padding: 130px 0 90px; background: var(--soft); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 55%; background: var(--orange); clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(36px, 6vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; text-transform: uppercase; }
.hero h1 span { color: var(--orange-2); display: block; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__chips li { padding: .45em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.hero__media { position: relative; }
.hero__media > picture img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 8px solid #fff; box-shadow: 0 30px 60px rgba(0,0,0,.25); transform: rotate(2deg); transition: transform .5s var(--ease); }
.hero__media:hover > picture img { transform: rotate(0); }
.hero__badge { position: absolute; left: -24px; bottom: 30px; display: flex; gap: .8rem; align-items: center; background: var(--black); color: #fff; padding: 1rem 1.3rem; border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.hero__badge svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__badge strong { display: block; font: 800 1.05rem var(--font-head); }
.hero__badge span { font-size: .8rem; color: #bdbdbd; }

/* Secciones */
.section { padding: clamp(75px, 10vw, 115px) 0; }
.section--dark { background: var(--black); color: #fff; }
.section--soft { background: var(--soft); }
.section__head { max-width: 680px; margin-bottom: 2.8rem; }
.section__sub { color: #a8a8a8; margin: 0; }
.title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 900; text-transform: uppercase; color: var(--black); }
.title--light { color: #fff; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.svc { position: relative; display: flex; flex-direction: column; padding: 2rem 1.8rem; background: var(--black-2); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.svc::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.svc:hover { transform: translateY(-6px); border-color: rgba(243,154,43,.6); background: var(--black-3); }
.svc:hover::before { transform: scaleX(1); }
.svc__icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--orange); margin-bottom: 1.3rem; }
.svc__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc__num { position: absolute; top: 1.6rem; right: 1.6rem; font: 900 2.4rem/1 var(--font-head); color: rgba(255,255,255,.07); }
.svc h3 { font-size: 1.35rem; text-transform: uppercase; color: #fff; }
.svc p { margin: 0 0 1.2rem; color: #b3b3b3; font-size: .95rem; }
.svc__go { margin-top: auto; font: 700 .9rem var(--font-head); color: var(--orange); }
.svc--wide { grid-column: span 2; }

/* Trabajos */
.works { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(36px, 6vw, 70px); align-items: center; }
.works__text > p:not(.eyebrow) { color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; padding: .7em 1.1em; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s, background .2s; }
.social:hover { border-color: var(--orange); background: var(--soft); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--orange-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.works__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.work { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--soft); }
.work:nth-child(2) { margin-top: 3rem; }
.work img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font: 700 .9rem var(--font-head); text-align: left; }

/* Placas */
.section__sub--dark { color: var(--muted); }
.flyers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.flyer { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--black); box-shadow: 0 14px 34px rgba(0,0,0,.12); transition: transform .3s var(--ease), box-shadow .3s; }
.flyer:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.2); }
.flyer { aspect-ratio: 4/5; display: block; position: relative; background: #0d0d0d; }
.flyer picture { position: absolute; inset: 0; }
.flyer picture { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.flyer img { width: 100%; height: 100%; object-fit: contain; }

/* CTA */
.cta { background: var(--orange); color: var(--black); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: 8%; top: -40px; width: 140px; height: 140px; border: 14px solid rgba(0,0,0,.08); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.cta__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3.2rem 0; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; text-transform: uppercase; margin-bottom: .2rem; }
.cta p { margin: 0; font-weight: 500; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-weight: 600; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--orange-2); }
.contact__icon { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--black); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form { background: #fff; padding: 2.2rem; border-radius: var(--radius); display: grid; gap: 1.1rem; box-shadow: 0 24px 60px rgba(0,0,0,.08); border-top: 5px solid var(--orange); }
.form h3 { font-size: 1.6rem; text-transform: uppercase; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .88rem; min-width: 0; }
.form input:not([type="checkbox"]), .form select, .form textarea { font: 400 1rem var(--font-body); color: var(--text); padding: .85em 1em; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243,154,43,.2); background: #fff; }
.form .urgent { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.form .urgent input { width: 20px; height: 20px; accent-color: var(--orange-2); }
.form .is-invalid { border-color: #c62828 !important; }
.form__error { color: #c62828; font-size: .88rem; margin: 0; }
.form__note { margin: 0; font-size: .9rem; color: var(--muted); text-align: center; }
.form__error:empty, .form__note:empty { display: none; }

/* Footer */
.footer { background: var(--black); color: #9a9a9a; padding-top: 50px; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 30px; }
.brand--footer { color: #fff; }
.brand--footer img { background: #fff; border-radius: 12px; padding: 6px; width: 64px; }
.brand--footer .brand__text small { color: #9a9a9a; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { text-decoration: none; color: #e6e6e6; }
.footer__nav a:hover { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #1fae55; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(31,174,85,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.95); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 10px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--orange); color: var(--black); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc--wide { grid-column: span 2; }
  .flyers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 0; right: 0; height: 100svh; width: min(320px, 85vw); z-index: 58; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; background: #fff; padding: 2rem; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.4rem; }
  .hero::before { width: 100%; right: 0; top: auto; height: 42%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .hero__grid, .works, .contact { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin: 0 auto; width: calc(100% - 24px); }
}
@media (max-width: 560px) {
  .brand img { width: 50px; }
  .brand__text { font-size: 1.05rem; }
  .hero { padding-top: 110px; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { left: -12px; }
  .services { grid-template-columns: 1fr; }
  .svc--wide { grid-column: auto; }
  .work:nth-child(2) { margin-top: 1.5rem; }
  .form { padding: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
}
