/* ==========================================================================
   NeuronalCode · styles.css
   1) Estilos base del sitio original (conservados)
   2) Capa tech y sección Formación (al final del archivo)
   ========================================================================== */

:root {
  color-scheme: dark;
  color: #f5f5f5;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --background: #000;
  --surface: #090909;
  --surface-soft: #0d0d0d;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --muted-light: #bebebe;
  --border: #ffffff29;
  --border-strong: #ffffff47;
  --header-height: 92px;
  --container: 1760px;
  background: #000;
  font-family: Inter,Helvetica Neue,Helvetica,Arial,sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--background);
}
body {
  background: var(--background);
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}
body, button, input, textarea, select {
  font: inherit;
}
button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}
button, a {
  color: inherit;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 0;
}
::selection {
  color: #000;
  background: #fff;
}
:focus-visible {
  outline-offset: 4px;
  outline: 2px solid #fff;
}
.site {
  isolation: isolate;
  background: radial-gradient(circle at 30% 20%,#ffffff06,#0000 32%),#000;
  min-height: 100vh;
  position: relative;
}
.particle-field {
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
}
.section-container {
  width: min(calc(100% - 8vw), var(--container));
  margin-inline: auto;
}
.page-section {
  min-height: 100svh;
  scroll-margin-top: var(--header-height);
  padding-block: clamp(130px,11vw,190px) clamp(90px,9vw,150px);
  position: relative;
}
.eyebrow {
  color: #8c8c8c;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin: 0;
  font-size: .67rem;
  font-weight: 600;
  line-height: 1.4;
}
.site-header {
  z-index: 100;
  pointer-events: none;
  width: 100%;
  padding-inline: 3.8vw;
  position: fixed;
  top: 14px;
  left: 0;
}
.header-content {
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  background: #030303d1;
  border-radius: 22px;
  grid-template-columns: auto auto minmax(180px,1fr) auto;
  align-items: center;
  min-height: 78px;
  padding: 6px 20px 6px 10px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 16px 50px #0000005c,inset 0 1px #ffffff05;
}
.brand {
  justify-content: center;
  align-items: center;
  width: 116px;
  min-height: 66px;
  display: flex;
}
.brand img {
  object-fit: contain;
  width: 92px;
  height: 66px;
}
.header-divider {
  background: var(--border-strong);
  width: 28px;
  height: 1px;
  margin-inline: 4px 18px;
}
.header-phrase {
  min-width: 0;
  padding-right: 30px;
}
.header-phrase p {
  color: #a7a7a7;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 890px;
  margin: 0;
  font-size: clamp(.65rem,.68vw,.78rem);
  line-height: 1.55;
  overflow: hidden;
}
.typing-cursor {
  vertical-align: -.1em;
  background: currentColor;
  width: 1px;
  height: 1em;
  margin-left: 4px;
  animation: .75s step-end infinite cursor-blink;
  display: inline-block;
}
@keyframes cursor-blink {
  50% { opacity:0; }
}
.main-navigation {
  align-items: center;
  gap: clamp(25px,2.6vw,52px);
  display: flex;
}
.main-navigation a {
  color: #c8c8c8;
  white-space: nowrap;
  padding-block: 17px;
  font-size: clamp(.79rem,.8vw,.94rem);
  transition: color .18s,opacity .18s;
  position: relative;
}
.main-navigation a:after {
  content: "";
  transform-origin: 100%;
  background: #fff;
  height: 1px;
  transition: transform .25s;
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  transform: scaleX(0);
}
.main-navigation a:hover, .main-navigation a.is-active {
  color: #fff;
}
.main-navigation a:hover:after, .main-navigation a.is-active:after {
  transform-origin: 0;
  transform: scaleX(1);
}
.menu-button {
  display: none;
}
.hero-section {
  align-items: center;
  display: flex;
  overflow: hidden;
}
.hero-content {
  padding-top: 40px;
}
.hero-title {
  color: #fff;
  letter-spacing: .04em;
  white-space: pre-line;
  max-width: 1050px;
  margin: 24px 0 26px;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
  font-size: clamp(3.4rem,7.1vw,8.8rem);
  font-weight: 200;
  line-height: .94;
}
.hero-description {
  max-width: 590px;
  color: var(--muted-light);
  margin: 0;
  font-size: clamp(.94rem,1vw,1.12rem);
  font-weight: 300;
  line-height: 1.75;
}
.hero-actions {
  align-items: center;
  gap: 30px;
  margin-top: 38px;
  display: flex;
}
.primary-button, .submit-button {
  color: #000;
  cursor: pointer;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 54px;
  padding: 0 22px;
  font-size: .82rem;
  font-weight: 600;
  transition: color .22s,background .22s,transform .22s;
  display: inline-flex;
}
.primary-button:hover, .submit-button:hover:not(:disabled) {
  color: #fff;
  background: 0 0;
  transform: translateY(-2px);
}
.text-link {
  border-bottom: 1px solid var(--border-strong);
  color: #b8b8b8;
  padding-block: 10px;
  font-size: .82rem;
  transition: color .18s,border-color .18s;
}
.text-link:hover {
  color: #fff;
  border-color: #fff;
}
.scroll-indicator {
  color: #858585;
  letter-spacing: .22em;
  text-transform: uppercase;
  align-items: center;
  gap: 12px;
  font-size: .58rem;
  font-weight: 600;
  display: flex;
  position: absolute;
  bottom: 32px;
  right: 4vw;
}
.scroll-indicator span {
  background: #6f6f6f;
  width: 30px;
  height: 1px;
}
.services-section {
  background: #000000ad;
}
.section-heading {
  grid-template-columns: minmax(250px,.75fr) minmax(400px,1.25fr);
  align-items: start;
  gap: 28px 7vw;
  margin-bottom: clamp(60px,7vw,110px);
  display: grid;
}
.section-heading .eyebrow {
  grid-column: 1;
}
.section-heading h2 {
  letter-spacing: -.045em;
  grid-area: 1/2/span 2;
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem,4.8vw,6.2rem);
  font-weight: 300;
  line-height: 1.02;
}
.section-heading>p:last-child {
  max-width: 460px;
  color: var(--muted);
  grid-column: 1;
  margin: 0;
  font-size: .95rem;
  line-height: 1.75;
}
.service-groups {
  gap: 26px;
  display: grid;
}
.service-group {
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: linear-gradient(130deg,#ffffff0b,#ffffff03 45%,#0000),#060606c2;
  border-radius: 30px;
  grid-template-columns: minmax(240px,.75fr) minmax(0,1.75fr);
  gap: clamp(35px,5vw,90px);
  padding: clamp(32px,4vw,64px);
  display: grid;
}
.service-group-intro {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}
.group-number {
  border: 1px solid var(--border);
  color: #868686;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  min-height: 26px;
  padding: 0 11px;
  font-size: .63rem;
  display: inline-flex;
}
.service-group-intro h3 {
  letter-spacing: -.045em;
  max-width: 390px;
  margin: 38px 0 24px;
  font-size: clamp(2rem,3.25vw,4.2rem);
  font-weight: 350;
  line-height: 1;
}
.service-group-intro p {
  max-width: 440px;
  color: var(--muted);
  margin: 0;
  font-size: .86rem;
  line-height: 1.75;
}
.service-card-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  display: grid;
}
.service-card {
  border: 1px solid var(--border);
  will-change: transform;
  background: #030303;
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px #0000002e;
}
.service-image {
  aspect-ratio: 16/10;
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
}
.service-image:after {
  content: "";
  background: linear-gradient(#0000 50%,#000000b3),#0000001f;
  position: absolute;
  inset: 0;
}
.service-image img {
  object-fit: cover;
  filter: grayscale()brightness(.66)contrast(1.1);
  width: 100%;
  height: 100%;
  transition: filter .45s,transform .6s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-image img {
  filter: grayscale(.4)brightness(.82)contrast(1.05);
  transform: scale(1.045);
}
.service-card-content {
  flex-direction: column;
  justify-content: space-between;
  min-height: 215px;
  padding: 18px 20px 22px;
  display: flex;
}
.card-topline {
  color: #666;
  justify-content: space-between;
  align-items: center;
  font-size: .62rem;
  display: flex;
}
.service-card h4 {
  margin: 34px 0 12px;
  font-size: clamp(1rem,1.1vw,1.22rem);
  font-weight: 500;
  line-height: 1.25;
}
.service-card p {
  color: #8f8f8f;
  margin: 0;
  font-size: .76rem;
  line-height: 1.65;
}
.about-section {
  background: #030303c2;
  align-items: center;
  display: flex;
}
.about-layout {
  grid-template-columns: minmax(300px,1.1fr) minmax(300px,.9fr);
  gap: 70px 8vw;
  display: grid;
}
.about-heading h2 {
  letter-spacing: -.05em;
  max-width: 850px;
  margin: 25px 0 0;
  font-size: clamp(2.9rem,5.6vw,7.2rem);
  font-weight: 280;
  line-height: .99;
}
.about-copy {
  align-self: end;
  max-width: 650px;
  padding-bottom: 10px;
}
.about-copy p {
  color: var(--muted);
  line-height: 1.8;
}
.about-copy .about-lead {
  color: #dedede;
  margin-top: 0;
  font-size: clamp(1.1rem,1.4vw,1.5rem);
  font-weight: 300;
  line-height: 1.55;
}
.values-grid {
  grid-column: 1/-1;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  display: grid;
}
.value-card {
  border: 1px solid var(--border);
  background: #080808c7;
  border-radius: 20px;
  min-height: 245px;
  padding: 26px;
}
.value-card>span {
  color: #777;
  font-size: .65rem;
}
.value-card h3 {
  margin: 74px 0 16px;
  font-size: 1.35rem;
  font-weight: 450;
}
.value-card p {
  max-width: 340px;
  color: var(--muted);
  margin: 0;
  font-size: .84rem;
  line-height: 1.7;
}
.contact-section {
  background: #000000d1;
  align-items: center;
  display: flex;
}
.contact-layout {
  grid-template-columns: minmax(280px,.8fr) minmax(480px,1.2fr);
  align-items: start;
  gap: clamp(55px,9vw,150px);
  display: grid;
}
.contact-information h2 {
  letter-spacing: -.05em;
  max-width: 750px;
  margin: 24px 0 28px;
  font-size: clamp(3rem,5.5vw,7rem);
  font-weight: 280;
  line-height: .98;
}
.contact-introduction {
  max-width: 570px;
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
}
.contact-details {
  gap: 26px;
  margin-top: 55px;
  display: grid;
}
.contact-details div {
  gap: 9px;
  display: grid;
}
.contact-details span {
  color: #707070;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .62rem;
}
.contact-details a, .contact-details address {
  color: #d7d7d7;
  max-width: 480px;
  font-size: .92rem;
  font-style: normal;
  line-height: 1.65;
}
.contact-details a {
  border-bottom: 1px solid #555;
  width: fit-content;
}
.contact-form-wrapper {
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #080808db;
  border-radius: 26px;
  padding: clamp(24px,3.2vw,52px);
}
.contact-form {
  gap: 24px;
  display: grid;
}
.form-row {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  display: grid;
}
.form-field {
  gap: 10px;
  display: grid;
}
.form-field label {
  color: #a7a7a7;
  font-size: .72rem;
}
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--border);
  color: #fff;
  background: #030303;
  border-radius: 13px;
  outline: none;
  width: 100%;
  transition: border-color .18s,background .18s,box-shadow .18s;
}
.form-field input, .form-field select {
  min-height: 53px;
  padding: 0 16px;
}
.form-field textarea {
  resize: vertical;
  min-height: 150px;
  padding: 16px;
}
.form-field input::placeholder, .form-field textarea::placeholder {
  color: #595959;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  background: #070707;
  border-color: #ffffff9e;
  box-shadow: 0 0 0 3px #ffffff0b;
}
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg,#0000 50%,#818181 50%),linear-gradient(135deg,#818181 50%,#0000 50%);
  background-position: calc(100% - 19px) 23px,calc(100% - 14px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}
