/* ══════════════════════════════════════════════════
   NEXO PH — Diseño editorial
   Fuente display: Fraunces (serif óptico variable)
   Fuente UI: Inter
   ══════════════════════════════════════════════════ */

:root {
  /* Paleta */
  --ink:   #0C1A2B;
  --navy:  #162F52;
  --teal:  #0B7A5E;
  --teal2: #0A6550;
  --wa:    #25D366;

  --cream: #F5F0E8;
  --warm:  #EDE7DC;
  --white: #FFFFFF;
  --mist:  #F9F7F4;

  --t1: #18181C;
  --t2: #445060;
  --t3: #7B8A98;
  --border: #DDD7CE;

  /* Sombras */
  --sh0: 0 1px 4px rgba(12,26,43,.06);
  --sh1: 0 4px 20px rgba(12,26,43,.10);
  --sh2: 0 12px 48px rgba(12,26,43,.15);

  /* Espacios */
  --sec: 7rem;
  --max: 1140px;

  /* Easings */
  --ease:   cubic-bezier(.25,.46,.45,.94);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --out:    cubic-bezier(0,0,.2,1);
}

/* ── Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--t1);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── Tipo compartido ─────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-eyebrow.light { color: rgba(255,255,255,.5); }

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--t1);
  margin-bottom: 1.25rem;
}
.section-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
}
.section-title.light { color: #fff; }

/* ── Botones ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 600;
  border: 2px solid var(--teal);
  transition: background .22s var(--ease), transform .2s var(--spring), box-shadow .22s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.btn-primary:hover {
  background: var(--teal2);
  border-color: var(--teal2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11,122,94,.28);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.28);
  transition: background .22s var(--ease), border-color .22s var(--ease);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  background: var(--wa);
  color: #fff;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 600;
  border: 2px solid var(--wa);
  transition: filter .22s var(--ease), transform .2s var(--spring);
}
.btn-wa:hover { filter: brightness(.9); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }
.btn-lg   { padding: 1.05rem 2.1rem; font-size: 1.05rem; border-radius: 12px; }

/* ── Navbar ──────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-wrap.scrolled { border-color: var(--border); box-shadow: 0 2px 24px rgba(12,26,43,.08); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo img { height: 38px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-divide { width: 1px; height: 18px; background: var(--border); margin: 0 .4rem; }

.nav-links a {
  display: block;
  padding: .38rem .65rem;
  font-size: .855rem;
  font-weight: 500;
  color: var(--t2);
  border-radius: 8px;
  transition: color .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); background: rgba(22,47,82,.06); }
.nav-links a.active { color: var(--navy); }

.nav-portal { font-size: .8rem; color: var(--t3) !important; }
.nav-portal:hover { color: var(--navy) !important; }

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .45rem 1rem !important;
  border-radius: 9px !important;
}
.nav-cta:hover { background: var(--teal2) !important; color: #fff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  width: 38px;
  height: 38px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .28s var(--ease), width .28s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); display: block; }

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}

/*
  IMAGEN DE FONDO DEL HERO
  ─────────────────────────────────────────────────────
  Cuando tengas una foto real de un conjunto/edificio:
    1. Guárdala como: images/hero-edificio.jpg
       (recomendado: 1920×1080 px, JPG comprimido)
    2. Descomenta el bloque de abajo y borra esta línea:
  ─────────────────────────────────────────────────────
  .hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-edificio.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: .28;
  }
*/

/* Mientras no hay foto: gradiente ambiental */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 5% 100%, rgba(11,122,94,.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 95% 0%,  rgba(22,47,82,.38) 0%, transparent 55%);
  pointer-events: none;
}

/* Ola inferior */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 72px;
  background: var(--cream);
  clip-path: ellipse(58% 100% at 50% 100%);
}

.hero-body { position: relative; z-index: 2; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255,255,255,.48);
  margin-bottom: 1.75rem;
}
.kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(11,122,94,.22);
  animation: kpulse 2.6s ease infinite;
}
@keyframes kpulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(11,122,94,.22); }
  50%      { box-shadow: 0 0 0 10px rgba(11,122,94,.04); }
}

