/* ==========================================================================
   Grupo MJ&MSA — rediseño moderno (oscuro, con acentos luminosos)
   ========================================================================== */

:root {
  --bg: #040a13;
  --bg-2: #081224;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef4fb;
  --muted: #9aa9bd;
  --blue: #0084cf;
  --cyan: #5cc2ff;
  --orange: #ff7a1a;
  --whatsapp: #25d366;
  --grad: linear-gradient(120deg, #7fd4ff 0%, #0084cf 55%, #3b6cff 100%);
  --radius: 22px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #041024;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text);
}
p { margin: 0; color: var(--muted); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow { display: inline-block; transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #041024;
  box-shadow: 0 12px 30px -12px rgba(0, 132, 207, 0.9);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(0, 132, 207, 0.95); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--card-strong);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-wa {
  background: var(--whatsapp);
  color: #04210f;
}
.btn-wa:hover { box-shadow: 0 16px 36px -12px rgba(37, 211, 102, 0.8); }

.btn-block { width: 100%; }

/* ---------- Encabezado: barra completa con subrayado activo ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(4, 10, 19, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
}

.logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
}
.logo-badge img { width: 28px; height: 26px; }
.logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-name .amp { color: var(--cyan); }

.main-nav {
  display: flex;
  align-items: center;
}
.main-nav a {
  position: relative;
  margin: 0 18px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 65% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 65% 40%, #000 25%, transparent 75%);
}
.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}
.orb-a {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: #0084cf;
  opacity: 0.5;
}
.orb-b {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -140px;
  background: #ff7a1a;
  opacity: 0.16;
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.2rem);
  margin-bottom: 10px;
}
.hero-lead {
  max-width: 50ch;
  margin-bottom: 34px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-trust li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  color: var(--text);
}

.hero-copy > * { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-figure {
  position: relative;
  margin: -24px -24px -24px 0;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 4% 4% 10% 10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 132, 207, 0.45), transparent);
  filter: blur(30px);
}

/* Escena 3D de la bordadora (embroidery.js) */
.embroidery {
  position: relative;
  aspect-ratio: 1 / 0.86;
  width: 100%;
  max-width: 660px;
  min-height: 440px;
  max-height: 640px;
  margin: 0 auto;
}
.embroidery canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.emb-fallback {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--muted);
}
.embroidery.is-ready .emb-fallback { display: none; }

/* ---------- Indicadores: borde de luz que gira, íconos, brillo bajo el cursor ---------- */
.stats { padding: 0 0 40px; }
.stats-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--line);
  box-shadow: 0 30px 70px -40px rgba(0, 132, 207, 0.6);
}
.stats-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 160%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(92, 194, 255, 0.9) 74%, #ff7a1a 82%, transparent 92%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: borderSpin 7s linear infinite;
}
@keyframes borderSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: calc(var(--radius) - 1px);
  background:
    radial-gradient(420px circle at var(--x, -999px) var(--y, -999px), rgba(92, 194, 255, 0.13), transparent 60%),
    linear-gradient(180deg, #0f1b2b, #0a1320);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border-left: 1px solid var(--line);
  transition: background-color 0.35s ease;
}
.stat:first-child { border-left: 0; }
.stat:hover { background: rgba(255, 255, 255, 0.025); }

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(92, 194, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 132, 207, 0.28), rgba(92, 194, 255, 0.06));
  color: var(--cyan);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat:hover .stat-icon {
  transform: translateY(-4px) rotate(-6deg) scale(1.06);
  border-color: rgba(92, 194, 255, 0.6);
  color: #fff;
}
.stat:hover .stat-icon--truck svg { animation: drive 0.9s ease-in-out infinite; }
@keyframes drive {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(3px); }
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(110deg, #5cc2ff 0%, #0084cf 35%, #e9f6ff 50%, #0084cf 65%, #5cc2ff 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: numShine 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes numShine {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
}
.stat-bar {
  display: block;
  height: 3px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}
