/* ================================================================
   AscendMind Engineering Solutions — styles.css
   ================================================================ */

/* ── RESET & BASE ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #0D1B2E;
  --navy-mid:  #112238;
  --navy-lt:   #1E4B78;
  --blue:      #2D87D2;
  --blue-lt:   #5AAEE8;
  --blue-pale: #C8E8FF;
  --white:     #fff;
  --offwhite:  #DEE3EC;
  --body:      #1E3050;
  --muted:     #5C6F8A;
  --rule:      #DDE6F2;
  --nav-h:     72px;
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--offwhite);
  color: var(--body);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ── READING PROGRESS BAR ──────────────────────────────────────── */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt), #00C8F0);
  z-index: 9999;
  transition: width .08s linear;
  box-shadow: 0 0 8px rgba(90,174,232,.5);
}

/* ── NAVIGATION ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  background: transparent;
  backdrop-filter: blur(0px);
  transition: background .4s ease, backdrop-filter .4s ease, transform .35s cubic-bezier(.16,.84,.74,1);
}

nav.nav--hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: #fff;
}

.nav-logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: .55rem;
  letter-spacing: .24em;
  color: var(--blue-lt);
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-lt);
  transition: width .3s cubic-bezier(.16,.84,.74,1);
}

.nav-links a:hover {
  color: var(--blue-lt);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background .3s cubic-bezier(.16,.84,.74,1),
              transform .3s cubic-bezier(.16,.84,.74,1),
              box-shadow .3s cubic-bezier(.16,.84,.74,1);
  font-size: .75rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
  text-decoration: none !important;
  position: relative;
}

.nav-cta:hover {
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(45,135,210,.25);
  color: #fff !important;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;
  background: rgba(13,27,46,.98);
  backdrop-filter: blur(16px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
  gap: 18px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .3s ease;
}

.nav-mobile-menu.open {
  opacity: 1;
}

.nav-mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .3s;
}

.nav-mobile-menu a:hover {
  color: #fff;
}

.nav-mobile-menu .nav-cta-mobile {
  background: var(--blue);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-menu .nav-cta-mobile:hover {
  background: var(--blue-lt);
}

/* ── SECTION LABELS ────────────────────────────────────────────── */
.sec-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--blue-lt);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sec-lbl::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-lt);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.sec-ttl {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -.01em;
  opacity: 0;
  animation: fadeUp .6s ease .2s both;
}

.sec-desc {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp .6s ease .25s both;
}

/* ── REVEAL ANIMATION ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ── HERO ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--space-xl);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

#fem-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Pause hero background animations when hero is not visible */
#hero.hero-paused .hero-refraction,
#hero.hero-paused .hero-grid,
#hero.hero-paused .hero-stress {
  animation-play-state: paused;
}

/* Refraction layer */
.hero-refraction {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,200,240,.03), transparent 70%);
  mix-blend-mode: overlay;
  animation: refractionShift 18s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes refractionShift {
  0%   { transform: scale(1) translate(0,0); opacity: .8; }
  50%  { transform: scale(1.05) translate(-20px,10px); opacity: 1; }
  100% { transform: scale(1) translate(10px,-10px); opacity: .8; }
}

/* Technical grid layer */
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(60deg, rgba(45,135,210,.012) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(45,135,210,.012) 1px, transparent 1px);
  background-size: 60px 60px;
  mix-blend-mode: screen;
  opacity: .04;
  animation: gridDrift 40s linear infinite;
  z-index: 2;
}

@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0; }
  50%  { background-position: 40px 20px, -20px 40px; }
  100% { background-position: 0 0, 0 0; }
}

/* Dynamic stress layer */
.hero-stress {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 40%, rgba(0,200,240,.05), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(45,135,210,.04), transparent 70%);
  mix-blend-mode: screen;
  filter: blur(60px);
  animation: stressFlow 22s ease-in-out infinite alternate;
  z-index: 3;
}

@keyframes stressFlow {
  0%   { transform: translate(0,0) scale(1); opacity: .8; }
  50%  { transform: translate(-30px,20px) scale(1.1); opacity: 1; }
  100% { transform: translate(20px,-10px) scale(1); opacity: .85; }
}

