/* =====================================================================
   Procesos en Acero — Hoja de estilos
   Paleta: negro profundo, dorado del logo, plata metálico.
   ===================================================================== */

:root {
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #161616;
  --line:         #232323;
  --line-2:       #2c2c2c;
  --text:         #e9e9ea;
  --text-2:       #b6b6b8;
  --text-3:       #8a8a8c;
  --gold:         #f5b800;
  --gold-2:       #ffc94a;
  --gold-deep:    #c98e00;
  --silver-1:     #d8d8d8;
  --silver-2:     #a9a9a9;
  --danger:       #ef4444;

  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    22px;

  --shadow-sm:    0 1px 2px rgba(0,0,0,.5);
  --shadow:       0 10px 30px rgba(0,0,0,.55);
  --shadow-gold:  0 10px 30px rgba(245,184,0,.18);

  --container:    1200px;
  --pad:          clamp(1rem, 3vw, 2rem);

  --display:      "Oswald", "Bebas Neue", "Impact", system-ui, sans-serif;
  --body:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t-fast:       .18s ease;
  --t:            .3s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(245,184,0,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,255,255,.04), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-2); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #fff;
  margin: 0 0 .5em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-size: 1rem; letter-spacing: .12em; color: var(--silver-1); }
p  { margin: 0 0 1em; color: var(--text-2); }
strong { color: #fff; }

.container { width: min(var(--container), 100% - var(--pad) * 2); margin-inline: auto; }

/* Utility: ocultar solo en desktop (>=761px), visible en mobile */
@media (min-width: 761px) {
  .hide-desktop { display: none !important; }
}
/* Utility: ocultar solo en mobile (<=760px), visible en desktop */
@media (max-width: 760px) {
  .hide-mobile { display: none !important; }
}

.visually-hidden {
  position: absolute !important;
  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: -9999px; top: 0;
  background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--gold); color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  display: block;
  text-transform: uppercase;
  color: #fff;
}
.brand-text em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

#primary-menu {
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem);
}
#primary-menu a,
.primary-nav a {
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
  position: relative;
  transition: color var(--t-fast);
}
#primary-menu a:hover,
.primary-nav a:hover { color: #fff; }
#primary-menu a:not(.cta-link)::after,
.primary-nav a:not(.cta-link)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t);
}
#primary-menu a:not(.cta-link):hover::after,
.primary-nav a:not(.cta-link):hover::after { transform: scaleX(1); }

.cta-link {
  background: var(--gold);
  color: #0a0a0a !important;
  padding: .55rem 1rem !important;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .02em;
}
.cta-link:hover { background: var(--gold-2); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  position: relative;
}
.nav-toggle span {
  display: block; height: 2px; width: 18px; background: #fff;
  margin: 3px auto; transition: var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .92rem;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #0a0a0a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); color: #0a0a0a; }
.btn-ghost {
  border-color: var(--line-2);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 75% 30%, rgba(245,184,0,.12), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(245,184,0,.06), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
}
.hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--body);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before, .section-eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold);
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* inline (no inline-block) para que pueda partir entre palabras en móvil */
  display: inline;
}
.hero .lead {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  color: var(--text-2);
  max-width: 56ch;
  margin-block: 1rem 1.7rem;
}
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.hero-stats li { display: flex; flex-direction: column; gap: .15rem; }
.hero-stats strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--gold);
  letter-spacing: .02em;
}
.hero-stats span {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background: #0a0a0a;
}
.hero-art > img:first-of-type {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}
.hero-art:hover > img:first-of-type { transform: scale(1.06); }
.hero-art-logo {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: clamp(90px, 12vw, 130px);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.6));
  pointer-events: none;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.8) 100%),
    linear-gradient(90deg, rgba(0,0,0,.25) 0%, transparent 35%);
  pointer-events: none;
}
.hero-art figcaption {
  position: absolute;
  left: 1rem; bottom: .9rem;
  z-index: 1;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver-1);
  background: rgba(10,10,10,.55);
  border: 1px solid rgba(255,255,255,.08);
  padding: .35rem .7rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Hero variante con imagen de fondo (index2.html) ---------- */
