/* =========================================================
   Bethel Sur SpA — estilos
   Paleta: niebla, bosque, lago, madera
   ========================================================= */

:root {
  --mist: #F1EFE8;
  --mist-2: #E6E5DC;
  --paper: #FAF8F3;
  --ink: #15201B;
  --ink-2: #3B4A42;
  --ink-3: #6E7B73;
  --forest: #1F3329;
  --forest-2: #2B4639;
  --moss: #6F8562;
  --lake: #3E5C5E;
  --wood: #B9834F;
  --wood-2: #D9AE7C;
  --brand-green: #123B2B;
  --brand-osb: #DCA455;
  --line: rgba(21, 32, 27, .12);
  --line-light: rgba(241, 239, 232, .16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

::selection { background: var(--forest); color: var(--mist); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- tipografía ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -.02em;
}
.section-title em, .hero-title em, .manifesto-text em { color: var(--moss); }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 520px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--mist); }
.btn-primary:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(250, 248, 243, .4); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, box-shadow .4s;
}
.nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(241, 239, 232, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 46px; height: auto; flex: none; }
.brand-mark .lm-g { fill: var(--brand-green); transition: fill .4s; }
.brand-mark .lm-o { fill: var(--brand-osb); }
.brand-mark .lm-w { fill: #FFFFFF; }
.brand-words { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-name {
  font-family: "Montserrat", var(--sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .4s;
}
.brand-tag {
  font-family: "Montserrat", var(--sans);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .4s;
}

/* nav clara sobre la foto del hero (solo antes de hacer scroll) */
.nav:not(.scrolled):not(.menu-open) .brand { color: var(--mist); }
.nav:not(.scrolled):not(.menu-open) .brand-mark .lm-g { fill: var(--mist); }
.nav:not(.scrolled):not(.menu-open) .brand-mark .lm-w { fill: rgba(241, 239, 232, .35); }
.nav:not(.scrolled):not(.menu-open) .brand-tag { color: rgba(241, 239, 232, .7); }
@media (min-width: 881px) {
  .nav:not(.scrolled) .nav-links a:not(.nav-cta) { color: rgba(241, 239, 232, .85); }
  .nav:not(.scrolled) .nav-links a:not(.nav-cta):hover { color: #fff; }
  .nav:not(.scrolled) .nav-cta { background: var(--mist); color: var(--ink); }
  .nav:not(.scrolled) .nav-cta:hover { background: #fff; }
}
.nav:not(.scrolled):not(.menu-open) .nav-toggle { background: rgba(241, 239, 232, .14); border-color: rgba(241, 239, 232, .35); }
.nav:not(.scrolled):not(.menu-open) .nav-toggle span { background: var(--mist); }
.brand-text {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.01em;
}
.brand-text em { color: var(--moss); }

.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav-links a:not(.nav-cta) { position: relative; color: var(--ink-2); transition: color .3s; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mist);
  font-weight: 600;
  transition: background .3s;
}
.nav-cta:hover { background: var(--forest-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250, 248, 243, .6);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: #1B2420;
  color: var(--mist);
}
.hero .eyebrow { color: #E9C48F; }
.hero-title { color: var(--mist); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .hero-title em { color: #E9B66E; }
.hero .hero-sub { color: rgba(241, 239, 232, .86); }
.hero .btn-primary { background: var(--mist); color: var(--ink); }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-ghost { color: var(--mist); border-color: rgba(241, 239, 232, .4); background: rgba(241, 239, 232, .08); }
.hero .btn-ghost:hover { border-color: var(--mist); }
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: -40px; will-change: transform; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: kenburns 18s var(--ease) both;
}
@media (max-width: 700px) {
  .hero-shade { background: linear-gradient(180deg, rgba(10, 18, 14, .55) 0%, rgba(10, 18, 14, .62) 55%, rgba(10, 18, 14, .78) 100%); }
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 14, .66) 0%, rgba(10, 18, 14, .38) 42%, rgba(10, 18, 14, 0) 72%),
    linear-gradient(0deg, rgba(10, 18, 14, .55) 0%, transparent 35%),
    linear-gradient(180deg, rgba(10, 18, 14, .45) 0%, transparent 22%);
}

.mist { animation: drift 38s linear infinite alternate; }
.mist-b { animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(120px); } }

.ripples path { animation: ripple 6s ease-in-out infinite; }
.ripples path:nth-child(2n) { animation-delay: -2s; }
.ripples path:nth-child(3n) { animation-delay: -4s; }
@keyframes ripple { 0%, 100% { opacity: .2; transform: translateX(0); } 50% { opacity: 1; transform: translateX(14px); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(130px, 18vh, 190px);
  padding-bottom: 120px;
  align-self: center;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 7.6vw, 118px);
  line-height: .95;
  letter-spacing: -.025em;
}
.hero-sub {
  margin-top: 28px;
  max-width: 500px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-2);
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(241, 239, 232, .6);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--mist);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifesto {
  background: var(--ink);
  color: var(--mist);
  padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 8vw, 110px);
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.12;
  letter-spacing: -.015em;
  max-width: 1050px;
}
.manifesto-text em { color: var(--wood-2); }

.stats {
  margin-top: clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
}
.stat {
  padding: 36px 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line-light); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label { font-size: 15px; color: rgba(241, 239, 232, .66); max-width: 280px; }
.footnote { margin-top: 48px; font-size: 12px; color: rgba(241, 239, 232, .4); }

/* =========================================================
   SIP
   ========================================================= */
.sip { padding: clamp(100px, 12vw, 170px) 0; background: var(--mist); }
.sip-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.sip-copy .lead { margin-top: 28px; }

.sip-layers { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sip-layers li {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
  cursor: default;
}
.sip-layers li {
  position: relative;
  cursor: pointer;
  transition: padding .5s var(--ease), background .4s;
}
.sip-layers li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand-green);
  transform: scaleY(0);
  transition: transform .4s var(--ease);
}
.sip-layers li:hover, .sip-layers li.active { padding-left: 18px; background: linear-gradient(90deg, rgba(18, 59, 43, .06), transparent 70%); }
.sip-layers li.active::before { transform: scaleY(1); }
.sip-layers li.active h3 { color: var(--brand-green); }
.sip-layers li.active .layer-index { color: var(--brand-osb); }
.layer-index { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); padding-top: 4px; }
.sip-layers h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.sip-layers p { font-size: 15px; color: var(--ink-3); margin-top: 2px; }