.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: .97;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .05em;
}
.ht-line { display: block; }
.ht-italic { font-style: italic; color: rgba(255,255,255,.65); }

.hero-foot { max-width: 560px; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  line-height: 1.72;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.25rem; }
.hero-fine { font-size: .78rem; color: rgba(255,255,255,.28); letter-spacing: .05em; }

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3) 0%, transparent 100%);
  animation: sdrop 2.2s ease infinite;
}
@keyframes sdrop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  45%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  85%  { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; }
}

/* ── Marquee ─────────────────────────────────────── */
.marquee-wrap {
  background: var(--cream);
  overflow: hidden;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
}
.marquee-track span[aria-hidden] { color: var(--border); font-weight: 400; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Verdades ────────────────────────────────────── */
.verdades { background: var(--cream); padding: var(--sec) 0; }

.v-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 3rem;
}

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

.v-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease), padding .25s var(--ease-spring, var(--spring));
  border-radius: 0;
}
.v-item:hover {
  background: var(--warm);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 16px;
  border-color: transparent;
}

.v-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--t3);
  padding-top: .35rem;
  opacity: .6;
}

.v-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--t1);
  margin-bottom: .85rem;
}
.v-body {
  font-size: .95rem;
  color: var(--t2);
  line-height: 1.72;
  max-width: 620px;
}

.v-cta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.v-cta p { font-size: 1rem; color: var(--t2); flex: 1; min-width: 240px; }

/* ── Problema → Solución ─────────────────────────── */
.problema { background: var(--ink); padding: var(--sec) 0; }

.prob-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.prob-list { display: flex; flex-direction: column; margin-top: 1.75rem; }
.prob-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.prob-list li:last-child { border: none; }
.prob-list i { color: rgba(255,100,80,.7); margin-top: .15rem; flex-shrink: 0; }
.prob-list strong { display: block; font-size: .94rem; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: .2rem; }
.prob-list div > :last-child { font-size: .86rem; color: rgba(255,255,255,.45); line-height: 1.55; }

.sol-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2.25rem;
  position: sticky;
  top: 80px;
  backdrop-filter: blur(8px);
}
.sol-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sol-list { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.75rem; }
.sol-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .93rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.sol-list i { color: var(--teal); margin-top: .18rem; flex-shrink: 0; }

/* ── Servicios (lista interactiva) ───────────────── */
.servicios { background: var(--white); padding: var(--sec) 0; }

.srv-header { margin-bottom: 3.5rem; }

.srv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  border-top: 1px solid var(--border);
}

.srv-list { border-right: 1px solid var(--border); }

.srv-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left .22s var(--spring), color .18s var(--ease);
  position: relative;
}
.srv-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform .22s var(--ease);
  border-radius: 0 2px 2px 0;
}
.srv-item.active { color: var(--teal); padding-left: .75rem; }
.srv-item.active::before { transform: scaleY(1); }
.srv-item:hover:not(.active) { padding-left: .4rem; color: var(--navy); }

.srv-n { font-size: .72rem; font-weight: 700; color: var(--t3); width: 22px; flex-shrink: 0; }
.srv-item.active .srv-n { color: var(--teal); }
.srv-name { font-size: .95rem; font-weight: 600; flex: 1; color: inherit; }
.srv-arrow { font-size: .72rem; color: var(--t3); opacity: 0; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.srv-item.active .srv-arrow { opacity: 1; transform: translateX(3px); color: var(--teal); }

.srv-panel {
  padding: 2.5rem 0 2.5rem 3rem;
  position: sticky;
  top: 80px;
  min-height: 280px;
}

.srv-detail-num {
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(22,47,82,.07);
  line-height: 1;
  margin-bottom: -.5rem;
}
.srv-detail-icon {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.srv-detail-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.srv-detail-body {
  font-size: .95rem;
  color: var(--t2);
  line-height: 1.72;
  max-width: 400px;
}

/* ── Nosotros (manifiesto) ───────────────────────── */
.nosotros { background: var(--mist); padding: var(--sec) 0; }

.nos-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}
.nos-left { position: sticky; top: 80px; }
.nos-left .section-title { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }

.nos-lead {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.68;
  margin-bottom: 1.25rem;
}
.nos-body { font-size: .98rem; color: var(--t2); line-height: 1.75; margin-bottom: 1rem; }

.nos-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--teal);
  margin-top: 1.5rem;
}