.hero-with-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Imagen como fondo de todo el hero, atenuada para legibilidad del texto */
.hero-with-bg .hero-bg-fill {
  position: absolute;
  inset: -8% 0 -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  filter: brightness(0.18) saturate(.95);
  /* Volteo (--hero-flip) y parallax (--hero-py) compuestos para que el JS no pise el espejo */
  transform: scaleX(var(--hero-flip, 1)) translate3d(0, var(--hero-py, 0px), 0);
  will-change: transform;
}
/* Doble veladura: oscurece especialmente el lado izquierdo donde va el texto */
.hero-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.7) 35%, rgba(8,8,8,.35) 65%, rgba(8,8,8,.15) 100%),
    linear-gradient(180deg, rgba(8,8,8,.2) 0%, rgba(8,8,8,.7) 100%);
}

/* La figure mantiene la imagen brillante encima del fondo atenuado: */
.hero-with-bg .hero-art img:first-of-type { filter: none; }

/* Variante: la figure muestra el logo como contenido principal */
.hero-art.hero-art-logo-only {
  background:
    radial-gradient(75% 75% at 50% 45%, rgba(245,184,0,.14), transparent 70%),
    linear-gradient(160deg, rgba(28,28,28,.35) 0%, rgba(10,10,10,.18) 100%);
  border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}
.hero-art.hero-art-logo-only::after {
  /* Quita el overlay degradado del hero-art original en esta variante */
  display: none;
}
.hero-art.hero-art-logo-only > img {
  position: static;
  width: clamp(240px, 88%, 520px);
  height: auto;
  object-fit: contain;
  transform: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 22px 48px rgba(0,0,0,.55));
  transition: transform var(--t);
}
.hero-art.hero-art-logo-only:hover > img {
  transform: scale(1.04);
}

/* ---------- Hero inmersivo: imagen a todo lo ancho, sin atenuar (index.php) ---------- */
.hero-immersive { min-height: clamp(560px, 70vh, 780px); }
.hero-immersive .hero-grid { grid-template-columns: 1fr; }
.hero-immersive .hero-copy { max-width: 640px; min-width: 0; }
.hero-immersive .hero-copy h1 { overflow-wrap: break-word; }
/* Imagen a opacidad completa; se voltea (vía variable) para dejar la zona oscura detrás del texto */
.hero-immersive .hero-bg-fill {
  filter: none;
  --hero-flip: -1;
}
/* Scrim sutil solo del lado del texto (izquierda) y base inferior; la imagen queda intacta a la derecha */
.hero-immersive::before {
  background:
    linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.62) 28%, rgba(8,8,8,.2) 52%, rgba(8,8,8,0) 72%),
    linear-gradient(180deg, rgba(8,8,8,.25) 0%, transparent 32%, rgba(8,8,8,.6) 100%);
}
@media (max-width: 1024px) {
  .hero-immersive { min-height: 0; }
  .hero-immersive .hero-copy { max-width: none; }
  /* En móvil la imagen va como banda inferior: una landscape se recorta mucho menos
     y se ve el láser, mientras el texto queda arriba sobre fondo sólido. */
  .hero-immersive .hero-bg-fill {
    --hero-flip: 1;            /* sin espejo en móvil */
    inset: auto 0 0 0;         /* anclada al fondo */
    height: 56%;
    object-position: center 42%;
    filter: brightness(1.08) saturate(1.05);
  }
  /* Scrim ligero sobre la banda para que la imagen luzca brillante; sólido solo arriba */
  .hero-immersive::before {
    background: linear-gradient(180deg,
      #0a0a0a 0%, #0a0a0a 27%,
      rgba(10,10,10,.78) 39%,
      rgba(10,10,10,.34) 50%,
      rgba(10,10,10,.10) 66%,
      rgba(10,10,10,0) 84%,
      rgba(10,10,10,.28) 100%);
  }
  /* Sombra sutil para mantener legibles las estadísticas sobre la imagen más brillante */
  .hero-immersive .hero-stats strong,
  .hero-immersive .hero-stats span { text-shadow: 0 1px 6px rgba(0,0,0,.7); }
}

/* ---------- Strip ---------- */
.strip {
  background: #0d0d0d;
  border-block: 1px solid var(--line);
  padding: 1rem 0;
}
.strip-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .92rem;
  color: var(--silver-2);
}
.strip-grid span { position: relative; }
.strip-grid span + span::before {
  content: "·"; color: var(--gold); margin-right: clamp(1rem, 3vw, 2.5rem);
  position: absolute; left: -1.5rem;
}

