@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --header-offset: 86px;
  --svc-sidebar-width: 320px;
  --svc-sidebar-collapsed: 56px;
  --bg: #090914;
  --bg-soft: #111126;
  --surface: rgba(19, 22, 41, 0.74);
  --surface-strong: rgba(12, 14, 29, 0.92);
  --text: #f3f6ff;
  --muted: #a7b4d6;
  --primary: #8f54ff;
  --secondary: #32d4ff;
  --neon-purple: #be82ff;
  --neon-magenta: #ff59ea;
  --neon-cyan: #4de2ff;
  --neon-border-size: 3px;
  --line: rgba(190, 142, 255, 0.54);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card:
    0 24px 54px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(143, 84, 255, 0.32),
    0 0 44px rgba(50, 212, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  position: relative;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 18, 0.92), rgba(5, 7, 16, 0.9)),
    url("../img/bg-tech-frame.svg") center top / cover no-repeat;
  opacity: 0.96;
  filter: saturate(1.08) brightness(0.95);
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    url("../img/bg-stars-neon.svg") center top / 340px 250px repeat,
    url("../img/bg-stars-neon.svg") 140px 90px / 520px 380px repeat,
    url("../img/bg-stars-neon.svg") -80px -40px / 760px 560px repeat,
    radial-gradient(64% 36% at 16% 14%, rgba(88, 143, 255, 0.14), transparent 70%),
    radial-gradient(68% 38% at 84% 84%, rgba(182, 102, 255, 0.16), transparent 72%);
  mix-blend-mode: screen;
  opacity: 1;
  filter: none;
  animation: starsPulse 9.5s ease-in-out infinite;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 520px at 10% 2%, rgba(143, 84, 255, 0.14), transparent 78%),
    radial-gradient(980px 560px at 100% 100%, rgba(50, 212, 255, 0.08), transparent 82%),
    linear-gradient(180deg, #090915 0%, #0a0f1d 50%, #090914 100%);
  background-attachment: scroll;
  overflow-x: hidden;
}

body::before,
body::after {
  content: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #76e6ff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

.container {
  width: min(1800px, 100%);
  padding-inline: clamp(16px, 2vw, 34px);
  margin: 0 auto;
}

.service-sidebar {
  --panel-neon-left: #d64dff;
  --panel-neon-right: #25e9ff;
  --panel-neon-blend: #9b9dff;
  --panel-neon-mid-left: #cc68ff;
  --panel-neon-mid-right: #52dfff;
  --panel-neon-line: rgba(214, 198, 255, 0.72);
  --panel-neon-glow-left: rgba(232, 96, 255, 0.42);
  --panel-neon-glow-right: rgba(66, 228, 255, 0.38);
  --panel-neon-glow-strong: rgba(176, 150, 255, 0.28);
  position: fixed;
  left: 8px;
  top: calc(var(--header-offset) + 8px);
  bottom: auto;
  width: var(--svc-sidebar-width) !important;
  min-width: var(--svc-sidebar-width) !important;
  max-width: var(--svc-sidebar-width) !important;
  height: calc(100vh - var(--header-offset) - 16px);
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 84, 255, 0.35) transparent;
  display: flex;
  flex-direction: column;
  z-index: 99;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(19, 21, 40, 0.92), rgba(12, 14, 30, 0.96)),
    radial-gradient(140% 120% at 0% 0%, rgba(171, 108, 255, 0.28), transparent 66%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(182, 104, 255, 0.45),
    0 0 54px rgba(79, 195, 255, 0.2);
  padding: 0 14px 14px;
}

.service-sidebar-header {
  padding: 14px 0 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-sidebar::-webkit-scrollbar {
  width: 4px;
}
.service-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.service-sidebar::-webkit-scrollbar-thumb {
  background: rgba(143, 84, 255, 0.4);
  border-radius: 2px;
}

.service-sidebar-title {
  display: inline-block;
  position: relative;
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f2e8ff;
  letter-spacing: 0.02em;
}

.service-sidebar-toggle {
  position: relative;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(215, 172, 255, 0.74);
  color: #f3f8ff;
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.38), rgba(50, 212, 255, 0.2));
  font: inherit;
  font-size: 1.08rem;
  line-height: 1;
  cursor: pointer;
}