/* --- panel 3D --- */
.sip-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(160deg, var(--mist-2), #D6D9CF);
  perspective: 1400px;
  overflow: hidden;
}
.sip-caption {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel-stack { width: 88%; }
.panel-stack svg { width: 100%; height: auto; overflow: visible; }
.panel-stack .ly { transition: transform 1.1s var(--ease), opacity .45s, filter .45s; cursor: pointer; }
.panel-stack .ly-shadow { opacity: .14; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transform-origin: center; }
.sip-visual:hover .ly-2, .panel-stack.exploded .ly-2, .panel-stack.focus .ly-2 { transform: translateY(-46px); }
.sip-visual:hover .ly-3, .panel-stack.exploded .ly-3, .panel-stack.focus .ly-3 { transform: translateY(-104px); }
.sip-visual:hover .ly-shadow, .panel-stack.exploded .ly-shadow { opacity: .08; transform: scale(.92); }
/* capa seleccionada: las demás se apagan y la elegida se contornea en verde */
.panel-stack.focus .ly { opacity: .16; filter: grayscale(1); }
.panel-stack.focus.hl-1 .ly-1, .panel-stack.focus.hl-2 .ly-2, .panel-stack.focus.hl-3 .ly-3 {
  opacity: 1;
  filter: drop-shadow(0 0 1.5px var(--brand-green)) drop-shadow(0 0 1.5px var(--brand-green)) drop-shadow(0 16px 22px rgba(18, 59, 43, .35));
}
.sip-caption { transition: color .4s; }
.sip-caption.on { color: var(--brand-green); font-weight: 700; }
.sip-caption.on::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--dot, var(--brand-osb));
  box-shadow: 0 0 0 1.5px var(--brand-green);
  vertical-align: 1px;
}