/* ---------- En el taller (cards con foto) ---------- */
.taller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.taller-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  isolation: isolate;
}
.taller-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.taller-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease, filter var(--t);
  filter: saturate(1.05);
}
.taller-card:hover img { transform: scale(1.07); }
.taller-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,.55) 65%, rgba(10,10,10,.95) 100%);
  pointer-events: none;
}
.taller-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.4rem 1.3rem;
  z-index: 1;
}
.taller-card-body .kicker {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .55rem;
  font-weight: 600;
}
.taller-card-body h3 {
  color: #fff;
  margin: 0 0 .35rem;
}
.taller-card-body p {
  margin: 0;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.5;
}

@media (max-width: 540px) {
  .taller-card { aspect-ratio: 1 / 1; }
}

/* ---------- Carrusel de procesos ---------- */
.taller-carousel {
  position: relative;
  margin-top: 1.25rem;
}
.taller-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 4);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .25rem .25rem 1rem;
}
.taller-track::-webkit-scrollbar { display: none; }
.taller-track .taller-card { scroll-snap-align: start; }
.taller-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }

.carousel-btn {
  position: absolute;
  top: calc(50% - 1.25rem);
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10,10,10,.78);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.carousel-btn:hover { background: var(--gold); color: #0a0a0a; }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

.taller-tagline {
  max-width: 70ch;
  margin: 1.75rem auto 0;
  text-align: center;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.taller-tagline em {
  font-style: italic;
  color: var(--silver-1);
}

@media (max-width: 960px) {
  .taller-track { grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (max-width: 720px) {
  /* 1 card por viewport + peek de la siguiente (affordance de swipe) */
  .taller-track { grid-auto-columns: 86%; gap: .8rem; padding-bottom: 1.25rem; }
  /* Ocultar flechas: en mobile el swipe nativo es el patrón estándar */
  .carousel-btn { display: none; }
}
@media (max-width: 480px) {
  .taller-track { grid-auto-columns: 88%; gap: .65rem; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.section-dark { background: var(--bg-2); }
.section-intro { max-width: 64ch; color: var(--text-2); margin-bottom: 2.5rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.card-stack { display: grid; gap: 1rem; }
.mini-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.mini-card h3 { color: #fff; margin-bottom: .25rem; }
.mini-card p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.service {
  background: linear-gradient(180deg, #161616 0%, #101010 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  transition: border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(245,184,0,.10), transparent 50%);
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.service:hover { border-color: var(--gold); transform: translateY(-4px); }
.service:hover::before { opacity: 1; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(245,184,0,.10);
  color: var(--gold);
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-media {
  margin: -1.6rem -1.4rem 1.2rem;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
  cursor: zoom-in;
}
.service-media:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s ease, filter var(--t);
  filter: saturate(1.05);
}
.service:hover .service-media img { transform: scale(1.06); }
.service h3 { color: #fff; margin-bottom: .35rem; }
.service p { margin: 0 0 .6rem; font-size: .96rem; }
.service ul {
  display: grid; gap: .25rem;
  font-size: .9rem;
  color: var(--text-2);
}
.service ul li::before {
  content: "▸";
  color: var(--gold);
  margin-right: .5rem;
}

/* ---------- Tabla capacidades ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--bg-3);
}
.caps-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .95rem;
}
.caps-table th, .caps-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.caps-table thead th {
  background: #1a1a1a;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}
.caps-table tbody th {
  font-weight: 600;
  color: #fff;
  background: rgba(245,184,0,.04);
}
.caps-table tbody tr:hover { background: rgba(255,255,255,.025); }
.caps-note {
  margin-top: 1rem;
  font-size: .92rem;
  color: var(--text-3);
}

/* ---------- Productos ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.product {
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: var(--t);
}
.product:hover { border-color: var(--gold); }
.product h3 { color: #fff; }
.product p { margin: 0; }
.product .tag {
  display: inline-block;
  margin: .6rem .35rem 0 0;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(245,184,0,.12);
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bare-list { display: grid; gap: .35rem; }
.bare-list li { color: var(--text-2); }
.product .bare-list li::before { content: "—  "; color: var(--gold); }

/* ---------- Metalmecánica ---------- */
.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.mm-item {
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.mm-item h3 { color: #fff; margin-bottom: .3rem; }
.mm-item p { margin: 0; color: var(--text-2); font-size: .96rem; }
.mm-formats {
  border-top: 1px dashed var(--line-2);
  padding-top: 1.5rem;
  color: var(--text-2);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps li {
  list-style: none;
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  position: relative;
}
.step-num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: .6rem;
}
.steps h3 { color: #fff; margin-bottom: .25rem; }
.steps p { margin: 0; font-size: .96rem; }

/* ---------- Industrias ---------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .6rem;
}
.ind {
  background: #111;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: #fff;
}

/* ---------- Beneficios ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.benefit {
  background: linear-gradient(180deg, #161616 0%, #101010 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  transition: border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}
.benefit::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(245,184,0,.10), transparent 50%);
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.benefit:hover { border-color: var(--gold); transform: translateY(-4px); }
.benefit:hover::before { opacity: 1; }
.benefit-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(245,184,0,.10);
  color: var(--gold);
  margin-bottom: 1rem;
  transition: transform var(--t);
}
.benefit:hover .benefit-icon { transform: rotate(-6deg) scale(1.05); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { color: #fff; margin-bottom: .35rem; }
.benefit h3 em { color: var(--gold); font-style: normal; font-size: .85em; letter-spacing: .04em; }
.benefit p { margin: 0; color: var(--text-2); font-size: .96rem; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
}
.gallery-grid li { list-style: none; }
.gallery-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f0f0f;
  cursor: zoom-in;
  text-align: left;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.gallery-thumb-media {
  position: relative;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--t);
}
.gallery-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.gallery-caption {
  display: block;
  padding: .75rem .9rem .85rem;
  background: linear-gradient(180deg, #161616 0%, #101010 100%);
  border-top: 1px solid var(--line);
}
.gallery-caption strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.gallery-caption em {
  display: block;
  color: var(--text-3);
  font-style: normal;
  font-size: .8rem;
  line-height: 1.35;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #111;
}
.lightbox-caption {
  color: var(--text-2);
  font-size: .95rem;
  text-align: center;
  margin: 0;
  max-width: 700px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(20,20,20,.85);
  border: 1px solid var(--line-2);
  color: #fff;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  color: #0a0a0a;
}
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-close svg,
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(20,20,20,.85);
  border: 1px solid var(--line-2);
  padding: .35rem .8rem;
  border-radius: 999px;
}
body.lightbox-open { overflow: hidden; }

/* ---------- Logos clientes ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.logos li {
  display: grid; place-items: center;
  height: 80px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .08em;
  color: var(--silver-1);
  text-transform: uppercase;
  transition: var(--t);
}
.logos li:hover { color: #fff; border-color: var(--gold); }
.logos-note { color: var(--text-3); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: .7rem; }
.faq-list details {
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  transition: border-color var(--t);
}
.faq-list details[open] { border-color: var(--gold); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.02rem;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
  transition: transform var(--t);
  line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding-bottom: 1.1rem;
  color: var(--text-2);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ---------- Contacto ---------- */
.contact-section .lead-sm { color: var(--text-2); max-width: 50ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.2rem;
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-list .ico {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: rgba(245,184,0,.1);
  color: var(--gold);
  border-radius: 10px;
  font-size: 1rem;
}
.contact-list strong { display: block; color: #fff; margin-bottom: .1rem; }
.contact-list a { color: var(--gold); }

.contact-form {
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.contact-form h3 { color: #fff; }
.contact-form label {
  display: grid;
  gap: .35rem;
  margin-bottom: .9rem;
  font-size: .85rem;
  color: var(--silver-1);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: #0a0a0a;
  border: 1px solid var(--line-2);
  color: #fff;
  border-radius: 10px;
  font: inherit;
  transition: border-color var(--t-fast);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,184,0,.18);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.row-2 label { margin: 0; }
.contact-form .btn { width: 100%; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--text-3); margin-top: .8rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060606;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand-footer { color: #fff; }
.brand-footer span {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brand-footer em {
  font-style: normal;
  font-size: .7rem;
  color: var(--text-3);
  letter-spacing: .14em;
}
.foot-desc { margin-top: .8rem; max-width: 36ch; font-size: .92rem; }
.site-footer h4 {
  font-family: var(--display);
  letter-spacing: .14em;
  color: var(--gold);
  font-size: .82rem;
  margin-bottom: .8rem;
}
.site-footer ul { display: grid; gap: .35rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--gold); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1.5rem;
  font-size: .8rem;
  color: var(--text-3);
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  z-index: 50;
  transition: transform var(--t);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.05); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab .wa-label { display: none; }

/* =====================================================================
   Animaciones y microinteracciones
   ===================================================================== */

[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-fade].is-in {
  opacity: 1;
  transform: none;
}

/* Logo del header: entrada suave al cargar */
@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.brand img { animation: brandFadeIn .6s ease-out both; }

/* Pulso sutil del CTA primario */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(245,184,0,.18); }
  50% { box-shadow: 0 12px 38px rgba(245,184,0,.32); }
}
.btn-primary { animation: ctaPulse 3.6s ease-in-out infinite; }
.btn-primary:hover { animation-play-state: paused; }

/* Strip: scroll horizontal suave en móviles, marquee infinito en desktop */
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }


/* Stats numbers: pop al entrar en viewport */
.hero-stats li { transition: transform .5s ease, opacity .5s ease; }
.hero-stats li.is-in strong { animation: numberPop .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes numberPop {
  0%   { opacity: 0; transform: translateY(8px) scale(.9); }
  60%  { opacity: 1; transform: translateY(0) scale(1.06); }
  100% { transform: scale(1); }
}

/* Service icon: rota muy sutilmente al hover */
.service:hover .service-icon { transform: rotate(-6deg) scale(1.05); }
.service-icon { transition: transform var(--t); }

/* Tap states (sin hover en móvil) */
@media (hover: none) {
  .service:active,
  .product:active,
  .taller-card:active,
  .mm-item:active,
  .ind:active,
  .logos li:active,
  .contact-list li:active {
    transform: scale(.98);
    transition: transform .12s ease;
  }
  .btn:active { transform: scale(.97); }
}

/* Reduced motion: desactiva todo lo decorativo */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .btn-primary { animation: none; }
  .wa-fab { animation: none; }
}


/* =====================================================================
   Responsive · breakpoints ordenados de mayor a menor
   ===================================================================== */

/* ----- Tablet ancha: 960px ----- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
  }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ----- Mobile: 760px ----- */
@media (max-width: 760px) {
  /* Header */
  .site-header { padding: 0; }
  .header-inner { padding: .65rem 0; position: relative; gap: .75rem; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: .98rem; }
  .nav-toggle {
    display: grid;
    place-items: center;
    transition: background var(--t-fast), border-color var(--t-fast);
  }
  .nav-toggle:hover { border-color: var(--gold); }

  /* Menú overlay full-screen — bg sólido para no traslucir el contenido */
  #primary-menu {
    position: fixed;
    top: var(--header-h, 64px);
    left: 0; right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #050505;
    padding: 1.5rem var(--pad) 2rem;
    gap: 0;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #primary-menu.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0s;
  }
  #primary-menu li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
  }
  #primary-menu.open li { opacity: 1; transform: none; }
  #primary-menu.open li:nth-child(1) { transition-delay: 70ms; }
  #primary-menu.open li:nth-child(2) { transition-delay: 110ms; }
  #primary-menu.open li:nth-child(3) { transition-delay: 150ms; }
  #primary-menu.open li:nth-child(4) { transition-delay: 190ms; }
  #primary-menu.open li:nth-child(5) { transition-delay: 230ms; }
  #primary-menu.open li:nth-child(6) { transition-delay: 270ms; }
  #primary-menu.open li:nth-child(7) { transition-delay: 310ms; }
  #primary-menu li a {
    display: block;
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
  }
  #primary-menu li a::after { display: none; }
  #primary-menu .cta-link {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 0 !important;
    padding: .9rem 1rem !important;
  }
  body.menu-open { overflow: hidden; }

  /* Hero */
  .hero { padding: 2.4rem 0 3rem; }
  .hero-grid { gap: 1.5rem; }
  .hero h1 { line-height: 1.05; }
  .hero .lead { font-size: 1rem; }
  .hero-ctas { gap: .6rem; }
  .hero-ctas .btn { flex: 1 1 140px; padding: .85rem 1rem; font-size: .85rem; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem .9rem;
    padding-top: 1.2rem;
  }

  /* Strip: scroll touch */
  .strip-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: .82rem;
  }
  .strip-grid::-webkit-scrollbar { display: none; }
  .strip-grid span { white-space: nowrap; flex-shrink: 0; }
  .strip-grid span + span::before { display: none; }

  /* Sección */
  .section { padding: 3rem 0; }
  .section-intro { margin-bottom: 1.6rem; }

  /* Taller cards: aspect 1/1 — las fotos de procesos son landscape, así se ven
     ~20% menos "con zoom" que con 4/5 (la caja es más baja y cover escala menos). */
  .taller-grid { grid-template-columns: 1fr; gap: .8rem; }
  .taller-card { aspect-ratio: 1 / 1; }
  .taller-card-body { padding: 1.45rem 1.25rem 1.25rem; }
  .taller-card-body h3 { font-size: 1.15rem; }
  .taller-card-body p { font-size: .88rem; line-height: 1.45; }
  /* Gradiente más fuerte para que el kicker y texto sean legibles sobre cualquier imagen */
  .taller-card::after {
    background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 28%, rgba(10,10,10,.85) 62%, rgba(10,10,10,.97) 100%);
  }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; }

  /* Beneficios */
  .benefits-grid { grid-template-columns: 1fr; }

  /* Galería */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }

  /* Lightbox: botones más pequeños y pegados a los bordes */
  .lightbox-close,
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-close { top: .6rem; right: .6rem; }
  .lightbox-prev { left: .4rem; }
  .lightbox-next { right: .4rem; }
  .lightbox-img { max-height: 70vh; }

  /* Tabla con indicador "desliza" */
  .table-wrap { position: relative; }
  .table-wrap::before {
    content: "Desliza →";
    position: absolute;
    top: 8px; right: 12px;
    z-index: 1;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(10,10,10,.85);
    padding: .25rem .55rem;
    border-radius: 999px;
    pointer-events: none;
    animation: hintFade 2.4s ease-in-out 1.5s 2 both;
  }
  @keyframes hintFade {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: .85; }
  }

  /* FAQ */
  .faq-list summary { font-size: .94rem; padding: 1rem 0; }
  .faq-list details { padding: 0 1rem; }

  /* Contacto */
  .row-2 { grid-template-columns: 1fr; }
  .contact-list li { padding: .85rem 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }

  /* index2: hero con imagen de fondo en móvil */
  .hero-with-bg .hero-bg-fill { filter: brightness(0.22) saturate(.95); }
  .hero-art.hero-art-logo-only { aspect-ratio: 16 / 10; max-width: 100%; }
  .hero-art.hero-art-logo-only > img { width: clamp(220px, 65vw, 360px); }

  /* WhatsApp: pill al 90% horizontal, centrada abajo */
  .wa-fab {
    width: 90%;
    height: auto;
    min-height: 38px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(.7rem, env(safe-area-inset-bottom));
    border-radius: 999px;
    padding: .4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #fff !important;
    font-family: var(--display);
    font-size: .72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 6px 16px rgba(37,211,102,.34);
  }
  .wa-fab:hover { transform: translateX(-50%) translateY(-2px) scale(1.01); }
  .wa-fab svg { width: 16px; height: 16px; }
  .wa-fab .wa-label {
    display: inline-block;
    font-weight: 600;
  }
  /* Sin padding-bottom global: la pill no tapa contenido al ser pequeña */
  body { padding-bottom: 0; }
  /* Cuando el menú está abierto, ocultamos la pill */
  body.menu-open .wa-fab { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
}


/* ----- Mobile pequeño: 480px ----- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand-text em { display: none; }
  .header-inner { padding: .55rem 0; }
  .brand img { width: 34px; height: 34px; }
  .brand-text strong { font-size: .9rem; letter-spacing: .03em; }

  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero .lead { font-size: .96rem; line-height: 1.55; }
  .hero-ctas .btn { font-size: .8rem; padding: .8rem .9rem; }
  .hero-stats { gap: .8rem; padding-top: 1rem; }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-stats span { font-size: .68rem; }

  h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); }

  .taller-card-body h3 { font-size: 1.05rem; }
  .taller-card-body .kicker { font-size: .65rem; }

  .step-num { font-size: 2.1rem; }

  /* En mobile pequeño: pill 90% más baja */
  .wa-fab {
    width: 90%;
    bottom: max(.55rem, env(safe-area-inset-bottom));
    padding: .4rem .9rem;
    font-size: .68rem;
    gap: .45rem;
    min-height: 36px;
  }
  .wa-fab svg { width: 15px; height: 15px; }
  .wa-fab .wa-label { font-weight: 600; }

  .contact-form { padding: 1.2rem; }
}