/* Vignette — FEM mesh dissolves before reaching borders */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--navy) 0%, var(--navy) 4%, transparent 22%),
    linear-gradient(to top,    var(--navy) 0%, var(--navy) 4%, transparent 28%),
    linear-gradient(to right,  var(--navy) 0%, var(--navy) 2%, transparent 18%),
    linear-gradient(to left,   var(--navy) 0%, var(--navy) 2%, transparent 18%);
  z-index: 4;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 5;
  transform: translateZ(60px);
  animation: fadeUp .8s ease both;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fadeUp .8s ease .1s both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.65);
}

h1.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--space-lg);
  letter-spacing: -.02em;
  animation: fadeUp .8s ease .2s both;
}

h1.hero-title .blue {
  color: var(--blue-lt);
  font-weight: 300;
  font-style: italic;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  animation: fadeUp .8s ease .3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeUp .8s ease .4s both;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: .68rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .4;
  animation: bounce 2s infinite;
  z-index: 5;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .05em;
  padding: 14px 32px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  text-decoration: none;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-p:hover {
  background: var(--blue-lt);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45,135,210,.25);
}

.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.75);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .05em;
  padding: 14px 32px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  text-decoration: none;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  cursor: pointer;
  background: transparent;
}

.btn-g:hover {
  border-color: var(--blue-lt);
  color: var(--blue-lt);
  background: rgba(90,174,232,.06);
}

/* ── SIMULACION ─────────────────────────────────────────────────── */
#simulacion {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

#simulacion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(90,174,232,.25) 30%, rgba(90,174,232,.45) 50%, rgba(90,174,232,.25) 70%, transparent 100%);
  pointer-events: none;
}

#simulacion .sec-lbl { color: var(--blue-lt); }
#simulacion .sec-ttl { color: #fff; }
#simulacion .sec-lbl::before { background: var(--blue-lt); }

.sim-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.sim-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -.01em;
  opacity: 0;
  animation: fadeUp .6s ease .2s both;
}

.sim-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp .6s ease .25s both;
}

.sim-body {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,.62);
  line-height: 1.85;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp .6s ease .3s both;
}

.sim-cta {
  margin-top: var(--space-lg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  color: rgba(255,255,255,.8);
  border-left: 3px solid var(--blue-lt);
  padding: 16px 20px 16px 22px;
  line-height: 1.75;
  background: linear-gradient(90deg, rgba(90,174,232,.06), transparent);
  opacity: 0;
  animation: fadeUp .6s ease .35s both;
}

.sim-cta strong { color: var(--blue-lt); font-weight: 700; }

.sim-card {
  background: rgba(255,255,255,.04);
  padding: 26px 22px;
  border: 1px solid rgba(90,174,232,.12);
  border-top: 2px solid rgba(90,174,232,.3);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: all .32s cubic-bezier(.16,.84,.74,1);
  position: relative;
  will-change: auto;
}

.sim-card::before {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-bottom: 1px solid rgba(90,174,232,.18);
  border-right: 1px solid rgba(90,174,232,.18);
  transition: all .32s;
  pointer-events: none;
}

.sim-card:hover::before { border-color: rgba(90,174,232,.5); width: 16px; height: 16px; }
.sim-card:hover { background: rgba(45,135,210,.09); border-color: rgba(90,174,232,.38); border-top-color: var(--blue-lt); transform: translateX(6px); }

.sim-card-text { position: relative; z-index: 1; }

.sim-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 7px;
  letter-spacing: .01em;
  line-height: 1.35;
}

.sim-card-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
}

/* ── SERVICIOS ──────────────────────────────────────────────────── */
#servicios {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--offwhite);
  position: relative;
}

#servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,135,210,.18) 40%, rgba(45,135,210,.32) 50%, rgba(45,135,210,.18) 60%, transparent);
}

#servicios .sec-lbl        { color: var(--blue-lt); margin-bottom: 12px; }
#servicios .sec-lbl::before{ background: var(--blue); }
#servicios .sec-lbl::after { background: rgba(255,255,255,.1); }
#servicios .sec-ttl        { color: var(--navy); }
#servicios .sec-desc       { color: var(--muted); text-align: left; margin-bottom: var(--space-lg); }
#servicios > .reveal       { margin-bottom: 0; }

.srv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: var(--space-lg);
}

