/* M.C. Motos RN — sitio del taller.
   Identidad: negro, blanco y grises metálicos, como el logo y el flyer. Taller multimarca.
   El rojo solo aparece en la zona roja del tacómetro.
   Títulos en itálica condensada, como el flyer; chevrons "›››" como recurso gráfico. */

:root {
  --black: #0a0a0a;
  --ink: #111214;
  --char: #18191c;
  --steel: #26282c;
  --line: #2f3236;
  --gray: #8b8f96;
  --silver: #c9ccd1;
  --white: #f5f5f4;
  --accent: #f2f3f5;
  --red: #ff2a00;
  --radius: 14px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: .95; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-style: italic; font-weight: 900; }
h2 em { font-style: italic; color: transparent; background: linear-gradient(180deg, #ffffff 15%, #9aa0a6 60%, #e6e7e9 85%); -webkit-background-clip: text; background-clip: text; }
h1 .accent { font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--white); }
::selection { background: var(--accent); color: var(--black); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--black); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.chev { color: var(--gray); letter-spacing: -.12em; margin-right: .5em; font-weight: 900; }
.kicker { font: 600 .82rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--silver); margin: 0 0 18px; }
.link { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Botones */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--white);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .6em 1.05em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-accent { --bg: var(--accent); color: var(--black); box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .25); }
.btn-accent:hover { --bg: #ffffff; box-shadow: 0 16px 40px -12px rgba(255, 255, 255, .35); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-dark { --bg: var(--black); color: var(--white); }
.btn::after { /* brillo que cruza al pasar el mouse */
  content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }

/* Barra de progreso */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #5a5e65, var(--white)); }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10, 10, 10, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--display); font-style: italic; letter-spacing: .02em; }
.brand img { border-radius: 50%; border: 2px solid var(--white); }
.brand b { font-weight: 900; }
.brand i { color: var(--gray); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--silver); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -50%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  transform: perspective(700px) rotateX(60deg) translateY(var(--grid-y, 0));
  mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 60%);
  animation: gridmove 6s linear infinite;
}
@keyframes gridmove { to { background-position: 0 64px; } }
.hero-glow { position: absolute; width: 60vmax; height: 60vmax; right: -15vmax; top: -10vmax; background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 60%); filter: blur(10px); transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .4s var(--ease); }
.speedlines i { position: absolute; height: 2px; width: 30vw; left: -30vw; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5)); animation: speed 2.6s linear infinite; }
.speedlines i:nth-child(1) { top: 22%; animation-delay: 0s; }
.speedlines i:nth-child(2) { top: 38%; animation-delay: .9s; width: 18vw; }
.speedlines i:nth-child(3) { top: 55%; animation-delay: 1.6s; background: linear-gradient(90deg, transparent, var(--accent)); }
.speedlines i:nth-child(4) { top: 68%; animation-delay: .4s; width: 22vw; }
.speedlines i:nth-child(5) { top: 80%; animation-delay: 2s; }
.speedlines i:nth-child(6) { top: 12%; animation-delay: 1.2s; width: 14vw; background: linear-gradient(90deg, transparent, var(--accent)); }
@keyframes speed { to { transform: translateX(160vw); } }
.hero.revving .speedlines i { animation-duration: .7s; }

.hero-row { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 40px 70px; }
.hero-row > * { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 10.5vw, 7.4rem); font-style: italic; font-weight: 900; margin-bottom: 26px; }
.hero h1 .line { display: block; }
.lead { color: var(--silver); font-size: 1.15rem; max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { font: 500 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--line); padding: 8px 12px; border-radius: 6px; color: var(--silver); }