.stat-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0084cf, #5cc2ff, #ff7a1a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0s) + 0.3s);
}
.stats-card.in .stat-bar i { transform: scaleX(1); }

/* ---------- Banda animada ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(0, 132, 207, 0.1), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
}
.marquee-track span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Secciones ---------- */
.section { padding: 120px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem);
}
.section-head > p {
  max-width: 44ch;
  font-size: 17px;
}

/* ---------- Productos ---------- */
.line-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.line-nav a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.line-nav a:hover {
  background: var(--card-strong);
  border-color: rgba(92, 194, 255, 0.4);
}

.line {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.line-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 28px;
  margin-bottom: 28px;
}
.line-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(92, 194, 255, 0.7);
}
.line-info h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
}
.line-info p {
  max-width: 62ch;
  margin-bottom: 14px;
}
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(92, 194, 255, 0.2);
  border-radius: 8px;
  background: rgba(92, 194, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
}

.lane {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding: 6px 2px 18px;
  margin: 0 -2px;
}
.lane::-webkit-scrollbar { height: 6px; }
.lane::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}
.lane figure {
  position: relative;
  flex: 0 0 min(250px, 70vw);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
  scroll-snap-align: start;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.lane figure:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 194, 255, 0.4);
  box-shadow: 0 24px 50px -24px rgba(0, 132, 207, 0.6);
}
.lane img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.lane figure:hover img { transform: scale(1.05); }
.lane figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(4, 10, 19, 0.96));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* ---------- Nosotros ---------- */
.about {
  background: linear-gradient(180deg, transparent, rgba(0, 132, 207, 0.07), transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
}
.about-badge {
  position: absolute;
  left: -16px;
  bottom: 28px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 18, 36, 0.88);
  backdrop-filter: blur(12px);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.about-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem);
}
.about-copy .lead {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.features li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.features li:hover {
  background: var(--card-strong);
  border-color: rgba(92, 194, 255, 0.3);
}
.features li::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--grad);
}

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 194, 255, 0.35);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  height: 2px;
  background: var(--grad);
}
.step-num {
  display: block;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
}
.step h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.step p { font-size: 15px; }

/* ---------- Contacto ---------- */
.contact { padding-top: 40px; }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, #0b2a4f 0%, #06162b 55%, #0a1f3a 100%);
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 194, 255, 0.4), transparent 65%);
}
.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem);
}
.contact-copy .lead {
  margin-bottom: 28px;
  font-size: 18px;
}
.contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.contact-list small {
  font-size: 13px;
  color: var(--muted);
}
.contact-list a,
.contact-list span {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.contact-list a:hover { color: var(--cyan); }

.wa-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--whatsapp);
  color: #04210f;
}
.wa-icon svg { width: 28px; height: 28px; }

