/* ==========================================================================
   GOCO Systems — Landing page
   Identidad: Manual GOCO Systems (Pantone 272 C, 325 C, 8C Cool Gray, 533 C)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paleta oficial */
  --brand-purple: #7473c0;   /* Pantone 272 C */
  --brand-teal: #62cbc9;     /* Pantone 325 C */
  --brand-gray: #898a8d;     /* Pantone 8C Cool Gray */
  --brand-navy: #202945;     /* Pantone 533 C */

  /* Derivados para accesibilidad (texto sobre fondos claros) */
  --purple-ink: #5b5aa6;
  --teal-ink: #237d7b;
  --navy-950: #121829;
  --navy-900: #171e35;
  --navy-800: #1b233d;
  --navy-700: #283255;

  /* Degradado oficial (teal → purple, −135° en el manual) */
  --brand-gradient: linear-gradient(135deg, #62cbc9 0%, #62cbc9 23%, #82b2ca 40%, #85a1c8 52%, #818ec5 63%, #7473c0 80%, #7473c0 100%);
  --brand-gradient-h: linear-gradient(90deg, #62cbc9 0%, #62cbc9 23%, #85a1c8 52%, #7473c0 80%, #7473c0 100%);

  /* Superficies */
  --surface: #ffffff;
  --surface-alt: #f6f6fb;
  --surface-teal: #eff9f9;
  --line: #e3e4ee;
  --line-strong: #cfd1e0;

  /* Texto */
  --text-strong: #202945;
  --text: #474a57;
  --text-muted: #5d5f66;
  --on-dark: #ffffff;
  --on-dark-muted: #b7b9c6;
  --on-dark-soft: #9fa3b8;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* Tipografía — la tipografía institucional es Karbon Medium.
     Al contar con licencia web de Karbon, agréguela con @font-face
     y colóquela al inicio de --font-sans. */
  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Escala */
  --fs-hero: clamp(2.375rem, 1.6rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 3rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(32, 41, 69, 0.06), 0 2px 8px rgba(32, 41, 69, 0.05);
  --shadow: 0 2px 6px rgba(32, 41, 69, 0.05), 0 12px 32px rgba(32, 41, 69, 0.08);
  --shadow-lg: 0 24px 60px rgba(18, 24, 41, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--brand-teal);
}

::selection {
  background: rgba(116, 115, 192, 0.25);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--brand-teal);
  color: var(--brand-navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   3. Componentes comunes
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark,
.on-dark {
  background: var(--brand-navy);
  color: var(--on-dark-muted);
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.on-dark h2,
.on-dark h3 {
  color: var(--on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.eyebrow::before {
  content: "";
  flex: none;
  margin-top: calc(0.825em - 1px);
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient-h);
}

.section--dark .eyebrow,
.on-dark .eyebrow {
  color: var(--brand-teal);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head .lead {
  margin-top: 1.25rem;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
}

.section--dark .lead,
.on-dark .lead {
  color: var(--on-dark-muted);
}

.gradient-text {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Botones */
.btn {
  --btn-bg: var(--brand-navy);
  --btn-fg: var(--on-dark);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.9375rem;
  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), border-color 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

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

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

.btn--primary {
  --btn-bg: var(--brand-teal);
  --btn-fg: var(--brand-navy);
  box-shadow: 0 8px 24px rgba(98, 203, 201, 0.25);
}

.btn--primary:hover {
  --btn-bg: #74d3d1;
  box-shadow: 0 10px 30px rgba(98, 203, 201, 0.35);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-border: rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.5);
}

.btn--dark {
  --btn-bg: var(--brand-navy);
  --btn-fg: var(--on-dark);
}

.btn--dark:hover {
  --btn-bg: var(--navy-700);
  box-shadow: var(--shadow);
}

.btn--block {
  width: 100%;
}

/* Iconos */
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--purple-ink);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-gradient) border-box;
  border: 1px solid transparent;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.icon--dark {
  color: var(--brand-teal);
  background:
    linear-gradient(var(--navy-800), var(--navy-800)) padding-box,
    var(--brand-gradient) border-box;
}

/* --------------------------------------------------------------------------
   4. Encabezado
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}

/* El fondo vive en un pseudoelemento: un backdrop-filter en el propio
   encabezado lo convertiría en el bloque contenedor del menú móvil (fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(23, 30, 53, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-scrolled::before,
.site-header.is-open::before,
html:not(.js) .site-header::before {
  opacity: 1;
}

.site-header.is-open::before {
  background: var(--navy-900);
  border-bottom-color: transparent;
}

/* Sin JavaScript el botón de menú no tendría función */
html:not(.js) .nav-toggle {
  display: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-gradient-h);
  transform: scaleX(var(--sp, 0));
  transform-origin: left center;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: 128px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.875rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--on-dark);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
}

.nav__link,
.nav__cta {
  white-space: nowrap;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Escritorio angosto: menú compacto para que los cinco enlaces quepan en una línea */
@media (min-width: 1024px) and (max-width: 1100px) {
  .nav {
    gap: 1rem;
  }

  .nav__list {
    gap: 0;
  }

  .nav__link {
    padding-inline: 0.625rem;
  }

  .nav__cta {
    padding-inline: 1.125rem;
  }

  .nav__actions {
    gap: 0.5rem;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 40px;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-switch:hover {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.32);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--navy-900);
    border-top: 1px solid var(--line-dark);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 1rem 0.25rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    padding-left: 0.875rem;
    box-shadow: inset 3px 0 0 var(--brand-teal);
  }

  .nav__cta {
    min-height: 52px;
    flex: 1;
  }

  .nav__actions {
    gap: 0.75rem;
  }

  .lang-switch {
    min-height: 52px;
    padding-inline: 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem));
  padding-bottom: clamp(4rem, 3rem + 5vw, 7.5rem);
  background: var(--brand-navy);
  color: var(--on-dark-muted);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hero__bg::before {
  width: 780px;
  height: 780px;
  top: -360px;
  left: -260px;
  background: radial-gradient(circle, rgba(98, 203, 201, 0.26) 0%, rgba(98, 203, 201, 0) 65%);
}

.hero__bg::after {
  width: 900px;
  height: 900px;
  right: -320px;
  bottom: -480px;
  background: radial-gradient(circle, rgba(116, 115, 192, 0.36) 0%, rgba(116, 115, 192, 0) 65%);
}

.hero__grid {
  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: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

.hero__lead {
  max-width: 600px;
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-dark);
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand-teal);
}

/* Visual del hero: anillos + tablero de entrega */
.hero__visual {
  position: relative;
  min-height: 460px;
  translate: 0 calc(var(--hy, 0) * 1px);
}

.hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.hero__rings circle {
  stroke-width: 1;
}

.hero__rings .ring-spin {
  transform-box: view-box;
  transform-origin: center;
  animation: ring-spin 4.5s var(--ease) both;
}

.hero__rings .ring-spin--rev {
  animation-name: ring-spin-rev;
}

@keyframes ring-spin {
  from {
    transform: rotate(-40deg);
  }
}

@keyframes ring-spin-rev {
  from {
    transform: rotate(40deg);
  }
}

.console {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  background: rgba(23, 30, 53, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-gradient-h);
}

.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--on-dark-soft);
}

