/* ==========================================================================
   Prospecta By Ross — Landing negocios de servicios
   Paleta: negro #111 · crema #F5F1E8 · oliva #7A8B2E · lima #9BB84A
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #191917;
  --ink-3: #232320;
  --cream: #F5F1E8;
  --cream-2: #ECE5D6;
  --white: #ffffff;
  --olive: #7A8B2E;
  --olive-deep: #5B6A1C;
  --lime: #9BB84A;
  --muted-dark: rgba(245, 241, 232, .72);
  --muted-light: #5a5750;
  --line-dark: rgba(245, 241, 232, .12);
  --line-light: rgba(17, 17, 17, .12);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.light .eyebrow { color: var(--olive-deep); }
.rule { display: block; width: 64px; height: 3px; background: var(--lime); margin-top: 28px; }
.light .rule { background: var(--olive); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); flex-shrink: 0; }
.btn svg.ico-wa { fill: currentColor; stroke: none; width: 19px; height: 19px; }
.btn:hover svg:not(.ico-wa) { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--cream); box-shadow: 0 14px 30px -14px rgba(155, 184, 74, .7); }
.btn-ghost { border-color: rgba(245, 241, 232, .35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--olive); color: var(--cream); }
.btn-sm { padding: 12px 20px; font-size: 11.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--ease);
}
/* El fondo va en un pseudo-elemento: un backdrop-filter en el propio header
   atraparía el menú móvil (position: fixed) dentro de su caja */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.site-header.scrolled { --header-h: 68px; }
.site-header.scrolled::before { opacity: 1; }
.header-inner { position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a:not(.btn) {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--cream); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 85% 30%, rgba(155, 184, 74, .08), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 40px;
  flex: 1;
}
.hero-copy { padding-bottom: clamp(28px, 4vh, 56px); position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2.5rem, 4.3vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--lime); }
.hero-sub { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--muted-dark); max-width: 560px; margin-bottom: 30px; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-micro { font-size: 12.5px; letter-spacing: .06em; color: rgba(245, 241, 232, .55); }

/* Entrada del hero (CSS puro: funciona aunque falle el JS) */
.hero-in { animation: heroIn 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-title .hero-in { animation-name: lineUp; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

.hero-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero-photo {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 450 / 686;
  max-height: calc(100svh - var(--header-h) - 150px);
  overflow: hidden;
  will-change: transform;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 11%, rgba(17, 17, 17, 0) 42%),
    linear-gradient(0deg, var(--ink) 0%, rgba(17, 17, 17, 0) 22%);
  pointer-events: none;
}
.hero-side {
  position: absolute;
  right: 18px;
  top: 6%;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .32em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 14px;
  border-left: 2px solid var(--olive);
  z-index: 2;
}

.trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 26px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line-dark);
  margin-top: 0;
}
.trust li { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trust.container { border-top: 0; }
.trust::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line-dark);
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { background: var(--olive); color: var(--cream); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex-shrink: 0; opacity: .6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECCIONES BASE
   ========================================================================== */
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.section.light { background: var(--cream); color: var(--ink); }
.section.dark { background: var(--ink); color: var(--cream); }

/* ---------- Para ti ---------- */
.fit-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.fit-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 1.05rem;
  line-height: 1.55;
}
.fit-list li:first-child { padding-top: 0; }
.chk, .x {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  margin-top: -1px;
}
.chk { background: var(--olive); }
.chk svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.not-fit {
  background: var(--cream-2);
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: 4px;
  position: sticky;
  top: 110px;
}
.not-fit h3 { font-size: 1.7rem; margin-bottom: 22px; }
.not-fit li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; color: var(--muted-light); font-size: .97rem; line-height: 1.55; }
.x { background: transparent; border: 1px solid rgba(17, 17, 17, .25); width: 26px; height: 26px; }
.x svg { width: 12px; height: 12px; fill: none; stroke: var(--muted-light); stroke-width: 2.4; stroke-linecap: round; }

