/* ============================================================
   Macruz Ingeniería — hoja de estilos
   Paleta tomada del logo: carbón #231f20 + dorado #b39501
   ============================================================ */

:root {
  /* Marca */
  --carbon:        #231f20;
  --carbon-deep:   #171415;
  --carbon-soft:   #2e2a2b;
  --carbon-line:   #3d3839;
  --gold:          #b39501;
  --gold-bright:   #d9b93a;   /* dorado legible sobre fondos oscuros */
  --gold-deep:     #7d6800;   /* dorado legible sobre fondos claros (AA sobre crema) */

  /* Neutros */
  --cream:         #f7f5f2;
  --cream-2:       #efebe5;
  --white:         #ffffff;
  --ink:           #1c1a1a;
  --ink-soft:      #55504e;
  --on-dark:       #eae7e3;
  --on-dark-soft:  #a9a3a0;

  /* Escala */
  --wrap:      1180px;
  --gutter:    clamp(1.15rem, 4vw, 2.5rem);
  --sp-section: clamp(4rem, 9vw, 7.5rem);
  --radius:    14px;
  --radius-sm: 9px;

  --shadow:    0 18px 45px -22px rgba(23, 20, 21, .45);
  --shadow-lg: 0 30px 70px -30px rgba(23, 20, 21, .6);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* el header fijo no debe tapar la sección a la que saltamos */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, picture, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.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: absolute; left: 50%; translate: -50% -120%;
  z-index: 200; background: var(--gold); color: var(--carbon);
  padding: .7rem 1.3rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: translate .2s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease),
                              border-color .25s var(--ease), transform .25s var(--ease),
                              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--carbon); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 12px 28px -12px rgba(179, 149, 1, .8); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn-sm { padding: .62rem 1.15rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--gold-deep); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(35, 31, 32, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(23, 20, 21, .97);
  border-bottom-color: var(--carbon-line);
}

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}

.brand { flex: none; margin-right: auto; display: flex; }
.brand img {
  width: clamp(150px, 20vw, 205px); height: auto;
  transition: width .3s var(--ease);
}
.site-header.is-scrolled .brand img { width: clamp(140px, 17vw, 178px); }

.nav ul {
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  position: relative;
  color: var(--on-dark); text-decoration: none;
  font-size: .88rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem 0; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold-bright); scale: 0 1; transform-origin: left;
  transition: scale .28s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { scale: 1 1; }

.header-actions { display: flex; align-items: center; gap: .7rem; flex: none; }

.lang-switch {
  background: none; border: 1px solid var(--carbon-line); color: var(--on-dark-soft);
  border-radius: 999px; padding: .42rem .8rem; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  display: flex; gap: .3rem; transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lang-switch:hover { border-color: var(--gold); color: var(--white); }
.lang-switch .lang-current { color: var(--gold-bright); }

/* Botón hamburguesa */
.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  background: none; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--on-dark); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88svh, 780px);
  display: flex; align-items: center;
  padding-block: clamp(5rem, 14vh, 9rem) clamp(6rem, 16vh, 10rem);
  color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(23, 20, 21, .95) 0%, rgba(23, 20, 21, .78) 42%, rgba(23, 20, 21, .38) 100%),
    linear-gradient(to top, rgba(23, 20, 21, .9) 0%, transparent 45%);
}

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 1rem;
}
.section:not(.section-dark) .eyebrow { color: var(--gold-deep); }

.hero h1 { margin-bottom: 1.1rem; max-width: 16ch; font-weight: 500; }
.hero-lead {
  max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .88); margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3rem; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.hero-tags li { display: flex; align-items: center; gap: 1.6rem; }
.hero-tags li:not(:last-child)::after {
  content: ""; width: 5px; height: 5px; rotate: 45deg; background: var(--gold);
}

.hero-scroll {
  position: absolute; bottom: 1.9rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 999px; display: grid; place-items: start center; padding-top: 8px;
}
.hero-scroll span { width: 3px; height: 8px; background: var(--gold-bright); border-radius: 2px;
  animation: scrollDot 1.9s var(--ease) infinite; }