.console__dots {
  display: inline-flex;
  gap: 6px;
}

.console__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.console__body {
  padding: 1.25rem;
}

.console__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.9375rem;
}

.console__title small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-teal);
}

.checks {
  display: grid;
  gap: 0.5rem;
}

.check {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  color: var(--on-dark);
}

.check__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(98, 203, 201, 0.14);
  color: var(--brand-teal);
}

.check__icon svg {
  width: 16px;
  height: 16px;
}

.check__state {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--brand-teal);
}

.check--live .check__icon {
  background: rgba(116, 115, 192, 0.2);
  color: #a9aad9;
}

.check--live .check__state {
  color: #a9aad9;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a9aad9;
  box-shadow: 0 0 0 0 rgba(169, 170, 217, 0.6);
  animation: pulse 2s var(--ease) 0.6s 2;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(169, 170, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 170, 217, 0); }
}

.console__foot {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.console__meter {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--on-dark-soft);
}

.console__meter strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--on-dark);
}

.bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  border-radius: inherit;
  background: var(--brand-gradient-h);
  transform-origin: left;
  animation: bar-in 1.6s var(--ease) 0.4s both;
}

@keyframes bar-in {
  from { transform: scaleX(0); }
}

.console__tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.console__tag svg {
  width: 18px;
  height: 18px;
  color: var(--purple-ink);
}

.console__tag--a {
  top: 6px;
  left: -8px;
}

.console__tag--b {
  right: -12px;
  bottom: -30px;
}

/* --------------------------------------------------------------------------
   5b. Páginas internas, enlaces y bloques resumidos de la portada
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2.75rem, 2rem + 3.5vw, 5rem));
  padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--brand-navy);
  color: var(--on-dark-muted);
}

.page-hero__title {
  max-width: 880px;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

.page-hero__lead {
  max-width: 680px;
  margin-top: 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
}

.breadcrumb li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: 0.5rem;
  color: var(--on-dark-soft);
}

.breadcrumb a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand-teal);
}

.breadcrumb [aria-current="page"] {
  font-weight: 500;
  color: var(--on-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--purple-ink);
  transition: color 0.2s var(--ease);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.section--dark .link-arrow,
.on-dark .link-arrow {
  color: var(--brand-teal);
}

.section-foot {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section-foot--center {
  text-align: center;
}

.section-foot--pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

/* Bloque dividido: texto a la izquierda, puntos o tarjeta a la derecha */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}

.split__title {
  font-size: var(--fs-h2);
}

.split__text {
  margin-top: 1.25rem;
}