.form-field option {
  color: #fff;
  background: #080808;
}
.form-field [role=alert], .contact-form>[role=alert] {
  color: #ff8f8f;
  margin: 0;
  font-size: .72rem;
}
.form-footer {
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 4px;
  display: flex;
}
.form-footer p {
  color: #6f6f6f;
  max-width: 400px;
  margin: 0;
  font-size: .68rem;
  line-height: 1.6;
}
.submit-button {
  flex-shrink: 0;
  min-width: 182px;
}
.submit-button:disabled {
  cursor: wait;
  opacity: .55;
}
.honeypot {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -10000px;
  overflow: hidden;
}
.form-success {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 450px;
  display: flex;
}
.form-success>span {
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
  display: grid;
}
.form-success h3 {
  margin: 30px 0 14px;
  font-size: clamp(2rem,3vw,3.6rem);
  font-weight: 350;
}
.form-success p {
  max-width: 500px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}
.site-footer {
  border-top: 1px solid var(--border);
  background: #000;
  position: relative;
}
.footer-content {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 120px;
  display: grid;
}
.footer-brand {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .86rem;
  font-weight: 600;
}
.footer-content p {
  color: #6f6f6f;
  text-align: center;
  margin: 0;
  font-size: .68rem;
}
.footer-content>a:last-child {
  color: #999;
  justify-self: end;
  font-size: .74rem;
}
.visually-hidden {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  margin: -1px;
  position: absolute;
  overflow: hidden;
}
@media (width<=1180px) {
  .header-content {
    grid-template-columns: auto auto minmax(120px,1fr) auto;
  }
  .header-phrase p {
    max-width: 430px;
  }
  .main-navigation {
    gap: 22px;
  }
  .main-navigation a {
    font-size: .76rem;
  }
  .service-group {
    grid-template-columns: 1fr;
  }
  .service-group-intro p {
    max-width: 650px;
  }
}
@media (width<=860px) {
  :root {
    --header-height: 78px;
  }
  .section-container {
    width: min(calc(100% - 40px), var(--container));
  }
  .page-section {
    min-height: auto;
    padding-block: 125px 90px;
  }
  .site-header {
    padding-inline: 12px;
    top: 10px;
  }
  .header-content {
    border-radius: 18px;
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    padding: 4px 12px 4px 7px;
    overflow: visible;
  }
  .brand {
    width: 88px;
    min-height: 58px;
  }
  .brand img {
    width: 78px;
    height: 56px;
  }
  .header-divider, .header-phrase {
    display: none;
  }
  .menu-button {
    z-index: 4;
    border: 1px solid var(--border);
    cursor: pointer;
    background: #080808;
    border-radius: 50%;
    flex-direction: column;
    grid-column: 3;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    display: flex;
    position: relative;
  }
  .menu-button span {
    background: #fff;
    width: 17px;
    height: 1px;
    transition: transform .22s,opacity .22s;
  }
  .menu-button.is-open span:first-child {
    transform: translateY(4px)rotate(45deg);
  }
  .menu-button.is-open span:last-child {
    transform: translateY(-4px)rotate(-45deg);
  }
  .main-navigation {
    z-index: 3;
    border: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    background: #040404f7;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 18px;
    transition: opacity .2s,transform .2s,visibility .2s;
    display: flex;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    transform: translateY(-10px);
    box-shadow: 0 30px 60px #0000007a;
  }
  .main-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .main-navigation a {
    border-radius: 10px;
    padding: 15px 13px;
    font-size: .9rem;
  }
  .main-navigation a:after {
    display: none;
  }
  .main-navigation a:hover, .main-navigation a.is-active {
    background: #111;
  }
  .hero-section {
    min-height: 100svh;
    padding-top: 130px;
  }
  .hero-content {
    padding-top: 0;
  }
  .hero-title {
    overflow-wrap: anywhere;
    font-size: clamp(3.2rem,11vw,6.2rem);
  }
  .section-heading, .about-layout, .contact-layout {
    grid-template-columns: 1fr;
  }
  .section-heading .eyebrow, .section-heading h2, .section-heading>p:last-child {
    grid-area: auto/1;
  }
  .section-heading h2 {
    margin-top: 6px;
  }
  .service-card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .service-card:last-child {
    grid-column: 1/-1;
  }
  .service-card:last-child .service-image {
    aspect-ratio: 16/7;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .value-card {
    min-height: 210px;
  }
  .value-card h3 {
    margin-top: 55px;
  }
  .about-copy {
    max-width: 720px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-block: 32px;
  }
  .footer-content>a:last-child {
    justify-self: center;
  }
}
@media (width<=600px) {
  .section-container {
    width: calc(100% - 30px);
  }
  .page-section {
    padding-block: 108px 72px;
  }
  .hero-section {
    min-height: 100svh;
    padding-top: 112px;
  }
  .hero-title {
    letter-spacing: .015em;
    margin-top: 19px;
    font-size: clamp(2.85rem,15vw,4.4rem);
    line-height: .97;
  }
  .hero-description {
    max-width: 92%;
    font-size: .9rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    margin-top: 30px;
  }
  .primary-button {
    width: 100%;
  }
  .scroll-indicator {
    display: none;
  }
  .section-heading {
    gap: 18px;
    margin-bottom: 48px;
  }
  .section-heading h2, .about-heading h2, .contact-information h2 {
    font-size: clamp(2.55rem,12vw,4rem);
  }
  .service-group {
    border-radius: 22px;
    gap: 35px;
    padding: 22px;
  }
  .service-group-intro h3 {
    margin-top: 27px;
    font-size: 2.4rem;
  }
  .service-card-grid {
    grid-template-columns: 1fr;
  }
  .service-card:last-child {
    grid-column: auto;
  }
  .service-card:last-child .service-image, .service-image {
    aspect-ratio: 16/10;
  }
  .service-card-content {
    min-height: 185px;
  }
  .about-layout {
    gap: 40px;
  }
  .about-copy .about-lead {
    font-size: 1.05rem;
  }
  .contact-layout {
    gap: 46px;
  }
  .contact-form-wrapper {
    border-radius: 20px;
    padding: 21px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .submit-button {
    width: 100%;
  }
}
@media (width<=370px) {
  .hero-title {
    font-size: 2.65rem;
  }
  .service-group, .contact-form-wrapper {
    padding: 17px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *, :before, :after {
    scroll-behavior: auto!important;
    transition-duration: .01ms!important;
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
  }
}
.route-view, .route-main {
  min-height: 100svh;
  position: relative;
}
.route-main .hero-section {
  box-sizing: border-box;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  padding-top: calc(var(--header-height) + 55px);
  padding-bottom: 76px;
  position: relative;
  overflow: hidden;
}
.home-footer {
  z-index: 5;
  color: #777;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-top: 1px solid #ffffff21;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-top: 13px;
  font-size: .62rem;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  position: absolute;
  bottom: 18px;
  left: 4vw;
  right: 4vw;
}
.home-footer p {
  align-items: center;
  gap: 10px;
  margin: 0;
  display: flex;
}
.home-footer a {
  color: #8e8e8e;
  text-transform: lowercase;
  transition: color .18s;
}
.home-footer a:hover {
  color: #fff;
}
.services-section .section-heading h1 {
  color: #fff;
  letter-spacing: -.045em;
  grid-area: 1/2/span 2;
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem,4.8vw,6.2rem);
  font-weight: 300;
  line-height: 1.02;
}
.service-group-intro h2 {
  color: #fff;
  letter-spacing: -.045em;
  max-width: 390px;
  margin: 38px 0 24px;
  font-size: clamp(2rem,3.25vw,4.2rem);
  font-weight: 350;
  line-height: 1;
}
.service-card h3 {
  color: #fff;
  margin: 34px 0 12px;
  font-size: clamp(1rem,1.1vw,1.22rem);
  font-weight: 500;
  line-height: 1.25;
}
.about-heading h1 {
  color: #fff;
  letter-spacing: -.05em;
  max-width: 850px;
  margin: 25px 0 0;
  font-size: clamp(2.9rem,5.6vw,7.2rem);
  font-weight: 280;
  line-height: .99;
}
.value-card h2 {
  color: #fff;
  margin: 74px 0 16px;
  font-size: 1.35rem;
  font-weight: 450;
}
.contact-information h1 {
  color: #fff;
  letter-spacing: -.05em;
  max-width: 750px;
  margin: 24px 0 28px;
  font-size: clamp(3rem,5.5vw,7rem);
  font-weight: 280;
  line-height: .98;
}
.page-final-action {
  -webkit-backdrop-filter: blur(10px);
  background: #080808db;
  border: 1px solid #ffffff29;
  border-radius: 22px;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  margin-top: 70px;
  padding: 32px;
  display: flex;
}
.page-final-action p {
  color: #b3b3b3;
  max-width: 650px;
  margin: 0;
  font-size: clamp(1rem,1.3vw,1.35rem);
  font-weight: 300;
  line-height: 1.6;
}
.about-final-action {
  grid-column: 1/-1;
  margin-top: 0;
}
.about-values-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.page-loader {
  z-index: 200;
  color: #8d8d8d;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  background: #000;
  place-content: center;
  gap: 16px;
  font-size: .65rem;
  display: grid;
  position: fixed;
  inset: 0;
}
.page-loader-line {
  background: #ffffff26;
  width: 130px;
  height: 1px;
  overflow: hidden;
}
.page-loader-line:after {
  content: "";
  background: #fff;
  width: 45%;
  height: 100%;
  animation: 1.1s ease-in-out infinite page-loading;
  display: block;
}
@keyframes page-loading {
  0% { transform:translate(-110%); }
  to { transform:translate(330%); }
}
.not-found {
  box-sizing: border-box;
  align-items: center;
  min-height: 100svh;
  padding-block: 140px 80px;
  display: flex;
}
.not-found h1 {
  color: #fff;
  letter-spacing: -.055em;
  max-width: 900px;
  margin: 24px 0;
  font-size: clamp(3.5rem,7vw,8.5rem);
  font-weight: 250;
  line-height: .95;
}
.not-found p:not(.eyebrow) {
  color: #999;
  max-width: 530px;
  margin: 0 0 35px;
  line-height: 1.75;
}
@media (width<=1180px) {
  .about-values-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (width<=860px) {
  .services-section .section-heading h1 {
    grid-area: auto/1;
    margin-top: 6px;
  }
  .page-final-action {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  .about-heading h1, .contact-information h1 {
    font-size: clamp(2.55rem,12vw,4rem);
  }
}
@media (width<=600px) {
  .route-main .hero-section {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 90px;
  }
  .hero-title {
    margin-block: 18px 22px;
    font-size: clamp(2.65rem,14vw,4rem);
    line-height: .96;
  }
  .hero-description {
    max-width: 100%;
    font-size: .84rem;
    line-height: 1.6;
  }
  .hero-actions {
    gap: 14px;
    margin-top: 25px;
  }
  .home-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 9px;
    font-size: .51rem;
    line-height: 1.35;
    bottom: 12px;
    left: 15px;
    right: 15px;
  }
  .home-footer p {
    flex-wrap: wrap;
    gap: 6px;
  }
  .page-final-action {
    margin-top: 45px;
    padding: 22px;
  }
  .page-final-action .primary-button {
    width: 100%;
  }
  .service-group-intro h2 {
    margin-top: 27px;
    font-size: 2.4rem;
  }
  .value-card h2 {
    margin-top: 55px;
  }
}
@media (width<=600px) and (height<=740px) {
  .route-main .hero-section {
    padding-top: calc(var(--header-height) + 25px);
    padding-bottom: 76px;
  }
  .hero-title {
    margin-block: 12px 15px;
    font-size: clamp(2.25rem,12vw,3.25rem);
  }
  .hero-description {
    font-size: .76rem;
    line-height: 1.45;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }
  .hero-actions .primary-button {
    min-height: 46px;
  }
  .home-footer {
    font-size: .46rem;
    bottom: 9px;
  }
}
@media (width<=370px) {
  .route-main .hero-section {
    padding-top: calc(var(--header-height) + 25px);
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-description {
    font-size: .74rem;
  }
  .home-footer {
    left: 12px;
    right: 12px;
  }
}
@media (orientation:landscape) and (height<=650px) {
  .route-main .hero-section {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 50px;
  }
  .hero-content {
    padding-top: 0;
  }
  .hero-title {
    max-width: 800px;
    margin-block: 8px 10px;
    font-size: clamp(2rem,7vw,3.5rem);
    line-height: .93;
  }
  .hero-description {
    max-width: 540px;
    font-size: .7rem;
    line-height: 1.4;
  }
  .hero-actions {
    flex-direction: row;
    gap: 18px;
    margin-top: 13px;
  }
  .hero-actions .primary-button {
    width: auto;
    min-height: 42px;
  }
  .home-footer {
    flex-direction: row;
    font-size: .44rem;
    bottom: 7px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .page-loader-line:after {
    animation: none;
    transform: none;
  }
}


/* ==========================================================================
   NEURONALCODE · CAPA TECH (v2)
   Acentos sutiles inspirados en el degradado azul-violeta del logotipo.
   Todo lo que está abajo se suma al estilo original sin reemplazarlo.
   ========================================================================== */

:root {
  --accent-1: #5b8cff;
  --accent-2: #9b6bff;
  --accent-glow: #6d7cff40;
  --accent-gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[hidden] {
  display: none !important;
}

.program-panel:focus-visible {
  outline: 1px solid #7c8cff99;
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: #5b6cff;
}

/* Rejilla técnica muy tenue en el fondo, se desvanece hacia los bordes */
.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 20%, transparent 75%);
}

/* Halo de color muy suave */
.site::after {
  content: "";
  position: fixed;
  z-index: -2;
  pointer-events: none;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  right: -18vw;
  top: -22vw;
  border-radius: 50%;
  background: radial-gradient(circle, #5b6cff14, transparent 65%);
}

/* Eyebrows con prefijo de código */
.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .28em;
}
.eyebrow::before {
  content: "//";
  margin-right: .9em;
  letter-spacing: .05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Números de grupo y tarjetas en monoespaciado */
.group-number,
.card-topline,
.value-card > span {
  font-family: var(--font-mono);
}
.group-number {
  gap: 7px;
}
.group-number::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 8px var(--accent-1);
}

/* Cursor de escritura con color de marca */
.typing-cursor {
  width: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--accent-glow);
}
.hero-title .typing-cursor {
  width: .06em;
  margin-left: .08em;
}

/* Subrayado de navegación con degradado */
.main-navigation a::after {
  background: var(--accent-gradient);
}

/* Línea de progreso de lectura bajo el encabezado */
.header-content {
  position: relative;
}
.scroll-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: var(--accent-gradient);
  opacity: .8;
  pointer-events: none;
}

/* Tarjetas: brillo de borde y esquinas tipo visor al pasar el cursor */
.service-card,
.value-card,
.program-panel,
.method-step,
.mode-card {
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.service-card:hover,
.value-card:hover,
.method-step:hover,
.mode-card:hover {
  border-color: #7c8cff59;
  box-shadow: 0 18px 40px #0000002e, 0 0 0 1px #6d7cff1f, 0 0 40px -12px var(--accent-glow);
}
.service-card:hover {
  transform: translateY(-7px);
}
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.corner-frame::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--accent-1);
  border-left: 1px solid var(--accent-1);
  transform: translate(4px, 4px);
}
.corner-frame::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
  transform: translate(-4px, -4px);
}
.corner-frame:hover::before,
.corner-frame:hover::after {
  opacity: 1;
  transform: none;
}

