/**
 * NEOMETIS Theme - 07-utilities.css
 * Overrides, estilos especificos del home y utilidades de integracion
 * Version: 1.0
 */

/* =========================================================
   HOME - Estilos especificos de pagina
   ========================================================= */

/* ===== NAV LOGO SVG ===== */
.nm-logo-svg { width: 36px; height: 36px; }

/* ===== HERO ===== */

.nm-hero {
  position: relative;
  min-height: calc(100vh - var(--nm-admin-bar-offset));
  min-height: calc(100svh - var(--nm-admin-bar-offset));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nm-admin-bar-offset) + var(--nav-h)) 0 var(--space-10);
  isolation: isolate;
}

.nm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(32, 188, 194, 0.14) 0%, rgba(32, 188, 194, 0.05) 18%, transparent 40%),
    linear-gradient(90deg, rgba(1, 15, 20, 0.26) 0%, transparent 34%, rgba(1, 15, 20, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

.nm-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.nm-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1.045);
  transform-origin: center center;
  z-index: 0;
}

.nm-hero__bg::before {
  content: none;
}

.nm-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 15, 20, 0.76) 0%, rgba(1, 15, 20, 0.68) 22%, rgba(1, 15, 20, 0.52) 42%, rgba(1, 15, 20, 0.32) 62%, rgba(1, 15, 20, 0.56) 100%),
    radial-gradient(circle at 76% 26%, rgba(243, 249, 250, 0.12) 0%, transparent 24%),
    radial-gradient(circle at 68% 72%, rgba(32, 188, 194, 0.16) 0%, transparent 32%),
    linear-gradient(180deg, rgba(1, 15, 20, 0.08) 0%, rgba(1, 15, 20, 0.28) 100%);
  z-index: 1;
}

.nm-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(32,188,194,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,188,194,0.035) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 100%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 100%, black 10%, transparent 75%);
}

.nm-hero__beam {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to top, rgba(32,188,194,0.5), transparent);
  z-index: 1;
}

.nm-hero__beam::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 55%;
  background: radial-gradient(ellipse at bottom, rgba(32,188,194,0.1) 0%, transparent 70%);
}

.nm-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: var(--space-10) var(--space-12);
}

.nm-hero__eyebrow {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 540px;
}

.nm-hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 193, 178, 0.9) 0%, rgba(212, 193, 178, 0) 100%);
  flex-shrink: 0;
  margin-top: 0.72em;
}

.nm-hero__eyebrow-text {
  display: block;
  max-width: 54ch;
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-widest);
  line-height: 1.55;
  min-width: 0;
  text-wrap: balance;
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.82);
}

.nm-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--fw-light);
  line-height: var(--lh-display, 0.95);
  letter-spacing: var(--ls-tight);
  color: var(--text-bright);
}

.nm-hero__title em {
  font-style: italic;
  color: var(--nm-secondary);
}

.nm-hero__title .nm-hero__title-accent {
  color: var(--nm-secondary);
  font-weight: var(--fw-regular);
}

