/* AutomatID — static marketing shell (dark / SaaS) */

:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f8;
  --muted: #9898a8;
  --accent: #3ee8a8;
  --accent-dim: rgba(62, 232, 168, 0.15);
  --accent-glow: rgba(62, 232, 168, 0.35);
  --violet: #a78bfa;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

/* Anclas / SPA: compensar cabecera sticky al hacer scroll */
#top,
section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Themed scrollbar (desktop / supporting browsers) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(62, 232, 168, 0.55) var(--bg-elevated);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent) 0%, #2bc88e 40%, var(--violet) 100%);
  border-radius: 999px;
  border: 2px solid var(--bg-elevated);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--accent);
}

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

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Full-screen entrance loader — dot matrix / terminal */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  /* Gris carbón (evita contraste brusco al quitar el loader) */
  background: #0e0f12;
  transition: opacity 0.75s cubic-bezier(0.33, 1, 0.32, 1), visibility 0.75s linear;
}

.page-loader--matrix {
  font-family: var(--mono);
}

/* Loader corto (~1 s) cuando no toca la animación completa (evita parpadeo) */
.page-loader--micro {
  justify-content: center;
  align-items: center;
}

.page-loader--micro .page-loader-tagline {
  position: static;
  margin: 0 auto 20px;
  text-align: center;
  max-width: 90vw;
  opacity: 0.85;
}

.page-loader--micro .page-loader-matrix-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
  max-width: 100%;
}

.page-loader--micro .page-loader-percent-wrap,
.page-loader--micro .page-loader-brand-block {
  display: none !important;
}

.page-loader--micro .page-loader-logo-stage {
  min-height: 0;
}

.page-loader--micro .page-loader-logo-reveal {
  clip-path: none !important;
  width: min(160px, 38vw);
  opacity: 0;
  animation: pageLoaderMicroLogo 0.55s cubic-bezier(0.33, 1, 0.32, 1) 0.06s forwards;
}

@keyframes pageLoaderMicroLogo {
  from {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader--micro .page-loader-logo-reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-tagline {
  position: absolute;
  top: clamp(20px, 4vh, 48px);
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  max-width: min(420px, 85vw);
  margin: 0;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(62, 232, 168, 0.75);
  line-height: 1.5;
  transition: opacity 0.35s ease;
}

.page-loader-matrix-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(96vw, 1100px);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}

/* Desktop: logo + % share one row (centers aligned); brand block below logo column only */
@media (min-width: 721px) {
  .page-loader-matrix-main {
    display: grid;
    grid-template-columns: minmax(28vw, 1fr) minmax(22vw, 36vw);
    grid-template-rows: minmax(28vh, 46vh) auto;
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(2vw, 4vw, 4rem);
    row-gap: clamp(1vh, 2vh, 1.5rem);
  }

  .page-loader-logo-stage {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    min-height: 0;
    width: 100%;
    max-width: 48vw;
  }

  .page-loader-percent-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    height: clamp(24vh, 36vmin, 44vh);
    min-height: clamp(20vh, 30vmin, 38vh);
    max-height: 48vh;
  }

  .page-loader-brand-block {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    max-width: min(72vw, 78vmin);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.8vh, 1.2vmin, 1.2rem);
  }

  .page-loader-brand-canvas {
    width: 100%;
    height: clamp(10vh, 15vmin, 18vh);
    min-height: clamp(8vh, 12vmin, 14vh);
    flex-shrink: 0;
  }

  .page-loader-motto {
    font-size: clamp(1.3vmin, 0.25vw + 1.4vmin, 2.5vmin);
    line-height: 1.4;
  }
}

.page-loader-logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
}

/* 0%: fully clipped; top → bottom via JS */
.page-loader-logo-reveal {
  width: min(240px, 42vw);
  height: auto;
  max-height: min(42vh, 320px);
  object-fit: contain;
  clip-path: inset(0 0 100% 0);
  user-select: none;
  pointer-events: none;
}

@media (min-width: 721px) {
  .page-loader-logo-stage .page-loader-logo-reveal {
    width: min(38vmin, 44vw);
    max-height: min(40vh, 42vmin);
  }
}