.service-sidebar-section + .service-sidebar-section {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(181, 146, 255, 0.28);
}

.service-sidebar-heading {
  margin: 0 0 8px;
  color: #d9c8ff;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.service-sidebar-list a {
  position: relative;
  overflow: hidden;
  display: block;
  color: #d8e3ff;
  border: 2px solid rgba(214, 168, 255, 0.66);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  background: rgba(122, 89, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.service-sidebar-list a:hover {
  transform: translateX(2px);
  border-color: rgba(189, 156, 255, 0.7);
  background: rgba(122, 89, 255, 0.2);
}

.service-sidebar-list a.is-active {
  border-color: rgba(199, 170, 255, 0.82);
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.36), rgba(50, 212, 255, 0.2));
  color: #f6fbff;
}

body.has-service-sidebar main {
  padding-left: calc(8px + var(--svc-sidebar-width) + 32px);
}

body.has-service-sidebar main::before {
  content: none;
  display: none;
}

/* Adaptar layouts cuando el sidebar está visible en pantallas medianas */
@media (max-width: 1380px) {
  body.has-service-sidebar .hero-grid {
    grid-template-columns: 1fr;
  }

  body.has-service-sidebar .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.has-service-sidebar .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.sidebar-collapsed .service-sidebar {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto;
  min-height: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  overflow: visible;
}

body.sidebar-collapsed .service-sidebar::after {
  display: none;
}

body.sidebar-collapsed .service-sidebar-title,
body.sidebar-collapsed .service-sidebar-heading,
body.sidebar-collapsed .service-sidebar-list,
body.sidebar-collapsed .service-sidebar-section {
  display: none;
}

body.sidebar-collapsed .service-sidebar-header {
  justify-content: center;
  margin: 0;
  padding: 0;
}

body.sidebar-collapsed .service-sidebar-toggle {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(181, 146, 255, 0.85);
}

body.sidebar-collapsed.has-service-sidebar main {
  padding-left: calc(8px + 54px);
}

body.sidebar-collapsed.has-service-sidebar main::before {
  content: none;
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 10, 21, 0.88);
  border-bottom: 1px solid rgba(166, 120, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 18px rgba(151, 95, 255, 0.16);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo img {
  width: clamp(300px, 24vw, 430px);
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(130, 106, 255, 0.36);
  background: rgba(123, 92, 255, 0.14);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.08rem;
}

.nav-list a:not(.cta) {
  opacity: 0.9;
}

.nav-list a:not(.cta):hover {
  opacity: 1;
}

.nav-list a.cta {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(177, 142, 255, 0.72);
  color: #fff;
  background: linear-gradient(135deg, #8f54ff 0%, #a44cff 44%, #3bc8ff 100%);
  box-shadow:
    0 12px 28px rgba(80, 45, 179, 0.55),
    0 0 22px rgba(166, 87, 255, 0.5),
    0 0 34px rgba(50, 212, 255, 0.24);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  line-height: 1.18;
  color: #f7f9ff;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

h3 {
  font-size: clamp(1.14rem, 2vw, 1.9rem);
}

.hero {
  padding: clamp(84px, 9vw, 128px) 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 2.6vw, 48px);
  align-items: center;
}

.hero-grid > div[data-reveal] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-grid > div[data-reveal] > * {
  text-align: center;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 185, 255, 0.45);
  padding: 0;
  border: none;
  background: transparent;
}

.lead {
  margin-bottom: 24px;
  color: var(--muted);
  max-width: 70ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(130, 106, 255, 0.4);
  color: var(--text);
  font-weight: 700;
  font: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  border-color: rgba(187, 151, 255, 0.78);
  background: linear-gradient(135deg, #8f54ff 0%, #a44cff 42%, #3bc8ff 100%);
  box-shadow:
    0 14px 30px rgba(80, 45, 179, 0.56),
    0 0 26px rgba(166, 87, 255, 0.52),
    0 0 38px rgba(50, 212, 255, 0.22);
}

.btn-secondary {
  background: rgba(123, 92, 255, 0.12);
}

.btn-secondary:hover {
  border-color: rgba(130, 106, 255, 0.66);
}

.hero-panel,
.card,
.step,
.faq details,
.callout,
.article,
.location-map,
.stat {
  --panel-neon-left: #d64dff;
  --panel-neon-right: #25e9ff;
  --panel-neon-blend: #9b9dff;
  --panel-neon-mid-left: #cc68ff;
  --panel-neon-mid-right: #52dfff;
  --panel-neon-line: rgba(214, 198, 255, 0.72);
  --panel-neon-glow-left: rgba(232, 96, 255, 0.42);
  --panel-neon-glow-right: rgba(66, 228, 255, 0.38);
  --panel-neon-glow-strong: rgba(176, 150, 255, 0.28);
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  border: 2px solid var(--panel-neon-line);
  background:
    linear-gradient(155deg, var(--surface) 0%, var(--surface-strong) 100%),
    radial-gradient(130% 140% at 0% 0%, rgba(143, 84, 255, 0.2), transparent 58%),
    radial-gradient(130% 140% at 100% 100%, rgba(50, 212, 255, 0.11), transparent 64%);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(218, 172, 255, 0.22),
    0 0 10px var(--panel-neon-glow-left),
    0 0 10px var(--panel-neon-glow-right),
    0 0 18px var(--panel-neon-glow-strong);
  backdrop-filter: none;
}

.hero-panel,
.card,
.step,
.article,
.social-icon,
.card a,
.nav-toggle {
  --panel-neon-left: #d64dff;
  --panel-neon-right: #25e9ff;
  --panel-neon-blend: #9b9dff;
  --panel-neon-mid-left: #cc68ff;
  --panel-neon-mid-right: #52dfff;
  --panel-neon-line: rgba(214, 198, 255, 0.72);
  --panel-neon-glow-left: rgba(232, 96, 255, 0.42);
  --panel-neon-glow-right: rgba(66, 228, 255, 0.38);
  --panel-neon-glow-strong: rgba(176, 150, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.card::before,
.step::before,
.faq details::before,
.callout::before,
.article::before,
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--panel-neon-line),
    inset 7px 0 12px var(--panel-neon-glow-left),
    inset -7px 0 12px var(--panel-neon-glow-right),
    inset 0 -6px 10px var(--panel-neon-glow-strong);
}

.hero-panel::after,
.card::after,
.step::after,
.faq details::after,
.callout::after,
.article::after,
.location-map::after,
.stat::after,
.service-sidebar-toggle::after,
.service-sidebar-list a::after,
.social-icon::after,
.card a::after,
.nav-toggle::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--neon-border-size));
  border-radius: inherit;
  pointer-events: none;
  border: var(--neon-border-size) solid transparent;
  background:
    linear-gradient(
      90deg,
      var(--panel-neon-left) 0%,
      var(--panel-neon-left) 34%,
      var(--panel-neon-mid-left) 42%,
      var(--panel-neon-blend) 50%,
      var(--panel-neon-mid-right) 58%,
      var(--panel-neon-right) 66%,
      var(--panel-neon-right) 100%
    ) border-box;
  background-size: 100% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 1;
  filter: none;
  animation: none;
  transition: filter 0.15s ease;
}