.nm-hero__subtitle {
  margin-top: var(--space-6);
  max-width: 540px;
  font-size: var(--text-body-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: rgba(168, 198, 206, 0.86);
}

.nm-hero__actions {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

@media (max-width: 639px) {
  .nm-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .nm-hero__actions .nm-btn {
    width: 100%;
    justify-content: center;
  }
}

.nm-hero__scroll {
  position: absolute;
  bottom: var(--space-4);
  left: clamp(1rem, 2vw, 1.75rem);
  z-index: 3;
}

.nm-hero__stats {
  position: absolute;
  right: max(var(--section-pad-x), calc((100vw - var(--container-max)) / 2 + var(--section-pad-x)));
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: clamp(16rem, 22vw, 21rem);
  padding: clamp(1.2rem, 2vw, 1.8rem) clamp(1.5rem, 2.8vw, 2.5rem) clamp(1.5rem, 2.6vw, 2.2rem) clamp(2rem, 4vw, 3.4rem);
  border-top: 1px solid rgba(32, 188, 194, 0.16);
  border-left: 1px solid rgba(212, 193, 178, 0.18);
  border-top-left-radius: 1.9rem;
  background:
    linear-gradient(90deg, rgba(1, 15, 20, 0) 0%, rgba(1, 35, 45, 0.12) 16%, rgba(1, 35, 45, 0.48) 40%, rgba(1, 35, 45, 0.82) 100%);
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  overflow: hidden;
  isolation: isolate;
}

.nm-hero__stats::before {
  content: '';
  position: absolute;
  inset: -24% -8% -22% -42%;
  z-index: 0;
  background:
    radial-gradient(circle at 100% 54%, rgba(32, 188, 194, 0.14) 0%, transparent 58%),
    linear-gradient(180deg, rgba(212, 193, 178, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.nm-hero__stats::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, rgba(212, 193, 178, 0) 0%, rgba(212, 193, 178, 0.26) 18%, rgba(32, 188, 194, 0.3) 58%, rgba(32, 188, 194, 0) 100%);
  pointer-events: none;
}

.nm-hero__stats > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: var(--space-3) var(--space-5);
  padding-right: clamp(0.2rem, 1vw, 0.45rem);
}

.nm-hero__stats > div + div {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(212, 193, 178, 0.08);
}

.nm-hero__stats > div:last-child {
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.nm-hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  letter-spacing: -0.03em;
  color: rgba(212, 193, 178, 0.96);
  line-height: 1;
  text-shadow: 0 0 24px rgba(1, 15, 20, 0.18);
}

.nm-hero__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(168, 198, 206, 0.78);
  margin-top: 0;
  text-align: right;
}

.nm-hero__stats > div:last-child .nm-hero__stat-label {
  text-align: left;
}

.nm-hero__image {
  display: none !important;
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.nm-hero__image-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: var(--surface-1);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.nm-hero__image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 15, 20, 0.04) 0%, rgba(1, 15, 20, 0.42) 100%),
    linear-gradient(135deg, rgba(32, 188, 194, 0.08) 0%, transparent 50%, rgba(227, 144, 81, 0.08) 100%);
}

.nm-hero__image-card--back {
  top: 8%;
  left: 8%;
  width: 44%;
  height: 46%;
  opacity: 0.44;
  transform: translateY(5%) scale(0.98);
}

.nm-hero__image-card--front {
  right: 2%;
  bottom: 4%;
  width: 74%;
  height: 82%;
  z-index: 3;
}

.nm-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.88;
  filter: contrast(1.06) saturate(0.76) brightness(0.92);
}

@media (max-width: 1023px) {
  .nm-hero__title { font-size: var(--text-5xl); }
  .nm-hero__subtitle { font-size: var(--text-md); }
}

@media (max-width: 767px) {
  .nm-hero {
    align-items: flex-start;
    min-height: auto;
    max-height: 780px;
    padding: calc(var(--nm-admin-bar-offset) + var(--nav-h-sm)) 0 clamp(2rem, 7vh, 3rem);
  }
  .nm-hero__video {
    object-position: 74% center;
    transform: translate(-50%, -50%) scale(1.02);
  }
  .nm-hero__content {
    padding-block: clamp(3.5rem, 9vh, 5rem) 0;
  }
  .nm-hero__title { font-size: clamp(3.1rem, 14vw, var(--text-hero)); }
  .nm-hero__subtitle {
    margin-top: var(--space-5);
    font-size: var(--text-body);
  }
  .nm-hero__stats { display: none; }
  .nm-hero__scroll { display: none; }
  .nm-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
  .nm-hero__actions .nm-btn { width: 100%; justify-content: center; }
}

/* ===== MANIFESTO TICKER ===== */

.nm-manifesto {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4) 0;
  background: var(--surface-1);
  overflow: hidden;
}

