/* ============================================================
   Herrería Lucero — sistema visual v2
   Oscuro, industrial, moderno. Verde soldadura como acento.
   Tipografías: Archivo (títulos, ancho variable) + Manrope (texto)
   ============================================================ */

:root {
  --b0: #050605;
  --b1: #0c0f0d;
  --b2: #131815;
  --b3: #1c231f;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f1f4f2;
  --soft: #aab4af;
  --weld: #3fae2a;
  --weld-bright: #6be04f;
  --weld-deep: #0f3d0b;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --sec: clamp(5.5rem, 12vw, 10rem);
  --header-h: 76px;
  --r: 18px;
  --ease: cubic-bezier(.16, .84, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--b0); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--b0); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--weld); color: var(--b0); }
:focus-visible { outline: 3px solid var(--weld-bright); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--weld); color: var(--b0); padding: .75rem 1rem; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- tipografía ---------- */
.display { font-family: var(--f-display); font-weight: 800; font-stretch: 88%; letter-spacing: -.035em; line-height: .95; text-transform: none; }
h2.display { font-size: clamp(2.5rem, 6.4vw, 5.6rem); max-width: 13ch; }
.lead { font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.6; max-width: 54ch; color: var(--soft); }
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--weld-bright); }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.eyebrow span { opacity: .6; }
.eyebrow--dark { color: var(--b0); }
.tag { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; padding: .45rem 1rem; border: 1px solid rgba(107, 224, 79, .45); border-radius: 99px; font-size: .88rem; font-weight: 700; color: var(--weld-bright); background: rgba(63, 174, 42, .1); }
.tag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--weld-bright); box-shadow: 0 0 0 0 rgba(107, 224, 79, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(107, 224, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 224, 79, 0); } }

/* ---------- secciones ---------- */
.sec { padding-block: var(--sec); position: relative; }
.bg-0 { background: var(--b0); }
.bg-1 { background: var(--b1); }
.bg-2 { background: var(--b2); }
.bg-green { background: linear-gradient(135deg, #4bc634 0%, #2f9a1d 100%); color: var(--b0); }
.bg-green .lead { color: rgba(5, 6, 5, .78); }
.sec + .sec::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.bg-green::before { display: none; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: .85rem 1.9rem; border: 0; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 1rem;
  background: var(--weld); color: var(--b0); position: relative; isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
  box-shadow: 0 0 0 0 rgba(63, 174, 42, .5);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(63, 174, 42, .7); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn::after { content: "→"; transition: transform .4s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--sm { min-height: 2.8rem; padding: .5rem 1.3rem; font-size: .95rem; }
.btn--sm::after { display: none; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); backdrop-filter: blur(6px); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--b0); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--dark { background: var(--b0); color: var(--text); }
.btn--dark::before { background: var(--text); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--b0); box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .6); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- marco de foto ---------- */
.frame { position: relative; background: var(--b3); overflow: hidden; border-radius: var(--r); }
.frame > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame:hover > img.photo { transform: scale(1.04); }
.ph {
  position: absolute; inset: 0; display: none; align-items: flex-end; padding: 1.25rem; color: var(--soft); font-size: .9rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .05) 39px 40px),
    linear-gradient(135deg, var(--b3), var(--b2));
}
.ph span { position: relative; }
.frame.is-empty > img.photo, [data-photo].is-empty > img.photo { display: none; }
.frame.is-empty .ph, [data-photo].is-empty .ph { display: flex; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="plate"] { transform: translateY(40px) scale(.97); clip-path: inset(0 0 100% 0 round var(--r)); transition: opacity .8s var(--ease), transform 1.2s var(--ease), clip-path 1.3s var(--ease); }
.js [data-reveal="plate"].is-in { clip-path: inset(0 0 0 0 round var(--r)); transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js .split.is-in .w > span { transform: none; }

/* ---------- glow que sigue al mouse ---------- */
/* (sin mix-blend-mode: sobre fondos oscuros se ve igual y evita costo de composición) */
.glow { position: fixed; z-index: 1; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(63, 174, 42, .13), transparent 62%); opacity: 0; transition: opacity .6s; will-change: transform; }
.glow.is-on { opacity: 1; }
@media (hover: none) { .glow { display: none; } }

