/* =============================================================
   VENALFA · Ventanas de PVC — styles.css
   Arquetipo: Editorial Light Cream (adaptado a marca Venalfa)
   Paleta: verde petróleo · terracota · crema · blanco roto · carbón
   Tipos: Playfair Display (display) + Inter (texto)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Marca */
  --bg:          #F3ECDE;  /* crema (fondo base) */
  --bg-2:        #ECE1CC;  /* arena (alternancia de secciones) */
  --surface:     #FBF8F2;  /* blanco roto (superficies/tarjetas) */
  --surface-2:   #F5EEE0;  /* superficie cálida secundaria */
  --ink:         #2B2926;  /* carbón (texto) */
  --ink-soft:    #574E45;  /* texto secundario */
  --ink-mute:    #6E655A;  /* texto terciario / metadatos (contraste AA) */
  --green:       #1E4D49;  /* verde petróleo (principal) */
  --green-2:     #173B38;  /* verde más profundo */
  --green-deep:  #0F2A28;  /* verde casi negro (footer) */
  --terra:       #C05E3C;  /* terracota (acento/botones) */
  --terra-2:     #A84B2D;  /* terracota oscura (hover/links texto) */
  --terra-soft:  #DA8B6B;  /* terracota clara (detalles sobre verde) */
  --cream:       #F3ECDE;  /* texto claro sobre fondos oscuros */
  --cream-soft:  #D9CFBC;  /* texto claro secundario sobre oscuro */

  --line:        rgba(43, 41, 38, 0.14);
  --line-strong: rgba(43, 41, 38, 0.26);
  --line-cream:  rgba(243, 236, 222, 0.18);

  /* Tipografía */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Escala fluida */
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.02rem;
  --fs-lead:    clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1:      clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --fs-display: clamp(3rem, 1.8rem + 6vw, 7rem);

  /* Métrica */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 11px;

  /* Sombras (cálidas, no negras puras) */
  --shadow-sm: 0 2px 8px rgba(45, 35, 25, 0.06);
  --shadow:    0 18px 40px -20px rgba(45, 35, 25, 0.30);
  --shadow-lg: 0 40px 80px -32px rgba(30, 30, 25, 0.42);
  --halo-terra: 0 30px 60px -28px rgba(192, 94, 60, 0.55);

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.5, 1);

  --nav-h: 74px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

::selection { background: var(--terra); color: var(--surface); }

:focus-visible {
  outline: 2.5px solid var(--terra);
  outline-offset: 3px;
  border-radius: 5px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -120px; left: 1rem; z-index: 1000;
  padding: 0.7rem 1.1rem; background: var(--green); color: var(--cream);
  border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.7;
}
.eyebrow.is-centered::after {
  content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.7;
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 0.9rem; }
.section-head .lead { margin-top: 1.1rem; font-size: var(--fs-lead); color: var(--ink-soft); }
em { font-style: italic; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  --btn-bg: var(--terra);
  --btn-fg: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.92rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 100px;
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--halo-terra); }
.btn:active { transform: translateY(-1px); }

.btn--primary { --btn-bg: var(--terra); --btn-fg: var(--surface); }
.btn--primary:hover { background: var(--terra-2); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { --btn-fg: var(--green); background: rgba(30,77,73,0.07); box-shadow: inset 0 0 0 1.5px var(--green); }

.btn--white {
  --btn-bg: var(--surface); --btn-fg: var(--green);
}
.btn--white:hover { background: #fff; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.5); }

.btn--green { --btn-bg: var(--green); --btn-fg: var(--cream); }
.btn--green:hover { background: var(--green-2); box-shadow: 0 26px 54px -26px rgba(15,42,40,0.7); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--terra-2);
  position: relative;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav.is-scrolled {
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  color: var(--green); letter-spacing: -0.01em;
}
.brand__desc {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--terra-2);
}

.nav__links { display: none; }
.nav__link {
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 0.4rem;
  transition: color 0.3s var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--terra); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.8rem; }
.nav__cta { display: none; }

.nav__burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border-radius: 12px;
  transition: background-color 0.3s var(--ease-out);
}
.nav__burger span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.55s var(--ease-out), visibility 0.55s;
  overflow-y: auto;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1rem; }
