/* ==========================================================================
   Sitio público — Restauraciones Iznaga
   Tema oscuro/claro con variables. No requiere compilación de Tailwind.
   ========================================================================== */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #101113;
  --bg-elevated: #15171a;
  --panel: #181a1e;
  --panel-2: #202329;
  --text: #f5f5f3;
  --muted: #a4a7ad;
  --muted-strong: #c8cbd0;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);

  --red: #d71920;
  --red-bright: #ff343b;
  --red-text: #ff646a;
  --red-soft: rgba(215, 25, 32, 0.12);
  --red-glow: rgba(215, 25, 32, 0.35);
  --gold: #ffcc66;
  --gold-soft: rgba(255, 179, 71, 0.1);
  --gold-line: rgba(255, 179, 71, 0.35);

  --cream: #e8e4dc;
  --card-from: #22252a;
  --card-to: #191b1f;
  --hero-card-from: #25282e;
  --hero-card-to: #111215;
  --tech-bg: radial-gradient(circle at 48% 48%, #333840, #17191d 65%);
  --header-bg: rgba(16, 17, 19, 0.88);
  --shadow-lg: 0 35px 90px rgba(0, 0, 0, 0.55);
  --form-bg: #fffdf9;
  --form-text: #17181a;
  --form-muted: #5f636a;
  --form-line: rgba(23, 24, 26, 0.15);
  --footer-bg: #0b0c0d;
  --footer-text: rgba(255, 255, 255, 0.62);
  --photo-brightness: 0.92;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f5f1;
  --bg-elevated: #efece5;
  --panel: #ffffff;
  --panel-2: #f2efe9;
  --text: #17181a;
  --muted: #63666c;
  --muted-strong: #3c3f45;
  --line: rgba(23, 24, 26, 0.12);
  --line-strong: rgba(23, 24, 26, 0.24);

  --red: #c4151c;
  --red-bright: #d71920;
  --red-text: #b4151b;
  --red-soft: rgba(215, 25, 32, 0.09);
  --red-glow: rgba(215, 25, 32, 0.22);
  --gold: #96620a;
  --gold-soft: rgba(255, 179, 71, 0.16);
  --gold-line: rgba(160, 105, 0, 0.35);

  --cream: #e8e4dc;
  --card-from: #ffffff;
  --card-to: #f6f3ee;
  --hero-card-from: #ffffff;
  --hero-card-to: #e9e4db;
  --tech-bg: radial-gradient(circle at 48% 48%, #ffffff, #e9e5de 68%);
  --header-bg: rgba(249, 247, 242, 0.9);
  --shadow-lg: 0 30px 70px rgba(23, 24, 26, 0.18);
  --photo-brightness: 1;
}

/* ---------- Base ---------- */
.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

.site-body a { color: inherit; text-decoration: none; }
.site-body button { font: inherit; }
.site-body img { max-width: 100%; }

.site-body ::selection { background: rgba(215, 25, 32, 0.32); }

.site-body ::-webkit-scrollbar { width: 9px; }
.site-body ::-webkit-scrollbar-track { background: var(--bg); }
.site-body ::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 99px; }

.site-main { display: block; }

.site-main section[id] { scroll-margin-top: 92px; }

.anchor-alias { display: block; height: 0; scroll-margin-top: 92px; }

.wrap {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Barra de progreso de scroll ---------- */
.topline {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--red), #ff3b41 45%, #8f1116);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  box-shadow: 0 0 12px rgba(215, 25, 32, 0.6);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line-strong); }

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
  line-height: 1.15;
  min-width: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  background: var(--red);
  border-radius: 11px;
  padding: 4px 8px;
  box-shadow: 0 6px 20px rgba(215, 25, 32, 0.25);
}

.brand-fallback {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 28px rgba(215, 25, 32, 0.25);
}