.srv-card {
  background: #fff;
  padding: 28px 24px;
  border: 1px solid rgba(45,135,210,.12);
  border-top: 2px solid rgba(45,135,210,.25);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: all .32s cubic-bezier(.16,.84,.74,1);
  position: relative;
  overflow: hidden;
  will-change: auto;
}

/* Stagger entrance delays */
.srv-card:nth-child(1) { transition-delay: .04s; }
.srv-card:nth-child(2) { transition-delay: .1s; }
.srv-card:nth-child(3) { transition-delay: .16s; }
.srv-card:nth-child(4) { transition-delay: .22s; }

/* Corner accent */
.srv-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent rgba(45,135,210,.15) transparent transparent;
  transition: border-color .32s;
}

.srv-card:hover { background: #f4f9ff; border-color: rgba(45,135,210,.32); border-top-color: var(--blue); box-shadow: 4px 8px 24px rgba(45,135,210,.1); }
.srv-card:hover::after { border-color: transparent var(--blue) transparent transparent; }
.srv-card:hover .srv-badge { background: var(--blue); color: #fff; border-color: var(--blue); }
.srv-card:hover .srv-title svg { stroke: var(--blue-lt); }

.srv-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(45,135,210,.3);
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  transition: all .3s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.srv-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 12px;
}

.srv-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
  transition: stroke .3s;
}

.srv-intro {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--body);
  line-height: 1.8;
}

.srv-list-body {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-list-body li {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--body);
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.srv-list-body li::before {
  content: '';
  width: 2px;
  height: 14px;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: .38em;
  border-radius: 0;
}

/* ── ENFOQUE ─────────────────────────────────────────────────────── */
#enfoque {
  padding: var(--space-2xl) var(--space-xl);
  background: #f0f4f9;
  position: relative;
  overflow: hidden;
}

#enfoque::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,135,210,.2) 40%, rgba(45,135,210,.35) 50%, rgba(45,135,210,.2) 60%, transparent);
}

#enfoque .sec-lbl           { color: var(--blue); }
#enfoque .nos-section-title { color: var(--navy); }

.nos-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}

.nos-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -.01em;
  opacity: 0;
  animation: fadeUp .6s ease .2s both;
}

.nos-body {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--body);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

/* Valor rows */
.nos-valor {
  padding: 22px 0 22px 22px;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  transition: all .28s cubic-bezier(.16,.84,.74,1);
  position: relative;
}

.nos-valor:first-child { border-top: 1px solid var(--rule); }

.nos-valor:hover {
  border-left-color: var(--blue);
  padding-left: 30px;
  background: linear-gradient(90deg, rgba(45,135,210,.035), transparent);
}

.nos-val-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: .01em;
}

.nos-val-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
}

/* ── DIFERENCIA ──────────────────────────────────────────────────── */
#diferencia {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

/* ── IA STEPS ────────────────────────────────────────────────────── */
#ia { padding: var(--space-2xl) var(--space-xl); background: var(--offwhite); }

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

.ia-body {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--body);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(45,135,210,.28);
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .18em;
  padding: 7px 14px;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.ia-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.ia-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(45,135,210,.1) 100%);
}

.ia-step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
}

.ia-step:last-child { border-bottom: none; }
.ia-step:hover { padding-left: 10px; }

.ia-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
  line-height: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 1px solid var(--rule);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  flex-shrink: 0;
}

.ia-step:hover .ia-num { background: var(--blue); color: #fff; border-color: var(--blue); }

.ia-step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color .3s;
}

.ia-step:hover .ia-step-title { color: var(--blue); }

.ia-step-body {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
}

.ia-privacy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: var(--space-lg);
  padding: 16px 18px;
  background: rgba(45,135,210,.05);
  border: 1px solid rgba(45,135,210,.15);
  border-left: 3px solid var(--blue);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.ia-privacy svg {
  width: 15px;
  height: 15px;
  stroke: var(--blue);
  flex-shrink: 0;
  fill: none;
  margin-top: 3px;
}

.ia-privacy span {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
}

.ia-steps-lbl {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* ── DIAGNOSTICO (AM-FDT) ────────────────────────────────────────── */
#diagnostico {
  padding: var(--space-2xl) var(--space-xl);
  background: #f0f4f9;
  position: relative;
  overflow: hidden;
}

/* ── CLIENTES (marquee) ──────────────────────────────────────────── */
#clientes {
  padding: var(--space-xl) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#clientes::before,