.bridge {
  margin-top: clamp(56px, 7vw, 90px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.bridge p { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.35; max-width: 720px; }
.bridge em { color: var(--olive-deep); }

/* ---------- Negocios (nichos) ---------- */
.niche-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; margin-bottom: clamp(44px, 5vw, 64px); }
.niche-head .section-head { margin-bottom: 0; }
.niche-intro { max-width: 400px; color: var(--muted-dark); font-weight: 300; font-size: 1.02rem; }
.niche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.niche {
  --mx: 50%; --my: 30%;
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 26px 24px 24px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
/* Foto de fondo */
.niche-photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
  filter: saturate(.85);
}
/* Degradado oscuro para que el texto siempre se lea */
.niche::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(0deg, rgba(17, 17, 17, .95) 0%, rgba(17, 17, 17, .72) 38%, rgba(17, 17, 17, .25) 70%, rgba(17, 17, 17, .35) 100%);
  transition: opacity .5s var(--ease);
}
/* Iluminación al pasar el mouse: baño oliva + foco de luz que sigue al cursor */
.niche::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(214, 235, 150, .38), transparent 65%),
    linear-gradient(0deg, rgba(91, 106, 28, .96) 0%, rgba(122, 139, 46, .7) 45%, rgba(155, 184, 74, .18) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.niche:hover { transform: translateY(-6px); border-color: rgba(155, 184, 74, .6); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(155, 184, 74, .25); }
.niche:hover::after { opacity: 1; }
.niche:hover .niche-photo { transform: scale(1.08); filter: saturate(1); }

.niche-ico {
  position: absolute; top: 22px; left: 22px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 17, 17, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(155, 184, 74, .55);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.niche-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.niche:hover .niche-ico { background: var(--cream); border-color: var(--cream); transform: scale(1.06); }
.niche:hover .niche-ico svg { stroke: var(--ink); }
.niche-name { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 8px; padding-right: 8px; }
.niche-desc { display: block; font-size: .9rem; line-height: 1.5; font-weight: 300; color: rgba(245, 241, 232, .82); transition: color .5s var(--ease); }
.niche:hover .niche-desc { color: var(--cream); }

/* Botón de flecha: crece al pasar el mouse por la tarjeta, y más aún sobre el botón */
.niche-arrow {
  position: absolute; top: 22px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 17, 17, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 241, 232, .18);
  transform-origin: top right;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.niche-arrow svg { width: 15px; height: 15px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s var(--ease), transform .55s var(--ease); }
.niche:hover .niche-arrow {
  transform: scale(1.4);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 10px 24px -8px rgba(155, 184, 74, .8);
}
.niche:hover .niche-arrow svg { stroke: var(--ink); transform: rotate(45deg); }
.niche .niche-arrow:hover { transform: scale(1.65); }

.niche-cta { background: transparent; border: 1px dashed rgba(155, 184, 74, .55); }
.niche-cta::before { display: none; }
.niche-cta .niche-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0; text-transform: none; font-weight: 400; line-height: 1.15; }

/* ---------- Proceso ---------- */
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.process-aside { position: sticky; top: 110px; }
.process-aside .section-head { margin-bottom: 40px; }
.phone { margin: 0; max-width: 300px; transform: rotate(-3deg); }
.phone img { border-radius: 8px; box-shadow: 0 40px 60px -30px rgba(17, 17, 17, .45); }

.steps { counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 26px; padding-bottom: 56px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 29px; top: 64px; bottom: 6px; width: 2px;
}
.step:not(:last-child)::before { background: var(--line-light); }
.step:not(:last-child)::after { background: var(--olive); transform: scaleY(0); transform-origin: top; transition: transform 1.1s var(--ease); }
.step.lit::after { transform: scaleY(1) !important; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream-2);
  color: var(--olive-deep);
  font-family: var(--serif); font-size: 1.6rem;
  border: 1px solid rgba(122, 139, 46, .35);
  transition: background-color .6s var(--ease), color .6s var(--ease), transform .6s var(--ease);
}
.step.lit .step-num { background: var(--olive); color: var(--cream); transform: scale(1.06); }
.step h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin: 6px 0 6px; }
.step-tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--olive-deep); margin-bottom: 12px !important; }
.step p { color: var(--muted-light); }
.steps-cta { margin-top: 56px; padding-left: 86px; }

/* ---------- Servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.svc {
  padding: clamp(30px, 3.4vw, 46px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .5s var(--ease);
}
.svc:hover { background: var(--ink-2); }
.svc-ico {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 30px;
  transition: background-color .4s var(--ease), transform .5s var(--ease);
}
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc-ico { background: var(--lime); transform: rotate(-8deg) scale(1.05); }
.svc h3 { font-size: 1.45rem; margin-bottom: 14px; }
.svc p { color: var(--muted-dark); font-weight: 300; font-size: .97rem; }
.svc-cta {
  background: linear-gradient(145deg, var(--olive) 0%, #5d6b20 100%);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.svc-cta:hover { background: linear-gradient(145deg, #86982f 0%, #5d6b20 100%); }
.svc-cta .script { font-family: var(--script); font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1.05; color: var(--cream); }
.svc-cta .btn { align-self: flex-start; background: var(--ink); color: var(--cream); }
.svc-cta .btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- Misión ---------- */
.mission { overflow: hidden; }
.mission-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.mission-photo {
  margin: 0;
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  background: var(--cream-2);
  border-radius: 999px 999px 4px 4px;
  padding-top: 40px;
  height: clamp(460px, 52vw, 620px);
  overflow: hidden;
}
.mission-photo img { height: 92%; width: auto; mix-blend-mode: multiply; }
.signature {
  position: absolute; right: 5%; bottom: 6%;
  font-family: var(--script); font-size: 3.6rem; color: var(--ink);
  transform: rotate(-8deg);
}
.mission-copy blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.3;
}
.mission-copy blockquote em { color: var(--olive-deep); }
.mission-tag { margin-top: 28px; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-light); }
.mission-tag strong { color: var(--olive-deep); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact-bg-script {
  position: absolute;
  top: 6%; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--script);
  font-size: clamp(6rem, 16vw, 15rem);
  color: var(--cream);
  opacity: .045;
  pointer-events: none;
  line-height: 1;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; position: relative; }