.split__link {
  margin-top: 1.5rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.point {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.point .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.point .icon svg {
  width: 20px;
  height: 20px;
}

.point h3 {
  margin: 1rem 0 0.375rem;
  font-size: 1.0625rem;
}

.point p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Portada: servicios en tarjetas enlazadas */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cards > li {
  display: flex;
}

.card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card-link::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-link:hover::before,
.card-link:focus-visible::before {
  opacity: 1;
}

.card-link h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.125rem;
}

.card-link p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card-link__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--purple-ink);
}

.card-link__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.card-link:hover .card-link__more svg {
  transform: translateX(3px);
}

/* Portada: IA resumida */
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.ai-chip {
  padding: 0.4375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-dark);
}

.check-list {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark);
}

.check-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  color: var(--brand-teal);
}

/* Promesa resumida */
.promise--compact .promise__text {
  margin-top: 1.5rem;
}

/* Bloque de contacto al final de las páginas internas */
.cta-band {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--surface);
}

.section:not(.section--alt):not(.section--dark) + .cta-band {
  padding-top: 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--brand-navy);
  color: var(--on-dark-muted);
}

.cta-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(98, 203, 201, 0.22), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(116, 115, 192, 0.32), transparent 50%);
}

.cta-card h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  color: var(--on-dark);
}

.cta-card p {
  max-width: 560px;
  margin-top: 0.75rem;
}

.cta-card .btn {
  flex: none;
}

/* --------------------------------------------------------------------------
   5c. Bienvenida: escena al inicio de la portada, controlada por el scroll.
   main.js escribe --p (0 → 1): el titular se ilumina solo al cargar y el resto
   (trazos, logo, controles) avanza con el scroll, solo hacia adelante. Al
   terminar, la escena se queda en su estado final como una sección normal de
   pantalla completa (.is-settled) y no vuelve a animarse en la misma sesión
   (.intro-done desde la primera pintura).
   -------------------------------------------------------------------------- */
.manifesto {
  --p: 0;
  --t1: clamp(0, var(--p) / 0.3, 1);
  --t2: clamp(0, (var(--p) - 0.26) / 0.26, 1);
  --t3: clamp(0, (var(--p) - 0.5) / 0.16, 1);
  --t4: clamp(0, (var(--p) - 0.64) / 0.24, 1);
  /* Versiones suavizadas (smoothstep: aceleran al inicio y frenan al final) */
  --e2: calc(var(--t2) * var(--t2) * (3 - 2 * var(--t2)));
  --e3: calc(var(--t3) * var(--t3) * (3 - 2 * var(--t3)));
  position: relative;
  height: 250vh;
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.manifesto.is-settled,
.intro-done .manifesto {
  --p: 1 !important;
  height: auto;
}

.manifesto__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: calc(clamp(0.75rem, 2.5vh, 1.75rem) + 2.5rem);
}

.manifesto__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(calc(0.7 + 0.3 * var(--e3)));
  background: radial-gradient(circle, rgba(116, 115, 192, 0.24) 0%, rgba(98, 203, 201, 0.08) 40%, transparent 65%);
  opacity: calc(0.4 + 0.6 * var(--e2));
  pointer-events: none;
}

.manifesto__grid {
  position: absolute;
  z-index: -1;
  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: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 25%, transparent 80%);
  opacity: calc(0.5 + 0.5 * var(--e2));
}

.manifesto__inner {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 0.5rem + 1.6vh, 2rem);
  text-align: center;
}

.manifesto__eyebrow {
  margin-bottom: 0;
}

.manifesto__title {
  max-width: 18ch;
  text-wrap: balance;
  font-size: min(clamp(2.125rem, 1.2rem + 3.8vw, 4.75rem), 8.5vh);
  font-size: min(clamp(2.125rem, 1.2rem + 3.8vw, 4.75rem), 8.5svh);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}

.manifesto__title .w {
  --k: clamp(0, var(--t1) * (var(--n) + 2) - var(--i), 1);
  opacity: calc(0.16 + 0.84 * var(--k) * var(--k) * (3 - 2 * var(--k)));
  transition: opacity 0.45s var(--ease);
}

.manifesto__drawing {
  width: min(100%, 720px, 87vh);
  width: min(100%, 720px, 87svh);
  height: auto;
  overflow: visible;
}

.construct {
  opacity: calc(1 - 0.72 * var(--e3));
}

.construct path {
  stroke-dasharray: 1;
  --k: clamp(0, var(--t2) * 1.8 - var(--d, 0), 1);
  stroke-dashoffset: calc(1 - var(--k) * var(--k) * (3 - 2 * var(--k)));
  stroke-linecap: round;
}

.c-outer {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.65;
}

.c-inner {
  stroke: var(--brand-teal);
  stroke-width: 1.65;
}

.c-guide {
  stroke: rgba(169, 170, 217, 0.6);
  stroke-width: 1.3;
}

.c-marks {
  opacity: clamp(0, var(--t2) * 2 - 1, 1);
}