.nm-manifesto__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: var(--space-8);
}

.nm-manifesto__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nm-amber);
  flex-shrink: 0;
}

/* ===== ABOUT ===== */

.nm-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
  padding-block: var(--section-pad-y);
}

@media (min-width: 1024px) {
  .nm-about {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(3rem, 5vw, 5rem);
    row-gap: 0;
  }
}

.nm-about__media-column,
.nm-about__content-column {
  display: grid;
  align-content: start;
}

.nm-about__media-column {
  gap: 0;
}

.nm-about__content-column {
  gap: var(--space-8);
}

.nm-about__visual {
  position: relative;
}

.nm-about__art {
  position: relative;
  min-height: clamp(320px, 40vw, 520px);
  aspect-ratio: 1 / 0.94;
}

.nm-about__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow:
    0 28px 48px rgba(1, 15, 20, 0.32),
    inset 0 0 0 1px rgba(212, 193, 178, 0.04);
}

.nm-about__visual-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(243, 249, 250, 0.04) 0%, rgba(243, 249, 250, 0) 100%),
    radial-gradient(ellipse 75% 55% at 35% 65%, rgba(26,115,118,0.22) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.nm-about__visual-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 20, 28, 0.08) 0%, rgba(1, 20, 28, 0.58) 100%),
    radial-gradient(circle at 50% 48%, rgba(32, 188, 194, 0.08), transparent 62%);
  pointer-events: none;
}

.nm-about__visual-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.88) brightness(0.7) contrast(1.05);
  transform: scale(1.01);
}

.nm-about__visual-diagram {
  display: none;
}

.nm-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--nm-amber);
  border-style: solid;
  opacity: 0.6;
}

.nm-corner--tl { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.nm-corner--tr { top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; }
.nm-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 1.5px 1.5px; }
.nm-corner--br { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.nm-about__visual-label {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 2;
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

.nm-about__copy {
  display: grid;
  align-self: flex-start;
}

.nm-about__copy .nm-section-title {
  max-width: none;
  width: 100%;
}

.nm-about__problem-title {
  display: grid;
  gap: 0.02em;
  line-height: 1.02;
}

.nm-about__problem-title span,
.nm-about__problem-title em {
  display: block;
}

.nm-about__problem-title em:first-of-type {
  margin-top: 0.12em;
}

.nm-about__text-body {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  max-width: 64ch;
}

.nm-about__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: flex-start;
  border-top: 1px solid rgba(122, 171, 184, 0.28);
  padding-top: var(--space-4);
}

@media (min-width: 640px) {
  .nm-about__metrics {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.2fr);
  }
}

.nm-about__metric {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  min-height: 0;
  padding: var(--space-3) clamp(0.55rem, 2vw, var(--space-4)) var(--space-2);
}

.nm-about__metric:not(:first-child) {
  border-left: 1px solid rgba(122, 171, 184, 0.28);
}

.nm-about__metric--wide {
  grid-column: auto;
  border-left: 1px solid rgba(122, 171, 184, 0.28);
  border-top: none;
  padding-left: clamp(0.55rem, 2vw, var(--space-4));
}

@media (min-width: 640px) {
  .nm-about__metric--wide {
    grid-column: auto;
    border-top: none;
    border-left: 1px solid rgba(122, 171, 184, 0.28);
    padding-left: var(--space-4);
  }
}

.nm-about__metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-bright);
}

.nm-about__metric--wide .nm-about__metric-value {
  font-size: clamp(1.05rem, 4.6vw, var(--text-lg));
  letter-spacing: 0.03em;
}

.nm-about__metric-value--sabia sup {
  position: relative;
  top: -0.5em;
  margin-left: 0.04em;
  font-size: 0.42em;
  line-height: 1;
  color: var(--nm-amber);
}

.nm-about__metric-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.82);
  max-width: 12ch;
}

/* ===== WORKFLOW ===== */