/* ---------- Cotizador ---------- */
.quote {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(4, 10, 19, 0.6);
  backdrop-filter: blur(10px);
}
.quote-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 4px; }
.quote-head .wa-icon { flex-shrink: 0; margin: 0; }
.quote-head h3 { margin-bottom: 6px; font-size: 1.5rem; }
.quote-head p { font-size: 14.5px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 400 15px/1.4 var(--font-body);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa9bd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field select option { background: #0b1626; color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(154, 169, 189, 0.7); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background-color: rgba(92, 194, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(92, 194, 255, 0.18);
}
.field.has-error select { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.seg input:checked + span {
  border-color: var(--cyan);
  background: rgba(92, 194, 255, 0.14);
  color: var(--text);
}
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.quote-error { font-size: 14px; font-weight: 600; color: var(--orange); }
.quote-note { font-size: 13.5px; text-align: center; }
.quote-note a { color: var(--cyan); }

/* ---------- Mapa ---------- */
.map {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.95);
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
.map-link:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Preguntas frecuentes ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 { margin-bottom: 16px; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); }
.faq-intro > p:not(.eyebrow) { margin-bottom: 26px; font-size: 17px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.faq-item[open] { background: var(--card-strong); border-color: rgba(92, 194, 255, 0.3); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.35s ease, background-color 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: rgba(92, 194, 255, 0.14); }
.faq-item p {
  padding: 0 22px 22px;
  font-size: 15.5px;
  animation: faqIn 0.4s ease;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Visor de fotos ---------- */
.lane figure { cursor: zoom-in; }
.lane figure::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(4, 10, 19, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lane figure:hover::after,
.lane figure:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 24px 80px;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(2, 6, 12, 0.88); backdrop-filter: blur(10px); }
.lb-figure {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
  max-width: min(560px, 100%);
  animation: lbIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 20px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--bg-2);
}
.lb-figure figcaption { display: grid; gap: 2px; text-align: center; }
.lb-line { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.lb-figure strong { font-family: var(--font-display); font-size: 1.4rem; }
.lb-count { font-size: 13px; color: var(--muted); }
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Pie de página ---------- */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 20px;
}
.footer-grid p { max-width: 38ch; }
.footer-title {
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-links span {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--whatsapp);
  color: #04210f;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.25s ease;
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  background: var(--whatsapp);
  animation: ring 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
@keyframes ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Revelado al hacer scroll (lo activa script.js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .steps .step:nth-child(2) { transition-delay: 0.08s; }
.js .steps .step:nth-child(3) { transition-delay: 0.16s; }
.js .steps .step:nth-child(4) { transition-delay: 0.24s; }
.js .step.reveal:hover { transform: translateY(-6px); }

/* ==========================================================================
   Mejoras visuales
   ========================================================================== */

/* Logo claro (sin recuadro) */
.logo-mark { display: block; width: 34px; height: 31px; }

/* Grano sutil sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* Brillo del hero que sigue al cursor */
.hero-glow {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 680px;
  height: 680px;
  margin: -340px 0 0 -340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 194, 255, 0.16), transparent);
  transform: translate(var(--gx, 72vw), var(--gy, 380px));
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Bordadora: arrastrar para girar */
.embroidery canvas { cursor: grab; touch-action: pan-y; }
.embroidery.is-dragging canvas { cursor: grabbing; }
.embroidery.is-static canvas { cursor: default; }
.emb-hint {
  position: absolute;
  left: 50%;
  bottom: 6%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 18, 36, 0.72);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
}
.emb-hint::before { content: "↔"; font-weight: 700; color: var(--cyan); }
.embroidery.is-ready .emb-hint { opacity: 1; animation: hintPulse 2.4s ease-in-out 1s 3; }
.embroidery.was-dragged .emb-hint,
.embroidery.is-static .emb-hint { opacity: 0; animation: none; }
@keyframes hintPulse { 50% { transform: translateX(calc(-50% + 6px)); } }

/* Banda animada en dos filas, con palabras en contorno */
.marquee-track + .marquee-track { margin-top: 14px; animation-direction: reverse; animation-duration: 42s; }
.marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

/* Catálogo: flechas y desvanecido en los bordes */
.lane-wrap { position: relative; }
.lane-wrap::before,
.lane-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 18px;
  width: 90px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lane-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.lane-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.lane-wrap.can-left::before,
.lane-wrap.can-right::after { opacity: 1; }
.lane-btn {
  position: absolute;
  z-index: 3;
  top: calc(50% - 9px);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 18, 36, 0.86);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lane-btn svg { width: 22px; height: 22px; }
.lane-btn.prev { left: 10px; }
.lane-btn.next { right: 10px; }
.lane-btn:hover { background: rgba(0, 132, 207, 0.35); border-color: rgba(92, 194, 255, 0.6); transform: scale(1.06); }
.lane-wrap.can-left .lane-btn.prev,
.lane-wrap.can-right .lane-btn.next { opacity: 1; pointer-events: auto; }
@media (hover: none) { .lane-btn { display: none; } }

/* Nosotros en azul de la marca (contraste con el resto) */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #0a64ad 0%, #014a8a 42%, #00284f 100%);
}
.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  top: -14%;
  width: 72%;
  height: 128%;
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 36%, 50% 76%, 0 36%);
}
.about .eyebrow { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.about-copy p { color: rgba(255, 255, 255, 0.82); }
.about-copy .lead { color: #fff; }
.about .features li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.about .features li:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }
.about .features li::before { background: linear-gradient(135deg, #ffffff, #9fdcff); }
.about-media img { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.about-badge { background: rgba(0, 28, 56, 0.86); border-color: rgba(255, 255, 255, 0.2); }

/* Proceso: íconos y línea que se llena al bajar */
.steps-wrap { position: relative; padding-top: 34px; }
.steps-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.steps-fill {
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0084cf, #5cc2ff, #ff7a1a);
  box-shadow: 0 0 18px rgba(92, 194, 255, 0.6);
}
.step:not(:last-child)::after { display: none; }
.step::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 26px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.step-top .step-num { margin: 0; }
.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(92, 194, 255, 0.25);
  border-radius: 13px;
  background: rgba(92, 194, 255, 0.08);
  color: var(--cyan);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-icon svg { width: 24px; height: 24px; }
.step.is-active { border-color: rgba(92, 194, 255, 0.35); }
.step.is-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(92, 194, 255, 0.16);
}
.step.is-active .step-icon {
  background: linear-gradient(135deg, #5cc2ff, #0084cf);
  border-color: transparent;
  color: #041024;
  transform: scale(1.06);
}

/* Pie de página: marca gigante */
.site-footer { overflow: hidden; }
.footer-word {
  margin: 56px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 1rem + 15vw, 15rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(92, 194, 255, 0.38), rgba(92, 194, 255, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ==========================================================================
   Segunda ronda de mejoras visuales
   ========================================================================== */

:root { --header-h: 76px; }

/* Pespunte bajo el titular: se cose al cargar */
.stitch-line {
  display: block;
  width: min(420px, 82%);
  height: 24px;
  margin: 0 0 26px;
  overflow: visible;
}
.stitch-path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 8;
}
.stitch-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sewLine 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
}
@keyframes sewLine { to { stroke-dashoffset: 0; } }

/* Separadores de pespunte con botón cosido al centro */
.section.has-stitch { position: relative; }
.section.has-stitch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1152px, calc(100% - 48px));
  border-top: 2px dashed rgba(92, 194, 255, 0.24);
  transform: translateX(-50%);
}
.section.has-stitch::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border: 2px solid rgba(92, 194, 255, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(92, 194, 255, 0.8) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 65% 35%, rgba(92, 194, 255, 0.8) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 35% 65%, rgba(92, 194, 255, 0.8) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 65% 65%, rgba(92, 194, 255, 0.8) 0 1.6px, transparent 2.2px),
    var(--bg);
}

/* Nosotros con bordes en «V», como el logotipo */
.about {
  --v: clamp(26px, 5vw, 72px);
  padding: calc(120px + var(--v)) 0;
  clip-path: polygon(0 0, 50% var(--v), 100% 0, 100% calc(100% - var(--v)), 50% 100%, 0 calc(100% - var(--v)));
}

/* Fotos del catálogo con marco uniforme y botón rápido */
.lane-item {
  position: relative;
  flex: 0 0 min(250px, 70vw);
  scroll-snap-align: start;
}
.lane-item > figure {
  flex: none;
  width: 100%;
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.lane figure .prod-frame,
.lane figure picture { position: relative; }
.lane figure picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 30%, transparent 55%, rgba(4, 10, 19, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 40, 79, 0.18), transparent 35%);
  mix-blend-mode: multiply;
}
.lane img { filter: saturate(0.9) contrast(1.03); }
.quick-quote {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--grad);
  color: #041024;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.lane-item:hover .quick-quote,