/* tarjetas con foco de luz */
.spot { position: relative; --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(107, 224, 79, .14), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: var(--text); transition: transform .5s var(--ease), background .3s ease, backdrop-filter .3s; }
.header.is-solid { background: rgba(5, 6, 5, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand b { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 1.1rem; letter-spacing: -.01em; display: none; }
.nav { display: none; gap: .3rem; padding: .35rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(12, 15, 13, .5); backdrop-filter: blur(10px); }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 600; padding: .5rem 1rem; border-radius: 99px; color: var(--soft); transition: color .25s, background .25s; }
.nav a:hover { color: var(--text); }
.nav a.is-active { background: var(--weld); color: var(--b0); }
.header .btn--sm { display: none; }
.burger { width: 48px; height: 48px; background: none; border: 0; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 99; background: var(--b0); color: var(--text); padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1rem; clip-path: circle(0% at calc(100% - 40px) 38px); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu a.menu__link { display: flex; align-items: baseline; gap: 1rem; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.menu__link small { font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--weld-bright); letter-spacing: .1em; }
.menu .btn { margin-top: auto; }
@media (min-width: 600px) { .brand b { display: block; } }
@media (min-width: 1040px) { .nav { display: flex; } .header .btn--sm { display: inline-flex; } .burger, .menu { display: none; } }

.weld-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.weld-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--weld), var(--weld-bright)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 14px 2px rgba(107, 224, 79, .6); }

/* ---------- HERO (pantalla completa, imagen de fondo) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--text); background: var(--b0); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -6% 0 -6% 0; z-index: -3; background: var(--b0); }
.hero__bg > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--par, 0px), 0) scale(1.1); will-change: transform; animation: kenburns 22s ease-in-out infinite alternate; }
.hero__bg .ph { display: none; background:
  radial-gradient(ellipse at 70% 35%, rgba(63, 174, 42, .25), transparent 55%),
  repeating-linear-gradient(0deg, transparent 0 59px, rgba(255, 255, 255, .04) 59px 60px),
  repeating-linear-gradient(90deg, transparent 0 59px, rgba(255, 255, 255, .04) 59px 60px),
  linear-gradient(160deg, #1a211d, var(--b0)); }
.hero__bg.is-empty .ph { display: block; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.07; } }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(5, 6, 5, .72) 0%, rgba(5, 6, 5, .2) 35%, rgba(5, 6, 5, .55) 70%, var(--b0) 100%),
  linear-gradient(90deg, rgba(5, 6, 5, .65), transparent 70%); }
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__in { padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); display: flex; flex-direction: column; gap: 1.8rem; align-items: flex-start; }
.hero__title { font-size: clamp(3.2rem, 11vw, 10rem); max-width: 11ch; line-height: .9; }
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--weld-bright); background: linear-gradient(90deg, var(--weld-bright), var(--weld)); -webkit-background-clip: text; background-clip: text; background-size: 0% 100%; background-repeat: no-repeat; animation: fillText 1.4s 1.1s var(--ease) forwards; }
@keyframes fillText { to { background-size: 100% 100%; } }
.hero .lead { color: #d3dad6; max-width: 50ch; }
.hero .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero .ln > span { display: block; }
.js .hero .ln > span { transform: translateY(110%) rotate(3deg); animation: rise 1.2s var(--ease) forwards; }
.js .hero .ln:nth-child(2) > span { animation-delay: .14s; }
.js .hero__in > :not(h1) { opacity: 0; transform: translateY(20px); animation: fadein 1s var(--ease) forwards; }
.js .hero__in > .eyebrow { animation-delay: .1s; }
.js .hero__in > .lead { animation-delay: .6s; }
.js .hero__in > .btn-row { animation-delay: .75s; }
@keyframes rise { to { transform: none; } }
@keyframes fadein { to { opacity: 1; transform: none; } }
.hero__bar { position: relative; border-top: 1px solid var(--line); background: rgba(5, 6, 5, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero__facts { display: grid; grid-template-columns: 1fr; }
.hero__facts li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--soft); }
.hero__facts li:last-child { border-bottom: 0; }
.hero__facts b { color: var(--text); font-weight: 700; }
.hero__cue { display: none; }
@media (min-width: 900px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts li { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.3rem 1.6rem; }
  .hero__facts li:first-child { padding-left: 0; }
  .hero__facts li:last-child { border-right: 0; }
  .hero__cue { display: grid; place-items: center; position: absolute; right: var(--gutter); top: -78px; width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(5, 6, 5, .4); backdrop-filter: blur(8px); text-decoration: none; }
  .hero__cue i { width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; margin-top: -4px; }
  .hero__cue:hover { background: var(--weld); border-color: var(--weld); }
  .hero__cue:hover i { border-color: var(--b0); }
}
@keyframes bob { 50% { transform: translateY(6px) rotate(45deg); } }

/* animaciones en pausa cuando el hero / marquee no se ven (las activa main.js) */
.hero.is-off .hero__bg > img.photo { animation-play-state: paused; }
.hero.is-off .hero__cue i { animation-play-state: paused; }
.marquee.is-off .marquee__track { animation-play-state: paused; }