a.service-card {
  display: block;
  color: inherit;
}
a.service-card:focus-visible {
  outline-offset: 3px;
}

/* Etiqueta "Nuevo" en el inicio */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 8px;
  border: 1px solid #7c8cff4d;
  border-radius: 999px;
  background: #0a0b14b3;
  color: #c9cdf5;
  font-size: .74rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.hero-badge:hover {
  border-color: #9aa6ff;
  background: #10122099;
  transform: translateY(-1px);
}
.hero-badge b {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-gradient);
}
.hero-badge span[aria-hidden] {
  color: #8f9bff;
}

/* Animación de aparición (solo con JavaScript activo) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"] { transform: translateX(-35px); }
.js [data-reveal="right"] { transform: translateX(35px); }
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.route-main {
  animation: route-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes route-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Pie de página para páginas interiores */
.site-footer {
  background: #000000d9;
}
.footer-brand {
  font-family: var(--font-mono);
  letter-spacing: .14em;
}
.footer-content > a:last-child:hover {
  color: #fff;
}

/* ==========================================================================
   FORMACIÓN
   ========================================================================== */

.training-section {
  background: #000000ad;
}

.training-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: clamp(60px, 7vw, 100px);
  background: #060606c2;
}
.training-stats div {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}
.training-stats div:last-child {
  border-right: 0;
}
.training-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -.03em;
  color: #fff;
}
.training-stats strong em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.training-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
}