#clientes::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

#clientes::before { left: 0;  background: linear-gradient(to right, var(--navy) 30%, transparent); }
#clientes::after  { right: 0; background: linear-gradient(to left,  var(--navy) 30%, transparent); }

.cli-header {
  text-align: left;
  padding: 0 var(--space-xl);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 3;
  transform: translateZ(0);
}

.cli-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: var(--space-md);
}

.cli-track-wrap { overflow: hidden; width: 100%; padding: 8px 0; }

.cli-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.cli-track:hover { animation-play-state: paused; }

.cli-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  gap: 4px;
  border-right: 1px solid rgba(90,174,232,.15);
  cursor: default;
  transition: opacity .3s;
}

.cli-logo:last-child { border-right: none; }

.cli-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .12em;
  color: #fff;
  opacity: .55;
  transition: opacity .3s, color .3s;
  text-transform: uppercase;
  white-space: nowrap;
}

.cli-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: .6rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
  opacity: .55;
  transition: opacity .3s;
  text-transform: uppercase;
  white-space: nowrap;
}

.cli-logo:hover .cli-name { opacity: 1; color: var(--blue-lt); }
.cli-logo:hover .cli-sub  { opacity: .75; }

/* ── CASOS ──────────────────────────────────────────────────────── */
#casos {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

#casos .sec-lbl { color: var(--blue-lt); }
#casos .sec-ttl { color: #fff; }
#casos .sec-lbl::before { background: var(--blue-lt); }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: var(--space-lg);
  background: rgba(90,174,232,.09);
}

.caso-card {
  background: var(--navy-mid);
  padding: 30px 26px;
  transition: all .32s cubic-bezier(.16,.84,.74,1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 0;
  border: none;
}

.caso-card::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(90,174,232,.2);
  border-right: 1px solid rgba(90,174,232,.2);
  transition: all .32s;
  pointer-events: none;
}

.caso-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s cubic-bezier(.16,.84,.74,1);
}

.caso-card:hover::before { border-color: rgba(90,174,232,.55); width: 20px; height: 20px; }
.caso-card:hover { background: rgba(45,135,210,.08); }
.caso-card:hover::after { transform: scaleX(1); }

.caso-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--blue-lt);
  background: transparent;
  border: 1px solid rgba(90,174,232,.22);
  padding: 4px 10px;
  display: inline-block;
  text-transform: uppercase;
  width: fit-content;
  border-radius: 4px;
}

.caso-title   { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.02rem; color: #fff; line-height: 1.3; margin: 0; }
.caso-resultado { font-size: .98rem; font-weight: 600; color: var(--blue-lt); margin: 0; font-family: 'Montserrat', sans-serif; }
.caso-desc    { font-size: .94rem; font-weight: 400; color: rgba(255,255,255,.58); line-height: 1.75; margin: 0; flex-grow: 1; }
.caso-tags    { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.caso-tags span {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(90,174,232,.65);
  background: rgba(45,135,210,.07);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .04em;
}

/* ── CONTACTO ────────────────────────────────────────────────────── */
#contacto {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--navy);
}

#contacto .ia-step           { border-bottom-color: rgba(90,174,232,.12); }
#contacto .ia-step:hover .ia-num   { background: var(--blue-lt); color: #fff; border-color: var(--blue-lt); }
#contacto .ia-step:hover .ia-step-title { color: var(--blue-lt); }
#contacto .sec-lbl  { color: var(--blue-lt); }
#contacto .sec-ttl  { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
#contacto .sec-desc { color: rgba(255,255,255,.5); margin-bottom: var(--space-2xl); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: var(--space-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-top: 1px solid rgba(90,174,232,.1);
}

.c-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(90,174,232,.1);
  transition: padding-left .25s ease;
}

.c-row:hover { padding-left: 8px; }