.contact-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.contact-copy h2 em { color: var(--lime); display: block; }
.contact-copy .lead { margin: 30px 0 34px; color: var(--muted-dark); font-weight: 300; font-size: 1.08rem; max-width: 520px; }
.contact-info { margin-top: 44px; padding-left: 24px; border-left: 1px solid var(--line-dark); display: grid; gap: 16px; }
.contact-info li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-info svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.contact-info a { transition: color .3s; }
.contact-info a:hover { color: var(--lime); }

.lead-form {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 4px;
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6);
}
.form-title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; }
.form-sub { color: var(--muted-light); margin: 6px 0 26px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; color: #3c3a35; }
.field label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted-light); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, .3);
  background: transparent;
  padding: 10px 2px;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.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='%23111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 16px;
  padding-right: 24px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--olive); border-bottom-width: 2px; }
.field.invalid input, .field.invalid select { border-bottom-color: #b5462f; }
.lead-form .btn { margin-top: 8px; }
.lead-form .btn-primary { background: var(--ink); color: var(--cream); }
.lead-form .btn-primary:hover { background: var(--olive); }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--muted-light); text-align: center; }
.form-note.ok { color: var(--olive-deep); font-weight: 500; }
.form-note.err { color: #b5462f; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0b; padding: 80px 0 40px; text-align: center; border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 220px; margin-bottom: 30px; }
.footer-claim { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); font-style: italic; color: var(--cream); }
.footer-motto { margin-top: 14px; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--lime); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 38px 0 44px; }
.footer-contact a { font-size: 14px; color: var(--muted-dark); transition: color .3s; }
.footer-contact a:hover { color: var(--lime); }
.copy { font-size: 12px; color: rgba(245, 241, 232, .4); letter-spacing: .04em; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .35s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   REVEAL ON SCROLL (solo se oculta si JS está activo)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* Red de seguridad CSS: si el JS no carga, todo aparece a los 6 s */
.js .reveal:not(.in) { animation: revealFallback .8s var(--ease) 6s forwards; }
@keyframes revealFallback { to { opacity: 1; transform: none; } }
.reveal[data-split] { opacity: 1; transform: none; }
.js .phone.reveal.in { transform: rotate(-3deg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .niche-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { height: 38px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0 9px;
    background: transparent; border: 0; cursor: pointer; z-index: 70;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: 0;
    background: var(--ink);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    z-index: 65;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--cream); }
  .nav-open { overflow: hidden; }

  /* Hero móvil: foto arriba, texto abajo */
  .hero { padding-top: var(--header-h); }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; justify-content: flex-start; margin: 0 calc(var(--gutter) * -1); }
  .hero-photo { width: 100%; max-height: none; aspect-ratio: 4 / 4.4; }
  .hero-photo img { width: 122%; max-width: none; margin-left: -22%; object-position: center 12%; }
  .hero-photo::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(17, 17, 17, .4) 28%, rgba(17, 17, 17, 0) 50%); }
  .hero-side { right: var(--gutter); top: auto; bottom: 30%; font-size: 10px; color: var(--cream); border-left-color: var(--lime); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
  .hero-copy { margin-top: -70px; padding-bottom: 40px; }
  .trust { justify-content: flex-start; }

  .fit-grid, .process-grid, .mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .not-fit, .process-aside { position: static; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .phone { max-width: 230px; margin: 0 auto 10px; }
  .mission-photo { max-width: 420px; width: 100%; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero-ctas .btn { width: 100%; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust li { font-size: 10.5px; letter-spacing: .1em; align-items: flex-start; }
  .svc-grid { grid-template-columns: 1fr; }
  .niche-grid { gap: 10px; }
  .niche { min-height: 250px; padding: 18px 14px 16px; }
  .niche-ico { top: 16px; left: 14px; width: 44px; height: 44px; }
  .niche-ico svg { width: 21px; height: 21px; }
  .niche-arrow { top: 18px; right: 12px; width: 30px; height: 30px; }
  .niche-name { font-size: 11px; letter-spacing: .12em; }
  .niche-desc { font-size: .8rem; }
  .niche-cta .niche-name { font-size: 1.25rem; }
  .field-row { grid-template-columns: 1fr; }
  .bridge .btn, .steps-cta .btn, .contact-copy > .btn { width: 100%; }
  .steps-cta { padding-left: 0; }
  .step { grid-template-columns: 48px 1fr; gap: 18px; }
  .step-num { width: 48px; height: 48px; font-size: 1.3rem; }
  .step:not(:last-child)::before, .step:not(:last-child)::after { left: 23px; top: 52px; }
  .contact-info { padding-left: 16px; }
  .contact-info li { font-size: .95rem; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