.nm-workflow {
  padding-block: var(--section-gap-sm) var(--section-pad-y);
}

.nm-workflow__header {
  display: grid;
  gap: var(--space-4);
  max-width: 820px;
  margin-bottom: var(--space-10);
}

.nm-workflow__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-mid);
  border-left: 1px solid var(--border-subtle);
}

.nm-workflow-step:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 1180px) {
  .nm-workflow__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nm-workflow-step:last-child {
    grid-column: auto;
  }
}

.nm-workflow-step {
  position: relative;
  min-height: clamp(12rem, 22vw, 15rem);
  padding: clamp(0.95rem, 3.8vw, var(--space-6));
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(1, 30, 40, 0.98) 0%, rgba(1, 30, 40, 0.94) 100%);
  overflow: hidden;
}

.nm-workflow-step::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nm-amber) 0%, rgba(32, 188, 194, 0.72) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nm-workflow-step:hover::before {
  transform: scaleX(1);
}

.nm-workflow-step__num {
  display: block;
  margin-bottom: clamp(1rem, 4vw, var(--space-8));
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  color: rgba(212, 193, 178, 0.62);
  letter-spacing: 0.16em;
}

.nm-workflow-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 4.5vw, var(--text-lg));
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  color: var(--nm-amber);
  overflow-wrap: anywhere;
}

.nm-workflow-step__body {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* ===== FOUNDER QUOTE ===== */

.nm-founder-quote {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(122, 171, 184, 0.16);
  border-bottom: 1px solid rgba(122, 171, 184, 0.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(32, 188, 194, 0.08) 0%, transparent 34%),
    linear-gradient(180deg, rgba(3, 31, 37, 0.82) 0%, rgba(1, 15, 20, 0.72) 100%),
    url("../../../assets/img/bg-1.webp") center / cover fixed no-repeat;
}

.nm-founder-quote__inner {
  padding-block: clamp(3.25rem, 6vw, 5.75rem);
}

.nm-founder-quote__card {
  display: grid;
  gap: var(--space-5);
  max-width: min(100%, 72rem);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.4rem) 0 clamp(1.25rem, 3vw, 2.4rem) clamp(1.25rem, 3vw, 2.35rem);
  border-left: 1px solid rgba(122, 171, 184, 0.48);
}

.nm-founder-quote__text {
  max-width: 30ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-style: italic;
  font-weight: var(--fw-light);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nm-founder-quote__author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  min-width: 0;
}

.nm-founder-quote__avatar {
  width: clamp(2.75rem, 4.5vw, 3.5rem);
  height: clamp(2.75rem, 4.5vw, 3.5rem);
  flex: 0 0 auto;
  border: 1px solid rgba(227, 144, 81, 0.42);
  border-radius: 999px;
  background: rgba(3, 31, 37, 0.92);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 4px rgba(227, 144, 81, 0.06);
}

.nm-founder-quote__author-copy {
  display: grid;
  min-width: 0;
}

.nm-founder-quote__author-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-bright);
}

.nm-founder-quote__author-role {
  margin-top: 0.18rem;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.74);
}

/* ===== SABIA METHOD ===== */

.nm-sabia {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--section-pad-y) 0;
}

.nm-sabia__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.nm-sabia__header .nm-section-title {
  max-width: 14.5ch;
}

@media (min-width: 768px) {
  .nm-sabia__header {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: end;
  }
}

.nm-sabia__badge {
  display: inline-flex;
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--nm-secondary);
  border: 1px solid rgba(212, 193, 178, 0.18);
  background: rgba(212, 193, 178, 0.05);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xs);
}

.nm-sabia__steps {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-subtle);
}

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

@media (min-width: 1024px) {
  .nm-sabia__steps { grid-template-columns: repeat(5, 1fr); }
}

/* ===== SERVICES ===== */

.nm-services {
  padding-block: var(--section-pad-y);
}

.nm-services__header {
  margin-bottom: var(--space-12);
}