.brand-name { display: block; text-transform: uppercase; }
.brand-name small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 3px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
}
.navlinks a { position: relative; transition: color 0.2s ease; }
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navlinks a:hover { color: var(--text); }
.navlinks a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Botón de tema */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--red);
  background: var(--red-soft);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Botones */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(215, 25, 32, 0.28);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.cta:hover { background: var(--red-bright); box-shadow: 0 12px 36px rgba(215, 25, 32, 0.4); }
.cta svg { width: 18px; height: 18px; }

.cta.outline {
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
  color: var(--text);
}
.cta.outline:hover { background: var(--red-soft); border-color: var(--red); color: var(--text); }

.cta.light { background: #fff; color: #8f1015; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.cta.light:hover { background: #ffe9ea; }

/* Los enlaces heredan el color del contenedor; los CTA conservan el suyo. */
.site-body a.cta { color: #fff; }
.site-body a.cta.outline { color: var(--text); }
.site-body a.cta.light { color: #8f1015; }

.cta.pulse { animation: ctaPulse 2.8s infinite; }
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45), 0 8px 28px rgba(215, 25, 32, 0.28); }
  55% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 12px 40px rgba(215, 25, 32, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 8px 28px rgba(215, 25, 32, 0.28); }
}

/* Menú móvil */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu.hidden { display: none !important; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 10px 0 18px; }
.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-strong);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .cta { margin-top: 14px; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px;
  padding: 76px 0 84px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-text);
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 10px;
  font-weight: 900;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--red);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 22px 0 24px;
  max-width: 660px;
  font-weight: 900;
}
.hero h1 em { font-style: normal; color: var(--red); }

