/* ==========================================================================
   New Jersey Roof Company — General Contractor & Roofing
   Framer-style system: clean type, soft cards, generous space.
   ========================================================================== */

:root {
  /* Neutrals */
  --bg:            #FBFAF8;
  --bg-soft:       #F3F1ED;
  --surface:       #FFFFFF;
  --ink:           #0C0D0F;
  --ink-2:         #3A3D42;
  --ink-3:         #6B7078;
  --line:          rgba(12, 13, 15, .09);
  --line-2:        rgba(12, 13, 15, .16);

  /* Dark sections */
  --dark:          #0C0D0F;
  --dark-2:        #16181C;
  --dark-line:     rgba(255, 255, 255, .12);
  --on-dark:       #F5F5F4;
  --on-dark-2:     #A2A6AD;

  /* Accent */
  --accent:        #E1522A;
  --accent-2:      #F97C4A;
  --accent-soft:   rgba(225, 82, 42, .10);

  /* Shape */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(12,13,15,.05), 0 1px 3px rgba(12,13,15,.04);
  --sh-md: 0 4px 12px rgba(12,13,15,.06), 0 12px 32px rgba(12,13,15,.06);
  --sh-lg: 0 8px 24px rgba(12,13,15,.08), 0 32px 64px rgba(12,13,15,.10);

  --maxw: 1400px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
figure, figcaption, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.75rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.section-pad { padding-block: clamp(64px, 7.5vw, 104px); }

/* ---------- Small shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  box-shadow: var(--sh-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.eyebrow--dark {
  background: rgba(255,255,255,.06);
  border-color: var(--dark-line);
  color: var(--on-dark-2);
  box-shadow: none;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-3);
  line-height: 1.62;
  letter-spacing: -0.011em;
  max-width: 56ch;
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin: 18px 0 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding-inline: 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.012em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s, box-shadow .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-md);
}
.btn--primary:hover { background: #22252A; box-shadow: var(--sh-lg); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(225,82,42,.28);
}
.btn--accent:hover { background: #CF4720; box-shadow: 0 10px 30px rgba(225,82,42,.36); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--onDark {
  background: rgba(255,255,255,.08);
  border-color: var(--dark-line);
  color: var(--on-dark);
}
.btn--onDark:hover { background: rgba(255,255,255,.14); }

.btn--sm { height: 44px; padding-inline: 20px; font-size: 14.5px; }

/* ---------- Navbar ---------- */

.nav {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: inset .3s ease;
}
.nav__inner {
  pointer-events: auto;
  width: min(100% - 32px, var(--maxw));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(251, 250, 248, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: box-shadow .3s ease, background-color .3s ease, border-color .3s;
}
.nav.is-stuck .nav__inner {
  box-shadow: var(--sh-md);
  background: rgba(251, 250, 248, .88);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* El PNG de marca es blanco (viene para fondo oscuro): lo pasamos a negro por CSS
   para que funcione sobre los fondos claros del sitio. */
.brand__logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}
.footer .brand__logo { height: 74px; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 14.5px; font-weight: 650; letter-spacing: -0.03em; }
.brand__sub { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  transition: background-color .18s, color .18s;
}
.nav__links a:hover { background: rgba(12,13,15,.05); color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  font-size: 14.5px; font-weight: 550; letter-spacing: -0.015em;
}
.nav__phone svg { width: 15px; height: 15px; opacity: .55; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
}
.nav__burger span {
  display: block; position: relative;
  width: 17px; height: 1.6px; border-radius: 2px; background: var(--ink);
  transition: transform .25s, background-color .2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.6px; border-radius: 2px; background: var(--ink);
  transition: transform .25s, top .25s;
}
.nav__burger span::before { top: -5.5px; }
.nav__burger span::after  { top:  5.5px; }
.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: calc(var(--nav-h) + 26px) 16px auto 16px;
  z-index: 99;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(251,250,248,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sh-lg);
  display: none;
  opacity: 0;
  transform: translateY(-8px) scale(.99);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.3,1);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  font-size: 16px; font-weight: 520; letter-spacing: -0.015em;
}
.mobile-menu a:hover { background: rgba(12,13,15,.05); }
.mobile-menu .btn { width: 100%; margin-top: 8px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: clamp(60px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -340px; left: 50%;
  width: 1100px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(225,82,42,.16), rgba(225,82,42,0) 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(12,13,15,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,13,15,.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero__top { max-width: 1040px; }
.hero h1 { margin: 24px 0 16px; text-wrap: balance; }
.hero__tagline {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 550;
  letter-spacing: -0.032em;
  line-height: 1.18;
  color: var(--ink-2);
  max-width: 22ch;
  margin-bottom: 22px;
}
.hero h1 em,
.hero__tagline em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { max-width: 60ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.hero__note {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-3); letter-spacing: -0.01em;
  margin-left: 6px;
}

/* Hero media collage */
.hero__media {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-auto-rows: clamp(260px, 30vw, 430px);
  gap: 4px;
  margin-top: 48px;
}
.hero__shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
}
.hero__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.hero__shot:hover img { transform: scale(1.04); }
.hero__shot--tall,
.hero__shot--sm { height: 100%; }
.hero__tag {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(12,13,15,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em;
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 28px 26px; }
.stat__n {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: center; gap: 7px;
}
.stat__n svg { width: 20px; height: 20px; color: var(--accent); }
.stat__l { margin-top: 9px; font-size: 14px; color: var(--ink-3); letter-spacing: -0.01em; }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 20px;
  overflow: hidden;
  --dur: 42s;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: slide var(--dur) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 0; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  padding-inline: 22px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .6;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Services (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--line-2);
}
.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-3); letter-spacing: -0.008em; line-height: 1.58; }
.card__list {
  list-style: none;
  margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.card__list li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em;
  background: var(--bg);
}