.nm-services__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(32, 188, 194, 0.14);
  border: 1px solid rgba(32, 188, 194, 0.16);
  box-shadow: inset 0 0 0 1px rgba(32, 188, 194, 0.06);
  overflow: hidden;
}

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

.nm-services__grid .nm-card {
  border: none;
  border-radius: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  background: linear-gradient(180deg, rgba(1, 30, 40, 0.98) 0%, rgba(1, 30, 40, 0.94) 100%);
}

.nm-services__grid .nm-card__body {
  flex: none;
}

.nm-services__grid .nm-card__tags,
.nm-services__grid .nm-card__link {
  align-self: start;
}

.nm-card__when {
  margin-top: calc(var(--space-2) * -1);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  color: var(--nm-secondary);
}

.nm-card__when::before {
  content: 'Cuándo: ';
  color: var(--nm-amber);
}

/* ===== ACADEMIA ===== */

.nm-academia {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: var(--section-pad-y) 0;
}

.nm-academia__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 900px) {
  .nm-academia__inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(4rem, 8vw, 8rem);
  }
}

.nm-academia__schools {
  border: 1px solid var(--border-subtle);
  margin-top: var(--space-6);
}

/* ===== PERSPECTIVES ===== */

.nm-perspectives {
  padding-block: var(--section-pad-y);
}

.nm-perspectives__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-6);
}

.nm-perspectives__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

@media (min-width: 1024px) {
  .nm-perspectives__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ===== PERSPECTIVE CARDS ===== */

.nm-perspective {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(1, 41, 58, 0.5) 0%, rgba(1, 15, 20, 0.95) 100%);
  border: var(--card-border);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.nm-perspective:hover {
  background: rgba(1, 30, 40, 0.98);
  border-color: var(--card-border-hover);
}

.nm-perspective__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 0;
  flex-shrink: 0;
  position: relative;
}

.nm-perspective__thumb img,
.nm-perspective__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.nm-perspective:hover .nm-perspective__thumb img,
.nm-perspective:hover .nm-perspective__image {
  transform: scale(1.04);
}

.nm-perspective--featured .nm-perspective__thumb {
  aspect-ratio: 21 / 10;
}

.nm-perspective--compact .nm-perspective__thumb {
  aspect-ratio: 16 / 10;
}

.nm-perspective__body {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  flex: 1;
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.nm-perspective__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: flex-start;
  block-size: max-content;
  min-height: var(--card-pill-min-h);
  padding: var(--card-pill-py) var(--card-pill-px);
  border: 1px solid rgba(32, 188, 194, 0.18);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(32, 188, 194, 0.08) 0%, rgba(32, 188, 194, 0.02) 100%);
  color: var(--nm-accent);
  font-family: var(--font-mono);
  font-size: var(--card-pill-font);
  line-height: var(--card-pill-lh);
  letter-spacing: var(--card-pill-ls);
  text-transform: uppercase;
}

.nm-perspective__title {
  margin: 0;
  font-family: var(--card-title-font);
  font-size: var(--card-title-size);
  font-weight: var(--card-title-weight);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--text-bright);
  text-wrap: balance;
  transition: color var(--dur-fast) var(--ease-out);
}

.nm-perspective--featured .nm-perspective__title {
  font-size: var(--card-title-featured-size);
}

.nm-perspective--compact .nm-perspective__title {
  font-size: var(--card-title-compact-size);
}

.nm-perspective:hover .nm-perspective__title {
  color: var(--nm-accent);
}

.nm-perspective__excerpt {
  margin: 0;
  font-family: var(--card-excerpt-font);
  font-size: var(--card-excerpt-size);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  flex: 1;
  max-width: 34ch;
}

.nm-perspective--featured .nm-perspective__excerpt {
  max-width: 62ch;
}

.nm-perspective--featured .nm-perspective__meta {
  width: 100%;
}

.nm-perspective--compact .nm-perspective__excerpt {
  display: none;
}

