/* ============================================================================
   JB CONTRACTORS SERVICES LLC — Editorial home (motion language inspired by
   arquitecturaresidencial.com.ar). Mantiene la identidad JB: verde bosque,
   salvia, crema, tipografia Archivo + Public Sans y el logo trazado.
   ========================================================================== */

:root {
  --ed-ink: #17181a;
  --ed-ink-soft: #55575c;
  --ed-ink-faint: #8b8d93;
  --ed-green: #2a5630;
  --ed-green-bright: #3e7b46;
  --ed-green-soft: #68b66e;
  --ed-sage: #bfcab2;
  --ed-sage-light: #d3dbc7;
  --ed-cream: #f6f7f3;
  --ed-sand: #e9e3d4;
  --ed-gold: #d89c46;
  --ed-line: rgba(23, 24, 26, .12);
  --ed-ease: cubic-bezier(.33, 1, .68, 1);
  --ed-ease-io: cubic-bezier(.65, 0, .35, 1);
  --ed-container: 1300px;
}

/* ------------------------------ Base editorial ---------------------------- */
.ed-section { position: relative; padding: clamp(64px, 9vw, 150px) 0; }
.ed-container { max-width: var(--ed-container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.ed-kicker {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ed-green);
}
.ed-h2 { font-size: clamp(30px, 3.6vw, 58px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 20px; }
.ed-h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; margin: 0 0 10px; }
.ed-p { color: var(--ed-ink-soft); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7; margin: 0 0 18px; max-width: 56ch; }

/* Boton con reveal de texto (estilo "button--Reveal" de la referencia) */
.ed-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ed-ink);
  padding: 4px 0;
  overflow: hidden;
}
.ed-btn > span { position: relative; display: block; overflow: hidden; }
.ed-btn > span > span { display: block; transition: transform .45s var(--ed-ease); }
.ed-btn > span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: translateY(105%);
  transition: transform .45s var(--ed-ease);
  color: var(--ed-green-bright);
}
.ed-btn:hover > span > span { transform: translateY(-105%); }
.ed-btn:hover > span::after { transform: translateY(0); }
.ed-btn svg { flex: none; transition: transform .45s var(--ed-ease); }
.ed-btn:hover svg { transform: translateX(5px); }
.ed-btn--light { color: #fff; }
.ed-btn--light > span::after { color: var(--ed-green-soft); }

/* ------------------------------- Hero fullscreen --------------------------- */
.ed-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ed-ink);
  color: #fff;
}
.ed-hero-bg {
  position: absolute;
  inset: -12% 0 -12%;
  background-image: url('/img/ref/ref-hero.webp');
  background-size: cover;
  background-position: 50% 50%;
  will-change: transform, filter;
  z-index: 0;
}
.ed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 46%, rgba(0, 0, 0, .34) 100%);
  pointer-events: none;
}
.ed-hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(38px, 7vh, 90px); }
.ed-hero-kicker {
  margin: 0 0 clamp(26px, 5vh, 56px);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  color: rgba(255, 255, 255, .9);
  max-width: 42ch;
}
.ed-hero-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 70px); align-items: end; }
.ed-hero-brand img { width: min(100%, 420px); height: auto; display: block; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .35)); }
.ed-hero-title h1 {
  margin: 0 0 clamp(22px, 3vh, 34px);
  font-size: clamp(38px, 5.4vw, 86px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
}
.ed-hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
}
.ed-scroll {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  padding: 0 24px 22px 0;
}
.ed-scroll::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent);
}
@media (max-width: 900px) {
  .ed-hero-main { grid-template-columns: 1fr; }
  .ed-hero-brand img { width: min(100%, 320px); }
}

/* ------------------------------ Intro 2 columnas -------------------------- */
.ed-about { background: var(--ed-cream); }
.ed-about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 6vw, 90px); align-items: center; }
.ed-about-media { position: relative; padding-bottom: clamp(30px, 6vw, 90px); padding-right: clamp(20px, 4vw, 70px); }
.ed-fig { margin: 0; overflow: hidden; background: var(--ed-sand); }
.ed-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-fig--main { aspect-ratio: 4 / 3; }
.ed-fig--main img { will-change: transform; }
.ed-fig--tall {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--ed-cream);
}
.ed-fig--tall img { will-change: transform; }
@media (max-width: 900px) {
  .ed-about-grid { grid-template-columns: 1fr; }
  .ed-about-media { padding-right: 0; }
}