.menu__link {
  font-family: var(--serif); font-size: clamp(1.7rem, 9vw, 2.4rem); font-weight: 500;
  color: var(--ink); padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(14px);
}
.menu.is-open .menu__link { animation: menuIn 0.5s var(--ease-out) forwards; }
.menu.is-open .menu__link:nth-child(1) { animation-delay: 0.06s; }
.menu.is-open .menu__link:nth-child(2) { animation-delay: 0.12s; }
.menu.is-open .menu__link:nth-child(3) { animation-delay: 0.18s; }
.menu.is-open .menu__link:nth-child(4) { animation-delay: 0.24s; }
.menu.is-open .menu__link:nth-child(5) { animation-delay: 0.30s; }
.menu__link span { color: var(--terra); font-family: var(--sans); font-size: 0.8rem; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.menu__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.menu__contact { display: flex; flex-direction: column; gap: 0.3rem; color: var(--ink-soft); font-size: 0.95rem; }
.menu__contact a { font-weight: 600; color: var(--green); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  overflow: clip;
}
.hero__halo {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vw; max-width: 760px; aspect-ratio: 1;
  top: -16%; right: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(192,94,60,0.20), transparent 66%);
  filter: blur(20px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title {
  font-size: var(--fs-h1); font-weight: 600;
  margin-top: 1.2rem; letter-spacing: -0.02em;
}
.hero__title em { color: var(--green); }
.hero__sub {
  margin-top: 1.4rem; font-size: var(--fs-lead); color: var(--ink-soft);
  max-width: 33ch;
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__trust {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem;
  font-size: 0.86rem; color: var(--ink-soft); font-weight: 500;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trust svg { width: 1.05em; height: 1.05em; color: var(--green); flex: none; }

.hero__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.hero__img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.4s var(--ease-out);
}
.hero__figure.is-in .hero__img { transform: scale(1); }
.hero__chip {
  position: absolute; left: clamp(-0.5rem, -1vw, -1.5rem); bottom: 1.5rem; z-index: 2;
  background: var(--surface); color: var(--green);
  padding: 0.85rem 1.25rem; border-radius: 14px;
  box-shadow: var(--shadow);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  max-width: 16rem;
}
.hero__chip strong { font-style: normal; font-weight: 700; }
.hero__chip .star { color: var(--terra); font-style: normal; }

/* =============================================================
   7. Marquee
   ============================================================= */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 0.95rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.5rem;
  white-space: nowrap; will-change: transform;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 2.5rem;
}
.marquee__track span::after {
  content: "✦"; color: var(--terra); font-size: 0.7rem; font-family: var(--sans);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   8. Beneficios
   ============================================================= */
.benefits__grid {
  display: grid; gap: clamp(1.1rem, 2.5vw, 1.6rem);
  grid-template-columns: 1fr;
}
.bcard {
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
.bcard:hover { box-shadow: var(--shadow); }
.bcard__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(30,77,73,0.08); color: var(--green);
  margin-bottom: 1.3rem;
}
.bcard__icon svg { width: 26px; height: 26px; }
.bcard h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.bcard p { color: var(--ink-soft); }

/* =============================================================
   9. Pasos (Cómo trabajamos)
   ============================================================= */
.steps { background: var(--bg-2); }
.steps__grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative; padding-left: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
}
.step__num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--surface); background: var(--green);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.22rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* =============================================================
   10. Por qué Venalfa (verde)
   ============================================================= */
.why {
  background: var(--green); color: var(--cream);
  position: relative; overflow: clip;
}
.why::before {
  content: ""; position: absolute; pointer-events: none;
  inset: auto -10% -40% 40%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(192,94,60,0.30), transparent 65%);
  filter: blur(30px);
}
.why .eyebrow { color: var(--terra-soft); }
.why__head { position: relative; z-index: 1; max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.why__head h2 { font-size: var(--fs-h2); color: var(--cream); margin-top: 0.9rem; }
.why__head h2 em { color: var(--terra-soft); }
.why__grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(1.6rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
}
.why__item { padding-top: 1.5rem; border-top: 1px solid var(--line-cream); }
.why__item .n {
  font-family: var(--serif); font-size: 0.95rem; color: var(--terra-soft);
  letter-spacing: 0.1em;
}
.why__item h3 { font-size: var(--fs-h3); color: var(--cream); margin: 0.5rem 0 0.7rem; }
.why__item p { color: var(--cream-soft); }
.why__note {
  position: relative; z-index: 1; margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--serif); font-style: italic; font-size: var(--fs-lead);
  color: var(--cream); max-width: 30ch;
}

/* =============================================================
   11. Proyectos · Antes y después
   ============================================================= */