.c-mark {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

.manifesto__logo {
  opacity: var(--e3);
  transform: scale(calc(0.96 + 0.04 * var(--e3)));
  transform-box: fill-box;
  transform-origin: center;
}

.manifesto__captions {
  display: grid;
  max-width: 640px;
}

.manifesto__caption {
  grid-area: 1 / 1;
  align-self: center;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.manifesto__caption--1 {
  opacity: calc(clamp(0, var(--t2) * 3, 1) * (1 - clamp(0, var(--t4) * 4, 1)));
}

.manifesto__caption--2 {
  opacity: clamp(0, var(--t4) * 4 - 1.2, 1);
  color: var(--on-dark);
  font-weight: 500;
}

.manifesto__checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 0.75rem;
}

.manifesto__checks li {
  --k0: clamp(0, var(--t4) * 5 - var(--i), 1);
  --k: calc(var(--k0) * var(--k0) * (3 - 2 * var(--k0)));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, calc(0.08 + 0.14 * var(--k)));
  background: rgba(255, 255, 255, calc(0.02 + 0.04 * var(--k)));
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-dark);
  opacity: calc(0.3 + 0.7 * var(--k));
}

.manifesto__tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(98, 203, 201, calc(0.35 + 0.65 * var(--k)));
  background: rgba(98, 203, 201, calc(0.9 * var(--k)));
  color: var(--brand-navy);
}

.manifesto__tick svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  opacity: var(--k);
}

.manifesto__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.75rem, 2.5vh, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
}

.manifesto.is-late .manifesto__foot {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.manifesto.is-late .manifesto__foot:focus-within {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.manifesto.is-settled .manifesto__stage,
.intro-done .manifesto__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.manifesto.is-settled .manifesto__foot,
.intro-done .manifesto__foot {
  opacity: 1;
  visibility: visible;
}

.manifesto.is-settled .manifesto__skip,
.intro-done .manifesto__skip {
  display: none;
}

.manifesto__hint {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark-soft);
}

.manifesto__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-teal);
  border-bottom: 2px solid var(--brand-teal);
  transform: rotate(45deg);
  animation: hint-bob 1.6s ease-in-out infinite;
}

@keyframes hint-bob {
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}

.manifesto__skip {
  white-space: nowrap;
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.manifesto__skip:hover {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Sin JavaScript o con movimiento reducido: la escena se muestra completa y sin fijarse */
html:not(.js) .manifesto {
  --p: 1 !important;
  height: auto;
}

html:not(.js) .manifesto__stage {
  position: relative;
  height: auto;
  padding-block: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 3rem)) var(--section-y);
}

html:not(.js) .manifesto__captions {
  gap: 0.5rem;
}

html:not(.js) .manifesto__caption {
  grid-area: auto;
}

html:not(.js) .manifesto__caption--1 {
  opacity: 1;
}

html:not(.js) .manifesto__foot {
  display: none;
}

/* --------------------------------------------------------------------------
   6. Nosotros
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}

.about__grid .section-head {
  margin-bottom: 0;
}

.about__body p + p {
  margin-top: 1.25rem;
}

.about__body p:first-child {
  font-size: var(--fs-lead);
  color: var(--text-strong);
  line-height: 1.6;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.highlight {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.highlight h3 {
  font-size: 1rem;
  margin: 0.875rem 0 0.375rem;
}

.highlight p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.55;
}

.highlight .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.highlight .icon svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 961px) and (max-width: 1199px) {
  .highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 1rem;
  }

  .highlight .icon {
    grid-row: span 2;
  }

  .highlight h3 {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   7. Experiencia internacional
   -------------------------------------------------------------------------- */
.experience {
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.experience__deco {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -240px;
  width: 760px;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.experience__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}

.experience__layout .section-head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  margin-bottom: 0;
}

.quote {
  position: relative;
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 500;
}

.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 3px;
  background: var(--brand-gradient);
}

.pillars {
  display: grid;
  gap: 1rem;
  counter-reset: pillar;
}

.pillar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.pillar:hover {
  border-color: rgba(98, 203, 201, 0.35);
  transform: translateX(4px);
}

.pillar__num {
  counter-increment: pillar;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand-teal);
  padding-top: 0.2rem;
}

.pillar__num::before {
  content: counter(pillar, decimal-leading-zero);
}

.pillar h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Servicios
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service:hover::before {
  opacity: 1;
}

.service h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.service p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service ul {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.service li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-strong);
}

.service li::before {
  content: "";
  flex: none;
  margin-top: calc(0.825em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

/* --------------------------------------------------------------------------
   8b. Inteligencia artificial
   -------------------------------------------------------------------------- */
.ai {
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.ai::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -440px;
  left: 50%;
  width: 960px;
  height: 960px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(116, 115, 192, 0.3) 0%, rgba(98, 203, 201, 0.08) 45%, transparent 65%);
  pointer-events: none;
}

.ai::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.ai__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1101px) and (max-width: 1199px) {
  .ai__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.ai-panel > p:not(.ai-panel__label) {
  max-width: 62ch;
}

.ai-panel {
  position: relative;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
}

.ai-panel--dev {
  background: linear-gradient(180deg, rgba(116, 115, 192, 0.16), rgba(98, 203, 201, 0.05));
  border-color: transparent;
}

.ai-panel--dev::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.ai-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(98, 203, 201, 0.1);
  color: var(--brand-teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-panel__label svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ai-panel h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}

/* --------------------------------------------------------------------------
   8c. Productos (LetIn)
   -------------------------------------------------------------------------- */
/* Portada: tarjeta del producto */
.product-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--brand-navy) 45%, var(--navy-900) 100%);
  box-shadow: var(--shadow-lg);
}

