/* =========================================================
   Núcleo 22 — Design Tokens (extraídos del prototipo Figma)
   ========================================================= */
:root {
  --bg-dark: #0a0e18;
  --bg-light: #f8f9fc;
  --surface-white: #ffffff;
  --surface-light-cta: #f3f5fc;

  --text-on-dark: #f3f5fc;
  --text-muted-dark: #9ca9c0;
  --text-on-light: #101828;
  --text-muted-light: #5a667b;

  --border-dark: #283247;
  --border-light: #dce1ee;

  --font-serif: "Judson", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1440px;
  --container-pad: 80px;
  --radius-sm: 4px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Base & Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-on-light);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

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

/* =========================================================
   Views (Landing / Contacto / Confirmación)
   ========================================================= */
.view {
  display: none;
}

.view--active {
  display: block;
  animation: viewFade 240ms ease-out;
}

@keyframes viewFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================================================
   Shared Layout & UI Primitives
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.divider {
  width: 100%;
  height: 1px;
}

.divider--dark {
  background-color: var(--border-dark);
}

.divider--light {
  background-color: var(--border-light);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--text-muted-dark);
}

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

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark--nav {
  width: 48px;
  height: 48px;
}

.brand-mark--footer {
  width: 52px;
  height: 52px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-on-dark);
  line-height: 1;
  white-space: nowrap;
}

.brand-name--nav {
  font-size: 30.36px;
  letter-spacing: -0.91px;
}

.brand-name--footer {
  font-size: 33px;
  letter-spacing: -0.99px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 56px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.55;
  transition: background-color var(--transition), border-color var(--transition),
    transform var(--transition), color var(--transition);
}

.btn:focus-visible,
.nav-link:focus-visible,
.text-cta:focus-visible,
.footer-top-btn:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--text-muted-dark);
  outline-offset: 3px;
}

.btn--light {
  background-color: var(--surface-light-cta);
  color: var(--text-on-light);
}

.btn--light:hover {
  background-color: var(--surface-white);
  transform: translateY(-1px);
}

.btn--dark {
  background-color: var(--text-on-light);
  color: var(--text-on-dark);
}

.btn--dark:hover {
  background-color: #1a2438;
  transform: translateY(-1px);
}

.btn--outline-dark {
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  background-color: transparent;
}

.btn--outline-dark:hover {
  border-color: #4b5a78;
  background-color: rgba(243, 245, 252, 0.04);
  transform: translateY(-1px);
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -1px);
}

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

/* =========================================================
   Hero Stage & Particle Canvas
   ========================================================= */
.hero-stage {
  position: relative;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-stage > header,
.hero-stage > section,
.approach-band > .container,
.closing-stage > section,
.closing-stage > footer,
.contact-sidebar > :not(.particle-canvas),
.confirm-layout > header,
.confirm-layout > main,
.confirm-layout > footer {
  position: relative;
  z-index: 1;
}

/* =========================================================
   Navegación (14:3)
   ========================================================= */
.nav-band {
  background-color: transparent;
}

.nav-inner {
  height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 54px;
  margin-left: auto;
  margin-right: 78px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-on-dark);
  opacity: 0.92;
  transition: opacity var(--transition);
}

.nav-link:hover {
  opacity: 1;
}

.nav-cta {
  width: 200px;
}

/* =========================================================
   Hero (14:4)
   ========================================================= */
.hero-band {
  background-color: transparent;
  padding: 52px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 444px;
  gap: 40px;
  align-items: start;
}

.hero-title {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 1.04;
  letter-spacing: -1.92px;
  color: var(--text-on-dark);
}

.hero-subtitle {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: -0.48px;
  color: var(--text-on-dark);
}

.hero-description {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted-dark);
  max-width: 494px;
  text-align: justify;
  hyphens: auto;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-btn-primary {
  min-width: 260px;
}

.hero-btn-secondary {
  min-width: 218px;
}