.hero-panel:hover::after,
.hero-panel:focus-within::after,
.card:hover::after,
.card:focus-within::after,
.step:hover::after,
.step:focus-within::after,
.faq details:hover::after,
.faq details:focus-within::after,
.callout:hover::after,
.callout:focus-within::after,
.article:hover::after,
.article:focus-within::after,
.location-map:hover::after,
.location-map:focus-within::after,
.stat:hover::after,
.service-sidebar-toggle:hover::after,
.service-sidebar-toggle:focus-visible::after,
.service-sidebar-list a:hover::after,
.service-sidebar-list a:focus-visible::after,
.social-icon:hover::after,
.social-icon:focus-visible::after,
.card a:hover::after,
.card a:focus-visible::after,
.nav-toggle:hover::after,
.nav-toggle:focus-visible::after {
  filter:
    drop-shadow(0 0 5px var(--panel-neon-glow-left))
    drop-shadow(0 0 5px var(--panel-neon-glow-right))
    drop-shadow(0 0 12px var(--panel-neon-glow-strong));
}

.hero-panel {
  padding: 24px;
}

.hero-panel p {
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.stat {
  min-height: 170px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-sm);
}

.stat strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 76px;
  max-width: 18ch;
  width: 100%;
  font-size: 0.95rem;
  color: #d2dcf3;
  text-wrap: balance;
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat {
    min-height: auto;
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .stat strong {
    font-size: 2rem;
    min-height: auto;
    width: auto;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .stat span {
    min-height: auto;
    font-size: 0.88rem;
  }
}

.section {
  padding: 72px 0;
}

.section-intro {
  color: var(--muted);
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section > .container > h2,
.page-hero .container > h1 {
  text-align: center;
}

.page-hero .container > p {
  text-align: center;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.about-main-title {
  text-align: center;
}

.contact-main-title {
  text-align: center;
}

.card-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(187, 151, 255, 0.76);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.54),
    0 0 18px rgba(166, 87, 255, 0.34),
    0 0 24px rgba(50, 212, 255, 0.15);
}

.faq details {
  --panel-neon-line: rgba(214, 198, 255, 0.5);
  --panel-neon-glow-left: rgba(232, 96, 255, 0.2);
  --panel-neon-glow-right: rgba(66, 228, 255, 0.18);
  --panel-neon-glow-strong: rgba(176, 150, 255, 0.14);
}

.faq details:hover::after,
.faq details:focus-within::after {
  filter:
    drop-shadow(0 0 3px var(--panel-neon-glow-left))
    drop-shadow(0 0 3px var(--panel-neon-glow-right))
    drop-shadow(0 0 7px var(--panel-neon-glow-strong));
}

.card h2,
.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card .list-check {
  margin-bottom: 12px;
}

.card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 999px;
  border: 2px solid rgba(213, 166, 255, 0.78);
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.24), rgba(50, 212, 255, 0.16));
  color: #f6f8ff;
  font-weight: 700;
}