/* Anillos de construcción de la marca, como en el resto del sitio */
.product-card::before,
.product-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.product-card::before {
  top: -150px;
  right: -110px;
  width: 340px;
  height: 324px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle, rgba(116, 115, 192, 0.28) 0%, transparent 70%);
}

.product-card::after {
  top: -62px;
  right: -22px;
  width: 164px;
  height: 148px;
  border: 1px solid rgba(98, 203, 201, 0.22);
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-brand__mark {
  flex: none;
  width: 40px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 128, 255, 0.35));
}

.product-brand__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.product-brand__name {
  margin-top: 0.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.product-brand__tagline {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

.product-card__apps {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
}

.product-card__apps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
}

.product-card__apps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-card__apps .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--brand-teal);
  background:
    linear-gradient(var(--navy-800), var(--navy-800)) padding-box,
    var(--brand-gradient) border-box;
}

.product-card__apps .icon svg {
  width: 18px;
  height: 18px;
}

.product-card__app {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-dark);
}

.product-card__platform {
  font-size: 0.8125rem;
  text-align: right;
  color: var(--on-dark-soft);
}

/* Página de productos: presentación y ficha */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}

.product__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-teal);
  color: var(--teal-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product__label svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.product__title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.75rem 0 1.5rem;
}

.product__mark {
  flex: none;
  width: 44px;
  height: auto;
}

.product__title h2 {
  font-size: var(--fs-h2);
  line-height: 1;
}

.product__tagline {
  margin-top: 0.5rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--purple-ink);
}

.product__intro .lead {
  max-width: 60ch;
}

.spec {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.spec__title {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.spec__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.spec__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec dt {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.spec dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-strong);
}

/* Aplicaciones por rol: el portal (centro de la operación) ocupa dos columnas */
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.app--hub {
  grid-column: span 2;
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-gradient) border-box;
}

.app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app__platform {
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-strong);
}

.app h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.125rem;
}

.app__who {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--teal-ink);
}

.app__who + p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.app--hub .app__who + p {
  max-width: 62ch;
}

/* Recorrido en cuatro pasos (calidad con IA, método de IA, reconocimiento facial de LetIn) */
.flow-section {
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.flow-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -380px;
  right: -260px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 203, 201, 0.14) 0%, rgba(116, 115, 192, 0.08) 40%, transparent 68%);
  pointer-events: none;
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

/* Línea que une los pasos, detrás de los íconos */
.flow::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: calc((100% - 3 * 1.75rem) / 4 - 24px); /* termina en el centro del último ícono */
  height: 1px;
  background: linear-gradient(90deg, rgba(98, 203, 201, 0.55), rgba(116, 115, 192, 0.55));
}

.flow__step {
  position: relative;
}

.flow__num {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--brand-teal);
}

.flow__step h3 {
  margin: 0.375rem 0 0.5rem;
  font-size: 1.125rem;
}

.flow__step p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.flow__note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 760px;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: 1.125rem 1.375rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  color: var(--on-dark);
}

.flow__note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
  color: var(--brand-teal);
}

/* Rejilla de tarjetas con ícono (soluciones de IA, arquitectura de LetIn) */
.point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.point-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.point-card .icon {
  width: 44px;
  height: 44px;
}

.point-card .icon svg {
  width: 22px;
  height: 22px;
}

.point-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
}

.point-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .point-grid,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow::before {
    display: none;
  }
}

@media (max-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .apps,
  .point-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app--hub {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   9. Estándares
   -------------------------------------------------------------------------- */
.standards__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}

.standards__layout .section-head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  margin-bottom: 0;
}

.standards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.standard {
  padding: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.standard:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.standard:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.standard__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.standard__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--brand-navy);
}

.standard__check svg {
  width: 15px;
  height: 15px;
}

.standard h3 {
  font-size: 1.0625rem;
}

.standard p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Metodología
   -------------------------------------------------------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
  gap: 1.25rem;
}

.process::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--brand-gradient-h);
  opacity: 0.4;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step p {
  margin-bottom: 1rem;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-gradient) border-box;
  border: 2px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

.step h3 {
  margin: 1.5rem 0 0.625rem;
  font-size: 1.0625rem;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.step__out {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--purple-ink);
}

.step__out svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* --------------------------------------------------------------------------
   11. Modelos de colaboración
   -------------------------------------------------------------------------- */
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.model {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.model--featured {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--on-dark-muted);
  box-shadow: var(--shadow);
}

.model--featured h3 {
  color: var(--on-dark);
}

.model__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.model--featured .model__label {
  color: var(--brand-teal);
}