@keyframes scrollDot { 0%,100% { opacity: 0; translate: 0 0; } 40% { opacity: 1; translate: 0 6px; } }

/* ---------- Secciones ---------- */
/* El fondo se declara por sección, nunca por posición: un :nth-of-type
   aquí ganaría en especificidad a .section-dark y dejaría los títulos
   blancos sobre fondo blanco. */
.section { padding-block: var(--sp-section); background: var(--white); }
#servicios { background: var(--cream); }

.section-dark { background: var(--carbon); color: var(--on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head { max-width: 62ch; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { margin-bottom: .6rem; }
.section-head h2::after {
  content: ""; display: block; width: 54px; height: 2px; background: var(--gold);
  margin: 1.1rem auto 0;
}
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-lead { color: var(--on-dark-soft); }

/* ---------- Tarjetas de servicio ---------- */
/* cuatro servicios: 2x2, igual que la galería. En una sola fila
   quedarían demasiado estrechos para las listas de cada tarjeta. */
.cards { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--white); border: 1px solid rgba(35, 31, 32, .09);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(179, 149, 1, .45); }
.card-ico {
  width: 54px; height: 54px; margin-bottom: 1.2rem; border-radius: 12px;
  display: grid; place-items: center; background: var(--carbon);
}
.card-ico svg { width: 27px; height: 27px; fill: none; stroke: var(--gold-bright);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card-list { list-style: none; margin: 1.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(35, 31, 32, .1); }
.card-list li {
  position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--ink-soft);
  margin-bottom: .4rem;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; rotate: 45deg; background: var(--gold);
}

/* ---------- Galería ---------- */
/* cuatro fotos: rejilla 2x2, más presencia que una fila de miniaturas */
.gallery { display: grid; gap: clamp(.8rem, 1.8vw, 1.3rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.shot {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  background: var(--carbon-soft); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23, 20, 21, .88) 0%, rgba(23, 20, 21, .1) 55%, transparent 100%);
  transition: opacity .35s var(--ease);
}
.shot:hover img, .shot:focus-visible img { scale: 1.06; }
.shot-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.1rem 1.25rem; text-align: left; color: var(--white);
  display: flex; flex-direction: column; gap: .15rem;
}
.shot-meta strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.shot-meta em { font-style: normal; font-size: .84rem; color: rgba(255, 255, 255, .8); }

.gallery-note { text-align: center; margin-top: 2rem; color: var(--on-dark-soft); font-size: .95rem; }
.gallery-note a { color: var(--gold-bright); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Misión / Visión ---------- */
.mv {
  display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.mv-card {
  position: relative; background: var(--cream); border-radius: var(--radius);
  padding: clamp(1.8rem, 3.4vw, 2.6rem); border-left: 3px solid var(--gold);
}
.mv-card h3 { color: var(--carbon); }
.mv-card p { color: var(--ink-soft); }

.values-title { text-align: center; margin-bottom: .3rem; }
.values-sub { text-align: center; color: var(--ink-soft); margin-bottom: 2.4rem; }

/* seis valores: 3+3, no 4+2 */
.values {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  position: relative; padding: 1.6rem 1.5rem 1.6rem 4.6rem;
  background: var(--white); border: 1px solid rgba(35, 31, 32, .09);
  border-radius: var(--radius-sm);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.value:hover { border-color: rgba(179, 149, 1, .5); transform: translateY(-3px); }
.value-letter {
  position: absolute; left: 1.3rem; top: 1.15rem;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1;
  color: var(--gold); opacity: .85;
}
.value h4 { font-size: 1.15rem; margin-bottom: .25rem; }
.value p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Proceso ---------- */
.steps {
  display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  list-style: none; margin: 0; padding: 0; counter-reset: step;
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  content: ""; position: absolute; top: 1.05rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, var(--gold) 0 30%, var(--carbon-line) 30% 100%);
}
.step-num {
  display: inline-block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  line-height: 1; color: var(--gold-bright); margin-bottom: .7rem;
}
.step h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.step p { color: var(--on-dark-soft); font-size: .94rem; }

/* ---------- Contacto ---------- */
.contact {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.info-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--carbon);
}
.info-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-bright);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.info-list h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2rem;
}
.info-list a { color: var(--carbon); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease); }
.info-list a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
.info-list p { font-size: .96rem; color: var(--ink-soft); }