.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.trustline {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trustline b { display: block; color: var(--text); font-size: 12px; letter-spacing: 0.02em; margin-bottom: 3px; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.art-glow {
  position: absolute;
  width: 420px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--red-glow), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  animation: glowPulse 4.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

.art-card {
  position: relative;
  width: min(100%, 560px);
  height: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--hero-card-from), var(--hero-card-to) 70%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.art-label,
.art-number,
.art-foot {
  position: absolute;
  z-index: 3;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.art-label { left: 25px; top: 23px; }
.art-number { right: 25px; top: 22px; }
.art-foot {
  bottom: 22px; left: 25px; right: 25px;
  display: flex; justify-content: space-between;
  font-size: 9px;
}

.hero-canvas,
.tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.hero-canvas { touch-action: pan-y; }
.assembly-canvas { touch-action: none; cursor: grab; }
.assembly-canvas:active { cursor: grabbing; }

.redline {
  position: absolute;
  width: 150px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  left: 50%; top: 78%;
  transform: translateX(-50%);
  z-index: 2;
  animation: redlineShift 3.4s ease-in-out infinite;
}
@keyframes redlineShift {
  0%, 100% { transform: translateX(-50%) scaleX(1); }
  50% { transform: translateX(-50%) scaleX(1.35); }
}

.callout {
  position: absolute;
  z-index: 3;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.callout::before {
  content: "";
  position: absolute;
  width: 24px; height: 1px;
  background: var(--red);
  top: 50%;
}
.callout.one { right: 18px; top: 42%; animation: calloutFloat 3.4s ease-in-out infinite; }
.callout.one::before { right: 100%; }
.callout.two { left: 20px; bottom: 22%; animation: calloutFloat 3.4s 0.6s ease-in-out infinite; }
.callout.two::before { left: 100%; }
@keyframes calloutFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.webgl-fallback {
  position: absolute;
  inset: 64px 24px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
  z-index: 1;
}
.has-webgl .webgl-fallback { display: none; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.kicker {
  color: var(--red-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2,
.h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 13px 0 0;
  font-weight: 900;
}

.site-body .h2 { color: var(--text); }

.section-intro { color: var(--muted); max-width: 400px; font-size: 14px; line-height: 1.8; }

/* ---------- Servicios ---------- */
.services {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Si la última fila queda con una sola tarjeta, se centra para no dejar un hueco. */
@media (min-width: 981px) {
  .cards > .service:last-child:nth-child(3n + 1) { grid-column: 2; }
}

.service {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 23px 24px;
  background: linear-gradient(145deg, var(--card-from), var(--card-to));
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 225px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), var(--red-soft), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service:hover { border-color: rgba(215, 25, 32, 0.5); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22); }
.service:hover::after { opacity: 1; }

.iconbox {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--red-soft);
  border: 1px solid rgba(215, 25, 32, 0.3);
  color: var(--red-text);
}
.iconbox .icon-svg { width: 23px; height: 23px; }
.iconbox .sym {
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}

.iconrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.iconrow .iconbox { margin-bottom: 0; }

.tag-mini {
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.iconbox.gold {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

.service.gold:hover { border-color: var(--gold-line); }
.service.gold::after {
  background: radial-gradient(320px circle at var(--mx) var(--my), var(--gold-soft), transparent 62%);
}

.service-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.service-foot span {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.service-foot .go {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--red-text);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.service:hover .service-foot .go,
.service-foot .go:focus-visible { opacity: 1; transform: translateX(0); }
.service.gold .service-foot .go { color: var(--gold); }

/* Activación táctil: la tarjeta se ilumina y se inclina al entrar en pantalla. */
.service.is-active {
  border-color: rgba(215, 25, 32, 0.5);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 26px rgba(215, 25, 32, 0.14);
  transform: perspective(900px) rotateX(1.5deg) rotateY(-1.5deg) translateY(-2px);
}
.service.gold.is-active {
  border-color: var(--gold-line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3), 0 0 26px var(--gold-soft);
}
.service.is-active::after {
  opacity: 1;
  background: radial-gradient(280px circle at 50% 45%, var(--red-soft), transparent 65%);
}
.service.gold.is-active::after {
  background: radial-gradient(280px circle at 50% 45%, var(--gold-soft), transparent 65%);
}
.service.is-active .service-foot .go { opacity: 1; transform: translateX(0); }

.service h3 { position: relative; z-index: 2; font-size: 17px; margin: 0 0 9px; font-weight: 800; }
.service h3 a { transition: color 0.2s ease; }
.service h3 a:hover { color: var(--red-text); }
.service p {
  position: relative;
  z-index: 2;
  flex: 1;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.services-note { margin-top: 26px; font-size: 12px; color: var(--muted); }

/* ---------- Split técnico ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.technical {
  position: relative;
  min-height: 470px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--tech-bg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.technical::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}

/* Réplica del visor exploded del prototipo. */
.exploded-tech {
  min-height: 520px;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.exploded-tech:active { cursor: grabbing; }
.exploded-tech::after { display: none; }
.exploded-tech:hover {
  border-color: rgba(215, 25, 32, 0.32);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(215, 25, 32, 0.12) inset;
}
.assembly-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.assembly-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}
.assembly-vignette.metal-accent {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(215, 25, 32, 0.08) 45%, rgba(0, 0, 0, 0.82) 100%);
}
.assembly-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.exploded-toggle {
  position: absolute;
  z-index: 5;
  top: 20px; right: 20px;
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 17, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}
.exploded-toggle button {
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 0.14em;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #9aa0a8;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.exploded-toggle button.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(215, 25, 32, 0.2);
}
.assembly-progress {
  position: absolute;
  left: 20px; top: 54px;
  z-index: 5;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(16, 17, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.assembly-progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff5b62;
  box-shadow: 0 0 8px #d71920;
  animation: dotPulse 1.2s infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.assembly-progress span {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #e8e9ec;
  font-weight: 800;
}

.tech-lines { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tech-line path {
  fill: none;
  stroke: var(--red);
  stroke-width: 1;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: 0.7;
}
.tech-line path:nth-child(2) { stroke: var(--line-strong); stroke-width: 0.9; }
.tech-line path:nth-child(3) { stroke: var(--line); stroke-width: 0.7; }

.copy h2 { margin-bottom: 22px; }
.copy h2 .hl { color: var(--red-text); }
/* "Precisión quirúrgica": condensada, en mayúsculas y con aire técnico. */
.copy h2 .surgical {
  font-family: "Barlow Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.07em;
  color: var(--text);
}
.copy p { color: var(--muted); font-size: 14px; line-height: 1.85; }

.checks { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 13px; }
.checks li { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--muted-strong); }
.checks li::before { content: "✓"; color: var(--red-text); font-weight: 900; }

.material-tooltip {
  position: relative;
  margin-top: 26px;
  padding: 16px 16px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.material-tooltip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}
.material-tooltip h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.material-tooltip > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.material-chip {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.material-chip b {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: var(--text);
}
.material-chip span {
  display: block;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.stat {
  min-width: 100px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.stat b { display: block; font-size: 22px; line-height: 1; color: var(--text); }
.stat span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Taller ---------- */
.taller {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.taller-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.taller-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  height: 560px;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  touch-action: manipulation;
}
.taller-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(215, 25, 32, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.taller-card:hover { border-color: rgba(215, 25, 32, 0.55); box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5); }
.taller-card:hover::after { opacity: 1; }

.taller-parallax-wrap { position: absolute; inset: -12%; z-index: 0; overflow: hidden; pointer-events: none; }
.taller-parallax-inner {
  position: relative;
  width: 100%; height: 100%;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.taller-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: saturate(1.02) contrast(1.05) brightness(var(--photo-brightness));
}
.taller-img.secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.taller-card:hover .taller-img.secondary { opacity: 1; }
.taller-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}
.taller-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.taller-top {
  position: absolute;
  left: 22px; right: 22px; top: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d8dae0;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.taller-top span:first-child {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(16, 17, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.taller-dot {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.18);
  border: 1px solid rgba(215, 25, 32, 0.35);
  color: #ff7a7f;
  font-weight: 900;
}

.taller-content { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 4; }
.taller-content h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.taller-content p {
  max-width: 360px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #c9cbd0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.taller-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.taller-badges i {
  font-style: normal;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ecedf0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.taller-card .redline { top: 52%; width: 120px; opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease; z-index: 4; }
.taller-card:hover .redline { opacity: 1; transform: translateX(-50%) scaleX(1.2); }

.taller-float {
  position: absolute;
  right: 18px; bottom: 88px;
  z-index: 4;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(23, 25, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #e8e9ec;
  font-size: 9px;
  letter-spacing: 0.12em;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.taller-card:hover .taller-float { transform: translateY(0); opacity: 1; }
.taller-float::before {
  content: "";
  position: absolute;
  right: 100%; top: 50%;
  width: 18px; height: 1px;
  background: var(--red);
}

.taller-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0.75;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.taller-foot .accent { color: var(--red-text); font-weight: 900; }
.taller-foot .dim { color: var(--muted); }

/* ---------- Ventajas ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.benefit:hover { transform: translateY(-4px); border-color: rgba(215, 25, 32, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16); }
.benefit-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red-text);
}
.benefit-icon svg { width: 18px; height: 18px; }
.benefit h3 { margin: 15px 0 0; font-size: 15px; font-weight: 800; }
.benefit p { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------- Proceso ---------- */
.process {
  background: #e9e5dd;
  color: #17181a;
  overflow: clip;
}
[data-theme="light"] .process { background: #ece7de; }
.process .kicker { color: #b4151b; }
.process .section-intro { color: #66686d; }
.process .section-head h2 { color: #17181a; }

.proc-line {
  height: 1px;
  background: #b7b2aa;
  position: relative;
  margin: 10px 0 34px;
  overflow: hidden;
}
.proc-line-inner {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #d71920, #8f1116);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  transition: transform 0.15s linear;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px 26px; border-top: 1px solid #b7b2aa; }
.step-no {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #bd151c;
  text-transform: uppercase;
}
.proc-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #bd151c;
  background: #e9e5dd;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.proc-dot.filled { background: #d71920; box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.13); transform: scale(1.25); }
.step h3 { margin: 22px 0 9px; font-size: 19px; line-height: 1.25; font-weight: 800; }
.step p { margin: 0; max-width: 300px; font-size: 13px; line-height: 1.7; color: #66686d; }

/* ---------- Referencias ---------- */
.references { position: relative; overflow: clip; }
.marquee {
  position: absolute;
  top: 42%;
  left: 0; right: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.07;
  font-size: 78px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  transform: translateY(-50%);
}
.marquee-inner { display: inline-block; animation: marqueeMove 42s linear infinite; will-change: transform; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; position: relative; z-index: 2; }
.ref-panel {
  position: relative;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ref-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 0% 0%, var(--red-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ref-panel:hover { transform: translateY(-4px); border-color: rgba(215, 25, 32, 0.35); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16); }
.ref-panel:hover::after { opacity: 1; }
.ref-panel small {
  display: block;
  margin-bottom: 10px;
  color: var(--red-text);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ref-panel h3 { position: relative; z-index: 1; margin: 0 0 18px; font-size: 17px; font-weight: 800; }
.ref-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.ref-list span {
  position: relative;
  overflow: hidden;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted-strong);
  font-size: 11px;
  transition: all 0.25s ease;
}
.ref-list span:hover { border-color: rgba(215, 25, 32, 0.45); color: var(--text); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); border-color: rgba(215, 25, 32, 0.4); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2); }
.gallery-media { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-media.single { grid-template-columns: 1fr; }
.gallery-media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-media.single img { aspect-ratio: 4 / 3; }
.gallery-item figcaption { padding: 18px; }
.gallery-cat { font-size: 9px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); }
.gallery-item figcaption strong { display: block; margin-top: 5px; font-size: 13px; font-weight: 700; color: var(--text); }
.gallery-item figcaption p { margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }

/* ---------- Reseñas ---------- */
.reviews-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reviews-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.reviews-summary strong {
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}
.reviews-summary-stars { display: flex; gap: 2px; font-size: 20px; color: var(--line-strong); }
.reviews-summary-stars .on { color: var(--gold); }
.reviews-summary > span { font-size: 11px; font-weight: 600; color: var(--muted); }

.reviews-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.review-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}
.review-stars { display: flex; gap: 2px; font-size: 14px; color: var(--line-strong); }
.review-stars .on { color: var(--gold); }
.review-text { margin: 14px 0 0; font-size: 13px; line-height: 1.75; color: var(--muted-strong); }
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-text);
  font-size: 14px;
  font-weight: 800;
}
.review-author strong { display: block; font-size: 12px; color: var(--text); }
.review-author small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }

.review-empty {
  grid-column: 1 / -1;
  padding: 34px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}
.review-empty p { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted-strong); }
.review-empty span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

.review-form-card { position: sticky; top: 96px; }

.star-rating {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-rating input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  border: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}
.site-form .star-rating label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  color: #d8d3c8;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.site-form .star-rating label svg {
  width: 34px; height: 34px;
  fill: currentColor;
  display: block;
  pointer-events: none;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #d99a00; }
.star-rating label:hover { transform: scale(1.08); }
.star-rating input:focus-visible + label {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span:first-child { font-size: 15px; font-weight: 600; color: var(--text); }
.faq-plus {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--red-text);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.faq-plus svg { width: 14px; height: 14px; }
.faq-item[open] .faq-plus { transform: rotate(45deg); border-color: rgba(215, 25, 32, 0.5); }
.faq-item p { margin: -4px 0 20px; max-width: 640px; font-size: 13px; line-height: 1.75; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(110deg, #8f1015, #d71920 58%, #a31319);
  color: #fff;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.contact-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  opacity: 0.3;
  pointer-events: none;
}
.contact-waves .wave { animation: waveShift 9s ease-in-out infinite alternate; }
.contact-waves .wave:nth-child(2) { animation-duration: 12s; animation-direction: alternate-reverse; }
@keyframes waveShift {
  from { transform: translateX(-24px); }
  to { transform: translateX(24px); }
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact .eyebrow { color: #ffe0e1; }
.contact .eyebrow::before { background: #fff; }
.contact h2 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #fff;
}
.contact-lead { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.8; color: #ffe2e3; }

.contact-facts { display: grid; gap: 14px; margin-top: 30px; }
.contact-fact { display: flex; align-items: flex-start; gap: 13px; }
.contact-fact-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.contact-fact-icon svg { width: 18px; height: 18px; }
.contact-fact dt { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #ffd2d4; }
.contact-fact dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #fff; }
.contact-fact dd a:hover { text-decoration: underline; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.form-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--form-bg);
  color: var(--form-text);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}
.form-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--form-text); }
.form-card > p { margin: 7px 0 0; font-size: 12px; line-height: 1.7; color: var(--form-muted); }

.site-form { display: grid; gap: 14px; margin-top: 20px; }
.site-form .field { display: grid; gap: 6px; }
.site-form label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--form-muted);
}
.site-form .input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--form-line);
  background: #fff;
  color: var(--form-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-form .input::placeholder { color: rgba(23, 24, 26, 0.4); }
.site-form .input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.15); }
.site-form textarea.input { resize: vertical; min-height: 110px; }
.site-form .errorlist { margin: 0; padding: 0; list-style: none; font-size: 11px; font-weight: 600; color: #b4151b; }
.site-form button[type="submit"] { width: 100%; margin-top: 4px; }
.form-note { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: var(--form-muted); }
.form-note a { color: #b4151b; font-weight: 700; }
.form-note a:hover { text-decoration: underline; }
.form-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(20, 130, 80, 0.25);
  background: #e9f7ef;
  color: #146b43;
  font-size: 13px;
  font-weight: 600;
}
.form-alert.error { border-color: rgba(180, 21, 27, 0.25); background: #fdecec; color: #96141a; }

/* ---------- Videos ---------- */
.videos-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.video-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.video-controls { display: flex; gap: 8px; }

.video-nav {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.video-nav:hover:not(:disabled) { border-color: var(--red); color: var(--red-text); background: var(--red-soft); }
.video-nav:disabled { opacity: 0.35; cursor: default; }

.video-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.video-track::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 clamp(268px, 31vw, 366px);
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
  border-color: rgba(215, 25, 32, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.video-thumb:hover img { transform: scale(1.05); opacity: 0.85; }

.video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  padding-left: 3px;
  box-shadow: 0 12px 30px rgba(215, 25, 32, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--red-bright); }

.video-info { padding: 14px 16px 18px; }
.video-info h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.video-info p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

.video-hint {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Modal de video: el iframe recién se carga al abrir. */
.site-body.modal-open { overflow: hidden; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 8, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 94vw);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #17181a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-close:hover { transform: scale(1.06); background: #ffe9ea; }

.video-modal-title {
  margin: 12px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Página de servicio ---------- */
.page-hero { border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; font-size: 11px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--red-text); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs [aria-current="page"] { color: var(--muted-strong); font-weight: 600; }

/* En móvil las migas se reemplazan por flechas de navegación. */
.service-mobile-nav { display: none; }

.service-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding: 56px 0 72px;
  align-items: start;
}
.service-icon-lg {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--red-soft);
  border: 1px solid rgba(215, 25, 32, 0.28);
  color: var(--red-text);
}
.service-icon-lg .icon-svg { width: 29px; height: 29px; }
.service-layout h1 {
  margin: 20px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}
.service-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.75; color: var(--muted-strong); }
.service-long { margin-top: 26px; display: grid; gap: 16px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.service-note { margin-top: 22px; font-size: 11px; color: var(--muted); }

.coord-box {
  margin-top: 34px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.coord-box h2 { margin: 0; font-size: 15px; font-weight: 800; }
.coord-box ol { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.coord-box li { display: flex; gap: 11px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.coord-box li span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.service-aside { position: sticky; top: 100px; }
.aside-card {
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}
.aside-card h2 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
.aside-card > p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.aside-card .cta { width: 100%; margin-top: 20px; }
.aside-card .cta + .cta { margin-top: 10px; }
.aside-facts { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.aside-facts div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.aside-facts dt { color: var(--muted); }
.aside-facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--text); }

.next-services { border-top: 1px solid var(--line); background: var(--bg-elevated); padding: 56px 0 72px; }
.next-services h2 { margin: 0; font-size: 20px; font-weight: 800; }
.next-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.next-card:hover { transform: translateY(-3px); border-color: rgba(215, 25, 32, 0.4); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16); }
.next-card .iconbox { margin: 0; width: 40px; height: 40px; }
.next-card .iconbox .icon-svg { width: 20px; height: 20px; }
.next-card strong { display: block; font-size: 13px; color: var(--text); }
.next-card span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.6; color: var(--muted); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 0; }
.error-code { margin: 0; font-size: clamp(72px, 12vw, 130px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: var(--red); }
.error-page h1 { margin: 18px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.error-page p { margin: 14px auto 0; max-width: 440px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 46px; width: auto; max-width: 140px; object-fit: contain; background: var(--red); border-radius: 10px; padding: 4px 8px; }
.footer-brand span { font-size: 13px; font-weight: 900; letter-spacing: 0.18em; color: #fff; text-transform: uppercase; }
.footer-about { margin: 18px 0 0; max-width: 420px; font-size: 13px; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--red); color: #fff; }
.footer-col h2 { margin: 0 0 16px; font-size: 9px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom-inner {
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}
.wa-float:hover { background: #1fb855; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; flex: 0 0 auto; }
.wa-float span { white-space: nowrap; }

/* ---------- Cursor personalizado ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 9999;
}
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); transition: opacity 0.2s ease; }
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(160, 160, 160, 0.5);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* ---------- Revelado al hacer scroll ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Se pausan animaciones decorativas fuera de pantalla para liberar GPU. */
.hero.is-offscreen .art-glow,
.hero.is-offscreen .redline,
.hero.is-offscreen .callout,
.marquee.is-paused .marquee-inner,
.contact.is-paused .wave { animation-play-state: paused; }

/* ---------- Responsive ---------- */
@media (hover: none) {
  .service-foot .go { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .navlinks { gap: 18px; font-size: 12px; }
  .brand-name { display: none; }
}

/* En pantallas chicas el modelo 3D abre la portada, antes del texto. */
@media (max-width: 900px) {
  .hero-art { order: -1; min-height: 400px; }
  .art-card { height: 390px; }

  /* Menos capas con blur durante el scroll en móvil. */
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .taller-top span,
  .taller-badges i,
  .callout,
  .taller-float {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 980px) {
  .navlinks { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .mobile-menu.hidden { display: none !important; }

  .hero { grid-template-columns: 1fr; padding-top: 58px; gap: 34px; }
  .hero-art { min-height: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 38px; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 24px 4px; }
  .taller-grid { grid-template-columns: 1fr; gap: 16px; }
  .taller-card { height: 520px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .reviews-layout { grid-template-columns: 1fr; }
  .review-form-card { position: static; }
  .service-layout { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 56px; }
  .service-aside { position: static; }
  .next-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 30px); }
  .nav { height: 72px; gap: 10px; }
  .brand-logo { height: 40px; max-width: 110px; }
  .nav-actions .cta { display: none; }
  .theme-toggle, .menu-toggle { width: 48px; height: 48px; }

  .hero { padding: 34px 0 56px; min-height: auto; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cta { width: 100%; flex: 1 1 auto; }
  .trustline { gap: 18px; margin-top: 32px; }
  .hero-art { min-height: 380px; overflow: hidden; }
  .art-glow { width: 100%; height: 300px; }
  .art-card { height: 370px; border-radius: 22px; }
  .art-label { left: 16px; top: 16px; font-size: 8px; }
  .art-number { right: 16px; top: 16px; font-size: 8px; }
  .art-foot { left: 16px; right: 16px; bottom: 16px; font-size: 8px; }
  .callout { font-size: 8px; padding: 7px 9px; }
  .callout.one { right: 8px; }
  .callout.two { left: 8px; }

  .section { padding: 68px 0; }
  .section-head { display: block; margin-bottom: 32px; }
  .section-intro { margin-top: 16px; }

  .cards { grid-template-columns: 1fr; gap: 10px; }
  .service { min-height: 250px; padding: 22px 18px; }
  .service-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .service-foot .go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    opacity: 1;
    transform: none;
  }
  .material-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 30px; }
  .technical { min-height: 360px; order: 2; }
  .exploded-tech { height: 380px; min-height: 380px; border-radius: 18px; }
  .exploded-toggle { top: 14px; right: 14px; }
  .assembly-progress { left: 14px; top: 48px; }
  .stats { gap: 10px; }
  .stat { min-width: calc(50% - 10px); }

  /* Taller: imagen fija de 320px y texto debajo, sin recortar a los protagonistas. */
  .taller-card { height: auto; }
  .taller-parallax-wrap {
    position: relative;
    inset: auto;
    height: 320px;
    overflow: hidden;
  }
  .taller-parallax-inner { height: 320px; }
  .taller-img { height: 320px; object-position: center; }
  .taller-vignette {
    inset: 0 0 auto 0;
    height: 320px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.55) 100%);
  }
  .taller-grain { inset: 0 0 auto 0; height: 320px; }
  .taller-top { left: 16px; right: 16px; }
  .taller-content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 20px 18px 24px;
    background: var(--panel);
  }
  .taller-content h3 { color: var(--text); text-shadow: none; }
  .taller-content p { color: var(--muted); text-shadow: none; }
  .taller-badges i {
    background: var(--panel-2);
    border-color: var(--line);
    color: var(--muted-strong);
  }
  .taller-card .redline { display: none; }
  .taller-float { display: none; }
  .taller-foot { font-size: 9px; }

  .ref-grid { grid-template-columns: 1fr; }
  .ref-panel { padding: 24px; }

  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-summary strong { font-size: 38px; }

  .gallery-grid { grid-template-columns: 1fr; }

  .video-head-side { align-items: flex-start; margin-top: 16px; }
  .video-controls { display: none; }
  .video-card { flex: 0 0 82vw; max-width: 320px; }
  .video-modal { padding: 16px; }
  .video-close { width: 44px; height: 44px; }

  .contact { padding: 60px 0; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .cta { width: 100%; }
  .form-card { padding: 22px; }
  .contact-facts { gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 34px; }
  .footer-bottom-inner { display: block; }
  .footer-bottom-inner p + p { margin-top: 6px; }

  .wa-float { right: 14px; bottom: 14px; padding: 12px; border-radius: 50%; }
  .wa-float span { display: none; }

  .cursor-dot, .cursor-ring { display: none; }

  /* Detalle de servicio: flechas en lugar de migas de pan. */
  .page-hero .breadcrumbs { display: none; }
  .service-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
  }
  .site-body a.svc-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .site-body a.svc-nav-btn.next {
    margin-left: auto;
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  .svc-nav-icon { font-size: 16px; line-height: 1; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-body *,
  .site-body *::before,
  .site-body *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .marquee-inner { animation: none; }
}