.page-loader-brand-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(8px, 1.5vh, 16px);
  width: 100%;
  max-width: min(560px, 100%);
}

.page-loader-brand-canvas {
  display: block;
  width: 100%;
  height: clamp(72px, 11vh, 100px);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.page-loader--complete .page-loader-brand-canvas:not([hidden]) {
  opacity: 1;
}

.page-loader-motto {
  margin: 0;
  width: 100%;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
  color: rgba(180, 190, 200, 0.55);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.page-loader--complete .page-loader-motto {
  opacity: 1;
}

.page-loader-percent-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform-origin: 100% 50%;
  will-change: opacity, filter;
}

.page-loader-percent-wrap--breathe {
  animation: loader-pct-led 1.65s linear infinite;
}

/* LED-style flicker (brightness / opacity), not scale */
@keyframes loader-pct-led {
  0%,
  8% {
    opacity: 1;
    filter: brightness(1);
  }
  12% {
    opacity: 0.18;
    filter: brightness(0.45);
  }
  16%,
  38% {
    opacity: 1;
    filter: brightness(1.08);
  }
  42% {
    opacity: 0.22;
    filter: brightness(0.5);
  }
  46%,
  72% {
    opacity: 1;
    filter: brightness(1);
  }
  76% {
    opacity: 0.12;
    filter: brightness(0.4);
  }
  80%,
  100% {
    opacity: 1;
    filter: brightness(1.05);
  }
}

.page-loader-percent-canvas {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: block;
}

@media (max-width: 720px) {
  .page-loader-matrix-main {
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 2vh, 20px);
  }

  .page-loader-logo-stage {
    order: 1;
    min-height: 180px;
  }

  .page-loader-brand-block {
    order: 2;
    max-width: 100%;
    align-items: center;
  }

  .page-loader-brand-canvas {
    width: 100%;
    max-width: 100%;
  }

  .page-loader-motto {
    text-align: right;
    align-self: stretch;
    max-width: 100%;
    font-size: clamp(0.62rem, 1.65vw, 0.76rem);
    /* visible from load on mobile (no “pop-in” with complete) */
    opacity: 1;
  }

  .page-loader--complete .page-loader-motto {
    opacity: 1;
  }

  .page-loader-percent-wrap {
    order: 3;
    justify-content: center;
    transform-origin: 50% 50%;
    min-height: 120px;
    height: auto;
  }

  .page-loader-percent-canvas {
    min-height: 120px;
  }

  .page-loader-tagline {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

/* Background layers */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0);
  background-size: 64px 64px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 125% 95% at 50% 48%, black 0%, black 55%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 2;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-icon--footer {
  width: 34px;
  height: 34px;
}

.logo--footer .logo-text {
  color: var(--text);
}

.logo:hover .logo-text {
  color: var(--accent);
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav a.is-nav-active {
  color: var(--text);
  box-shadow: 0 1px 0 0 var(--accent);
}

.nav a.is-nav-active:hover {
  color: var(--accent);
}

.logo.is-nav-active .logo-text {
  color: var(--accent);
}

.logo.is-nav-active:hover .logo-text {
  color: var(--accent);
}

.header-cta.is-nav-active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 0 2px rgba(62, 232, 168, 0.45),
    0 8px 32px var(--accent-glow);
}

.mobile-nav-links a.is-nav-active {
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-left: -12px;
}

.mobile-nav-links a.is-nav-active:last-child {
  border-bottom: 0;
}

.footer-links a.is-nav-active {
  color: var(--accent);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) {
  transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(4) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links a:last-child {
  border-bottom: 0;
}

.mobile-nav-cta {
  margin-top: 4px;
}

.btn-block {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Scroll-in reveals (mobile only; desktop stays visible) */
@media (max-width: 879px) {
  .reveal-mobile {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.33, 1, 0.32, 1), transform 0.7s cubic-bezier(0.33, 1, 0.32, 1);
    will-change: opacity, transform;
  }

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

  .pillar-grid .reveal-mobile.pillar-card:nth-child(1) {
    transition-delay: 0.04s;
  }

  .pillar-grid .reveal-mobile.pillar-card:nth-child(2) {
    transition-delay: 0.16s;
  }

  .service-grid .reveal-mobile.service-card:nth-child(1) {
    transition-delay: 0.03s;
  }

  .service-grid .reveal-mobile.service-card:nth-child(2) {
    transition-delay: 0.09s;
  }

  .service-grid .reveal-mobile.service-card:nth-child(3) {
    transition-delay: 0.15s;
  }

  .service-grid .reveal-mobile.service-card:nth-child(4) {
    transition-delay: 0.21s;
  }

  .service-grid .reveal-mobile.service-card:nth-child(5) {
    transition-delay: 0.27s;
  }

  .service-grid .reveal-mobile.service-card:nth-child(6) {
    transition-delay: 0.33s;
  }

  .section-head.reveal-mobile {
    transition-delay: 0.02s;
  }

}

@media (min-width: 880px) {
  .reveal-mobile {
    opacity: 1 !important;
  }

  .reveal-mobile:not([data-tilt]) {
    transform: none !important;
    transition: none !important;
  }
}

/* Smooth tilt reset — CSS variables + transition */
[data-tilt] {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --tilt-sx: 1;
  --tilt-sy: 1;
  transform: perspective(900px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry)) scale3d(var(--tilt-sx), var(--tilt-sy), 1);
}

[data-tilt].is-tilting {
  transition: none !important;
}

.pillar-card[data-tilt]:not(.is-tilting) {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.6s cubic-bezier(0.33, 1, 0.32, 1);
}

.service-card[data-tilt]:not(.is-tilting) {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.6s cubic-bezier(0.33, 1, 0.32, 1);
}

.hero-terminal-wrap[data-tilt]:not(.is-tilting) {
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.32, 1);
}