.hero-visual {
  padding-top: 33px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  width: 444px;
  height: 444px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-visual-meta {
  width: 380px;
  margin-top: -11px;
}

.hero-visual-divider {
  margin-bottom: 21px;
}

.hero-caption {
  padding-left: 14px;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 1.2px;
  color: var(--text-muted-dark);
}

/* =========================================================
   Especialidades (14:5)
   ========================================================= */
.specialties-band {
  background-color: transparent;
}

.specialties-inner {
  min-height: 109px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
}

.specialties-label {
  letter-spacing: 0.88px;
}

.specialties-quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -0.52px;
  color: var(--text-on-dark);
  padding-left: 30px;
}

/* =========================================================
   Section Headers (Servicios / Proceso)
   ========================================================= */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 480px);
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.section-title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 55px;
  line-height: 1.06;
  letter-spacing: -1.1px;
}

.section-title--light {
  color: var(--text-on-light);
}

.section-title--dark {
  color: var(--text-on-dark);
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -1.08px;
  margin-top: 0;
}

.section-intro {
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: 14px;
  text-align: justify;
  hyphens: auto;
}

.section-intro--light {
  color: var(--text-muted-light);
}

/* =========================================================
   01 / Servicios (14:6)
   ========================================================= */
.services-band {
  background-color: var(--bg-light);
  padding: 72px 0 84px;
}

.services-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 316px;
}

.card-index {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted-light);
}

.service-title {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.64px;
  color: var(--text-on-light);
}

.service-desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted-light);
  text-align: justify;
  hyphens: auto;
}

.service-tags {
  margin-top: auto;
  padding-top: 34px;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.27px;
  color: var(--text-muted-light);
}

.text-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-on-light);
  width: fit-content;
  transition: opacity var(--transition), transform var(--transition);
}

.text-cta:hover {
  opacity: 0.7;
  transform: translateX(2px);
}

/* =========================================================
   02 / Nuestro enfoque (14:7)
   ========================================================= */
.approach-band {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding: 64px 0 56px;
}

.approach-grid {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.approach-logo {
  margin-top: 58px;
  margin-left: -8px;
  width: 174px;
  height: 174px;
  object-fit: contain;
}

.approach-desc {
  margin-top: 38px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted-dark);
  text-align: justify;
  hyphens: auto;
}

.approach-divider {
  margin-top: 42px;
}

.approach-pillars {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* =========================================================
   03 / Cómo trabajamos (14:8)
   ========================================================= */
.process-band {
  background-color: var(--bg-light);
  padding: 70px 0 68px;
}

.process-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-step {
  display: flex;
  flex-direction: column;
}

.process-index {
  margin-top: 19px;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 1.1px;
  color: var(--text-muted-light);
}

.process-title {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.58px;
  color: var(--text-on-light);
}

.process-desc {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted-light);
  text-align: justify;
  hyphens: auto;
}

/* =========================================================
   Tecnologías (14:9)
   ========================================================= */
.tech-band {
  background-color: var(--bg-light);
}

.tech-content {
  padding: 46px 0 54px;
}

.tech-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.58px;
  color: var(--text-on-light);
}

.tech-list {
  margin-top: 38px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 28px;
  column-gap: 24px;
}

.tech-list li {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.48px;
  color: var(--text-muted-light);
}

/* =========================================================
   04 / Preguntas frecuentes (14:10)
   ========================================================= */
.faq-band {
  background-color: var(--bg-light);
  padding-bottom: 64px;
}

.faq-grid {
  padding-top: 62px;
  display: grid;
  grid-template-columns: 430px minmax(0, 734px);
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}

.faq-title {
  margin-top: 26px;
}

.faq-intro {
  margin-top: 38px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted-light);
}

.faq-list {
  border-top: 1px solid var(--border-light);
}

.faq-item {
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.44px;
  color: var(--text-on-light);
}

.faq-answer {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted-light);
  text-align: justify;
  hyphens: auto;
}

/* =========================================================
   Cierre oscuro: Hablemos CTA (14:11) + Pie de página (14:12)
   ========================================================= */
.closing-stage {
  position: relative;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.cta-band {
  background-color: transparent;
  padding: 58px 0 64px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-title {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--text-on-dark);
}

.cta-subtitle {
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted-dark);
}

.cta-btn {
  min-width: 280px;
  flex-shrink: 0;
}