.socials { display: flex; gap: .7rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(35, 31, 32, .16); color: var(--carbon);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover { background: var(--carbon); color: var(--gold-bright); border-color: var(--carbon); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Iconos macizos (WhatsApp, Facebook): el fill del propio trazado manda.
   Sin esto, el `fill: none` del CSS los dejaría como simples contornos. */
.info-ico svg [fill="currentColor"],
.socials svg [fill="currentColor"] { fill: currentColor; stroke: none; }

/* Formulario */
.contact-form-wrap {
  background: var(--cream); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.4vw, 2.5rem); border: 1px solid rgba(35, 31, 32, .08);
}
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block; font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem;
}
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .75; }

.field input, .field select, .field textarea {
  width: 100%; padding: .82rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(35, 31, 32, .16);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355504e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
  padding-right: 2.8rem;
}
.field :is(input, select, textarea):focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 149, 1, .16); outline: none;
}
.field.has-error :is(input, select, textarea) { border-color: #c0392b; }

.err { display: none; margin: .35rem 0 0; font-size: .85rem; color: #c0392b; }
.field.has-error .err { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alt { margin: .9rem 0 0; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.form-status { margin: .9rem 0 0; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #1d7a4c; font-weight: 600; }
.form-status.bad { color: #c0392b; font-weight: 600; }

.map {
  margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(35, 31, 32, .1); box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: clamp(260px, 40vw, 400px); border: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--carbon-deep); color: var(--on-dark-soft); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand img { width: min(240px, 80%); }
.footer-slogan { margin-top: 1rem; font-family: var(--font-display); font-size: 1.28rem; color: var(--gold-bright); }

.site-footer h2 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-contact address { font-style: normal; line-height: 1.9; font-size: .95rem; }

.footer-bottom {
  border-top: 1px solid var(--carbon-line); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }
.footer-tag { letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: calc(clamp(1rem, 3vw, 1.8rem) + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .65);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.wa-float svg { width: 29px; height: 29px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 36px -8px rgba(37, 211, 102, .8); }

/* ---------- Visor de imágenes ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15, 13, 13, .95);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
.lb-figure img {
  max-width: 100%; max-height: 76svh; width: auto; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 30px 80px -30px #000;
}
.lb-figure figcaption { color: var(--on-dark); font-size: .95rem; text-align: center; max-width: 60ch; }

.lb-close, .lb-nav {
  background: rgba(255, 255, 255, .1); border: 0; color: var(--white); cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-nav { width: 46px; height: 46px; font-size: 1.2rem; flex: none; }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--carbon-deep);
    border-bottom: 1px solid var(--carbon-line);
    max-height: 0; overflow: hidden;
    transition: max-height .38s var(--ease);
  }
  .nav.is-open { max-height: min(70svh, 460px); overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.6rem; }
  .nav li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav a { display: block; padding: 1.05rem 0; font-size: .95rem; }
  .nav a::after { display: none; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  .hero { min-height: min(92svh, 720px); text-align: left; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-tags { font-size: .72rem; gap: .4rem 1rem; }
  .hero-tags li { gap: 1rem; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding-bottom: 1.2rem; }
  .lb-nav { grid-row: 2; width: 54px; height: 44px; }
  .lb-prev { justify-self: start; }
  .lb-next { justify-self: end; grid-row: 2; grid-column: 1; }
  .lb-figure { grid-row: 1; grid-column: 1; }
  .value { padding-left: 4.2rem; }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ---------- Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; translate: none; }
}

@media print {
  .site-header, .wa-float, .hero-scroll, .map, .contact-form-wrap, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; translate: none; }
}