.quick-quote:focus-visible { opacity: 1; transform: translateY(-6px); }
@media (hover: none) {
  .quick-quote { opacity: 1; transform: none; }
}

/* Índice del catálogo fijo con la línea actual marcada */
.line-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: 0 -24px 32px;
  padding: 12px 24px;
  background: rgba(4, 10, 19, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.line-nav.is-stuck { border-bottom-color: var(--line); }
.line-nav { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.line-nav::-webkit-scrollbar { display: none; }
.line-nav a { flex: 0 0 auto; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
.line-nav a.active {
  background: rgba(92, 194, 255, 0.16);
  border-color: rgba(92, 194, 255, 0.6);
  color: #fff;
}
.line { scroll-margin-top: calc(var(--header-h) + 80px); }

/* Números del catálogo que se rellenan al aparecer */
.line-num {
  background: linear-gradient(180deg, #7fd4ff, #0084cf) no-repeat bottom / 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.line.in .line-num { background-size: 100% 100%; }

/* Barra de progreso de lectura */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0084cf, #5cc2ff, #ff7a1a);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
  box-shadow: 0 0 10px rgba(92, 194, 255, 0.6);
}

/* Botón principal con destello */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: btnShine 5.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 72% { left: -60%; }
  100% { left: 130%; }
}
.btn.is-magnetic { transition: transform 0.2s ease-out, box-shadow 0.25s ease, background-color 0.25s ease; }

/* Cotizador con borde de luz y pespunte interior */
@property --qa {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.quote {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(6, 14, 26, 0.94), rgba(6, 14, 26, 0.94)) padding-box,
    conic-gradient(from var(--qa), rgba(255, 255, 255, 0.08) 0 60%, #5cc2ff 72%, #ff7a1a 80%, rgba(255, 255, 255, 0.08) 92%) border-box;
  animation: quoteSpin 8s linear infinite;
}
@keyframes quoteSpin { to { --qa: 360deg; } }
.quote::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed rgba(92, 194, 255, 0.22);
  border-radius: 17px;
  pointer-events: none;
}

/* Aviso «Abriendo WhatsApp…» */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 14px;
  background: rgba(6, 20, 14, 0.94);
  backdrop-filter: blur(10px);
  color: #eafff2;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { margin: 0 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .steps-wrap { padding-top: 0; }
  .steps-track, .step::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .hero { padding: 130px 0 60px; }
  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-figure { order: -1; margin: -20px -24px 0; }
  .embroidery { aspect-ratio: 1 / 0.9; min-height: 0; max-width: 600px; }
  .about-media { order: -1; }
  .about-badge { left: 16px; }
  .line-head { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav-inner {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 24px 24px;
    background: rgba(4, 10, 19, 0.97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav a {
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--cyan); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .line-nav { margin: 0 -20px 24px; padding: 10px 20px; }
  .quote { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .faq-item summary { padding: 18px; font-size: 16px; }
  .faq-item p { padding: 0 18px 18px; }
  .lightbox { padding: 72px 16px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-figure img { max-height: calc(100vh - 300px); }
  .container { padding: 0 20px; }
  .nav-inner { min-height: 64px; }
  .main-nav { top: 64px; padding: 4px 20px 20px; }
  .logo-name { font-size: 15px; }
  .hero { padding: 116px 0 40px; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 84px 0; }
  .line { padding: 40px 0; }
  .line-nav { margin-bottom: 28px; }
  .lane figure { flex-basis: 200px; }
  .lane-item { flex-basis: 200px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .about-grid { gap: 36px; }
  .about-media img { border-radius: 22px; }
  .contact-card { padding: 28px 22px; border-radius: 26px; }
  .contact-list li { padding: 14px 16px; }
  .stat { padding: 22px 18px 20px; }
  .stat-icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .stat-icon svg { width: 21px; height: 21px; }
  .stat-bar { margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .stitch-draw { stroke-dashoffset: 0; animation: none; }
  .btn-primary::after, .quote { animation: none; }
  .hero-glow { display: none; }
  .steps-fill { width: 100%; }
  .stats-card::before { animation: none; }
  .stat-bar i { transform: scaleX(1); }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