.model h3 {
  margin: 0.75rem 0 0.875rem;
  font-size: 1.375rem;
}

.model p {
  font-size: 0.9375rem;
}

.model__fit {
  margin-top: auto;
  padding-top: 1.5rem;
}

.model__fit div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}

.model--featured .model__fit div {
  border-top-color: var(--line-dark);
}

.model__fit strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.model--featured .model__fit strong {
  color: var(--on-dark);
}

/* Alinea los bloques "Recomendado para" de las tarjetas de una misma fila */
@supports (grid-template-rows: subgrid) {
  .model {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .model__fit {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Promesa de marca
   -------------------------------------------------------------------------- */
.promise {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: var(--navy-900);
}

.promise::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(116, 115, 192, 0.28), transparent 60%);
}

.promise__title {
  font-size: clamp(2.25rem, 1.2rem + 5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}

.promise__title span {
  display: block;
  width: fit-content;
}

.promise__text {
  max-width: 640px;
  margin-top: 1.75rem;
}

.promise__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.promise__card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
}

.promise__card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.promise__card h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-teal);
}

.promise__card:last-child h3::before,
.promise__pair--four .promise__card:nth-child(even) h3::before {
  background: var(--brand-purple);
}

.promise__pair--four .promise__card:last-child:nth-child(odd) h3::before {
  background: var(--brand-teal);
}

.promise--compact .section-foot {
  margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   13. Tecnologías
   -------------------------------------------------------------------------- */
.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2rem;
}

.stack__group h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4375rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-strong);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--brand-purple);
  color: var(--purple-ink);
}

/* --------------------------------------------------------------------------
   14. Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}

.faq__layout .section-head {
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--text-strong), var(--text-strong)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text-strong), var(--text-strong)) center / 1.5px 10px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--surface);
}

.faq summary:hover {
  color: var(--purple-ink);
}

.faq__answer {
  padding: 0 3rem 1.5rem 0;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Contacto
   -------------------------------------------------------------------------- */
.contact {
  scroll-margin-top: -12px;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 820px;
  height: 820px;
  left: -300px;
  bottom: -420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 203, 201, 0.2), transparent 65%);
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}

.contact__layout .section-head {
  margin-bottom: 0;
}

.contact__alt {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  transition: border-color 0.2s var(--ease);
}

a.contact__item:hover {
  border-color: rgba(98, 203, 201, 0.45);
}

.contact__item .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.contact__item .icon svg {
  width: 20px;
  height: 20px;
}

.contact__item small {
  display: block;
  font-size: 0.75rem;
  color: var(--on-dark-soft);
}

.contact__item small + span {
  color: var(--on-dark);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.4375rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-strong);
}

.field label .req {
  color: var(--purple-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9375rem;
  border: 1px solid var(--brand-gray);
  border-radius: 10px;
  background: var(--surface);
  font-size: 1rem;
  color: var(--text-strong);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%23202945' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #6f717a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(116, 115, 192, 0.18);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c2334d;
}

.field__error {
  display: none;
  font-size: 0.8125rem;
  color: #b42318;
}

.field.is-invalid .field__error {
  display: block;
}

.form__legend {
  margin-bottom: 1.125rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form__legend .req {
  color: var(--purple-ink);
}

.form__foot {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form__note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form__status {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: var(--surface-teal);
  border: 1px solid rgba(35, 125, 123, 0.25);
  font-size: var(--fs-small);
  color: var(--teal-ink);
  font-weight: 500;
}

.form__status.is-visible {
  display: block;
}

.form__status a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   16. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0 2rem;
  background: var(--navy-950);
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand img {
  width: 168px;
  height: auto;
}

.footer__brand p {
  max-width: 360px;
  margin-top: 1.25rem;
  line-height: 1.65;
}

.footer__tagline {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-dark);
}

.footer__col h2 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer__col ul {
  display: grid;
  gap: 0.625rem;
}

.footer__col a {
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--brand-teal);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}

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

.back-top svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   17. Animación de entrada
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

.js .reveal h2 {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease) calc(var(--delay, 0s) + 0.08s);
}

.js .reveal.is-visible h2 {
  clip-path: inset(-0.2em -0.2em -0.2em -0.2em);
}

/* Transición entre páginas (navegadores con View Transitions entre documentos) */
@view-transition {
  navigation: auto;
}

html:active-view-transition .site-header {
  view-transition-name: site-header;
}