.projects__grid {
  display: grid; gap: clamp(1.3rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
.project { display: flex; flex-direction: column; gap: 0.85rem; }

.ba {
  --pos: 50;
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--green-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; }
.ba__after { z-index: 1; }            /* abajo: Después (color cálido) */
.ba__before {                         /* arriba: Antes (apagado), recortado por la izquierda */
  z-index: 2;
  clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0);
}
.ba__before img { filter: grayscale(0.55) brightness(0.74) contrast(0.92); }
.ba__tag {
  position: absolute; top: 0.8rem; z-index: 4;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 100px;
  background: rgba(15,42,40,0.66); color: var(--cream);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ba__tag--antes { left: 0.8rem; }
.ba__tag--despues { right: 0.8rem; background: rgba(192,94,60,0.85); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; z-index: 5;
  left: calc(var(--pos) * 1%); transform: translateX(-50%);
  width: 44px; display: grid; place-items: center;
  cursor: ew-resize; background: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 2px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.ba__grip {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--green);
  display: grid; place-items: center; grid-auto-flow: column; gap: 2px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out);
}
.ba:hover .ba__grip { transform: scale(1.08); }
.ba__grip svg { width: 15px; height: 15px; }
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__grip { outline: 2.5px solid var(--terra); outline-offset: 3px; }
.project__caption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.project__caption h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.project__caption .muted { font-size: 0.84rem; color: var(--ink-mute); }
.projects__note {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--ink-mute); font-style: italic;
}
.projects__note svg { width: 1.1em; height: 1.1em; color: var(--terra); flex: none; }

/* =============================================================
   12. Profesionales (banda)
   ============================================================= */
.pros { padding-block: clamp(1rem, 3vw, 2rem); }
.pros__card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-2); color: var(--cream);
  display: grid; grid-template-columns: 1fr;
  box-shadow: var(--shadow);
}
.pros__media { position: relative; min-height: 220px; }
.pros__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.pros__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,59,56,0.2), var(--green-2) 92%);
}
.pros__body { padding: clamp(1.8rem, 4vw, 3rem); position: relative; z-index: 1; }
.pros__body .eyebrow { color: var(--terra-soft); }
.pros__body h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--cream); margin: 0.8rem 0 0.9rem; }
.pros__body p { color: var(--cream-soft); max-width: 46ch; margin-bottom: 1.6rem; }

/* =============================================================
   13. Presupuesto (cierre + formulario)
   ============================================================= */
.cta { background: var(--bg-2); }
.cta__grid {
  display: grid; gap: clamp(2rem, 4vw, 3.2rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.cta__intro h2 { font-size: var(--fs-h2); margin-top: 0.9rem; }
.cta__intro h2 em { color: var(--terra-2); }
.cta__intro .lead { margin-top: 1.1rem; font-size: var(--fs-lead); color: var(--ink-soft); max-width: 38ch; }

.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-row { display: flex; align-items: center; gap: 1rem; }
.contact-row__icon {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm);
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row .label { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-row .value { font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.contact-row .value:hover { color: var(--terra-2); }

/* Formulario */
.form-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 1.3rem; color: var(--ink); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field label .req { color: var(--terra); }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; color: var(--ink);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 96px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: 0.84rem; color: var(--ink-soft); }
.consent input { margin-top: 0.2rem; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.consent a { color: var(--terra-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form-alt {
  margin-top: 1rem; text-align: center; font-size: 0.86rem; color: var(--ink-mute);
}
.form-alt a { color: var(--green); font-weight: 600; }

.form-error {
  margin-top: 1rem; text-align: center; font-size: 0.88rem; color: var(--terra-2);
  background: rgba(192, 94, 60, 0.08); border-radius: 10px; padding: 0.7rem 0.9rem;
}
.form-error[hidden] { display: none; }
.form-error a { font-weight: 600; text-decoration: underline; }

.form-success {
  display: none; text-align: center; padding: 1rem 0;
}
.form-card.is-sent .form-success { display: block; animation: fadeUp 0.5s var(--ease-out); }
.form-card.is-sent .form-card__form { display: none; }
.form-success__check {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: rgba(30,77,73,0.1); color: var(--green); display: grid; place-items: center;
}
.form-success__check svg { width: 32px; height: 32px; }
.form-success h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--ink-soft); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: var(--green-deep); color: var(--cream-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-cream);
}
.footer__brand .brand__name { color: var(--cream); }
.footer__claim { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--cream); margin: 1rem 0 0.6rem; }
.footer__brand p { font-size: 0.92rem; max-width: 30ch; }
.footer__col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-soft); margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a, .footer__col li { font-size: 0.95rem; color: var(--cream-soft); transition: color 0.3s var(--ease-out); }
.footer__col a:hover { color: var(--cream); }
.footer__bottom {
  padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--cream-soft);
}
.footer__bottom a { color: var(--cream-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom a:hover { color: var(--cream); }

/* =============================================================
   16. Cookies (RGPD)
   ============================================================= */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  padding: clamp(1rem, 3vw, 1.3rem) var(--gutter);
  background: var(--surface);
  box-shadow: 0 -8px 30px -16px rgba(0,0,0,0.3); border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}
.cookie.is-visible { transform: translateY(0); }
.cookie__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.cookie p { font-size: 0.88rem; color: var(--ink-soft); }
.cookie p a { color: var(--terra-2); font-weight: 600; text-decoration: underline; }
.cookie__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie__actions .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

/* =============================================================
   17. Custom cursor (solo escritorio fino)
   ============================================================= */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
    border: 1.5px solid var(--terra);
    opacity: 0; transition: opacity 0.3s var(--ease-out), width 0.3s var(--ease-out),
                          height 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
    will-change: transform;
  }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 201; pointer-events: none;
    width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
    background: var(--terra); opacity: 0;
    transition: opacity 0.3s var(--ease-out); will-change: transform;
  }
  .cursor.is-ready, .cursor-dot.is-ready { opacity: 1; }
  .cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(192,94,60,0.12); }
}