/* ------------------------------- Carrusel --------------------------------- */
.ed-homes { background: var(--ed-cream); padding-top: 0; }
.ed-homes-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: end; margin-bottom: clamp(26px, 4vw, 46px); }
.ed-homes-head p { margin: 0; color: var(--ed-ink-soft); font-size: clamp(14px, .95vw, 16px); line-height: 1.65; max-width: 46ch; }
.ed-carousel { position: relative; }
.ed-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
}
.ed-carousel-track::-webkit-scrollbar { display: none; }
.ed-carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ed-slide {
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 400px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--ed-sand);
  aspect-ratio: 1 / 1;
}
.ed-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ed-ease);
}
.ed-slide:hover img { transform: scale(1.07); }
.ed-slide-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent);
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .5s var(--ed-ease), opacity .5s var(--ed-ease);
}
.ed-slide:hover .ed-slide-body,
.ed-slide:focus-within .ed-slide-body { transform: translateY(0); opacity: 1; }
.ed-slide-body h3 { margin: 0 0 4px; font-size: clamp(16px, 1.3vw, 21px); font-weight: 600; }
.ed-slide-body span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.ed-carousel-nav { display: flex; gap: 10px; margin-top: 22px; }
.ed-carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ed-line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.ed-carousel-btn:hover { background: var(--ed-green); border-color: var(--ed-green); color: #fff; }
.ed-carousel-btn[disabled] { opacity: .3; cursor: default; }

/* -------------------------------- Marquee --------------------------------- */
.ed-marquee { background: var(--ed-sage); padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.ed-marquee h2 { margin: 0 0 clamp(22px, 3vw, 40px); font-size: clamp(26px, 3vw, 46px); font-weight: 500; letter-spacing: -.025em; }
.ed-marquee-viewport { overflow: hidden; width: 100%; }
.ed-marquee-viewport + .ed-marquee-viewport { margin-top: 6px; }
.ed-marquee-inner { display: flex; width: max-content; will-change: transform; }
.ed-marquee-inner span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 56px);
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ed-green);
}
.ed-marquee-inner span::after { content: "•"; color: var(--ed-green-bright); opacity: .5; }
.ed-marquee-viewport.is-rev .ed-marquee-inner span { color: var(--ed-ink); }
.ed-marquee-viewport.is-rev .ed-marquee-inner span::after { color: var(--ed-ink); opacity: .3; }

/* ----------------------------- Filosofia / firma --------------------------- */
.ed-philosophy { background: var(--ed-sage); padding-top: 0; }
.ed-philosophy-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ed-philosophy-media { position: relative; }
.ed-philosophy-media .ed-fig { aspect-ratio: 3 / 4; }
.ed-philosophy-media .ed-fig--float {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--ed-sage);
}
.ed-signature { margin: clamp(20px, 3vw, 34px) 0 0; }
.ed-signature strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.ed-signature span { font-size: 13.5px; color: var(--ed-ink-soft); }
@media (max-width: 900px) {
  .ed-philosophy-grid { grid-template-columns: 1fr; }
  .ed-philosophy-media .ed-fig--float { right: 0; width: 46%; }
}

/* ------------------------------ Proceso / equipo --------------------------- */
.ed-process { background: var(--ed-cream); }
.ed-process-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ed-process-media { position: relative; padding-left: clamp(0px, 4vw, 60px); }
.ed-process-media .ed-fig--a { aspect-ratio: 3 / 2; }
.ed-process-media .ed-fig--b {
  position: absolute;
  left: 0;
  bottom: -12%;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--ed-cream);
}
@media (max-width: 900px) {
  .ed-process-grid { grid-template-columns: 1fr; }
  .ed-process-media { padding-left: 0; }
}