.nos-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.nos-pillar {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  transition: background .22s var(--ease);
}
.nos-pillar:hover { background: var(--cream); }
.nos-pillar-label {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: .6rem;
}
.nos-pillar p { font-size: .86rem; color: var(--t2); line-height: 1.62; }

/* ── Proceso ─────────────────────────────────────── */
.proceso { background: var(--navy); padding: var(--sec) 0; }

.proc-header { max-width: 560px; margin-bottom: 4rem; }

.proc-steps {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 3.5rem;
}

.proc-step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 2.25rem 1.75rem;
  transition: background .25s var(--ease), transform .3s var(--spring);
}
.proc-step:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }

.proc-n {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,.1);
  line-height: 1;
  margin-bottom: .75rem;
}
.proc-step h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.proc-step p  { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.65; }

.proc-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.18);
  font-size: 1.4rem;
}
.proc-connector::after { content: '→'; }

.proc-cta { text-align: center; }

/* ── Testimonios (carousel) ──────────────────────── */
.testimonios { background: var(--cream); padding: var(--sec) 0; }
.testimonios > .container > .section-eyebrow { display: block; margin-bottom: 2.5rem; }

.test-track {
  display: grid;
}

.test-item {
  grid-area: 1 / 1;   /* todos en la misma celda del grid */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.test-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s 0s;
}

.test-item blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.45;
  margin-bottom: 1.75rem;
  max-width: 780px;
  quotes: "\201C" "\201D";
}
.test-item blockquote::before { content: open-quote; }
.test-item blockquote::after  { content: close-quote; }

.test-item figcaption { display: flex; flex-direction: column; gap: .2rem; }
.test-item figcaption strong { font-size: .92rem; font-weight: 700; color: var(--t1); }
.test-item figcaption span   { font-size: .82rem; color: var(--t3); }

.test-nav {
  display: flex;
  gap: .5rem;
  margin-top: 2.5rem;
}
.test-dot {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background .25s var(--ease), width .3s var(--spring);
  cursor: pointer;
}
.test-dot.active { background: var(--teal); width: 52px; }

/* ── Diagnóstico ─────────────────────────────────── */
.diagnostico { background: var(--white); padding: var(--sec) 0; }

.diag-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.diag-desc { font-size: .98rem; color: var(--t2); line-height: 1.72; margin-bottom: 1.5rem; }

.diag-check { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.75rem; }
.diag-check li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .94rem;
  color: var(--t1);
  font-weight: 500;
}
.diag-check li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.diag-badge {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: rgba(11,122,94,.07);
  border: 1px solid rgba(11,122,94,.18);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.diag-badge > i { color: var(--teal); font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.diag-badge strong { display: block; font-size: .92rem; font-weight: 700; color: var(--t1); margin-bottom: .2rem; }
.diag-badge span { font-size: .82rem; color: var(--t2); }

/* ── Formularios ─────────────────────────────────── */
.form-card {
  background: var(--mist);
  border-radius: 22px;
  padding: 2.25rem;
  border: 1px solid var(--border);
}
.form-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: .85rem; }
.form-row:first-of-type { margin-top: 0; }
.fg { display: flex; flex-direction: column; gap: .38rem; margin-top: .85rem; }
.fg:first-child { margin-top: 0; }
.form-row .fg { margin-top: 0; }

.fg label { font-size: .85rem; font-weight: 600; color: var(--t1); }

.fg input, .fg select, .fg textarea {
  padding: .8rem .95rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--t1);
  background: var(--white);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--t3); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,47,82,.1);
}
.fg input.err, .fg select.err, .fg textarea.err {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
  animation: shake .3s var(--ease);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}
.fg textarea { resize: vertical; min-height: 90px; }
.form-legal { font-size: .74rem; color: var(--t3); text-align: center; margin-top: .75rem; }

.fg + .btn-primary, .fg + .btn-full { margin-top: 1rem; }