.c-icon {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid rgba(90,174,232,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transition: all .28s;
}

.c-row:hover .c-icon { background: rgba(45,135,210,.15); border-color: var(--blue-lt); }
.c-icon svg { width: 14px; height: 14px; stroke: var(--blue-lt); stroke-width: 2; }

.c-val { font-size: .93rem; color: rgba(255,255,255,.6); font-weight: 400; line-height: 1.6; }
.c-val a { color: var(--blue-lt); text-decoration: none; transition: color .2s; font-weight: 500; }
.c-val a:hover { color: #fff; }
.c-val a[href*="linkedin"]       { color: var(--blue-lt); }
.c-val a[href*="linkedin"]:hover { color: #fff; }

.contact-cards { display: flex; flex-direction: column; gap: 1px; margin-top: var(--space-lg); background: rgba(90,174,232,.07); }

.contact-person {
  background: var(--navy);
  padding: 20px 22px;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  position: relative;
  border-left: 2px solid transparent;
  border-radius: 0;
}

.contact-person:hover { background: rgba(45,135,210,.08); border-left-color: var(--blue-lt); padding-left: 30px; }

.cp-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: 8px; letter-spacing: .02em; }
.cp-rows { display: flex; flex-direction: column; gap: 6px; }

/* ── FORM ────────────────────────────────────────────────────────── */
.contact-form-modern { display: flex; flex-direction: column; gap: var(--space-md); }

.form-group { display: flex; flex-direction: column; gap: 8px; position: relative; }

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  transition: all .3s;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(90,174,232,.22);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  padding: 12px 16px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .98rem;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  outline: none;
  position: relative;
  z-index: 1;
}

.form-group input:invalid,
.form-group input:required { box-shadow: none; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.4); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255,255,255,.11);
  border-color: var(--blue-lt);
  box-shadow: 0 0 0 4px rgba(90,174,232,.15);
  transform: translateY(-1px);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--navy); color: #fff; }

.btn-submit {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  text-transform: uppercase;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
  z-index: 0;
}