.partner-cta-card[data-tilt]:not(.is-tilting) {
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.32, 1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #04120c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  color: #04120c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 12px 40px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), #fff 50%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.0625rem;
}

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

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 120%;
  max-width: 900px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(62, 232, 168, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.32, 1);
  will-change: transform;
}

/* Terminal */
.hero-terminal-wrap {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 20, 28, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.terminal * {
  user-select: none;
  -webkit-user-select: none;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot--r {
  background: #ff5f57;
}
.term-dot--y {
  background: #febc2e;
}
.term-dot--g {
  background: #28c840;
}

.term-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.terminal-body {
  padding: 20px 18px 24px;
  min-height: 200px;
}

.terminal-pre {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt {
  color: var(--violet);
  user-select: none;
}

.terminal-line {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-caption {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-head {
  margin-bottom: 48px;
  max-width: 560px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Pillars */
.pillar-grid {
  display: grid;
  gap: 24px;
}

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

.pillar-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.pillar-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.pillar-card--accent {
  border-color: rgba(62, 232, 168, 0.25);
  background: linear-gradient(160deg, var(--accent-dim), var(--surface));
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.pillar-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.pillar-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar-tags li {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Services grid */
.service-grid {
  display: grid;
  gap: 16px;
}

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

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transform-style: preserve-3d;
  transition: border-color 0.2s ease, background 0.2s ease;
  will-change: transform;
  cursor: default;
}

.service-card:hover {
  border-color: rgba(62, 232, 168, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
}

.service-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Process */
.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Partner CTA — misma tarjeta en home (#contact-cta) y About */
.partner-cta-section {
  padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 12vw, 140px);
  background: var(--bg);
}

.partner-cta-card {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
  align-items: stretch;
  width: 100%;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 48px);
  border-radius: 22px;
  background-color: #141418;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  will-change: transform;
}

@media (min-width: 720px) {
  .partner-cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}

.partner-cta-card__text {
  min-width: 0;
}

.partner-cta-card__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.partner-cta-card__sub {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #9ca3af;
}

.partner-cta-card__btn {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0c;
  background: #4ade80;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.4),
    0 12px 40px rgba(74, 222, 128, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.partner-cta-card__btn:hover {
  background: #22c55e;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.55),
    0 16px 52px rgba(74, 222, 128, 0.42);
}

.partner-cta-card__btn:active {
  transform: scale(0.98);
}

@media (min-width: 720px) {
  .partner-cta-card__btn {
    align-self: center;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: #020203;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

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

.footer-tagline {
  margin: 16px 0 0;
  max-width: 320px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-social {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.footer-social li {
  margin-bottom: 10px;
}

.footer-social a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-hours {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* SPA panes (home vs about) */
.spa-view {
  position: relative;
  z-index: 1;
}

.spa-view[hidden] {
  display: none !important;
}

/* Contenido principal */
main {
  position: relative;
  z-index: 1;
}

/* Cortina “marea” blanca (About ↔ home) */
body.spa-curtain-active {
  overflow: hidden;
}

.spa-page-curtain {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.spa-page-curtain.is-blocking {
  pointer-events: auto;
}

.spa-page-curtain__wave {
  position: absolute;
  left: -22%;
  width: 144%;
  bottom: 0;
  height: 24vh;
  min-height: 140px;
  transform: translate3d(0, 0, 0);
  /* Marea en gris limpio (menos “flash” que blanco puro) */
  background: linear-gradient(180deg, #c8ccd4 0%, #aeb4bf 38%, #969daa 100%);
  border-radius: 50% 50% 0 0 / 88% 88% 0 0;
  box-shadow:
    0 -24px 80px rgba(120, 128, 142, 0.45),
    0 -60px 140px rgba(90, 98, 112, 0.28);
  will-change: height, border-radius, transform, filter;
}

.spa-page-curtain--cover .spa-page-curtain__wave {
  animation: spaTideCover 0.48s cubic-bezier(0.62, 0.02, 0.28, 1) forwards;
}

@keyframes spaTideCover {
  0% {
    height: 24vh;
    border-radius: 50% 50% 0 0 / 88% 88% 0 0;
    filter: brightness(1);
    transform: translate3d(0, 0, 0);
  }
  55% {
    border-radius: 38% 42% 0 0 / 28% 28% 0 0;
    filter: brightness(1.03);
  }
  100% {
    height: 240vh;
    border-radius: 0;
    filter: brightness(1.06);
    transform: translate3d(0, 0, 0);
  }
}

.spa-page-curtain--reveal .spa-page-curtain__wave {
  animation: spaTideReveal 0.44s cubic-bezier(0.4, 0, 0.22, 1) forwards;
}

@keyframes spaTideReveal {
  0% {
    height: 240vh;
    border-radius: 0;
    filter: brightness(1.06);
    transform: translate3d(0, 0, 0);
  }
  35% {
    border-radius: 28% 32% 0 0 / 12% 12% 0 0;
  }
  100% {
    height: 240vh;
    border-radius: 50% 50% 0 0 / 42% 42% 0 0;
    filter: brightness(1);
    transform: translate3d(0, -118%, 0);
  }
}

/* ——— About page (layout inspirado en marketing oscuro; colores = tokens del sitio) ——— */
.about-page {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.about-kicker {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-section-title {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 720px;
}

.about-hero {
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
}

.about-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  /* Visual ~30% izquierda, texto ~70% derecha (3fr / 7fr) */
  .about-hero-grid {
    grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr);
    gap: 64px;
  }
}

.about-hero-title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-hero-lead {
  margin: 0 0 16px;
  max-width: 560px;
  font-size: 1.0625rem;
  color: var(--muted);
}

.about-hero-note {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 0.9375rem;
  color: rgba(152, 152, 168, 0.92);
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(12, 12, 18, 0.95), rgba(5, 5, 8, 0.98));
  overflow: hidden;
  isolation: isolate;
}

.about-hero-shape {
  position: absolute;
  border: 1px solid rgba(62, 232, 168, 0.22);
  background: linear-gradient(135deg, rgba(62, 232, 168, 0.08), rgba(167, 139, 250, 0.06));
  box-shadow: 0 0 60px rgba(62, 232, 168, 0.06);
}

.about-hero-shape--1 {
  width: 72%;
  height: 48%;
  top: 8%;
  right: -8%;
  transform: rotate(-12deg) skewX(-6deg);
  border-radius: 12px;
  opacity: 0.9;
}

.about-hero-shape--2 {
  width: 55%;
  height: 42%;
  bottom: 12%;
  left: -6%;
  transform: rotate(18deg) skewX(4deg);
  border-radius: 8px;
  opacity: 0.65;
}

.about-hero-shape--3 {
  width: 38%;
  height: 30%;
  top: 38%;
  left: 28%;
  transform: rotate(-8deg);
  border-radius: 4px;
  border-color: rgba(167, 139, 250, 0.35);
  background: linear-gradient(200deg, rgba(167, 139, 250, 0.12), transparent);
  opacity: 0.85;
}

.about-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 18% 22%, rgba(62, 232, 168, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 78%, rgba(167, 139, 250, 0.1), transparent 50%);
}

.about-stats {
  padding-top: 0;
}

.about-stats-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.about-stat-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-stat-num {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.about-stat-plus {
  margin-left: 2px;
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 700;
}

.about-stat-label {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.about-stat-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-pillars {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .about-pillars {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.about-pillar-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.about-pillar-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-story-inner {
  max-width: 800px;
}

.about-story-text {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
}

.about-experts-intro {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.about-expert-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.about-expert-bars li {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  align-items: center;
  gap: 16px;
}

@media (max-width: 480px) {
  .about-expert-bars li {
    grid-template-columns: 80px 1fr 28px;
    gap: 10px;
  }
}

.about-expert-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.about-expert-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.about-expert-fill {
  display: block;
  height: 100%;
  width: var(--bar, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(167, 139, 250, 0.85));
  box-shadow: 0 0 20px rgba(62, 232, 168, 0.25);
}

.about-expert-num {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.about-work-lead {
  margin: 0 0 24px;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.about-logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .about-logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(244, 244, 248, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.about-logo-tile:hover {
  border-color: rgba(62, 232, 168, 0.35);
  color: var(--text);
  box-shadow: 0 0 24px rgba(62, 232, 168, 0.08);
}

/* About — members (estética clara, solo nombre + rol) */
.about-members {
  padding: clamp(64px, 10vw, 120px) 0;
  background: #d8d9df;
  color: #0c0c0f;
}

.about-members .container {
  max-width: 1120px;
}

.about-members-head {
  display: grid;
  gap: 24px 48px;
  margin-bottom: clamp(48px, 8vw, 72px);
  align-items: end;
}

@media (min-width: 720px) {
  .about-members-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 32px 64px;
  }
}

.about-members-kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b76;
}

.about-members-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #08080a;
}

.about-members-intro {
  margin: 0;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  color: #5a5a64;
  max-width: 36ch;
}

@media (min-width: 720px) {
  .about-members-intro {
    justify-self: end;
    text-align: right;
  }
}

.about-members-grid {
  display: grid;
  gap: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 32px);
  grid-template-columns: 1fr;
}

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

@media (min-width: 960px) {
  .about-members-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 28px;
  }
}

.about-member-card {
  margin: 0;
}

.about-member-photo {
  aspect-ratio: 4 / 5;
  margin: 0 0 20px;
  border-radius: 0;
  overflow: hidden;
  background: #caccd4;
  border: 1px solid #b8bac4;
}

.about-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-member-name {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #08080a;
}

.about-member-role {
  margin: 0;
  font-size: 0.875rem;
  color: #6f6f7a;
  line-height: 1.4;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spa-page-curtain--cover .spa-page-curtain__wave,
  .spa-page-curtain--reveal .spa-page-curtain__wave {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
  .badge-dot,
  .cursor {
    animation: none;
  }
  .process-step {
    opacity: 1;
    transform: none;
  }
  .page-loader {
    transition: none !important;
  }
  .page-loader-percent-wrap--breathe {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .reveal-mobile {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-tilt] {
    transition: none !important;
  }
  .hero-glow {
    transition: none !important;
  }
}