/* =============================================================
   18. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
/* Defensa: si un elemento combina .reveal y data-split, nunca debe quedar invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* Split text (hero) — fundido por palabras escalonado */
.split-word {
  display: inline-block;
  opacity: 0; transform: translateY(0.55em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.04s);
}
[data-split].is-in .split-word { opacity: 1; transform: none; }

/* =============================================================
   19. Páginas legales / créditos
   ============================================================= */
.page { padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page__back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--terra-2); font-weight: 600; margin-bottom: 1.5rem; }
.prose { max-width: var(--maxw-narrow); margin-inline: auto; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin-bottom: 0.5rem; }
.prose .updated { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; color: var(--green); }
.prose h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; margin: 1.4rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--terra-2); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .note {
  background: var(--surface); border-left: 3px solid var(--terra);
  padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; font-size: 0.92rem;
}
.prose .ph { background: rgba(192,94,60,0.12); color: var(--terra-2); padding: 0.05em 0.4em; border-radius: 5px; font-weight: 600; }
.credits-list { list-style: none; padding: 0; max-width: var(--maxw-narrow); margin-inline: auto; }
.credits-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.credits-list a { color: var(--terra-2); text-decoration: underline; }

/* En construcción (páginas legales) */
.construction {
  min-height: 50vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-block: clamp(2rem, 6vw, 4rem);
}
.construction__icon {
  width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(192, 94, 60, 0.12); color: var(--terra-2); margin-bottom: 1.4rem;
}
.construction__icon svg { width: 36px; height: 36px; }
.construction .eyebrow { margin-bottom: 0.9rem; }
.construction h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); }
.construction p { color: var(--ink-soft); max-width: 44ch; margin: 0.8rem 0 1.8rem; }

/* =============================================================
   20. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie p { flex: 1; }
}

@media (min-width: 720px) {
  .nav__cta { display: inline-flex; }
  .hero__trust { gap: 0.5rem 1.6rem; }
  .steps__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 2.8rem; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .project--wide { grid-column: 1 / -1; }
  .project--wide .ba { aspect-ratio: 16 / 7; }
  .pros__card { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .pros__media { min-height: 100%; }
  .pros__media::after { background: linear-gradient(90deg, rgba(23,59,56,0.15), var(--green-2) 88%); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav__links { display: flex; align-items: center; gap: 1.7rem; }
  .nav__burger { display: none; }
  .menu { display: none; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__copy { padding-right: 1rem; }
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .cta__grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
  .footer__grid { grid-template-columns: 2.2fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1280px) {
  .hero__title { font-size: clamp(3rem, 2rem + 3.5vw, 5rem); }
}

/* =============================================================
   21. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 90s; }
  .hero__img { transition-duration: 0.4s; }
}

/* Sin JS: mostrar todo el contenido */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .split-word { opacity: 1; transform: none; }