/* =========================================================
   Pie de página (14:12)
   ========================================================= */
.footer-band {
  background-color: transparent;
  padding-bottom: 36px;
}

.footer-inner {
  padding-top: 35px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-tagline {
  margin-top: 22px;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 1px;
  color: var(--text-muted-dark);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-top-btn {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-on-dark);
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.footer-top-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-signature {
  margin-top: 40px;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.45px;
  color: var(--text-muted-dark);
}

/* =========================================================
   VISTA 2: CONTACTO (14:13)
   ========================================================= */
.contact-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  background-color: var(--bg-light);
}

.contact-sidebar {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding: 48px 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.contact-sidebar-body {
  margin: 72px 0 48px;
}

.contact-sidebar-title {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -1.08px;
  color: var(--text-on-dark);
}

.contact-sidebar-desc {
  margin-top: 44px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted-dark);
  text-align: justify;
  hyphens: auto;
}

.contact-sidebar-logo {
  margin-top: 56px;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.contact-sidebar-motto {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.4px;
  color: var(--text-on-dark);
}

.contact-main {
  padding: 52px 80px 64px;
  display: flex;
  flex-direction: column;
}

.contact-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  width: 100%;
}

.back-link {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted-light);
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text-on-light);
}

.demo-badge {
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.6px;
  color: var(--text-muted-light);
}

.demo-badge--dark {
  color: var(--text-muted-dark);
}

.contact-form-wrap {
  margin-top: 56px;
  max-width: 720px;
  width: 100%;
}

.contact-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.96px;
  color: var(--text-on-light);
}

.contact-subtitle {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted-light);
}

.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted-light);
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 17px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-on-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input {
  height: 60px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--text-on-light);
  box-shadow: 0 0 0 3px rgba(16, 24, 40, 0.08);
}

.contact-submit {
  width: 100%;
  margin-top: 8px;
}

.contact-note {
  margin-top: -8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted-light);
}

/* =========================================================
   VISTA 3: CONFIRMACIÓN DE EJEMPLO (14:14)
   ========================================================= */
.confirm-layout {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.confirm-topbar {
  padding-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.confirm-main {
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.confirm-logo {
  width: 168px;
  height: 168px;
  object-fit: contain;
}

.confirm-title {
  margin-top: 35px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 80px;
  line-height: 1.08;
  letter-spacing: -1.6px;
  color: var(--text-on-dark);
}

.confirm-desc {
  margin-top: 34px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted-dark);
  max-width: 680px;
}

.confirm-btn {
  margin-top: 56px;
  width: 320px;
}

.confirm-footer {
  padding-bottom: 44px;
}

.confirm-signature {
  margin-top: 30px;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.8px;
  color: var(--text-muted-dark);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1200px) {
  :root {
    --container-pad: 40px;
  }

  .nav-links {
    gap: 32px;
    margin-right: 32px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .hero-title {
    font-size: 74px;
  }

  .hero-logo-wrap {
    width: 360px;
    height: 360px;
  }

  .hero-visual-meta {
    width: 320px;
  }

  .approach-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
  }

  .faq-grid {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: 420px minmax(0, 1fr);
  }

  .contact-sidebar {
    padding: 40px;
  }

  .contact-main {
    padding: 40px;
  }
}

@media (max-width: 960px) {
  :root {
    --container-pad: 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    width: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 56px;
    letter-spacing: -1.1px;
  }

  .hero-visual {
    padding-top: 16px;
  }

  .hero-logo-wrap {
    width: 280px;
    height: 280px;
  }

  .hero-visual-meta {
    width: 100%;
    max-width: 320px;
    margin-top: 8px;
  }

  .specialties-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .specialties-quote {
    padding-left: 0;
  }

  .section-header,
  .services-grid,
  .approach-grid,
  .process-grid,
  .faq-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-title,
  .section-title--dark {
    font-size: 40px;
  }

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

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-title {
    font-size: 42px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    align-items: flex-start;
  }

  .contact-sidebar {
    min-height: auto;
  }

  .form-row-two {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .confirm-title {
    font-size: 48px;
  }
}