/* ---------- marquee ---------- */
.marquee { background: var(--weld); color: var(--b0); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .2); position: relative; z-index: 5; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: clamp(1.4rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -.01em; padding: 1rem 2rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4rem; }
.marquee span::after { content: "✦"; font-size: .6em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- TALLER ---------- */
.about { display: grid; gap: 3.5rem; }
.about__txt { display: grid; gap: 1.8rem; align-content: start; }
.about__quote { font-family: var(--f-display); font-weight: 600; font-stretch: 92%; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; border-left: 3px solid var(--weld); padding-left: 1.4rem; max-width: 26ch; color: var(--text); }
.about__photo { position: relative; }
.about__photo .frame { aspect-ratio: 4 / 5; }
.about__stage { position: relative; }
.about__stage .frame { aspect-ratio: 4 / 5; }
.about__stage .frame > img.photo { filter: brightness(.45) saturate(.9); }
.about__stage .ph { background: radial-gradient(ellipse at 50% 50%, rgba(63, 174, 42, .16), transparent 62%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .04) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .04) 39px 40px), linear-gradient(135deg, var(--b3), var(--b2)); }
.about__center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(78%, 420px); pointer-events: none; }
.about__logo { display: block; width: 100%; height: auto; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(63, 174, 42, .3)); }
.about__center .badge { position: absolute; right: -4%; bottom: -40%; }
@media (max-width: 520px) { .about__center .badge { padding: .8rem 1.1rem; bottom: -44%; } .about__center .badge b { font-size: 2rem; } }
.badge { display: grid; padding: 1.1rem 1.5rem; background: var(--weld); color: var(--b0); border-radius: 16px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7); }
.badge b { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
.badge span { font-size: .85rem; font-weight: 700; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.facts li { padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.facts b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; color: var(--text); }
.facts span { font-size: .92rem; color: var(--soft); }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .about__photo { margin-top: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- COMPUERTAS ---------- */
.flood { overflow: hidden; background: radial-gradient(ellipse at 85% 30%, rgba(63, 174, 42, .14), transparent 55%), var(--b1); }
.flood__giant { position: absolute; left: 50%; margin-left: -50vw; width: 100vw; text-align: center; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-weight: 900; font-stretch: 80%; font-size: clamp(3.5rem, 16.5vw, 22rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); white-space: nowrap; pointer-events: none; user-select: none; letter-spacing: -.04em; }
.flood__grid { display: grid; gap: 3.5rem; justify-items: center; text-align: center; position: relative; }
.flood__txt { display: grid; gap: 1.6rem; justify-items: center; }
.flood h2 { max-width: none; }
.flood .lead { margin-inline: auto; }
.flood .btn-row { justify-content: center; }
.flood__photo { width: min(100%, 980px); }
.flood__photo .frame { aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }

/* ---------- SERVICIOS ---------- */
.svc__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); justify-items: start; }
.svc { display: grid; gap: 2rem; }
.svc__tabs { display: flex; flex-direction: column; gap: .6rem; }
.svc__tab { text-align: left; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.1; color: var(--soft); display: flex; align-items: center; gap: 1rem; transition: color .3s, background .4s var(--ease), border-color .3s, transform .4s var(--ease); }
.svc__tab small { font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--weld-bright); opacity: .7; }
.svc__tab:hover { color: var(--text); border-color: var(--line-2); transform: translateX(6px); }
.svc__tab[aria-selected="true"] { background: var(--weld); border-color: var(--weld); color: var(--b0); transform: translateX(10px); }
.svc__tab[aria-selected="true"] small { color: var(--b0); }
.svc__nav { display: grid; gap: 1rem; }
.svc__hint { display: inline-flex; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--weld-bright); }
.svc__hint i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--weld-bright); animation: ping 2s infinite; }
.svc__tab::after { content: "→"; margin-left: auto; font-family: var(--f-body); font-size: 1.3rem; opacity: .35; transition: transform .4s var(--ease), opacity .3s; }
.svc__tab:hover::after { opacity: 1; transform: translateX(6px); }
.svc__tab[aria-selected="true"]::after { opacity: 1; }
.svc:not(.is-touched) .svc__tab[aria-selected="false"] { animation: nudge 3.2s var(--ease) infinite; }
.svc:not(.is-touched) .svc__tab[aria-selected="false"]:nth-child(3) { animation-delay: .25s; }
.svc:not(.is-touched) .svc__tab[aria-selected="false"]:nth-child(4) { animation-delay: .5s; }
@keyframes nudge { 0%, 70%, 100% { border-color: var(--line); } 80% { border-color: var(--weld-bright); box-shadow: 0 0 0 4px rgba(107, 224, 79, .15); } }
.svc__panel.is-active .frame > img.photo { animation: imgIn 1s var(--ease); }
.svc__panel.is-active .frame { animation: frameIn .9s var(--ease); }
@keyframes imgIn { from { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes frameIn { from { clip-path: inset(0 100% 0 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
.svc__panel { display: none; gap: 1.6rem; }
.svc__panel.is-active { display: grid; animation: panel .7s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.svc__panel .frame { aspect-ratio: 16 / 10; }
.svc__panel h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.svc__panel p { color: var(--soft); }
.svc__panel ul { display: grid; gap: .6rem; }
.svc__panel li { padding-left: 1.7rem; position: relative; }
.svc__panel li::before { content: ""; position: absolute; left: 0; top: .6em; width: .75rem; height: .75rem; border-radius: 3px; background: var(--weld); transform: rotate(45deg); }
.svc__more { margin-top: 3.5rem; font-family: var(--f-display); font-weight: 600; font-stretch: 92%; font-size: clamp(1.25rem, 2vw, 1.8rem); letter-spacing: -.02em; max-width: 34ch; }
@media (min-width: 900px) {
  .svc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .svc__nav { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- GALERÍA ---------- */
.gal__head { display: grid; gap: 1.6rem; margin-bottom: 3rem; justify-items: start; }
.gal__filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { background: transparent; border: 1px solid var(--line-2); color: var(--soft); padding: .6rem 1.2rem; border-radius: 99px; font-size: .93rem; font-weight: 600; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { border-color: var(--text); color: var(--text); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--weld); border-color: var(--weld); color: var(--b0); }
.gal__grid { display: grid; grid-template-columns: 1fr; gap: clamp(.75rem, 1.4vw, 1.25rem); }
.tile { position: relative; padding: 0; border: 0; background: none; text-align: left; color: inherit; width: 100%; min-width: 0; font: inherit; display: flex; flex-direction: column; }
.tile .frame { aspect-ratio: 4 / 3; width: 100%; flex: none; }
.tile .ph span { display: none; }
.tile[hidden] { display: none; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1.1rem; font-weight: 700; font-size: .98rem; color: var(--text); background: linear-gradient(0deg, rgba(5, 6, 5, .85), transparent); transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none; border-radius: 0 0 var(--r) var(--r); }
.tile:not(:disabled) { cursor: zoom-in; }
.tile:not(:disabled):hover figcaption, .tile:focus-visible figcaption { transform: none; opacity: 1; }
.tile:not(:disabled):hover .frame > img.photo { transform: scale(1.07); }
.tile:disabled { cursor: default; }
.tile.is-pop { animation: pop .6s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) {
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .gal__grid { grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; }
  .tile { grid-column: span 2; }
  .tile--wide { grid-column: span 4; }
  .tile--wide .frame { aspect-ratio: 8 / 3; }
}
.gal__social { margin-top: 3.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 2rem; }
.gal__social p { font-family: var(--f-display); font-weight: 600; font-stretch: 92%; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.02em; max-width: 30ch; }

/* lightbox */
.lb { border: 0; padding: 0; background: rgba(5, 6, 5, .96); color: var(--text); width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; }
.lb::backdrop { background: rgba(5, 6, 5, .85); backdrop-filter: blur(10px); }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: fadein .35s ease forwards; }
.lb__stage { display: grid; place-items: center; padding: 4rem 1rem 1rem; min-height: 0; overflow: hidden; }
.lb__stage img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem var(--gutter) 1.2rem; font-size: .98rem; }
.lb__btn { position: absolute; background: rgba(28, 35, 31, .8); border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.3rem; transition: background .25s, color .25s; }
.lb__btn:hover { background: var(--weld); color: var(--b0); border-color: var(--weld); }
.lb__close { top: .8rem; right: .8rem; }
.lb__prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: .8rem; top: 50%; transform: translateY(-50%); }

/* ---------- DETALLE ---------- */
.detail__grid { display: grid; gap: 3rem; }
.detail__txt { display: grid; gap: 1.6rem; align-content: start; justify-items: start; }
.detail__list { display: grid; width: 100%; border-top: 1px solid var(--line); }
.detail__list li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.detail__list b { display: block; font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: 1.35rem; letter-spacing: -.02em; }
.detail__list span { color: var(--soft); }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; scrollbar-width: thin; scrollbar-color: var(--weld) transparent; -webkit-overflow-scrolling: touch; }
.rail__item { flex: 0 0 min(82%, 520px); scroll-snap-align: start; }
.rail__item .frame { aspect-ratio: 4 / 5; }
.rail__item figcaption { padding-top: .8rem; font-weight: 700; }
.rail__ctrl { display: flex; gap: .6rem; margin-top: 1rem; }
.rail__ctrl button { width: 54px; height: 54px; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 50%; font-size: 1.3rem; transition: background .3s, color .3s, transform .3s var(--ease); }
.rail__ctrl button:hover { background: var(--weld); color: var(--b0); border-color: var(--weld); transform: scale(1.06); }
@media (min-width: 900px) {
  .detail__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .rail__item { flex-basis: min(46%, 440px); }
}

/* ---------- PROCESO ---------- */
.steps { position: relative; display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-left: 2.2rem; }
.steps__weld { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px; }
.steps__weld::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(180deg, var(--weld), var(--weld-bright)); box-shadow: 0 0 16px rgba(107, 224, 79, .7); transform: scaleY(0); transform-origin: top; transition: transform 2.8s cubic-bezier(.4, .1, .2, 1); }
.steps.is-in .steps__weld::after { transform: scaleY(1); }
.step { position: relative; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); transition: transform .5s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(107, 224, 79, .5); }
.step::before { content: ""; position: absolute; left: calc(-2.2rem + 1px); top: 1.7rem; width: 14px; height: 14px; background: var(--b1); border: 2px solid var(--weld-bright); border-radius: 3px; transform: rotate(45deg); }
.step__n { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--weld-bright); }
.step h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.1; margin: .4rem 0 .5rem; }
.step p { color: var(--soft); font-size: .98rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-left: 0; }
  .steps__weld, .step::before { display: none; }
}
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(6, 1fr); gap: 1rem; } .step { padding: 1.2rem; } .step h3 { font-size: 1.2rem; } }