.track {
  display: grid;
  gap: 30px;
  padding: clamp(32px, 4vw, 64px);
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(130deg, #ffffff0b, #ffffff03 45%, #0000), #060606c2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  scroll-margin-top: calc(var(--header-height) + 30px);
}
.track-intro {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.75fr);
  gap: 20px clamp(35px, 5vw, 90px);
  align-items: end;
}
.track-intro h2 {
  color: #fff;
  margin: 30px 0 0;
  font-size: clamp(2.2rem, 4vw, 5rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1;
}
.track-intro h2 small {
  display: block;
  margin-top: 14px;
  color: var(--muted-light);
  font-size: clamp(.95rem, 1.1vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0;
}
.track-intro p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
}

/* Títulos principales de páginas nuevas (mismo estilo que Servicios) */
.section-heading h1 {
  color: #fff;
  letter-spacing: -.045em;
  grid-area: 1 / 2 / span 2;
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 6.2rem);
  font-weight: 300;
  line-height: 1.02;
}

/* Selector de niveles tipo stepper */
.level-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
html:not(.js) .level-tabs {
  display: none;
}
.level-tab {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 18px 20px 18px 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #030303;
  color: #bdbdbd;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.level-tab:hover {
  border-color: var(--border-strong);
  color: #fff;
}
.level-tab::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1px solid #555;
  border-radius: 50%;
  background: #000;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.level-tab[aria-selected="true"] {
  color: #fff;
  border-color: #7c8cff73;
  background: linear-gradient(120deg, #5b8cff14, #9b6bff0d 60%, #0000), #050508;
}
.level-tab[aria-selected="true"]::before {
  border-color: transparent;
  background: var(--accent-gradient);
  box-shadow: 0 0 0 4px #6d7cff26, 0 0 16px var(--accent-1);
}
.level-tab .tab-level {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7a7a7a;
}
.level-tab[aria-selected="true"] .tab-level {
  color: #a9b4ff;
}
.level-tab .tab-name {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .02em;
}
.level-tab .tab-sub {
  color: #808080;
  font-size: .72rem;
  line-height: 1.45;
}