/* Tacómetro */
.hero-gauge { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gauge { position: relative; width: min(400px, 82vw); aspect-ratio: 1; }
.gauge-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.gauge-ring { fill: #0e0f11; stroke: var(--steel); stroke-width: 3; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge-track { stroke: #1f2124; }
.gauge-fill { stroke: url(#arcGrad); stroke-dasharray: 0 100; transition: stroke-dasharray .08s linear; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .3)); }
.gauge-ticks line { stroke: var(--silver); stroke-linecap: round; }
.gauge-ticks line.red { stroke: var(--red); }
.gauge-ticks text { fill: var(--silver); font: 600 15px var(--display); font-style: italic; text-anchor: middle; dominant-baseline: middle; }
.gauge-ticks text.red { fill: var(--red); }
.needle line { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent)); }
.needle circle { fill: var(--char); stroke: var(--steel); stroke-width: 2; }
.needle .hub { fill: var(--accent); stroke: none; }
.needle { transform-origin: 150px 150px; transform: rotate(-135deg); }
.gauge-read { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; }
.rpm { display: block; font: 900 3rem/1 var(--display); font-style: italic; }
.gauge-read small { font: 500 .7rem/1 var(--mono); letter-spacing: .15em; color: var(--gray); }
.gauge-logo { position: absolute; left: 50%; top: 27%; width: 64px; transform: translateX(-50%); border-radius: 50%; opacity: .9; }
.gauge.redline .rpm { color: var(--red); animation: shake .08s linear infinite; }
.gauge.redline { animation: shake .1s linear infinite; }
@keyframes shake { 0% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } }

.throttle {
  position: relative; overflow: hidden; width: min(400px, 82vw); height: 54px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--char); color: var(--white); cursor: pointer;
  font: 700 .95rem/1 var(--body); user-select: none; -webkit-user-select: none; touch-action: none;
}
.throttle-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #5a5e65, var(--white) 80%, var(--red)); transform-origin: left; transform: scaleX(0); }
.throttle-label { position: relative; mix-blend-mode: difference; }
.throttle:active { border-color: var(--accent); }
.gauge-msg { min-height: 1.6em; margin: 0; font: 700 1.1rem/1.3 var(--display); font-style: italic; text-transform: uppercase; color: var(--accent); text-align: center; }
.gauge-msg a { color: var(--white); }

.marquee { position: relative; border-block: 1px solid var(--line); background: linear-gradient(90deg, #d9dbde, #ffffff 50%, #d9dbde); color: var(--black); overflow: hidden; transform: rotate(-1.5deg) scale(1.02); margin-bottom: 20px; }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: marquee 28s linear infinite; font: 900 1.4rem/1 var(--display); font-style: italic; text-transform: uppercase; white-space: nowrap; }
.marquee-track b { letter-spacing: -.15em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-dark { background: var(--ink); }
.section-dark::before { /* franja de chevrons */
  content: '›››››››››››››››››››››››››››››››››››››››››'; position: absolute; top: 0; left: 0; right: 0; overflow: hidden; white-space: nowrap;
  font: 900 1.6rem/1 var(--display); color: var(--steel); letter-spacing: -.1em; transform: translateY(-50%); pointer-events: none;
}
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-lead { color: var(--silver); font-size: 1.1rem; margin: 18px 0 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  position: relative; padding: 28px 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--char), var(--ink)); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s, transform .2s;
  display: flex; flex-direction: column; overflow: hidden;
}
.svc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .07), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc:hover { border-color: rgba(255, 255, 255, .45); box-shadow: 0 30px 60px -30px rgba(255, 255, 255, .15); }
.svc:hover::before { opacity: 1; }
.svc-num { font: 900 4.5rem/1 var(--display); font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--line); position: absolute; right: 16px; top: 10px; transition: -webkit-text-stroke-color .3s; }
.svc:hover .svc-num { -webkit-text-stroke-color: var(--accent); }
.svc-ico { width: 52px; height: 52px; color: var(--accent); margin-bottom: 22px; transition: transform .4s var(--ease); }
.svc:hover .svc-ico { transform: rotate(-8deg) scale(1.1); }
.svc h3 { font-size: 1.75rem; font-style: italic; font-weight: 800; margin-bottom: 12px; }
.svc p { color: var(--silver); margin: 0 0 16px; font-size: .98rem; }
.svc-more { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.svc.open .svc-more { max-height: 320px; }
.svc-more li { padding: 8px 0 8px 22px; border-top: 1px dashed var(--line); position: relative; font-size: .94rem; }
.svc-more li::before { content: '›'; position: absolute; left: 4px; color: var(--accent); font-weight: 900; }
.svc-btn { margin-top: auto; align-self: flex-start; background: none; border: 0; color: var(--white); cursor: pointer; font: 700 .92rem/1 var(--body); padding: 14px 0 0; display: inline-flex; gap: 8px; align-items: center; }
.svc-btn span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--black); transition: transform .3s var(--ease); }
.svc.open .svc-btn span { transform: rotate(45deg); }
.svc-wa { margin-top: 12px; }