.nm-perspective__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  text-transform: uppercase;
}

.nm-perspective__link {
  color: var(--nm-accent);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

/* ===== CTA FINAL ===== */

.nm-cta {
  position: relative;
  padding: clamp(6rem, 12vw, 11rem) var(--section-pad-x);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.nm-cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(26,115,118,0.3) 0%, transparent 60%),
    var(--surface-0);
  z-index: 0;
}

.nm-cta__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.nm-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.82);
}

.nm-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.1vw, var(--text-h1));
  font-weight: var(--fw-light);
  line-height: 1.04;
  color: var(--text-bright);
  margin-bottom: var(--space-6);
}

.nm-cta__title-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nm-cta__title {
    font-size: clamp(1.55rem, 7vw, 2.9rem);
  }
}

.nm-cta__title em {
  font-style: italic;
  color: var(--nm-secondary);
}

.nm-cta__body {
  font-size: var(--text-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  max-width: 620px;
  margin-inline: auto;
}

.nm-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .nm-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .nm-cta__actions .nm-btn {
    width: 100%;
    justify-content: center;
  }
  /* En la sección CTA final, downscale xl→lg en mobile */
  .nm-cta__actions .nm-btn--xl {
    height: var(--btn-height-lg);
    padding: 0 var(--btn-px-lg);
    font-size: var(--btn-font-lg);
  }
}

/* ===== FOOTER ===== */

.nm-footer {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(1, 30, 40, 0.99) 0%, rgba(1, 22, 29, 0.98) 100%);
  padding: clamp(2.25rem, 4vw, 3.5rem) 0 0;
  overflow: hidden;
}

.nm-footer::before {
  content: none;
}

.nm-footer__ornament {
  display: none;
}

.nm-footer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
}

.nm-footer__orb--a {
  display: none;
}

.nm-footer__orb--b {
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: 6.25rem;
  width: 6px;
  height: 6px;
  background: rgba(212, 193, 178, 0.7);
  box-shadow: 0 0 14px rgba(212, 193, 178, 0.22);
}

.nm-footer__gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1.5rem, 9vw, 9rem);
  width: 1px;
  background: linear-gradient(180deg, rgba(32, 188, 194, 0.08) 0%, rgba(32, 188, 194, 0.2) 46%, rgba(32, 188, 194, 0.04) 100%);
}

.nm-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: var(--space-8);
}

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

@media (min-width: 1180px) {
  .nm-footer__inner {
    grid-template-columns: minmax(320px, 1.18fr) minmax(390px, 1.08fr) minmax(290px, 0.84fr);
    align-items: start;
  }
}

.nm-footer__brand {
  display: grid;
  justify-items: start;
  max-width: 24rem;
  position: relative;
}

.nm-footer .nm-logo--footer {
  display: inline-flex;
  max-width: 100%;
}

.nm-footer .nm-logo--footer .nm-logo__asset {
  width: min(var(--space-40), 100%);
  height: auto;
}

@media (min-width: 1180px) {
  .nm-footer__brand {
    padding-right: clamp(0.75rem, 1.6vw, 1.5rem);
  }
}

.nm-footer__kicker {
  display: none;
}

.nm-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--text-primary);
  margin-top: var(--space-5);
  max-width: 18ch;
  line-height: var(--lh-snug);
  text-wrap: balance;
}

.nm-footer__statement {
  margin-top: var(--space-3);
  font-size: var(--text-body);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: 34ch;
  text-wrap: pretty;
}

.nm-footer__signature {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(212, 193, 178, 0.12);
  max-width: 24rem;
}

.nm-footer__signature-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.72);
}

.nm-footer__signature-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.nm-footer__rail {
  display: grid;
  gap: var(--space-3);
}

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

@media (min-width: 1180px) {
  .nm-footer__rail {
    padding: 0 clamp(0rem, 1vw, 0.75rem);
  }
}