/* Panel del programa */
.program-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 4vw, 70px);
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #030303;
  scroll-margin-top: calc(var(--header-height) + 30px);
}
.js .program-panel[hidden] {
  display: none;
}
.js .program-panel.is-entering {
  animation: panel-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
html:not(.js) .program-panel + .program-panel {
  margin-top: 12px;
}
.program-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a9b4ff;
}
.program-panel h3 {
  color: #fff;
  margin: 18px 0 10px;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1;
}
.program-panel h3 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}
.program-subtitle {
  margin: 0 0 22px;
  color: #dedede;
  font-size: clamp(.98rem, 1.15vw, 1.2rem);
  font-weight: 300;
  line-height: 1.5;
}
.program-lead {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.75;
}
.program-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--border);
}
.program-meta div {
  padding: 15px 16px;
  background: #050505;
}
.program-meta dt {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6f6f6f;
}
.program-meta dd {
  margin: 7px 0 0;
  color: #d7d7d7;
  font-size: .8rem;
  line-height: 1.5;
}
.program-meta .wide {
  grid-column: 1 / -1;
}
.program-block-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.outcome-list {
  display: grid;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.outcome-list li {
  position: relative;
  padding-left: 22px;
  color: #b9b9b9;
  font-size: .82rem;
  line-height: 1.55;
}
.outcome-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-gradient);
}
.program-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