/* Diagnóstico */
.diag-box { display: grid; gap: 28px; background: var(--char); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 4vw, 40px); }
.symptoms { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 600 .95rem/1 var(--body); color: var(--silver); background: var(--ink); border: 1.5px solid var(--line);
  padding: 12px 16px; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--gray); color: var(--white); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--black); box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .3); }
.diag-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.diag-form label { display: grid; gap: 6px; font: 600 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.diag-form input { font: 500 1rem var(--body); color: var(--white); background: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s; }
.diag-form input:focus { border-color: var(--accent); outline: none; }
.diag-result { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; border-top: 1px dashed var(--line); padding-top: 26px; }
.diag-label { font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin: 0 0 10px; }
.diag-svc { font: 800 2rem/1 var(--display); font-style: italic; text-transform: uppercase; margin: 0; color: var(--accent); transition: opacity .2s; }
.diag-svc.empty { color: var(--gray); }
.diag-preview { grid-row: span 2; margin: 0; white-space: pre-wrap; font: 500 .9rem/1.55 var(--mono); color: var(--silver); background: #0b1410; border: 1px solid #1d3a2c; border-radius: 12px 12px 12px 2px; padding: 16px 18px; min-height: 120px; position: relative; }
.diag-preview:empty::before { content: 'Aquí verás el mensaje para WhatsApp…'; color: var(--gray); }
.diag-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 31px; left: 4%; right: 4%; height: 2px; background: var(--line); }
.steps::after { content: ''; position: absolute; top: 31px; left: 4%; height: 2px; width: calc(92% * var(--p, 0)); background: linear-gradient(90deg, #5a5e65, var(--white)); box-shadow: 0 0 10px rgba(255, 255, 255, .35); transition: width .2s linear; }
.step { position: relative; z-index: 1; }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--black); border: 2px solid var(--line); font: 900 1.8rem/1 var(--display); font-style: italic; margin-bottom: 20px; transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease); }
.step.lit .step-n { border-color: var(--accent); background: var(--accent); color: var(--black); transform: scale(1.06); }
.step h3 { font-size: 1.6rem; font-style: italic; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--silver); margin: 0; font-size: .96rem; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 22px; }
.mech { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--char); transition: border-color .3s, transform .2s; }
.mech:hover { border-color: var(--accent); }
.mech-photo { aspect-ratio: 4 / 3.4; background: linear-gradient(145deg, var(--steel), var(--black)); position: relative; background-size: cover; background-position: center; }
.mech-photo::after { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font: 900 7rem/1 var(--display); font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.mech-photo.has-photo::after { content: none; }
.mech-body { padding: 22px 24px; position: relative; z-index: 1; }
.mech-body h3 { font-size: 2rem; font-style: italic; font-weight: 900; }
.mech-body p { margin: 6px 0 0; color: var(--gray); font: 600 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mech-bg { position: absolute; right: -24px; bottom: -24px; width: 140px; height: 140px; color: var(--steel); transition: transform .6s var(--ease), color .3s; }
.mech:hover .mech-bg { transform: rotate(-25deg) scale(1.1); color: rgba(255, 255, 255, .25); }

/* Galería */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 16px; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .6s var(--ease), filter .4s; filter: grayscale(.5); }
.gallery button:hover img { transform: scale(1.05); filter: grayscale(0); }
.gallery button::after { content: '+'; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--black); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; transform: scale(0); transition: transform .3s var(--ease); }
.gallery button:hover::after { transform: scale(1); }
.gallery-slot { aspect-ratio: 4/3; border: 1.5px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--gray); font: 500 .85rem var(--mono); margin-bottom: 16px; break-inside: avoid; text-align: center; padding: 20px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lb-close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--black); font-size: 1.8rem; cursor: pointer; }