::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: page-in 0.5s var(--ease) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero-in {
  animation: hero-in 0.8s var(--ease) both;
  animation-delay: var(--delay, 0s);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* --------------------------------------------------------------------------
   17b. Movimiento con propósito
   Piezas que se reproducen una sola vez al verse: [data-play] recibe
   .is-play desde main.js y nunca se le retira. Los estados previos solo
   existen con .js, en pantalla y sin movimiento reducido; sin JS, con
   movimiento reducido o al imprimir se ve directamente el estado final.
   -------------------------------------------------------------------------- */
.check__icon path,
.standard__check path {
  stroke-dasharray: 24; /* la palomita mide 22.6: con -24 queda oculta */
}

@keyframes tick-draw { from { stroke-dashoffset: -24; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } }

/* Un cuarto de la barra por cada control automático (llega a 4 de 5) */
@keyframes bar-steps {
  0% { transform: scaleX(0); }
  38% { transform: scaleX(0.25); }
  58% { transform: scaleX(0.5); }
  78% { transform: scaleX(0.75); }
  100% { transform: none; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* Control de calidad del hero: en espera hasta verse (en la portada queda
     debajo de la bienvenida). animation: none detiene las animaciones
     existentes, que empiezan de nuevo al recibir .is-play */
  .js [data-play]:not(.is-play) .check__icon path { stroke-dashoffset: -24; }
  .js [data-play]:not(.is-play) .check__state { opacity: 0; }
  .js [data-play]:not(.is-play) .pulse { opacity: 0; animation: none; }
  .js [data-play]:not(.is-play) .bar span { transform: scaleX(0); animation: none; }
  .js [data-play]:not(.is-play) .ring-spin { transform: rotate(-40deg); animation: none; }
  .js [data-play]:not(.is-play) .ring-spin--rev { transform: rotate(40deg); }

  /* Los cuatro controles pasan en orden y la barra avanza con cada uno;
     la aprobación del ingeniero llega al final */
  .js .is-play .check__icon path {
    animation: tick-draw 0.38s var(--ease) calc(0.72s + var(--i, 0) * 0.26s) both;
  }

  .js .is-play .check__state {
    animation: fade-in 0.32s var(--ease) calc(0.86s + var(--i, 0) * 0.26s) both;
  }

  .js .is-play .bar span {
    animation: bar-steps 1.3s var(--ease) 0.6s both;
  }

  .js .is-play .pulse {
    animation: pop-in 0.3s var(--ease) 1.64s both, pulse 2s var(--ease) 2s 2;
  }
}

/* La línea del recorrido se revela de izquierda a derecha */
@keyframes line-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

.flow__step .icon {
  position: relative;
}

/* Anillo que se ilumina una vez cuando el cambio pasa por el paso */
.flow__step .icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--brand-teal);
  opacity: 0;
  pointer-events: none;
}

@keyframes node-ping {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.45); }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* La línea se traza de un ícono al siguiente; lineal
     para llegar a cada ícono, a tercios de la línea, a los 0.4 + i × 0.5 s */
  .js .flow[data-play]:not(.is-play)::before { clip-path: inset(0 100% 0 0); }
  .js .flow.is-play::before { animation: line-draw 1.5s linear 0.4s backwards; }
}

@media screen and (prefers-reduced-motion: no-preference) and (min-width: 1101px) {
  .js .flow.is-play .flow__step .icon::after {
    animation: node-ping 0.9s var(--ease) calc(0.4s + var(--i, 0) * 0.5s);
  }
}

/* Sin línea (≤1100px): cada paso se ilumina al aparecer; termina a los
   --delay + 0.7 s, antes de que settle() retire .is-visible (0.8 s) */
@media screen and (prefers-reduced-motion: no-preference) and (max-width: 1100px) {
  .js .flow__step.is-visible .icon::after {
    animation: node-ping 0.5s var(--ease) calc(var(--delay, 0s) + 0.2s);
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* Estándares: cada uno se palomea al leerse; la segunda columna, 90 ms
     después (usa tick-draw, pop-in y el stroke-dasharray de la sección 17b) */
  .standard:nth-child(even) { --d: 0.39s; }
  .js .standard[data-play]:not(.is-play) .standard__check { opacity: 0; }
  .js .standard[data-play]:not(.is-play) .standard__check path { stroke-dashoffset: -24; }

  .js .standard.is-play .standard__check {
    animation: pop-in 0.36s var(--ease) var(--d, 0.3s) both;
  }

  .js .standard.is-play .standard__check path {
    animation: tick-draw 0.42s var(--ease) calc(var(--d, 0.3s) + 0.14s) both;
  }
}

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

@media screen and (prefers-reduced-motion: no-preference) {
  /* Respuesta a lo que hace la persona: se repite cada vez que el bloque aparece */
  .faq details[open] .faq__answer,
  .form__status.is-visible {
    animation: appear 0.28s var(--ease);
  }

  .field.is-invalid .field__error {
    animation: appear 0.2s var(--ease);
  }
}

/* Transición en el selector base: settle() puede retirar .reveal sin cortarla */
.eyebrow::before {
  transform-origin: left center;
  transition: transform 0.6s var(--ease) calc(var(--delay, 0s) + 0.15s);
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* La línea guía del encabezado se traza como las del logo */
  .js .reveal:not(.is-visible) .eyebrow::before,
  .js .eyebrow.reveal:not(.is-visible)::before {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

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

  .js .reveal h2 {
    clip-path: none;
  }

  .manifesto {
    --p: 1 !important;
    height: auto;
  }

  .manifesto__stage {
    position: relative;
    height: auto;
    padding-block: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 3rem)) var(--section-y);
  }

  .manifesto__captions {
    gap: 0.5rem;
  }

  .manifesto__caption {
    grid-area: auto;
  }

  .manifesto__caption--1 {
    opacity: 1;
  }

  .manifesto__hint {
    display: none;
  }

  .manifesto.is-settled .manifesto__stage,
  .intro-done .manifesto__stage {
    height: auto;
  }

  .hero__visual {
    translate: none;
  }

  @view-transition {
    navigation: none;
  }
}