/* Lista de módulos tipo terminal */
.module-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  counter-reset: none;
  align-self: start;
}
.module-list .module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #080808;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #777;
}
.module-head i {
  display: inline-flex;
  gap: 6px;
}
.module-head i::before,
.module-head i::after,
.module-head i b {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2a;
}
.module-head i b {
  background: #3a3f6b;
}
.module-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid #ffffff12;
  transition: background .2s;
}
.module-list li:last-child {
  border-bottom: 0;
}
.module-list li:hover {
  background: #0b0b10;
}
.module-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: #7c8cff;
}
.module-title {
  color: #eee;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
}
.module-sub {
  display: block;
  margin-top: 4px;
  color: #808080;
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.5;
}
.module-time {
  font-family: var(--font-mono);
  font-size: .64rem;
  color: #5f5f5f;
  white-space: nowrap;
}
.module-list .module-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #080808;
  font-family: var(--font-mono);
  font-size: .64rem;
  color: #8a8a8a;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.module-foot strong {
  color: #fff;
  font-weight: 500;
}

/* Metodología */
.method {
  margin-top: clamp(70px, 8vw, 120px);
}
.method .section-heading {
  margin-bottom: clamp(40px, 5vw, 70px);
}
.method .section-heading h2 {
  color: #fff;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.method-step {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #080808c7;
}
.method-step > span {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: #777;
}
.method-step h3 {
  color: #fff;
  margin: 56px 0 14px;
  font-size: 1.3rem;
  font-weight: 450;
}
.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}
.method-step .arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: #7c8cff;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.mode-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(130deg, #ffffff08, #0000 60%), #060606c7;
}
.mode-card h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 450;
}
.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}
.mode-card .mode-label {
  display: block;
  margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a9b4ff;
}