/* Form success */
.form-ok {
  background: var(--mist);
  border-radius: 22px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
}
.form-ok > i  { font-size: 3rem; color: var(--teal); margin-bottom: 1rem; display: block; }
.form-ok h3   { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 900; margin-bottom: .6rem; color: var(--t1); }
.form-ok p    { font-size: .96rem; color: var(--t2); margin-bottom: 1.5rem; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.65; }

/* ── Contacto ────────────────────────────────────── */
.contacto { background: var(--cream); padding: var(--sec) 0; }

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.ct-items { display: flex; flex-direction: column; margin-top: 1.5rem; }
.ct-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .2s var(--spring);
}
.ct-item:last-child { border: none; }
a.ct-item:hover { padding-left: .5rem; }
.ct-item > i { font-size: 1.05rem; color: var(--teal); margin-top: .15rem; flex-shrink: 0; width: 20px; text-align: center; }
.ct-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--t3); font-weight: 600; margin-bottom: .18rem; }
.ct-item span, .ct-item a { font-size: .95rem; font-weight: 500; color: var(--t1); }

/* ── Footer ──────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3.5rem 0 0; }

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.ft-logo { height: 36px; filter: brightness(0) invert(1); opacity: .82; margin-bottom: .85rem; }
.footer .ft-grid > div:first-child p { font-size: .87rem; color: rgba(255,255,255,.42); line-height: 1.65; }

.ft-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); margin-bottom: .9rem; }

.ft-grid ul { display: flex; flex-direction: column; gap: .48rem; }
.ft-grid ul a { font-size: .87rem; color: rgba(255,255,255,.58); transition: color .18s var(--ease); }
.ft-grid ul a:hover { color: #fff; }

.ft-contact { display: flex; flex-direction: column; gap: .5rem; }
.ft-contact li { display: flex; align-items: center; gap: .5rem; font-size: .87rem; color: rgba(255,255,255,.58); }
.ft-contact i { color: rgba(255,255,255,.28); width: 14px; font-size: .85rem; }
.ft-contact a:hover { color: #fff; }

.ft-portal {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.42);
  border-radius: 7px;
  transition: color .18s var(--ease);
}
.ft-portal:hover { color: rgba(255,255,255,.8); }

.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.1rem 0;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.26);
}

/* ── WhatsApp FAB ────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  z-index: 800;
  width: 54px; height: 54px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.38);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.12); box-shadow: 0 10px 36px rgba(37,211,102,.48); }

/* ── Animaciones de entrada ──────────────────────── */
[data-ani] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .65s var(--out), transform .65s var(--out);
}
[data-ani="fade-up"]    { transform: translateY(32px); }
[data-ani="slide-right"] { transform: translateX(-28px); }

[data-ani].visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-ani] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1020px) {
  :root { --sec: 5rem; }
  .prob-layout { grid-template-columns: 1fr; gap: 3rem; }
  .sol-card { position: static; }
  .srv-layout { grid-template-columns: 1fr; border: none; }
  .srv-list { border-right: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .srv-panel { padding: 2.5rem 0; position: static; }
  .nos-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .nos-left { position: static; }
  .nos-pillars { grid-template-columns: 1fr 1fr; }
  .proc-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .proc-connector { display: none; }
  .diag-layout { grid-template-columns: 1fr; gap: 3rem; }
  .ct-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  html { font-size: 16px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: .2rem;
    overflow-y: auto;
    z-index: 850;
    box-shadow: 0 8px 30px rgba(12,26,43,.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 1rem; font-size: 1rem; border-radius: 10px; }
  .nav-divide { width: 100%; height: 1px; margin: .4rem 0; }
  .nav-cta, .nav-portal { text-align: left; padding: .85rem 1rem !important; border-radius: 10px !important; }
  .hamburger { display: flex; }

  .hero { min-height: 100svh; padding: 4rem 0 5rem; }
  .hero::after { height: 48px; }
  .hero-scroll-hint { bottom: 3.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  .v-item { grid-template-columns: 50px 1fr; gap: 1.25rem; }
  .v-cta { flex-direction: column; align-items: flex-start; }

  .nos-pillars { grid-template-columns: 1fr; }
  .test-track { min-height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  .wa-fab { bottom: 1.2rem; right: 1.2rem; width: 48px; height: 48px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .v-title { font-size: 1.3rem; }
}