.card a:hover {
  border-color: rgba(198, 164, 255, 0.82);
  box-shadow: 0 0 16px rgba(166, 87, 255, 0.36);
}

.card-location {
  grid-column: 1 / -1;
}

.location-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.card-location .location-split {
  grid-template-columns: 1fr;
  gap: 12px;
}

.location-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-copy a {
  width: auto;
  align-self: flex-start;
  padding-left: 16px;
  padding-right: 16px;
}

.location-map {
  border-radius: var(--radius-sm);
  min-height: 250px;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
  display: block;
}

.location-map-square {
  width: clamp(220px, 22vw, 280px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  justify-self: center;
  align-self: start;
}

.location-map-square iframe {
  min-height: 0;
}

.card-map-inline {
  grid-column: auto;
}

.card-map-inline .location-map {
  flex: 1;
  min-height: 0;
}

.card-map-inline .location-map iframe {
  min-height: 0;
}

.where-grid-callout {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.services-grid-callout {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.process {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.step {
  padding: 18px;
  transition: transform 0.2s ease;
  min-height: 100%;
}

.step:hover {
  transform: translateY(-4px);
}

.step h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

.step .num {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #7b5cff 0%, #2abcf6 100%);
}

.faq {
  margin-top: 20px;
}

.faq details {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(146, 124, 255, 0.6);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.callout {
  margin-top: 26px;
  padding: 24px;
  border-color: rgba(172, 130, 255, 0.58);
  background:
    linear-gradient(155deg, rgba(44, 28, 78, 0.56) 0%, rgba(14, 18, 36, 0.94) 100%),
    radial-gradient(120% 120% at 100% 100%, rgba(31, 210, 255, 0.14), transparent 62%);
  text-align: center;
}

.breadcrumb {
  margin: 22px 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: 72px 0 36px;
}

.page-hero p {
  color: var(--muted);
}

.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  margin: 8px 0;
  padding-left: 22px;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f54ff, #cc6dff 45%, #3bc8ff);
  box-shadow: 0 0 12px rgba(166, 87, 255, 0.36);
}

.article {
  padding: 24px;
}

.article h2,
.article h3 {
  margin-top: 28px;
}

label {
  display: block;
  margin: 10px 0 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(130, 106, 255, 0.36);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(9, 13, 24, 0.8);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(146, 124, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.16);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: #8ae2ff;
  font-size: 0.95rem;
}

.form-status.is-error {
  color: #ffd0d0;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(166, 120, 255, 0.34);
  background: rgba(9, 9, 21, 0.66);
}

.footer-top-row {
  padding: 26px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.footer-link {
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 8px;
}

.footer-link:hover {
  color: var(--secondary);
}

.footer-link-active {
  color: var(--secondary);
  border-bottom-color: var(--primary);
}

.footer-copy {
  margin: 0;
  color: var(--text);
  text-align: center;
  max-width: none;
  line-height: 1.25;
  font-weight: 500;
}

.footer-social {
  padding: 16px 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.footer-verifactu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 2px solid rgba(213, 166, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d5ddff;
  background: linear-gradient(145deg, rgba(143, 84, 255, 0.22), rgba(50, 212, 255, 0.14));
  box-shadow: 0 0 20px rgba(166, 87, 255, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-icon svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 164, 255, 0.86);
  box-shadow:
    0 0 26px rgba(166, 87, 255, 0.5),
    0 0 38px rgba(50, 212, 255, 0.22);
}

.foot-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Sidebar overlay (drawer mode) ─────────────────────── */
.sidebar-overlay {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(5, 7, 18, 0.72);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.sidebar-drawer-open .sidebar-overlay {
  visibility: visible;
  opacity: 1;
}

/* ── Floating drawer open button ────────────────────────── */
.sidebar-drawer-btn {
  display: none;
  position: fixed;
  left: 14px;
  top: 110px;
  z-index: 198;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(215, 172, 255, 0.74);
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.42), rgba(50, 212, 255, 0.24));
  color: #f3f8ff;
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.52),
    0 0 20px rgba(143, 84, 255, 0.38);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sidebar-drawer-btn:hover {
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.58), rgba(50, 212, 255, 0.38));
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(143, 84, 255, 0.5);
  transform: scale(1.06);
}

/* ── Sidebar close button (drawer mode only) ─────────────── */
.sidebar-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(215, 172, 255, 0.74);
  color: #f3f8ff;
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.38), rgba(50, 212, 255, 0.2));
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.sidebar-close-btn:hover {
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.55), rgba(50, 212, 255, 0.34));
}