.nm-footer__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nm-footer__eyebrow {
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.78);
}

.nm-footer__link,
.nm-footer__meta-link {
  display: block;
  width: 100%;
  padding: 0.48rem 0;
  border-top: 1px solid rgba(32, 188, 194, 0.08);
  font-size: var(--text-body);
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.nm-footer__meta-link {
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}

.nm-footer__link:hover,
.nm-footer__meta-link:hover {
  color: var(--text-bright);
  padding-left: 0.9rem;
  border-color: rgba(212, 193, 178, 0.14);
}

.nm-footer__section .nm-footer__link:first-of-type,
.nm-footer__contact .nm-footer__meta-link:first-of-type {
  border-top-color: rgba(212, 193, 178, 0.12);
}

.nm-footer__contact-card {
  position: relative;
  padding: clamp(1rem, 1.25vw, 1.25rem);
  max-width: 21rem;
  border: 1px solid rgba(212, 193, 178, 0.18);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(1, 49, 64, 0.9) 0%, rgba(1, 30, 40, 0.92) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

@media (min-width: 768px) {
  .nm-footer__contact-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1180px) {
  .nm-footer__contact-card {
    grid-column: auto;
    margin-top: 0;
  }
}

.nm-footer__contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 193, 178, 0.08) 0%, transparent 56%);
  pointer-events: none;
}

.nm-footer__contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 193, 178, 0.62) 0%, rgba(212, 193, 178, 0) 72%);
}

.nm-footer__contact-title,
.nm-footer__contact-body,
.nm-footer__chips,
.nm-footer__contact,
.nm-footer__cta {
  position: relative;
  z-index: 1;
}

.nm-footer__contact-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 0.98;
  font-weight: var(--fw-light);
  color: var(--text-bright);
  margin-bottom: var(--space-2);
}

.nm-footer__contact-body {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.nm-footer__cta {
  width: 100%;
  justify-content: space-between;
}

.nm-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.nm-footer__chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 193, 178, 0.16);
  background: rgba(212, 193, 178, 0.05);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(212, 193, 178, 0.78);
}

.nm-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-4);
}

.nm-footer__bottom {
  position: relative;
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  z-index: 1;
}

.nm-footer__bottom-mark {
  display: none;
}

.nm-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(32, 188, 194, 0.1);
}

.nm-footer__legal-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.nm-footer__legal-link {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nm-footer__legal-link:hover {
  color: rgba(212, 193, 178, 0.82);
}

.nm-footer__copy {
  font-size: var(--text-xs);
  color: rgba(122, 171, 184, 0.78);
  letter-spacing: var(--ls-normal);
}

/* ===== CUSTOM CURSOR ===== */

@media (pointer: fine) and (min-width: 1025px) {
  body { cursor: none; }
  a, button, [role="button"], .nm-card, .nm-school-item, .nm-sabia-step { cursor: none; }
}

.nm-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  display: none;
}

@media (pointer: fine) and (min-width: 1025px) {
  .nm-cursor { display: block; }
}

.nm-cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--nm-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out), background 0.2s;
}

.nm-cursor__ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(32,188,194,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-spring),
              height 0.25s var(--ease-spring),
              opacity 0.25s var(--ease-out),
              border-color 0.2s;
}

.nm-cursor.is-hovering .nm-cursor__ring {
  width: 50px;
  height: 50px;
  opacity: 0.8;
  border-color: rgba(32,188,194,0.72);
}

.nm-cursor.is-hovering .nm-cursor__dot {
  transform: translate(-50%, -50%) scale(1.5);
}

@media (prefers-reduced-motion: reduce) {
  body {
    cursor: auto;
  }

  a,
  button,
  [role="button"],
  .nm-card,
  .nm-school-item,
  .nm-sabia-step {
    cursor: pointer;
  }

  .nm-cursor {
    display: none !important;
  }
}

/* ===== PARTICLES CONTAINER ===== */

.nm-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