.btn-submit:hover::before { left: 100%; }
.btn-submit:hover { background: linear-gradient(135deg, var(--blue-lt) 0%, #4AABE8 100%); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45,135,210,.28); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-submit span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }

.form-note { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; margin-top: 12px; animation: fadeIn .4s ease .3s both; }

.form-status {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-size: .93rem;
  font-weight: 500;
  transition: all .3s;
  opacity: 0;
  animation: slideDown .3s ease both;
}

.form-status.success { background: rgba(34,197,94,.18); color: #86efac; border: 1.5px solid rgba(34,197,94,.4); animation: slideDown .3s ease both; }
.form-status.error   { background: rgba(239,68,68,.18);  color: #fca5a5; border: 1.5px solid rgba(239,68,68,.4);  animation: slideDown .3s ease both; }

.recaptcha-notice { font-size: .78rem; color: rgba(255,255,255,.4); text-align: center; margin-top: 8px; line-height: 1.5; }
.recaptcha-notice a { color: rgba(90,174,232,.6); text-decoration: none; }
.recaptcha-notice a:hover { color: var(--blue-lt); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(45,135,210,.18);
  padding: 32px var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.f-brand { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .12em; color: rgba(255,255,255,.4); }
.f-brand span { color: var(--blue-lt); }

.f-links { display: flex; gap: var(--space-lg); list-style: none; }
.f-links a { font-size: .78rem; color: rgba(255,255,255,.4); text-decoration: none; transition: all .3s; font-family: 'Montserrat', sans-serif; font-weight: 500; }
.f-links a:hover { color: var(--blue-lt); }

.f-copy { font-size: .75rem; color: rgba(255,255,255,.25); font-weight: 300; width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.06); padding-top: var(--space-md); margin-top: 12px; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  z-index: 999;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  text-decoration: none;
}

.wa-float:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(37,211,102,.5); }
.wa-float svg { width: 28px; height: 28px; }

/* ── MISC COMPONENTS ─────────────────────────────────────────────── */
.responsive-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.grecaptcha-badge { box-shadow: none !important; border-radius: 8px !important; opacity: .7; transition: opacity .3s; }
.grecaptcha-badge:hover { opacity: 1; }

/* Typewriter cursor */
.typewriter-cursor { display: inline-block; width: 2px; height: .9em; background: var(--blue-lt); margin-left: 2px; vertical-align: middle; animation: blink .75s step-end infinite; }

/* AM-FDT badge pulse */
.am-soon-badge { animation: pulseBadge 2s ease-in-out infinite; }

/* ── KEYFRAMES ───────────────────────────────────────────────────── */
@keyframes fadeUp      { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown   { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink       { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes bounce      { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes marquee     { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulseBadge  { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  #hero, #simulacion, #servicios, #ia, #nosotros, #enfoque, #diferencia, #casos, #contacto { padding: 80px 32px; }
  .srv-grid, .casos-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .sim-grid, .nos-grid, .ia-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; --space-xl: 32px; --space-2xl: 60px; }
  nav { padding: 0 20px; height: 64px; }
  .nav-logo img { width: 180px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  #hero { padding: 60px 20px; min-height: 100svh; }
  h1.hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { gap: 12px; flex-direction: column; align-items: center; }
  .btn-p, .btn-g { padding: 14px 28px; font-size: .85rem; width: 100%; justify-content: center; max-width: 320px; }
  #simulacion, #servicios, #ia, #nosotros, #enfoque, #diferencia, #casos, #contacto { padding: 60px 20px; }
  .sec-ttl { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
  .sec-desc { font-size: 1rem; margin-bottom: 20px; }
  .srv-grid, .casos-grid { grid-template-columns: 1fr; gap: 16px; }
  .srv-card, .caso-card { padding: 24px 20px; }
  .sim-grid, .nos-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .sim-section-title, .nos-section-title, .cli-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .sim-body, .nos-body, .contact-intro { font-size: 1rem; }
  .ia-grid { gap: 16px; grid-template-columns: 1fr; }
  .ia-steps::before { left: 21px; top: 50px; }
  .ia-num { width: 46px; height: 46px; font-size: 1.4rem; }
  .form-group input, .form-group select, .form-group textarea { font-size: 1rem; padding: 12px 14px; }
  .btn-submit { padding: 14px 24px; font-size: .85rem; width: 100%; }
  footer { padding: 20px; gap: 12px; flex-direction: column; text-align: center; }
  .f-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .f-copy { margin-top: 16px; padding-top: 16px; }
  .nos-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .sim-grid { grid-template-columns: 1fr !important; gap: var(--space-md); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .responsive-2col { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; gap: 16px !important; }
  #diagnostico { padding: 60px 20px; }
  /* Stack inline grid forms */
  div[style*="grid-template-columns:1fr 1fr"] { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  /* Reduce marquee fade width */
  #clientes::before, #clientes::after { width: 60px; }
  .cli-logo { padding: 12px 28px; }
  .cli-name { font-size: .88rem; }
  .cli-track { animation-duration: 22s; }
  /* Reduce hero vignette */
  .hero-vignette {
    background:
      linear-gradient(to bottom, var(--navy) 0%, var(--navy) 4%, transparent 18%),
      linear-gradient(to top,    var(--navy) 0%, var(--navy) 4%, transparent 22%),
      linear-gradient(to right,  var(--navy) 0%, transparent 8%),
      linear-gradient(to left,   var(--navy) 0%, transparent 8%);
  }
}

@media (max-width: 600px) {
  .srv-card { clip-path: none; border-radius: 0; border-top: 2px solid rgba(45,135,210,.3); }
  .srv-badge { clip-path: none; border-radius: 0; }
  .srv-card:hover { transform: none; box-shadow: none; background: #eef5fc; }
  .casos-grid { grid-template-columns: 1fr; gap: 12px; }
  .caso-card { clip-path: none; border-radius: 8px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 56px; --space-lg: 20px; --space-md: 14px; --space-xl: 16px; --space-2xl: 40px; }
  nav { padding: 0 16px; height: 56px; }
  .nav-logo img { width: 150px; }
  #hero { padding: 50px 16px; }
  h1.hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-eyebrow { font-size: .6rem; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 20px; }
  .hero-sub { font-size: .95rem; line-height: 1.6; }
  .btn-p, .btn-g { padding: 12px 20px; font-size: .8rem; }
  #simulacion, #servicios, #ia, #nosotros, #enfoque, #diferencia, #casos, #contacto { padding: 40px 16px; }
  #diagnostico { padding: 40px 16px; }
  .sec-lbl { font-size: .6rem; gap: 8px; margin-bottom: 12px; }
  .sec-lbl::after { width: 30px; }
  .sec-ttl { font-size: clamp(1.3rem, 4vw, 1.8rem); margin-bottom: 12px; }
  .sec-desc { font-size: .95rem; margin-bottom: 16px; }
  .sim-section-title, .nos-section-title, .cli-title { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .sim-grid, .nos-grid, .contact-grid, .ia-grid { gap: 16px; }
  .srv-card, .caso-card, .nos-valor, .contact-person { padding: 20px 16px; }
  .sim-card-title, .srv-title, .nos-val-title, .cp-name { font-size: 1rem; }
  .sim-card-body, .srv-intro, .nos-val-desc { font-size: .9rem; }
  .srv-badge, .caso-badge { font-size: .6rem; padding: 5px 10px; }
  .srv-list-body li { font-size: .9rem; gap: 8px; }
  .ia-steps::before { left: 19px; top: 40px; }
  .ia-num { width: 40px; height: 40px; font-size: 1.2rem; }
  .ia-step { padding: 16px 0; gap: 16px; }
  .ia-step-title { font-size: .95rem; margin-bottom: 6px; }
  .ia-step-body { font-size: .85rem; }
  .ia-privacy { gap: 10px; padding: 12px 16px; }
  .ia-privacy svg { width: 16px; height: 16px; }
  .ia-privacy span { font-size: .85rem; }
  .form-group { gap: 6px; }
  .form-group label { font-size: .78rem; }
  .form-group input, .form-group select, .form-group textarea { font-size: .95rem; padding: 10px 12px; border-radius: 0; }
  .btn-submit { padding: 12px 20px; font-size: .8rem; }
  .form-note, .recaptcha-notice { font-size: .75rem; margin-top: 8px; }
  .contact-info { gap: 14px; }
  .c-icon { width: 36px; height: 36px; }
  .c-icon svg { width: 14px; height: 14px; }
  .c-val { font-size: .9rem; }
  .c-row { gap: 10px; }
  footer { padding: 16px; flex-direction: column; gap: 10px; text-align: center; }
  .f-brand { font-size: .7rem; }
  .f-links { gap: 12px; font-size: .7rem; }
  .f-copy { font-size: .65rem; margin-top: 12px; padding-top: 12px; }
  .wa-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
  #contacto [style*="clip-path"] { padding: 24px 16px !important; }
}

/* Disable 3D tilt on touch devices */
@media (hover: none) {
  .srv-card { transform: none !important; will-change: auto; }
}

/* ── CLASSES REPLACING INLINE STYLES ─────────────────────────── */

/* #diferencia glow orb */
.diferencia-glow {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(45,135,210,.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* #diagnostico content classes */
.diagnostico-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -.01em;
  animation: fadeUp .6s ease .15s both;
}

.diagnostico-body {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: var(--space-xl);
  animation: fadeUp .6s ease .2s both;
  min-height: 3.6em;
}

.diagnostico-privacy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-md) 20px;
  background: rgba(45,135,210,.06);
  border: 1.5px solid rgba(45,135,210,.18);
  border-left: 3px solid var(--blue);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  margin-bottom: var(--space-lg);
  animation: fadeUp .6s ease .28s both;
}

.diagnostico-privacy svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-lt);
  flex-shrink: 0;
}

.diagnostico-privacy span {
  font-size: .94rem;
  color: var(--navy);
  line-height: 1.6;
}

.diagnostico-cta {
  font-size: 1rem;
  color: var(--navy);
  animation: fadeUp .6s ease .3s both;
  margin-bottom: var(--space-md);
}

.diagnostico-cta strong { color: var(--navy); }

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  animation: fadeUp .6s ease .35s both;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  background: #fff;
  border: 1.5px solid rgba(45,135,210,.3);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  padding: 0 16px;
  color: var(--body);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .3s;
  box-sizing: border-box;
}

.waitlist-input:focus { border-color: var(--blue); }

.waitlist-btn {
  height: 48px;
  padding: 0 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s cubic-bezier(.16,.84,.74,1);
  box-sizing: border-box;
}

.waitlist-btn:hover { background: var(--blue-lt); transform: translateY(-2px); }
.waitlist-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.waitlist-status {
  width: 100%;
  font-size: .88rem;
  min-height: 20px;
}

/* #contacto intro paragraph */
.contacto-intro {
  color: rgba(255,255,255,.6);
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
}

/* Dark ia-num variant (used in contacto) */
.ia-num--dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(90,174,232,.2);
  color: var(--blue-lt);
}

.ia-step-title--light { color: #fff; }
.ia-step-body--light  { color: rgba(255,255,255,.55); }