@media (forced-colors: active) {
  .faq summary::after {
    content: "+";
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    line-height: 1;
  }
}

@media print {
  .on-dark,
  .section--dark,
  .cta-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .reveal h2 {
    clip-path: none !important;
  }

  .site-header {
    position: absolute;
  }

  .nav-toggle,
  .hero__visual {
    display: none;
  }

  .manifesto {
    --p: 1 !important;
    height: auto;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .manifesto__stage {
    position: relative;
    height: auto;
  }

  .manifesto__caption {
    grid-area: auto;
  }

  .manifesto__caption--1 {
    opacity: 1;
  }

  .manifesto__foot {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   18. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 3rem;
  }

  .process::before {
    display: none;
  }
}

@media (max-width: 1100px) {
  .ai__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack {
    row-gap: 2rem;
  }
}

@media (max-width: 960px) {
  .split,
  .hero__inner,
  .about__grid,
  .experience__layout,
  .standards__layout,
  .faq__layout,
  .contact__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience__layout .section-head,
  .standards__layout .section-head {
    position: static;
  }

  .hero__visual {
    translate: none;
    min-height: 0;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    padding-block: 1rem;
  }

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

  .model:last-child {
    grid-column: 1 / -1;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .manifesto {
    height: 220vh;
  }
}

@media (max-width: 720px) {
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards,
  .highlights,
  .services,
  .models,
  .standards,
  .promise__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .standard:nth-child(odd) {
    border-right: 0;
  }

  .standard:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 1.25rem;
    padding-bottom: 2rem;
  }

  .step::before {
    content: "";
    position: absolute;
    top: 52px;
    bottom: 4px;
    left: 23px;
    width: 2px;
    background: var(--brand-gradient);
    opacity: 0.35;
  }

  .step:last-child::before {
    display: none;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step__num {
    grid-row: span 3;
  }

  .step h3 {
    margin-top: 0.625rem;
  }

  .step > div {
    min-width: 0;
  }

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

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

  .faq__answer {
    padding-right: 0;
  }

  .console__tag--a {
    left: 0;
  }

  .console__tag--b {
    right: 0;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .btn {
    padding-inline: 1.125rem;
  }

  .hero__actions .btn {
    flex-basis: 100%;
  }

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

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

  .brand img {
    width: 112px;
  }

  .console__tag {
    display: none;
  }

  .check {
    grid-template-columns: 28px 1fr;
  }

  .check__state {
    display: none;
  }
}

@media (max-width: 360px) {
  .btn {
    font-size: 0.875rem;
  }

  .btn svg {
    display: none;
  }
}

@media (max-width: 400px) {
  .ai-panel {
    padding: 1.25rem;
  }

  .ai-panel__label {
    letter-spacing: 0.08em;
  }
}

/* Escena del manifiesto en pantallas angostas o bajas */
@media (max-width: 720px) {
  .manifesto__checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
    width: 100%;
    gap: 0.375rem;
  }

  .manifesto__checks li {
    gap: 0.375rem;
    padding: 0.3125rem 0.625rem 0.3125rem 0.3125rem;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: left;
  }

  .manifesto__tick {
    flex: none;
    width: 20px;
    height: 20px;
  }

  .c-outer,
  .c-inner {
    stroke-width: 3;
  }

  .c-guide {
    stroke-width: 2.5;
  }
}

@media (max-height: 760px) {
  .manifesto__inner {
    gap: clamp(0.5rem, 1.4vh, 1rem);
  }
}

@media (max-width: 720px) and (max-height: 720px) {
  .manifesto__eyebrow {
    display: none;
  }

  .manifesto__caption {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* Teléfonos en horizontal: no hay altura para fijar la escena; se muestra completa */
@media (max-height: 520px) and (orientation: landscape) {
  .manifesto__hint {
    display: none;
  }

  .manifesto.is-settled .manifesto__stage,
  .intro-done .manifesto__stage {
    height: auto;
  }

  .manifesto {
    --p: 1 !important;
    height: auto;
  }

  .manifesto__stage {
    position: relative;
    height: auto;
    padding-block: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 3rem)) var(--section-y);
  }

  .manifesto__captions {
    gap: 0.5rem;
  }

  .manifesto__caption {
    grid-area: auto;
  }

  .manifesto__caption--1 {
    opacity: 1;
  }
}

/* Teléfonos angostos: solo el botón para omitir, sin el aviso de scroll */
@media (max-width: 400px) {
  .manifesto__hint {
    display: none;
  }
}