.card--wide { grid-column: span 2; }
.card--dark {
  background: var(--dark);
  border-color: transparent;
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}
.card--dark p { color: var(--on-dark-2); }
.card--dark .card__icon { background: rgba(255,255,255,.09); color: var(--accent-2); }

/* ---------- Work gallery ---------- */

/* Extra breathing room above the projects section + bigger photos */
.section-pad--work {
  padding-top: clamp(96px, 10vw, 140px);
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* Category filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.filter {
  height: 42px;
  padding-inline: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 520;
  letter-spacing: -0.014em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .18s;
}
.filter:hover { border-color: var(--ink); transform: translateY(-1px); }
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(300px, 27vw, 400px);
  gap: 4px;
}
.shot.is-hidden { display: none; }

.work-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 15.5px;
}
.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  cursor: pointer;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1), filter .4s;
}
.shot:hover img { transform: scale(1.05); }
.shot__meta {
  position: absolute; inset: auto 0 0 0;
  padding: 46px 22px 20px;
  background: linear-gradient(to top, rgba(10,11,13,.86), rgba(10,11,13,0));
  color: #fff;
  transform: translateY(6px);
  opacity: .96;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.shot:hover .shot__meta { transform: none; }
.shot__meta strong { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }
.shot__meta span { font-size: 13.5px; color: rgba(255,255,255,.72); letter-spacing: -0.005em; }


/* ---------- Reviews ---------- */

.reviews { background: var(--dark); color: var(--on-dark); }
.reviews h2 { color: #fff; }
.reviews .lede { color: var(--on-dark-2); }

.rating-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
}
.rating-badge__score { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stars { display: flex; gap: 2.5px; }
.stars svg { width: 15px; height: 15px; color: #FBBF24; }
.rating-badge__sub { font-size: 13.5px; color: var(--on-dark-2); margin-top: 5px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 40px;
}
.review {
  padding: 28px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  background: var(--dark-2);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.review:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.24); }
.review p {
  font-size: 17px; letter-spacing: -0.015em; line-height: 1.5;
  color: #EDEDEC;
}
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.review__name { font-size: 14.5px; font-weight: 550; letter-spacing: -0.015em; }
.review__src { font-size: 12.5px; color: var(--on-dark-2); }

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  counter-reset: step;
}
.step {
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.step__n {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 14.8px; color: var(--ink-3); line-height: 1.55; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.info-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.info-list li {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .ico {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--ink-2);
}
.info-list .ico svg { width: 18px; height: 18px; }
.info-list dt {
  font-size: 12.5px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 3px;
}
.info-list dd { margin: 0; font-size: 16.5px; font-weight: 520; letter-spacing: -0.018em; }
.info-list dd small { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink-3); letter-spacing: -0.005em; margin-top: 2px; }
.info-list a:hover { color: var(--accent); }

.form-card {
  padding: clamp(26px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-lg);
}
.form-card__head { margin-bottom: 26px; }
.form-card__head h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card__head p { font-size: 15px; color: var(--ink-3); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13.5px; font-weight: 520; letter-spacing: -0.008em;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15.5px;
  letter-spacing: -0.012em;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7078' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 0 0 3.5px rgba(12,13,15,.07);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #DC2626; box-shadow: 0 0 0 3.5px rgba(220,38,38,.09); }
.field .err { display: none; margin-top: 6px; font-size: 13px; color: #DC2626; }
.field.has-error .err { display: block; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 20px;
  font-size: 13px; color: var(--ink-3); line-height: 1.5;
}
.form-consent input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--accent); }

.form-card .btn--accent { width: 100%; height: 54px; }
.form-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

.form-alert {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.form-alert.is-ok  { display: block; background: rgba(34,197,94,.10); color: #15803D; border: 1px solid rgba(34,197,94,.26); }
.form-alert.is-bad { display: block; background: rgba(220,38,38,.08); color: #B91C1C; border: 1px solid rgba(220,38,38,.22); }

.btn.is-loading { pointer-events: none; opacity: .72; }

/* ---------- CTA band ---------- */

.cta-band { padding-block: clamp(60px, 7vw, 88px); }
.cta-box {
  position: relative;
  padding: clamp(40px, 5.5vw, 70px);
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  text-align: center;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  width: 720px; height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(225,82,42,.34), transparent 72%);
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; margin: 18px auto 16px; max-width: 15ch; }
.cta-box p { color: var(--on-dark-2); max-width: 52ch; margin-inline: auto; font-size: 1.05rem; }
.cta-box .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 34px;
  background: var(--bg-soft);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
}
.footer p { font-size: 15px; color: var(--ink-3); max-width: 42ch; margin-top: 18px; line-height: 1.6; }
.footer h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 550; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 15px; color: var(--ink-2); letter-spacing: -0.012em; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--ink-3);
}
.footer__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 8px 14px;
  margin-left: auto;   /* se pega a la derecha aunque caiga a su propia línea */
}
.footer__credit {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  letter-spacing: -0.008em;
  white-space: nowrap;
}
.footer__credit-sub::before { content: "·"; margin-right: 5px; }
.footer__credit a {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color .2s;
}
.footer__credit a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(8,9,11,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }
.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer;
  font-size: 20px; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.18); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }
  .mobile-menu { display: block; visibility: hidden; }
  .mobile-menu.is-open { visibility: visible; }
  .hero__media { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(220px, 32vw, 320px); gap: 4px; }
  .hero__shot--tall { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-pad--work { padding-top: clamp(96px, 14vw, 140px); }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(240px, 34vw, 320px); gap: 4px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__note { margin-left: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__meta { margin-left: 0; justify-content: flex-start; }
  .footer__credit { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
  .footer__credit-sub { flex-basis: 100%; }
  .footer__credit-sub::before { content: none; }
  .hero__media { grid-template-columns: 1fr; grid-auto-rows: clamp(220px, 58vw, 300px); }
  .hero__shot--tall { grid-column: span 1; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(260px, 62vw, 340px); }
}