/* ---------- ZONA ---------- */
.zone { display: grid; gap: 3rem; }
.zone__txt { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.zone h2 { color: var(--b0); }
.zone__list { border-top: 2px solid rgba(5, 6, 5, .85); }
.zone__list li { border-bottom: 2px solid rgba(5, 6, 5, .85); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; position: relative; font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.035em; line-height: 1; transition: padding .5s var(--ease), color .3s; color: var(--b0); cursor: default; }
.zone__list li:hover { padding-left: 1.4rem; color: #fff; }
.zone__list small { font-family: var(--f-body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 99px; background: var(--b0); color: var(--weld-bright); }
@media (min-width: 900px) { .zone { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; } }

/* ---------- DIFERENCIALES ---------- */
.diff__grid { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.diff__item { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: .6rem; background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); overflow: hidden; }
.diff__item i { font-style: normal; font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(107, 224, 79, .55); transition: color .4s; }
.diff__item:hover i { color: var(--weld); }
.diff__item h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.1; }
.diff__item p { color: var(--soft); }
@media (min-width: 700px) { .diff__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .diff__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- OPINIONES ---------- */
.rev__list { display: grid; gap: 1.2rem; margin-top: 3rem; }
.rev__list blockquote { font-family: var(--f-display); font-weight: 600; font-stretch: 95%; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.25; padding: 2rem; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .03); }
.rev__list cite { display: block; margin-top: 1rem; font-family: var(--f-body); font-size: .95rem; font-style: normal; color: var(--weld-bright); }
@media (min-width: 900px) { .rev__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CONTACTO ---------- */
.contact { overflow: hidden; background: radial-gradient(ellipse at 10% 90%, rgba(63, 174, 42, .16), transparent 55%), var(--b1); }
.contact__grid { display: grid; gap: 3.5rem; }
.contact__txt { display: grid; gap: 1.6rem; align-content: start; justify-items: start; }
.contact h2 { max-width: 9ch; }
.chan { display: grid; width: 100%; border-top: 1px solid var(--line); }
.chan li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.chan span { color: var(--soft); }
.chan a { text-decoration: none; font-weight: 700; }
.chan a:hover { color: var(--weld-bright); }
@media (max-width: 520px) { .chan li { flex-direction: column; gap: .1rem; } }
.form { background: var(--text); color: var(--b0); padding: clamp(1.5rem, 3.4vw, 2.8rem); display: grid; gap: 1.2rem; border-radius: 26px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.form h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .93rem; }
.field input, .field select, .field textarea { font: inherit; padding: .9rem 1rem; border: 1.5px solid #c3cbc7; background: #fff; color: var(--b0); border-radius: 12px; width: 100%; transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--weld); box-shadow: 0 0 0 4px rgba(63, 174, 42, .22); }
.field .err { color: #b3261e; font-size: .88rem; display: none; }
.field.is-bad input, .field.is-bad textarea { border-color: #b3261e; }
.field.is-bad .err { display: block; }
.row2 { display: grid; gap: 1.2rem; }
.form small { color: #566360; font-size: .88rem; }
.form .btn { background: var(--b0); color: var(--text); }
.form .btn::before { background: var(--weld); }
.form .btn:hover { color: var(--b0); }
.form.spot::after { display: none; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--b0); color: var(--soft); padding: 5rem 0 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer .brand img { height: 120px; width: auto; }
.footer h3 { font-family: var(--f-display); font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: .9rem; }
.footer li + li { margin-top: .45rem; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--weld-bright); }
.footer__base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .93rem; }
.footer__base a { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--weld); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* WhatsApp flotante */
.wa { position: fixed; right: clamp(.9rem, 2vw, 1.6rem); bottom: clamp(.9rem, 2vw, 1.6rem); z-index: 90; display: inline-flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: 0 1.4rem 0 1.1rem; border-radius: 99px; background: var(--weld); color: var(--b0); font-weight: 800; text-decoration: none; box-shadow: 0 14px 34px -8px rgba(63, 174, 42, .7); transform: translateY(180%); transition: transform .6s var(--ease), background .25s; }
.wa.is-on { transform: none; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--weld-bright); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.wa:hover { background: var(--weld-bright); }
.wa svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 520px) { .wa span { display: none; } .wa { width: 3.6rem; padding: 0; justify-content: center; } }

/* ---------- rendimiento en celulares: menos filtros de desenfoque (costosos para la GPU) ---------- */
@media (max-width: 700px) {
  .hero__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 6, 5, .78); }
  .btn--ghost { backdrop-filter: none; }
}

/* ---------- modo liviano: ahorro de datos / equipos de pocos recursos (lo activa main.js) ---------- */
.lite .hero__bg > img.photo { animation: none; }
.lite .hero__bar, .lite .btn--ghost, .lite .nav, .lite .hero__cue, .lite .lb::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
.lite .glow { display: none; }

/* movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero .ln > span, .js .hero__in > :not(h1) { transform: none; opacity: 1; }
  .js [data-reveal], .js [data-reveal="plate"] { opacity: 1; transform: none; clip-path: none; }
  .js .split .w > span { transform: none; }
  .hero__title em { background-size: 100% 100%; }
  .steps__weld::after { transform: none; }
}