:root {
  --bg: #070725;
  --bg-soft: #0d0b3f;
  --panel: rgba(34, 30, 112, .55);
  --panel-strong: #21177b;
  --purple: #a72dff;
  --purple-2: #7138ff;
  --cyan: #11d8ff;
  --white: #f8f7ff;
  --muted: #c8c7e7;
  --line: rgba(151, 114, 255, .32);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 13%, rgba(105, 47, 255, .34), transparent 24%),
    radial-gradient(circle at 8% 53%, rgba(46, 21, 180, .26), transparent 22%),
    linear-gradient(120deg, #09072f 0%, #050520 52%, #10063a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(133, 92, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(133, 92, 255, .12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 5, 31, .82);
  border-bottom: 1px solid rgba(138, 85, 255, .28);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.8px;
}

.logo {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  color: #72dbff;
  font-size: 42px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 0 24px #8635ff;
}

.logo::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 5px;
  bottom: 3px;
  left: 14px;
  transform: rotate(-20deg);
  background: linear-gradient(90deg, #6223ff, #23dfff);
  border-radius: 5px;
}

.brand span {
  color: #fff;
}

.brand em {
  color: #a75aff;
  font-style: normal;
}

nav {
  display: flex;
  align-items: center;
  gap: 29px;
  color: #e8e5ff;
  font-size: 14px;
}

nav a {
  opacity: .88;
  position: relative;
  padding: 29px 0 25px;
}

nav a:hover,
nav a.active {
  color: #fff;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: #c247ff;
  box-shadow: 0 0 12px #c247ff;
}

.menu {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 25px;
}

.btn {
  border: 0;
  border-radius: 28px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  font-weight: 750;
  transition: .25s ease;
}

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

.btn-primary {
  background: linear-gradient(100deg, #a31cff, #6a2aff);
  box-shadow: 0 9px 30px rgba(124, 35, 255, .34);
}

.btn-outline {
  border: 1px solid #a77bff;
  background: rgba(32, 17, 99, .28);
}

.btn-light {
  background: #fff;
  color: #24116b;
}

section {
  padding: 76px 0;
  border-top: 1px solid rgba(138, 93, 255, .16);
}

.section-head {
  margin-bottom: 38px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  max-width: 570px;
  line-height: 1.6;
  margin: 0;
}

.section-label {
  color: #c54dff;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 13px;
  display: block;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 3px;
  margin: 0 9px 3px 0;
  background: #a934ff;
}

.copy h2 {
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  margin: 0 0 15px;
}

.copy>p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 22px;
}

.cta {
  margin: 0 auto 72px;
  padding: 32px 44px;
  border: 1px solid rgba(174, 103, 255, .65);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(100deg, #7a19ee, #3426c9 62%, #5e28e9);
  box-shadow: 0 0 45px rgba(121, 34, 255, .3);
}

.cta h2 {
  margin: 0 0 7px;
  font-size: 28px;
}

.cta p {
  margin: 0;
  color: #e9ddff;
}

footer {
  border-top: 1px solid rgba(127, 83, 255, .23);
  padding: 38px 0 25px;
  background: rgba(4, 3, 28, .65);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 35px;
  height: 35px;
  border: 1px solid #a36cff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e7cdff;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 19px;
  border-top: 1px solid rgba(154, 105, 255, .18);
  color: #a8a4c9;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  nav {
    gap: 17px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 36px, var(--max));
  }

  .menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 15px 25px 25px;
    flex-direction: column;
    align-items: stretch;
    background: #0b0939;
    border-bottom: 1px solid var(--line);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 13px 0;
  }

  nav a.active::after {
    display: none;
  }

  .nav>.btn {
    display: none;
  }

  .cta {
    margin-bottom: 50px;
    padding: 27px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 20px;
  }

  .logo {
    width: 38px;
    font-size: 34px;
  }
}

.section-head,
.cta {
  animation: appear .9s ease both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 15px 25px 25px;
    flex-direction: column;
    align-items: stretch;
    background: #0b0939;
    border-bottom: 1px solid var(--line);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 13px 0;
  }

  nav a.active::after {
    display: none;
  }

  .brand {
    flex-shrink: 0;
  }
}

/* Marcos comunes para las páginas independientes. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  transform: translateY(-180%);
  z-index: 100;
  background: #fff;
  color: #24116b;
  padding: 12px 18px;
  border-radius: 8px;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid #8cecff;
  outline-offset: 5px;
}

.page-header {
  padding: 60px 0 20px;
  border: 0;
}

.page-header h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 0 0 14px;
}

.page-header p {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.page-content {
  padding-top: 32px;
  border-top: 0;
}

.cta-section {
  padding: 36px 0 20px;
  border: 0;
}

.cta-section .cta {
  margin-bottom: 20px;
}

.footer-row {
  flex-wrap: wrap;
}

.contact-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0 0;
}

@media (max-width: 720px) {
  .page-header {
    padding-top: 36px;
  }

  .page-content {
    padding-top: 20px;
  }

  .cta-section {
    padding-top: 26px;
  }
}

/* Los títulos principales mantienen la apariencia de las secciones aprobadas. */
.service-intro h1 {
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.copy h1 {
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  margin: 0 0 15px;
}

.section-head h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 0 0 12px;
}

.cta h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin: 0 0 7px;
}