/* --- beneficios --- */
.benefits {
  margin-top: clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit {
  padding: 32px 28px 34px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(21, 32, 27, .35); }
.benefit svg { width: 34px; height: 34px; color: var(--moss); margin-bottom: 40px; }
.benefit h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.benefit p { margin-top: 10px; font-size: 15px; color: var(--ink-3); }

/* =========================================================
   PRODUCTOS
   ========================================================= */
.products { padding: 0 0 clamp(100px, 12vw, 170px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(50px, 6vw, 80px);
}
.section-head .lead { max-width: 420px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(21, 32, 27, .4); }
.product-art { aspect-ratio: 4 / 3; background: var(--mist-2); overflow: hidden; }
.product-art svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.product:hover .product-art svg { transform: scale(1.04); }
.product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.product-body p { font-size: 15px; color: var(--ink-3); flex: 1; }
.product-body .link-arrow { align-self: flex-start; margin-top: 10px; }

.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.product-feature {
  grid-column: 1 / -1;
  flex-direction: row;
  background: var(--forest);
  color: var(--mist);
  border-color: transparent;
}
.product-feature .product-art { flex: 1.3; aspect-ratio: auto; min-height: 340px; background: var(--forest-2); }
.product-feature .product-body { flex: 1; padding: clamp(32px, 4vw, 60px); justify-content: center; }
.product-feature .product-body h3 { font-size: clamp(36px, 4vw, 56px); }
.product-feature .product-body p { color: rgba(241, 239, 232, .7); flex: 0; font-size: 17px; max-width: 420px; }
.tag-light { border-color: var(--line-light); color: var(--wood-2); }

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects {
  background: var(--forest);
  color: var(--mist);
  padding: clamp(100px, 12vw, 170px) 0;
  position: relative;
  overflow: hidden;
}
.projects .eyebrow { color: var(--wood-2); }
.projects .section-title em { color: var(--wood-2); }
.section-head-light .lead { color: rgba(241, 239, 232, .7); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project { cursor: default; }
.project:nth-child(2n) { margin-top: 60px; }
.project-art {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest-2);
}
.project-art svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.project:hover .project-art svg { transform: scale(1.05); }
.project-info { padding: 20px 4px 0; }
.project-info h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.project-info p { margin-top: 4px; font-size: 15px; color: rgba(241, 239, 232, .62); }

/* =========================================================
   PROCESO
   ========================================================= */
.process { padding: clamp(100px, 12vw, 170px) 0; }
.steps {
  list-style: none;
  margin: clamp(50px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: s;
}
.step {
  position: relative;
  padding: 34px 28px 0 0;
  border-top: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width 1.4s var(--ease);
}
.step.in::before { width: 100%; }
.step:nth-child(2).in::before { transition-delay: .2s; }
.step:nth-child(3).in::before { transition-delay: .4s; }
.step:nth-child(4).in::before { transition-delay: .6s; }
.step-num { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--moss); }
.step h3 { margin-top: 26px; font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-3); max-width: 240px; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding: 0 0 clamp(100px, 12vw, 170px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-copy .lead { margin-top: 28px; }
.contact-list { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.contact-list span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a { font-weight: 500; transition: color .3s; }
.contact-list a:hover { color: var(--moss); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field input.invalid { border-bottom-color: #B4553A; }

.chips { border: 0; padding: 0; margin: 4px 0 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 12px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }

.contact-form .btn { margin-top: 10px; padding: 18px; }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--moss); text-align: center; }
.form-status.error { color: #B4553A; }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.btn.loading { opacity: .7; cursor: progress; }

/* resultado del envío: cubre el formulario */
.form-result {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 56px);
  border-radius: inherit;
  text-align: center;
  animation: result-in .6s var(--ease) both;
}
.form-result[hidden] { display: none; }
.form-result svg { width: 64px; height: 64px; margin-bottom: 6px; }
.form-result h3 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; outline: none; }
.form-result p { max-width: 380px; font-size: 16px; }
.form-result .btn { margin-top: 10px; }
.form-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.form-result.ok { background: var(--forest); color: var(--mist); }
.form-result.ok svg { color: #6FD39A; }
.form-result.ok p { color: rgba(241, 239, 232, .8); }
.form-result.ok .btn-ghost { color: var(--mist); border-color: rgba(241, 239, 232, .35); background: transparent; }
.form-result.error { background: #FBF1EC; color: var(--ink); border: 1px solid #EBC9BA; }
.form-result.error svg { color: #B4553A; }
.form-result.error h3 { color: #8E3A22; }
.form-result.error p { color: var(--ink-2); }
@keyframes result-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* --- opciones de contacto: 01 WhatsApp · 02 correo --- */
.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-green);
}
.option-label span {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0;
}
.wa-card {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wa-card .option-label { color: var(--mist); }
.wa-card .option-label span { background: #25D366; color: #0B2A17; }
.wa-text { font-size: 15px; color: rgba(241, 239, 232, .75); }
.wa-number { font-size: 13px; letter-spacing: .08em; color: rgba(241, 239, 232, .55); text-align: center; }
.btn-wa {
  background: #25D366;
  color: #0B2A17;
  padding: 18px;
  font-size: 16px;
  margin-top: 6px;
}
.btn-wa:hover { background: #3BE07A; }
.btn-wa svg, .wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-card + .contact-list { margin-top: 32px; }

.form-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.form-intro { font-size: 15px; color: var(--ink-3); }

/* botón flotante */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #0B2A17;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(11, 42, 23, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  animation: wa-in .8s var(--ease) 1.2s both;
}
.wa-float:hover { transform: translateY(-3px); background: #3BE07A; box-shadow: 0 18px 36px -10px rgba(11, 42, 23, .5); }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .wa-float { padding: 15px; right: 16px; bottom: 16px; }
  .wa-float span { display: none; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--mist); padding: 70px 0 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}
.brand-footer { color: var(--mist); }
.brand-footer .brand-mark { width: 64px; }
.brand-footer .brand-mark .lm-g { fill: var(--mist); }
.brand-footer .brand-mark .lm-w { fill: rgba(241, 239, 232, .35); }
.brand-footer .brand-name { font-size: 24px; }
.brand-footer .brand-tag { color: rgba(241, 239, 232, .6); font-size: 10px; }
.footer-brand p { margin-top: 16px; font-size: 15px; color: rgba(241, 239, 232, .6); }
.footer-links { display: flex; gap: 28px; font-size: 14px; align-self: start; }
.footer-links a { color: rgba(241, 239, 232, .75); transition: color .3s; }
.footer-links a:hover { color: var(--mist); }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
  color: rgba(241, 239, 232, .45);
}

/* =========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project:nth-child(2n) { margin-top: 0; }
  .project:nth-child(2n) { transform: translateY(40px); }
  .projects { padding-bottom: calc(clamp(100px, 12vw, 170px) + 40px); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--mist);
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  /* backdrop-filter crearía un contenedor para el menú fijo: se quita mientras está abierto */
  .nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--mist); }
  .nav-links a:not(.nav-cta) { font-family: var(--serif); font-size: 40px; color: var(--ink); }
  .nav-cta { margin-top: 12px; font-size: 16px; padding: 16px 28px; }
  .brand { position: relative; z-index: 2; }

  .sip-grid, .contact-grid { grid-template-columns: 1fr; }
  .sip-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-feature { flex-direction: column; }
  .product-feature .product-art { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 30px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-light); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .product-grid, .benefits, .steps { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .project-info h3 { font-size: 22px; }
  .project-info p { font-size: 13px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-content { padding-top: 120px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  .contact-list li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
