/* =========================================================
   PowerSoft Solutions — Hoja de estilos principal
   Paleta extraída del logo oficial:
   azul #0069B4 · azul oscuro #00518C · gris #878787 · gris oscuro #646463
   ========================================================= */

/* ---------- Tipografía de la marca ---------- */
@font-face {
  font-family: "Asenine";
  /* Solo el TTF oficial sin modificar: la licencia prohíbe redistribuir
     conversiones WOFF/WOFF2 sin autorización escrita del diseñador. */
  src: url("../assets/fonts/asenine-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de diseño ---------- */
:root {
  /* Marca */
  --blue: #0069B4;
  --blue-700: #00518C;
  --blue-800: #003E6B;
  --sky: #3AA0E0;
  --sky-strong: #2F86B0;
  --gray: #878787;
  --gray-dark: #646463;

  /* Neutros y superficies */
  --ink: #0A1A2A;
  --ink-soft: #26384A;
  --muted: #526579;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F5F7FA;
  --surface-soft: #EAF4FB;
  --field-border: #6F7F8F;
  --placeholder: #667788;
  --line: rgba(10, 26, 42, 0.10);
  --line-strong: rgba(10, 26, 42, 0.16);

  /* Oscuros */
  --dark: #071019;
  --dark-2: #0C1B28;

  /* Estados */
  --success: #12603B;
  --success-bg: #E9F7EF;
  --success-line: #B7E4C7;
  --error: #8F1D14;
  --error-bg: #FDF0EF;
  --error-line: #F5C6C2;
  --whatsapp: #0E7A40;
  --whatsapp-dark: #0A6333;

  /* Medidas y efectos */
  --header-h: 72px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 2px 8px rgba(10, 26, 42, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(10, 26, 42, 0.22);
  --shadow-lg: 0 34px 80px -30px rgba(0, 74, 130, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "Asenine", system-ui, sans-serif;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset y base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: #FBFBFD;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

a:hover {
  color: var(--blue-700);
}

strong {
  font-weight: 650;
}

::selection {
  background: rgba(0, 105, 180, 0.18);
  color: var(--ink);
}

/* Foco visible para navegación por teclado */
:focus-visible {
  outline: 3px solid var(--sky-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lead {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.722rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.eyebrow-light {
  color: var(--sky);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(0, 105, 180, 0.6);
}

.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 105, 180, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue-700);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--surface-soft);
  color: var(--blue-700);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 12px 26px -14px rgba(14, 122, 64, 0.75);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 251, 253, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(10, 26, 42, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  width: auto;
  height: 36px;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  font-synthesis: weight;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.brand-power {
  color: var(--blue);
}

.brand-soft {
  color: var(--gray);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.005em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 11vh, 120px)) 0 clamp(64px, 8vw, 100px);
  background: #FBFBFD;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 0%, rgba(58, 160, 224, 0.16), transparent 70%),
    radial-gradient(40% 32% at 82% 26%, rgba(0, 105, 180, 0.09), transparent 72%),
    radial-gradient(36% 30% at 12% 34%, rgba(135, 135, 135, 0.10), transparent 72%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 26, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 26, 42, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(58% 55% at 50% 38%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(58% 55% at 50% 38%, #000 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  margin-bottom: 22px;
}

.hero-title {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.2vw, 6rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.text-gradient {
  color: var(--blue);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .text-gradient {
    background-image: linear-gradient(96deg, #00518C 0%, #0069B4 40%, var(--sky-strong) 74%, #526579 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-subtitle {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* Visual abstracto del hero */
.hero-visual {
  position: relative;
  width: min(560px, 92%);
  margin: clamp(52px, 7vw, 84px) auto 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(58, 160, 224, 0.34), transparent 58%),
    radial-gradient(circle at 38% 30%, rgba(0, 105, 180, 0.18), transparent 62%);
  filter: blur(28px);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(0, 105, 180, 0.22);
  animation: orbit-spin 90s linear infinite;
}

.orbit-ring-1 {
  opacity: 0.55;
}

.orbit-ring-2 {
  opacity: 0.34;
}

.orbit-ring-3 {
  opacity: 0.26;
}

.orbit-node {
  filter: drop-shadow(0 0 6px rgba(58, 160, 224, 0.65));
  animation: node-pulse 5s ease-in-out infinite;
}

.orbit-node:nth-of-type(2) {
  animation-delay: -1.8s;
}

.orbit-node:nth-of-type(3) {
  animation-delay: -3.2s;
}

.hero-core {
  position: relative;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #FFFFFF 0%, #F0F7FC 48%, #DCEBF6 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 40px 90px -30px rgba(0, 81, 140, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 -18px 45px -20px rgba(0, 105, 180, 0.35) inset;
}

.hero-core-logo {
  width: 52%;
  height: auto;
  opacity: 0.96;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px -18px rgba(10, 26, 42, 0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: chip-float 7s ease-in-out infinite;
}

.chip-a {
  top: 13%;
  left: -6%;
}

.chip-b {
  top: 38%;
  right: -8%;
  animation-delay: -2.4s;
}

.chip-c {
  bottom: 9%;
  left: 8%;
  animation-delay: -4.6s;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(58, 160, 224, 0.16);
}

.chip-spark {
  color: var(--blue);
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
  text-align: left;
}

.hero-stats li {
  padding: 4px clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line-strong);
}

.hero-stats li:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-stats li:last-child {
  padding-right: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  max-width: 220px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
  background: var(--surface);
}

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

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 105, 180, 0.3);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--blue);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.service-card:hover .card-icon {
  background: var(--blue);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
}

.card-link span {
  transition: transform 0.25s var(--ease);
}

.card-link:hover span {
  transform: translateX(4px);
}

/* =========================================================
   IA FIRST
   ========================================================= */
.ia-first {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

.ia-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 78% 8%, rgba(0, 105, 180, 0.38), transparent 68%),
    radial-gradient(40% 38% at 8% 88%, rgba(58, 160, 224, 0.16), transparent 70%),
    linear-gradient(180deg, #071019 0%, #061018 100%);
}

.ia-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 65% at 60% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 65% at 60% 30%, #000 0%, transparent 80%);
}

.ia-first .container {
  position: relative;
  z-index: 1;
}

.section-head-dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

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

.ia-panel {
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ia-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.ia-panel-head h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ia-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(58, 160, 224, 0.35);
  border-radius: 14px;
  background: rgba(58, 160, 224, 0.14);
  color: var(--sky);
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(58, 160, 224, 0.16);
  border: 1px solid rgba(58, 160, 224, 0.5);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 5px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--sky);
  border-bottom: 1.5px solid var(--sky);
  transform: rotate(-45deg);
}

.ia-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ia-steps {
  display: grid;
  gap: 22px;
}

.ia-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.ia-step-num {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  color: var(--sky);
  letter-spacing: 0.02em;
}

.ia-steps strong {
  display: block;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
}

.ia-steps p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.91rem;
  line-height: 1.55;
}

.ia-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  text-align: center;
}

.ia-cta p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */
.process {
  background: var(--surface-alt);
}

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.process-step {
  position: relative;
  padding: 0 0 34px 30px;
  border-left: 1px solid var(--line-strong);
}

.process-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 105, 180, 0.12);
}

.process-step:last-child::before {
  background: var(--sky);
}

.process-num {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.process-step p {
  max-width: 62ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.about-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about-copy .section-lead {
  margin: 20px 0 0;
  max-width: none;
}

.about-copy > p:not(.eyebrow):not(.section-lead) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.values-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.values-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.value-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.values-list strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.4;
}

.values-list p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.about-visual {
  position: relative;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 70% at 85% 8%, rgba(58, 160, 224, 0.45), transparent 62%),
    radial-gradient(70% 60% at 10% 100%, rgba(0, 105, 180, 0.35), transparent 65%),
    linear-gradient(155deg, #0B2135 0%, #071019 78%);
  box-shadow: 0 40px 90px -40px rgba(0, 61, 105, 0.6);
  color: var(--white);
  text-align: center;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  pointer-events: none;
}

.about-logo {
  position: relative;
  z-index: 1;
  width: 150px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.about-tagline {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.about-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.about-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.about-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(58, 160, 224, 0.08), transparent 70%),
    var(--surface-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.contact-form-wrap {
  padding: clamp(24px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 16px;
}

.form-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.noscript-note {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--error-line);
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.88rem;
  line-height: 1.55;
}

.noscript-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.req {
  color: var(--blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: #FCFDFE;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%23526579' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #BAC7D3;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 105, 180, 0.13);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error-line);
  background: #FFFAFA;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(143, 29, 20, 0.12);
}

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

/* Honeypot: fuera de pantalla, no display:none (los bots lo ignoran) */
.field-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.h-captcha {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 144px;
}

.btn-submit {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.is-loading .btn-spinner {
  display: block;
}

.btn-submit.is-loading .btn-icon {
  display: none;
}

.btn-submit.is-loading {
  pointer-events: none;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.form-status.is-error {
  border-color: var(--error-line);
  background: var(--error-bg);
  color: var(--error);
}

.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.privacy-note a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-details {
  margin-top: 6px;
}

.privacy-details summary {
  display: inline-flex;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  list-style: none;
}

.privacy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-details summary:hover {
  color: var(--blue-700);
}

.privacy-details p {
  margin-top: 6px;
}

/* Tarjeta lateral oscura */
.contact-aside {
  height: 100%;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  padding: clamp(30px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(85% 70% at 90% 6%, rgba(58, 160, 224, 0.35), transparent 60%),
    linear-gradient(160deg, #0B2135 0%, #071019 82%);
  color: var(--white);
  box-shadow: 0 30px 70px -36px rgba(0, 61, 105, 0.65);
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-card-text {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.65;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
  color: var(--white);
}

.contact-phone:hover {
  color: var(--sky);
}

.contact-phone-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sky);
}

.contact-phone small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-phone strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.contact-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.55;
}

.contact-perks {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-perks li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-perks li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--sky);
  border-bottom: 1.5px solid var(--sky);
  transform: rotate(-45deg);
}

.contact-deco {
  position: absolute;
  right: -90px;
  bottom: -120px;
  z-index: 0;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(58, 160, 224, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(58, 160, 224, 0.05),
              0 0 0 90px rgba(58, 160, 224, 0.03);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 96px;
  background: #050B11;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  width: auto;
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-wordmark {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  font-synthesis: weight;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.footer-tagline {
  margin-top: 18px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-text {
  max-width: 340px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-location {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.back-top:hover {
  color: var(--white);
}

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 16px 34px -12px rgba(14, 122, 64, 0.65);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(14, 122, 64, 0.7);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 122, 64, 0.45);
  animation: wa-pulse 3s ease-out infinite;
}

/* =========================================================
   ANIMACIONES DE APARICIÓN
   ========================================================= */
/* Solo se ocultan si JS está activo (mejora progresiva) */
.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

/* Retardos de aparición usados en index.html */
.reveal-delay-1 { --reveal-delay: 0.05s; }
.reveal-delay-2 { --reveal-delay: 0.1s; }
.reveal-delay-3 { --reveal-delay: 0.15s; }
.reveal-delay-4 { --reveal-delay: 0.2s; }
.reveal-delay-5 { --reveal-delay: 0.25s; }

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px -24px rgba(10, 26, 42, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }

  .site-nav.is-open {
    max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.98rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--surface-soft);
  }

  .nav-cta {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-cta .btn {
    width: 100%;
    padding-block: 13px;
  }

  .hero-stats li {
    flex: 0 0 100%;
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  /* Espacio entre la línea divisoria y el siguiente dato */
  .hero-stats li + li {
    padding-top: 18px;
  }

  .hero-stats li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-stats span {
    max-width: none;
  }

  .hero-visual {
    width: min(470px, 100%);
  }

  .float-chip {
    padding: 9px 13px;
    font-size: 0.73rem;
  }

  .chip-a {
    top: 8%;
    left: 0;
  }

  .chip-b {
    top: 8%;
    right: 0;
  }

  .chip-c {
    bottom: 3%;
    left: 4%;
  }
}

/* Navegación utilizable sin JavaScript (solo móvil/tablet).
   Sustituye al antiguo bloque <noscript><style> de index.html. */
@media (scripting: none) and (max-width: 900px) {
  .site-header {
    position: static;
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .nav-cta {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 44px);
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 360px) {
  .chip-b {
    display: none;
  }

  .eyebrow {
    gap: 8px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .eyebrow::before {
    width: 18px;
  }
}

@media (max-width: 430px) {
  .float-chip {
    padding: 8px 11px;
    font-size: 0.68rem;
  }

  .chip-a {
    top: 5%;
  }

  .chip-b {
    top: 7%;
  }
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
  }

  .field-half {
    grid-column: span 1;
  }

  .contact-form > .field:not(.field-half),
  .form-note,
  .btn-submit,
  .form-status,
  .privacy-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .ia-grid {
    grid-template-columns: 1fr;
  }

  .ia-cta {
    flex-direction: row;
    text-align: left;
  }

  .contact-perks {
    margin-top: auto;
    padding-top: 30px;
  }
}

@media (min-width: 901px) {
  .brand-mark {
    height: 44px;
  }

  .brand-wordmark {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .process-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
  }

  .process-step {
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .process-step:last-child {
    padding-bottom: 0;
    border-top-color: var(--line-strong);
  }

  .process-step::before {
    top: -4px;
    left: 0;
  }

  .contact-grid {
    gap: 28px;
  }
}

/* ---------- Ajustes finos de layout por ancho ---------- */
@media (min-width: 900px) {
  .ia-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .about-visual {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.35fr 0.9fr;
  }

  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-orbit,
  .float-chip,
  .orbit-node,
  .whatsapp-float::after {
    animation: none;
  }
}