/* Ubicación */
.loc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
.loc-info { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.loc-info h2 { margin-bottom: 6px; }
.addr { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; font-weight: 600; margin: 0; }
.addr .ico { color: var(--accent); }
.loc-actions, .wa-lines { display: flex; flex-wrap: wrap; gap: 10px; }
.schedule { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.schedule li { display: flex; justify-content: space-between; gap: 30px; border-bottom: 1px dashed var(--line); padding: 6px 0; min-width: 280px; }
.schedule span { color: var(--silver); }
.map { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); transition: filter .5s; }
.map:hover iframe { filter: none; }

/* CTA */
.cta { background: linear-gradient(135deg, #f5f5f4, #c9ccd1 55%, #eceded); color: var(--black); padding: 64px 0; position: relative; overflow: hidden; }
.cta::before { content: '››››››››››››››››››››››'; position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font: 900 14rem/1 var(--display); color: rgba(0, 0, 0, .08); letter-spacing: -.12em; white-space: nowrap; pointer-events: none; }
.cta-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 em { background: none; -webkit-text-stroke: 2px var(--black); color: transparent; }

/* Footer */
.footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--black); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 50%; }
.footer-brand strong { font: 900 1.5rem/1 var(--display); font-style: italic; text-transform: uppercase; }
.footer-brand p { margin: 4px 0 0; color: var(--gray); font-size: .9rem; }
.footer-copy { color: var(--gray); font-size: .9rem; margin: 0; }
.credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gray); font-size: .85rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, color .3s; }
.credit svg { width: 30px; height: 21px; transition: transform .5s var(--ease); }
.credit b { color: var(--white); font-weight: 700; font-size: .95rem; }
.credit em { color: #2BD9AE; font-style: normal; font-weight: 500; }
.credit:hover { border-color: #2BD9AE; color: var(--white); }
.credit:hover svg { transform: rotate(180deg); }

/* WhatsApp flotante */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #25d366; color: #fff; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); display: grid; place-items: center; transition: transform .3s var(--ease); }
.fab-btn svg { width: 32px; height: 32px; }
.fab-btn:hover { transform: scale(1.08) rotate(-8deg); }
.fab-btn::before { content: ''; position: absolute; width: 62px; height: 62px; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.fab-menu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.fab-menu a { opacity: 0; transform: translateY(10px) scale(.95); transition: all .25s var(--ease); background: var(--white); color: var(--black); text-decoration: none; font-weight: 700; padding: 11px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; gap: 8px; align-items: center; }
.fab-menu a small { font: 500 .8rem var(--mono); color: #555; }
.fab.open .fab-menu { pointer-events: auto; }
.fab.open .fab-menu a { opacity: 1; transform: none; }
.fab.open .fab-menu a:nth-child(2) { transition-delay: .05s; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero h1 .line { opacity: 0; transform: translateY(40px) skewY(4deg); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) { animation-delay: .12s; }
.hero h1 .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Responsive */
@media (min-width: 1061px) {
  .hero h1 { font-size: clamp(4rem, 6.4vw, 6rem); }
}
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero-row { grid-template-columns: 1fr; text-align: left; }
  .hero-gauge { order: 2; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; background: rgba(10, 10, 10, .97); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .nav-links a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links.open { transform: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 31px; right: auto; width: 2px; height: auto; }
  .steps::after { height: calc(100% * var(--p, 0)); width: 2px; bottom: auto; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; }
  .step-n { grid-row: span 2; margin: 0; }
  .diag-form, .diag-result, .loc { grid-template-columns: 1fr; }
  .diag-preview { grid-row: auto; }
  .team { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .brand span { font-size: 1.15rem; }
  .cta-row { justify-content: center; text-align: center; }
  .footer-row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero h1 .line { opacity: 1; transform: none; }
}

/* Galería vacía: tarjeta de Instagram */
.gallery-empty { columns: auto; }
.ig-card {
  display: flex; align-items: center; gap: 22px; padding: 30px clamp(20px, 4vw, 40px); text-decoration: none;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--char), var(--ink)); transition: border-color .3s, transform .3s var(--ease);
}
.ig-card:hover { border-color: var(--white); transform: translateY(-3px); }
.ig-ico { width: 56px; height: 56px; flex: none; }
.ig-card b { display: block; font: 900 clamp(1.6rem, 4vw, 2.4rem)/1 var(--display); font-style: italic; text-transform: uppercase; }
.ig-card small { color: var(--silver); font-size: 1rem; }
.ig-go { margin-left: auto; font-size: 2rem; transition: transform .3s var(--ease); }
.ig-card:hover .ig-go { transform: translateX(6px); }
h2 em { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-right: .06em; }
