/* Language switcher (header) and language links (footer). Works without JS. */
.lang-switch { position: relative; flex: none; color: #f7f6f1; font-family: inherit; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 7px; min-width: 48px; min-height: 48px; padding: 0 13px 0 12px;
  list-style: none; cursor: pointer; border: 1px solid rgba(247, 246, 241, .18); border-radius: 999px;
  background: rgba(247, 246, 241, .04); color: inherit; font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  transition: border-color .2s, background .2s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: rgba(247, 246, 241, .42); background: rgba(247, 246, 241, .09); }
.lang-switch summary:focus-visible { outline: 2px solid #28d9f7; outline-offset: 3px; }
.lang-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .8; }
.lang-switch b { font-weight: 700; }
.lang-switch ul {
  position: absolute; z-index: 120; top: calc(100% + 10px); right: 0; display: grid; gap: 2px; min-width: 196px; margin: 0; padding: 7px;
  list-style: none; background: rgba(9, 11, 16, .97); border: 1px solid rgba(247, 246, 241, .16); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.lang-switch a, .lang-links a { color: #d7dbe2; text-decoration: none; }
.lang-switch a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: .86rem; font-weight: 600; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: #fff; background: rgba(247, 246, 241, .08); outline: none; }
.lang-switch abbr, .lang-links abbr { min-width: 2ch; color: #9a9da6; font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-decoration: none; }
.lang-switch a[aria-current] { color: #fff; }
.lang-switch a[aria-current] abbr { color: #ff0a8a; }
.lang-switch a[aria-current]::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: linear-gradient(115deg, #ff4b0a, #ff0a8a); }

/* Home header: nav and switcher share the right edge. */
.site-header > .main-nav { margin-left: auto; }
.site-header > .lang-switch { margin-left: -12px; }
@media (max-width: 760px) {
  .site-header > .lang-switch { order: 1; margin-left: auto; margin-right: -18px; }
  .site-header > .menu-button { order: 2; }
  .site-header .lang-switch summary { min-height: 48px; padding: 0 11px; }
}

/* Subpage header: switcher sits before the call to action. */
.subpage-site-header nav .lang-switch summary { min-height: 44px; font-size: .68rem; }
@media (max-width: 760px) {
  .subpage-site-header nav { gap: 8px; }
  .subpage-site-header nav .lang-switch summary { min-height: 39px; min-width: 44px; padding: 0 9px; }
  .subpage-site-header nav .lang-switch svg { display: none; }
}

/* Footer language links. */
.lang-links ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.lang-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .78rem; }
.lang-links a:hover { color: #fff; }
.lang-links a[aria-current] { color: #fff; }
.lang-links a[aria-current] abbr { color: #ff0a8a; }
.site-footer > .lang-links { grid-column: 1 / -1; }
.subpage-site-footer > .lang-links { flex-basis: 100%; }

/* Legal documents stay in Spanish; this note says so in the page language. */
.legal-language-note { max-width: 70ch; margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(40, 217, 247, .23); border-radius: 10px; background: rgba(40, 217, 247, .07); color: #d7dbe2; font-size: .92rem; line-height: 1.5; }

/* The manual's privacy control belongs to the viewer, outside step navigation. */
body[data-model-src] #viewer > .tia-cookie-reopen {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 3;
}

/* Keep the instructions usable if the 3D viewer cannot start. */
#viewer.no3d .tools, #viewer.no3d canvas { display: none; }

/* Manual header (dark app bar). */
.top .lang-switch summary { min-height: 36px; min-width: 40px; padding: 0 10px; }
.top .lang-switch ul { top: calc(100% + 8px); }
.top .logo-link { display: inline-flex; border-radius: 8px; }
.top .logo-link:focus-visible { outline: 2px solid #28d9f7; outline-offset: 3px; }
@media (max-width: 360px) {
  .top .top-r { gap: 6px; }
  .top .lang-switch summary { padding-inline: 8px; }
  .top .lang-switch svg { display: none; }
}

/* Prominent interactive 3D manual CTA inside project dialog & SSR subpage. */
.dialog-header--showcase {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  column-gap: clamp(28px, 3.5vw, 44px);
  row-gap: 22px;
  align-items: start;
  margin-bottom: 32px;
}
.dialog-header--showcase .dialog-title-head {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}
.dialog-header--showcase #dialog-title {
  margin: 0;
  max-width: none;
  font-size: clamp(2.15rem, 3.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.dialog-hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(9, 11, 16, .16);
}
.dialog-hero-frame {
  --media-pad: 0px;
  padding: 0 !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
}
.dialog-hero-frame img,
.dialog-hero-frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: none;
}
.dialog-showcase-side {
  display: grid;
  align-content: start;
}
.dialog-header--showcase .dialog-summary { margin: 0; font-size: 1rem; line-height: 1.55; }
.dialog-header--showcase .dialog-meta { margin-top: 12px; gap: 6px; }
.dialog-header--showcase .dialog-meta span { padding: 5px 10px; font-size: .64rem; }
.dialog-header--showcase .dialog-notice { margin-top: 16px; }
@media (max-width: 980px) {
  .dialog-header--showcase { grid-template-columns: 1fr; gap: 20px; }
}
.dialog-primary-action { margin-top: 16px; }
.manual-cta-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #111624 0%, #090b10 100%) padding-box,
    linear-gradient(105deg, #ff4b0a 0%, #ff0a8a 28%, #aa35ff 62%, #28d9f7 100%) border-box;
  color: #f7f6f1;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(9, 11, 16, .26), 0 0 0 1px rgba(170, 53, 255, .18);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.manual-cta-button:hover,
.manual-cta-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(9, 11, 16, .34), 0 0 28px rgba(170, 53, 255, .32);
  color: #ffffff;
  outline: none;
}
.manual-cta-button:focus-visible { outline: 3px solid #28d9f7; outline-offset: 3px; }
.manual-cta-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(40, 217, 247, .12);
  border: 1px solid rgba(40, 217, 247, .38);
  color: #28d9f7;
}
.manual-cta-copy {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.manual-cta-copy small {
  color: #28d9f7;
  font: 750 .68rem/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.manual-cta-copy strong {
  color: #f7f6f1;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.manual-cta-arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f7f6f1;
  color: #090b10;
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform .22s ease, background .22s ease;
}
.manual-cta-button:hover .manual-cta-arrow,
.manual-cta-button:focus-visible .manual-cta-arrow {
  transform: translate(2px, -2px) scale(1.06);
  background: #ffffff;
}
.subpage-button-manual {
  gap: 14px;
  min-height: 70px;
  padding: 14px 20px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #151a2a 0%, #090b10 100%) padding-box,
    linear-gradient(105deg, #ff4b0a 0%, #ff0a8a 28%, #aa35ff 62%, #28d9f7 100%) border-box;
  color: #f7f6f1 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 22px rgba(170, 53, 255, .24);
}
.subpage-button-manual:hover {
  background:
    linear-gradient(135deg, #1b2236 0%, #0c0f17 100%) padding-box,
    linear-gradient(105deg, #ff4b0a 0%, #ff0a8a 28%, #aa35ff 62%, #28d9f7 100%) border-box;
}
@media (max-width: 520px) {
  .manual-cta-button, .buy-cta-button { padding: 14px 16px; gap: 12px; min-height: 72px; }
  .manual-cta-icon, .manual-cta-arrow, .buy-cta-icon, .buy-cta-arrow { width: 38px; height: 38px; }
}

/* Direct Stripe checkout CTA + video media frames + post-purchase download page. */
.dialog-cta-stack { display: grid; gap: 14px; }
.buy-cta-form, .subpage-buy-form { margin: 0; }
.buy-cta-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 2px solid #0e7c5a;
  background: linear-gradient(135deg, #10946b 0%, #0a6349 100%);
  color: #f7f6f1;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 16px 34px rgba(10, 99, 73, .28);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.buy-cta-button:hover,
.buy-cta-button:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 22px 42px rgba(10, 99, 73, .38);
  color: #ffffff;
  outline: none;
}
.buy-cta-button:focus-visible { outline: 3px solid #28d9f7; outline-offset: 3px; }
.buy-cta-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #ffffff;
}
.buy-cta-copy { display: grid; gap: 4px; flex: 1; min-width: 0; text-align: left; }
.buy-cta-copy small {
  color: #c8fce9;
  font: 750 .68rem/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.buy-cta-copy strong {
  color: #ffffff;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.buy-cta-arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  color: #094f3a;
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform .22s ease;
}
.buy-cta-button:hover .buy-cta-arrow { transform: translate(2px, -2px) scale(1.06); }
.buy-cta-note { margin: 8px 4px 0; color: #4d5360; font-size: .78rem; line-height: 1.45; }
.buy-cta-note a { color: #0a6349; font-weight: 600; text-underline-offset: 2px; }
.buy-cta-note a:hover, .buy-cta-note a:focus-visible { color: #064532; }
.buy-cta-note--spain { margin-top: 4px; }
.subpage-spain-print { margin: 12px 0 0; font-size: .86rem; color: #c7cdd8; }
.subpage-spain-print a { color: #28d9f7; font-weight: 600; text-underline-offset: 3px; }
.case-tech-seo {
  display: grid;
  gap: 28px;
  margin: 34px 0 28px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  background: rgba(9, 11, 16, .04);
  border: 1px solid rgba(9, 11, 16, .1);
}
.subpage-tech-seo {
  background: rgba(247, 246, 241, .03);
  border-color: rgba(247, 246, 241, .12);
}
.case-tech-seo-block h2, .case-tech-seo-block h3 {
  margin: 6px 0 16px;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  letter-spacing: -.025em;
}
.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
}
.tech-spec-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(9, 11, 16, .08);
}
.subpage-tech-seo .tech-spec-card {
  background: rgba(247, 246, 241, .04);
  border-color: rgba(247, 246, 241, .1);
}
.tech-spec-card dt {
  font: 750 .7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a6349;
  margin-bottom: 6px;
}
.subpage-tech-seo .tech-spec-card dt { color: #28d9f7; }
.tech-spec-card dd { margin: 0; font-size: .92rem; line-height: 1.5; }
.tech-faq-list { display: grid; gap: 10px; }
.tech-faq-item {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(9, 11, 16, .09);
}
.subpage-tech-seo .tech-faq-item {
  background: rgba(247, 246, 241, .04);
  border-color: rgba(247, 246, 241, .1);
}
.tech-faq-item summary { cursor: pointer; font-size: .96rem; line-height: 1.4; }
.tech-faq-item p { margin: 10px 0 0; font-size: .9rem; line-height: 1.58; opacity: .9; }
.download-cross-sell {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 246, 241, .14);
}
.download-cross-sell h2 { margin: 6px 0 8px; font-size: 1.25rem; }
.download-cross-sell p { margin: 0 0 16px; color: #c7cdd8; font-size: .92rem; line-height: 1.5; }
.subpage-button-buy {
  gap: 14px;
  min-height: 70px;
  padding: 14px 20px;
  border: 2px solid #16a87b;
  background: linear-gradient(135deg, #10946b 0%, #0a6349 100%);
  color: #ffffff !important;
  cursor: pointer;
  font-family: inherit;
}
.case-media-frame--video {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0;
  overflow: hidden;
  background: #090b10;
  cursor: default;
}
.case-media-frame--video video, .seo-media video { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #090b10; border-radius: inherit; }
.download-route { min-height: 100vh; background: #090b10; color: #f7f6f1; }
.download-main { display: grid; place-items: center; min-height: 82vh; padding-block: 48px; }
.download-card {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 24px;
  background: #11141b;
  border: 1px solid rgba(247, 246, 241, .14);
  box-shadow: 0 28px 64px rgba(0, 0, 0, .5);
}
.download-actions { display: grid; gap: 14px; margin: 28px 0 18px; }
.download-meta { margin: 0; color: #9a9da6; font-size: .9rem; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .lang-switch summary, .manual-cta-button, .manual-cta-arrow, .buy-cta-button, .buy-cta-arrow { transition: none; }
  .manual-cta-button:hover, .manual-cta-button:hover .manual-cta-arrow, .buy-cta-button:hover, .buy-cta-button:hover .buy-cta-arrow { transform: none; }
}