/* ── Alex Chat inline ──────────────────────────────────── */
.alex-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.alex-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--neon-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  margin: 0 0 6px;
  border-radius: 8px;
  background: rgba(77, 226, 255, 0.08);
  box-shadow: 0 0 10px rgba(77, 226, 255, 0.12);
}

.alex-inline-messages {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 160px;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 84, 255, 0.3) transparent;
}

.alex-inline-input-row {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(181, 146, 255, 0.28);
  flex-shrink: 0;
}

body.sidebar-collapsed .alex-section {
  display: none;
}

.alex-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f54ff, #3bc8ff);
  box-shadow: 0 0 8px rgba(77, 226, 255, 0.9);
  animation: alexDotPulse 2s ease-in-out infinite;
}

@keyframes alexDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(77, 226, 255, 0.9); }
  50% { opacity: 0.55; box-shadow: 0 0 4px rgba(143, 84, 255, 0.5); }
}

.alex-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.91rem;
  line-height: 1.55;
  word-break: break-word;
}

.alex-msg.is-bot {
  align-self: flex-start;
  background: rgba(122, 89, 255, 0.15);
  border: 1px solid rgba(181, 146, 255, 0.34);
  color: #e0e8ff;
}

.alex-msg.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.3), rgba(50, 212, 255, 0.18));
  border: 1px solid rgba(77, 200, 255, 0.38);
  color: #f6fbff;
}

.alex-msg.is-error {
  border-color: rgba(255, 100, 100, 0.4);
  color: #ffd0d0;
}

.alex-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(130, 106, 255, 0.36);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(9, 13, 24, 0.8);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.91rem;
}

.alex-chat-input:focus {
  outline: none;
  border-color: rgba(146, 124, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.16);
}

.alex-chat-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(77, 226, 255, 0.7);
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.36), rgba(50, 212, 255, 0.22));
  color: #f3f8ff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.alex-chat-send:hover:not(:disabled) {
  border-color: rgba(77, 226, 255, 0.95);
  background: linear-gradient(135deg, rgba(143, 84, 255, 0.5), rgba(50, 212, 255, 0.34));
}