.training-note {
  margin: 22px 0 0;
  color: #6f6f6f;
  font-size: .72rem;
  line-height: 1.6;
}


/* ==========================================================================
   Responsivo de las secciones nuevas
   ========================================================================== */

@media (width <= 1180px) {
  .training-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .training-stats div:nth-child(3) {
    border-right: 0;
  }
  .training-stats div:nth-child(n+4) {
    border-top: 1px solid var(--border);
  }
  .track-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .program-panel {
    grid-template-columns: 1fr;
  }
  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 860px) {
  .section-heading h1 {
    grid-area: auto / 1;
    margin-top: 6px;
  }
  .header-content .scroll-progress {
    left: 16px;
    right: 16px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .level-tabs {
    grid-template-columns: 1fr;
  }
  .level-tab {
    padding-block: 14px;
  }
}

@media (width <= 600px) {
  .section-heading h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }
  .training-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .training-stats div {
    padding: 20px 18px;
    border-right: 1px solid var(--border);
  }
  .training-stats div:nth-child(2n) {
    border-right: 0;
  }
  .training-stats div:nth-child(3) {
    border-right: 1px solid var(--border);
  }
  .training-stats div:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
  .training-stats div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .track {
    padding: 22px;
    border-radius: 22px;
  }
  .program-panel {
    padding: 20px;
  }
  .program-meta {
    grid-template-columns: 1fr;
  }
  .module-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .module-time {
    display: none;
  }
  .method-steps {
    grid-template-columns: 1fr;
  }
  .method-step {
    min-height: 0;
  }
  .method-step h3 {
    margin-top: 34px;
  }
  .program-actions .primary-button {
    width: 100%;
  }
  .hero-badge {
    font-size: .66rem;
    margin-bottom: 16px;
  }
  /* Evita que "NEURONALCODE" se parta en dos líneas en móviles */
  .hero-title {
    font-size: clamp(2.1rem, 10.4vw, 4rem);
    letter-spacing: 0;
    overflow-wrap: normal;
  }
  .site::before {
    background-size: 44px 44px;
  }
}

@media (orientation: landscape) and (height <= 650px) {
  .hero-badge {
    margin-bottom: 6px;
    padding-block: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .route-main {
    animation: none;
  }
}