/* --------------------------- Proyectos destacados ------------------------- */
.ed-featured { background: var(--ed-cream); padding-top: 0; }
.ed-featured-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.ed-featured-head p { margin: 0; color: var(--ed-ink-soft); line-height: 1.65; max-width: 46ch; }
.ed-featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4vw, 64px); align-items: start; }
.ed-feature { position: relative; }
.ed-feature:nth-child(even) { margin-top: clamp(30px, 7vw, 110px); }
.ed-feature-media {
  position: relative;
  overflow: hidden;
  background: var(--ed-sand);
  aspect-ratio: 3 / 2;
  margin: 0;
}
.ed-feature:nth-child(3n) .ed-feature-media { aspect-ratio: 3 / 4; }
.ed-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ed-ease); }
.ed-feature:hover .ed-feature-media img { transform: scale(1.06); }
.ed-feature-body { padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.ed-feature-body span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ed-green); }
.ed-feature-body h3 { margin: 0; font-size: clamp(19px, 1.6vw, 25px); font-weight: 600; letter-spacing: -.02em; }
.ed-feature-body p { margin: 0; color: var(--ed-ink-soft); font-size: 14px; line-height: 1.6; }
.ed-feature-marks {
  position: absolute;
  right: -5%;
  bottom: 30%;
  width: 30%;
  opacity: .1;
  pointer-events: none;
  z-index: 0;
  transform: scale(1);
  will-change: transform;
}
.ed-feature-media { overflow: visible; }
.ed-feature-body { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .ed-featured-grid { grid-template-columns: 1fr; }
  .ed-feature:nth-child(even) { margin-top: 0; }
}

/* ------------------------------ Testimonios ------------------------------- */
.ed-testimonials { background: var(--ed-sage); }
.ed-testimonials-head { margin-bottom: clamp(26px, 4vw, 50px); }
.ed-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.ed-testimonial {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .7);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ed-testimonial blockquote { margin: 0; font-size: clamp(14px, .95vw, 16px); line-height: 1.65; color: var(--ed-ink); }
.ed-testimonial-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ed-testimonial-meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--ed-sand); }
.ed-testimonial-meta strong { display: block; font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ed-testimonial-meta span { font-size: 12.5px; color: var(--ed-ink-soft); }
@media (max-width: 900px) { .ed-testimonials-grid { grid-template-columns: 1fr; } }

/* --------------------------------- Banner --------------------------------- */
.ed-banner {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ed-ink);
  color: #fff;
}
.ed-banner-bg {
  position: absolute;
  inset: -14% 0;
  background-image: url('/img/ref/ref-banner.webp');
  background-size: cover;
  background-position: 50% 45%;
  will-change: transform;
}
.ed-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .25)); }
.ed-banner-inner { position: relative; z-index: 2; max-width: 900px; }
.ed-banner h2 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 54px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; color: #fff; }
.ed-banner p { margin: 0 0 26px; color: rgba(255, 255, 255, .84); max-width: 56ch; line-height: 1.7; }

/* ------------------------------- Contacto final --------------------------- */
.ed-contact { background: var(--ed-cream); }
.ed-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.ed-contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.ed-contact-list a { font-size: clamp(18px, 1.6vw, 24px); font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--ed-line); padding-bottom: 12px; transition: border-color .25s ease, color .25s ease; }
.ed-contact-list a:hover { border-color: var(--ed-green); color: var(--ed-green); }
.ed-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ed-form .field { display: flex; flex-direction: column; gap: 7px; }
.ed-form .field--full { grid-column: 1 / -1; }
.ed-form label { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ed-ink-soft); font-weight: 600; }
.ed-form input, .ed-form textarea, .ed-form select {
  border: 1px solid var(--ed-line);
  background: #fff;
  padding: 14px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ed-ink);
  border-radius: 0;
  transition: border-color .2s ease;
}
.ed-form input:focus, .ed-form textarea:focus, .ed-form select:focus { outline: none; border-color: var(--ed-green); }
.ed-form textarea { resize: vertical; min-height: 128px; }
.ed-form button[type="submit"] { justify-self: start; }
@media (max-width: 900px) {
  .ed-contact-grid { grid-template-columns: 1fr; }
  .ed-form { grid-template-columns: 1fr; }
}

/* --------------------------- Animaciones de entrada ----------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ed-ease), transform .9s var(--ed-ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"].is-in, [data-reveal="right"].is-in, [data-reveal="scale"].is-in { transform: none; }

.ed-reveal-lines { overflow: hidden; }
.ed-reveal-lines > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ed-ease); }
.ed-reveal-lines.is-in > span { transform: none; }
.ed-reveal-lines.is-in > span:nth-child(2) { transition-delay: .12s; }
.ed-reveal-lines.is-in > span:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="left"], [data-reveal="right"], [data-reveal="scale"] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ed-reveal-lines > span { transform: none !important; transition: none !important; }
  .ed-marquee-inner { transform: none !important; }
  .ed-hero-bg, .ed-banner-bg, .ed-fig img, .ed-feature-marks { transform: none !important; }
}