.alex-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes starsDrift {
  0% {
    background-position: center top, 140px 90px, -80px -40px, 0 0, 0 0;
  }
  100% {
    background-position: center 820px, 140px 620px, -80px 280px, 0 0, 0 0;
  }
}

@keyframes starsPulse {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

@keyframes neonBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 440% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html::after {
    animation: none;
  }

  .hero-panel::after,
  .card::after,
  .step::after,
  .faq details::after,
  .callout::after,
  .article::after,
  .location-map::after,
  .stat::after,
  .service-sidebar-toggle::after,
  .service-sidebar-list a::after,
  .social-icon::after,
  .card a::after,
  .nav-toggle::after {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  /* Sidebar becomes a slide-in drawer on tablets and mobile */
  .service-sidebar {
    top: 0;
    left: 8px;
    height: 100dvh;
    width: var(--svc-sidebar-width);
    padding: 0 14px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(calc(-100% - 16px));
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    border-radius: 16px;
  }

  body.sidebar-drawer-open .service-sidebar {
    transform: translateX(0);
  }

  body.has-service-sidebar main,
  body.sidebar-collapsed.has-service-sidebar main {
    padding-left: 0;
  }

  body.has-service-sidebar main::before,
  body.sidebar-collapsed.has-service-sidebar main::before {
    display: none;
  }

  /* Swap collapse toggle for close button */
  .service-sidebar-toggle {
    display: none;
  }

  .sidebar-close-btn {
    display: flex;
  }

  /* Floating open button */
  .sidebar-drawer-btn {
    display: flex;
  }

  body.sidebar-drawer-open .sidebar-drawer-btn {
    display: none;
  }

  /* Restore sidebar content when drawer is open (overrides collapsed state) */
  body.sidebar-drawer-open .service-sidebar-title {
    display: inline-block;
  }

  body.sidebar-drawer-open .service-sidebar-heading {
    display: block;
  }

  body.sidebar-drawer-open .service-sidebar-list {
    display: grid;
  }

  body.sidebar-drawer-open .alex-section {
    display: flex;
  }

  body.sidebar-drawer-open .service-sidebar-header {
    justify-content: space-between;
  }

  /* Limit Alex messages height so input stays reachable when scrolled */
  .alex-inline-messages {
    min-height: 60px !important;
    max-height: 160px;
    flex: none;
  }
}


@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-location {
    grid-column: span 2;
  }

  .location-split {
    grid-template-columns: 1fr;
  }

  .location-map-square {
    justify-self: center;
  }
}

@media (max-width: 980px) {
  :root {
    --header-offset: 74px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    position: fixed;
    left: 8px;
    right: auto;
    top: calc(var(--header-offset) + 6px);
    width: min(280px, calc(100vw - 16px));
    flex-direction: column;
    align-items: stretch;
    background: #07091a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    border: 1px solid rgba(130, 106, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    z-index: 400;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a.cta {
    text-align: center;
  }

  body::before,
  body::after {
    content: none;
  }
}

/* En portrait o pantallas estrechas: iguala ancho de cards con span 2 */
@media (orientation: portrait), (max-width: 900px) {
  .card[style*="grid-column"] {
    grid-column: auto !important;
  }
}

@media (max-width: 720px) {
  .card-grid,
  .process {
    grid-template-columns: 1fr;
  }

  /* Anula la regla del sidebar que fuerza 2 columnas */
  body.has-service-sidebar .card-grid,
  body.has-service-sidebar .process,
  body.has-service-sidebar .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .card-location {
    grid-column: auto;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 78px;
  }

  .logo img {
    width: clamp(200px, 48vw, 270px);
  }

  .social-icon {
    width: 56px;
    height: 56px;
  }

  .social-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Footer links: reducir gap en movil */
  .footer-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  /* Footer social: ocultar espaciador fantasma y apilar Verifactu debajo */
  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .footer-social > span:first-child[aria-hidden="true"] {
    display: none !important;
  }

  .footer-social > span:last-child {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
    padding-bottom: 8px;
  }

  /* Callout */
  .callout {
    padding: 24px 16px;
  }

  /* Evitar overflow horizontal en cards */
  .card {
    min-width: 0;
    word-break: break-word;
  }

  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  .nav-list {
    width: min(280px, calc(100vw - 16px)) !important;
    left: 8px !important;
    right: auto !important;
  }
}
