/* ============================================================
   NOVA CONSULTING — Sistema de diseño v2
   Dirección: consultoría editorial premium.
   Navy como tinta · cyan eléctrico como único acento.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ----- Paleta C: Navy + acento eléctrico ----- */
  --color-primary:    #0E1B33;   /* Navy tinta (ligeramente más profundo) */
  --ink-800:          #16284A;   /* Navy elevado (superficies oscuras) */
  --color-secondary:  #2C5282;   /* Azul medio */
  --color-accent:     #00B4D8;   /* Cyan eléctrico */
  --accent-600:       #0095B8;   /* Cyan hover */
  --accent-soft:      rgba(0, 180, 216, 0.12);
  --color-bg-light:   #F4F7FB;   /* Superficie clara */
  --paper:            #FBFCFE;   /* Fondo base, casi blanco cálido */
  --color-white:      #FFFFFF;
  --color-text-muted: #586581;   /* Texto secundario */
  --ink-soft:         #3A465E;   /* Texto cuerpo sobre claro */
  --color-border:     #E4EAF2;   /* Hairline */
  --line-strong:      #D2DBE8;

  /* ----- Tipografía ----- */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', Menlo, monospace;

  /* ----- Layout ----- */
  --max-width: 1240px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);

  /* ----- Forma / sombra / movimiento ----- */
  --radius: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.04), 0 2px 8px rgba(14, 27, 51, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(14, 27, 51, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 27, 51, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--color-accent); color: var(--color-primary); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===================== TIPOGRAFÍA ===================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--color-primary);
  font-variation-settings: 'opsz' 120;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-variation-settings: 'opsz' 60; }
h4 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

em, .italic {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}

p { color: var(--color-text-muted); font-size: 1.0625rem; }
strong { color: var(--ink-soft); font-weight: 600; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  width: 1.75rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
section { padding: clamp(4.5rem, 10vw, 9rem) 0; position: relative; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 254, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(14,27,51,0.02), 0 8px 30px -18px rgba(14,27,51,0.2);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.15rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s var(--ease);
}
.navbar.scrolled .nav-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}
.logo-mark { flex-shrink: 0; display: block; transition: transform 0.5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(90deg); }

.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--color-primary); }

/* botón hamburguesa (mobile) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-right: -0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
  margin: 0 auto;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* panel mobile */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--container-padding) 1.75rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(251, 252, 254, 0.96);
  backdrop-filter: blur(16px);
}
.nav-mobile a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { margin-top: 1rem; width: 100%; justify-content: center; }
.nav-mobile a.btn-primary { color: var(--color-white); border-bottom: none; }
.nav-mobile a.btn-primary:hover { color: var(--color-primary); }
body.menu-open .nav-mobile { display: flex; animation: slideDown 0.4s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent); color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,180,216,0.5); }

.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); }

.btn-accent { background: var(--color-accent); color: var(--color-primary); }
.btn-accent:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ===================== HERO ===================== */
.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 50vw; height: 50vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(0,180,216,0.10) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
}
.hero-status::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px rgba(0,180,216,0.05); } }

.hero h1 { margin-bottom: 1.85rem; max-width: 16ch; }
.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  max-width: 52ch;
  color: var(--ink-soft);
  margin-bottom: 2.75rem;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* panel visual del hero (home) */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--color-primary), var(--ink-800));
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 70% 20%, black, transparent 80%);
}
.hero-visual-top { display: flex; justify-content: space-between; align-items: baseline; position: relative; }
.hero-visual-top .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.hero-visual-top .delta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-accent); }
.hero-visual .big {
  font-family: var(--font-display); font-size: clamp(2.5rem,5vw,3.4rem); line-height: 1;
  margin: 0.5rem 0 1.5rem; color: #fff; position: relative;
}
.hero-visual .big em { color: var(--color-accent); }
.hero-visual svg.chart { width: 100%; height: auto; display: block; position: relative; }
.hero-visual-foot { display: flex; gap: 1.5rem; margin-top: 1.5rem; position: relative; }
.hero-visual-foot > div { flex: 1; }
.hero-visual-foot .n { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); line-height: 1; }
.hero-visual-foot .t { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 0.35rem; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { max-width: 18ch; }
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--color-accent); }

/* ===================== SECTION HEAD ===================== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  margin-bottom: 4.5rem;
  align-items: end;
}
.section-head h2 { max-width: 15ch; }
.section-head p { font-size: 1.15rem; max-width: 50ch; line-height: 1.6; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; } }

/* ===================== PILARES / SERVICIOS ===================== */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--color-white);
  padding: 2.75rem;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--color-accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.pillar:hover::before { transform: scaleY(1); }

.pillar.featured { background: linear-gradient(165deg, var(--color-primary), var(--ink-800)); color: #fff; border-color: transparent; }
.pillar.featured::after {
  content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,180,216,0.22) 0%, transparent 70%); pointer-events: none;
}
.pillar.featured h3 { color: #fff; }
.pillar.featured p { color: rgba(255,255,255,0.78); }
.pillar.featured li { color: rgba(255,255,255,0.85); }
.pillar.featured .pillar-num { color: var(--color-accent); }

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 2.25rem; display: block; position: relative;
}
.pillar h3 { margin-bottom: 1rem; position: relative; }
.pillar > p { margin-bottom: 1.75rem; line-height: 1.6; position: relative; }
.pillar ul { list-style: none; position: relative; }
.pillar ul li {
  font-size: 0.9375rem;
  padding: 0.65rem 0 0.65rem 1.4rem;
  position: relative;
  border-top: 1px solid var(--color-border);
}
.pillar ul li:first-child { border-top: none; }
.pillar.featured ul li { border-top-color: rgba(255,255,255,0.12); }
.pillar ul li::before {
  content: ''; position: absolute; left: 0; top: 1.25rem;
  width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%;
}
.pillar ul li strong { display: block; color: inherit; font-weight: 600; margin-bottom: 0.15rem; }
.pillar ul li span { color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.5; }
.pillar.featured ul li span { color: rgba(255,255,255,0.6); }
@media (max-width: 768px) { .pillars { grid-template-columns: 1fr; } .pillar { padding: 2.25rem; } }

/* ===================== NARRATIVA (oscuro) ===================== */
.narrative { background: var(--color-primary); color: #fff; overflow: hidden; }
.narrative::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0,180,216,0.2) 0%, transparent 70%); pointer-events: none;
}
.narrative::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
  mask-image: radial-gradient(circle at 80% 0%, black, transparent 70%);
}
.narrative .container { position: relative; z-index: 1; }
.narrative h2 { color: #fff; margin-bottom: 2.5rem; max-width: 16ch; }
.narrative-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.narrative-body p { color: rgba(255,255,255,0.82); font-size: 1.15rem; margin-bottom: 1.5rem; line-height: 1.72; }
.narrative-body p:last-child { margin-bottom: 0; }
.narrative-body strong { color: var(--color-accent); font-weight: 500; }
@media (max-width: 900px) { .narrative-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ===================== PERFILES / EQUIPO ===================== */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.partner-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  padding: 2.75rem; border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.partner-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(165deg, var(--color-primary), var(--ink-800));
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px -10px rgba(14,27,51,0.5);
}
.partner-card h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.35rem; letter-spacing: -0.02em; }
.partner-role {
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--color-accent); margin-bottom: 1.4rem;
}
.partner-card p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.85rem; }
.partner-card p:last-child { margin-bottom: 0; }
@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } .partner-card { padding: 2.25rem; } }

/* ===================== TABLA "POR QUÉ NOVA" ===================== */
.why-nova { background: var(--color-bg-light); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--color-border); background: var(--color-white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.why-col-head {
  padding: 1.5rem 2rem;
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 500;
  background: var(--color-primary); color: #fff;
}
.why-col-head.no { background: var(--ink-800); color: rgba(255,255,255,0.7); }
.why-cell {
  padding: 1.3rem 2rem; border-top: 1px solid var(--color-border);
  font-size: 0.97rem; color: var(--color-primary); line-height: 1.55;
  display: flex; align-items: flex-start; gap: 0.8rem;
  transition: background 0.2s var(--ease);
}
.why-cell.yes::before {
  content: ''; flex-shrink: 0; margin-top: 0.15rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300B4D8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.why-cell.no { background: rgba(244,247,251,0.6); color: var(--color-text-muted); }
.why-cell.no::before {
  content: ''; flex-shrink: 0; margin-top: 0.15rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(88,101,129,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23586581' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } .why-col-head.no, .why-cell.no { display: none; } }

/* ===================== VALORES ===================== */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--color-border); }
.value-item {
  padding: 2.75rem; border-bottom: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
  transition: background 0.3s var(--ease); position: relative;
}
.value-item:hover { background: var(--color-white); }
.value-item:nth-child(2n) { border-right: none; }
.value-num { font-family: var(--font-mono); font-size: 0.76rem; color: var(--color-accent); letter-spacing: 0.12em; margin-bottom: 1.5rem; }
.value-item h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.85rem; letter-spacing: -0.02em; }
.value-item p { font-size: 0.97rem; line-height: 1.65; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } .value-item { border-right: none; padding: 2.25rem; } }

/* ===================== STATS ===================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 5rem; background: var(--color-border);
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
}
.stat-item { padding: 2.25rem; background: var(--paper); }
.stat-item .stat-num {
  font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  font-weight: 400; color: var(--color-primary); line-height: 1; margin-bottom: 0.6rem; letter-spacing: -0.03em;
}
.stat-item .stat-num .suffix { color: var(--color-accent); }
.stat-item .stat-label { font-size: 0.92rem; color: var(--color-text-muted); line-height: 1.45; }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }

/* ===================== CTA FINAL ===================== */
.cta-final { background: var(--color-primary); color: #fff; overflow: hidden; }
.cta-final::before {
  content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0,180,216,0.18) 0%, transparent 60%); pointer-events: none;
}
.cta-final::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
  mask-image: radial-gradient(circle at 50% 100%, black, transparent 75%);
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; max-width: 17ch; margin-bottom: 1.5rem; }
.cta-final p { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 50ch; margin-bottom: 2.75rem; }
.cta-final .btn-primary { background: var(--color-accent); color: var(--color-primary); }
.cta-final .btn-primary:hover { background: #fff; }
.cta-final .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-final .btn-outline:hover { background: #fff; color: var(--color-primary); border-color: #fff; }

/* ===================== FOOTER ===================== */
.footer { background: var(--paper); border-top: 1px solid var(--color-border); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-brand .logo { margin-bottom: 1.1rem; display: inline-flex; }
.footer-brand p { font-size: 0.95rem; color: var(--color-text-muted); max-width: 34ch; line-height: 1.6; }
.footer h5 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-primary); margin-bottom: 1.35rem; font-weight: 500; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.7rem; }
.footer ul a { font-size: 0.95rem; color: var(--color-text-muted); }
.footer ul a:hover { color: var(--color-accent); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--color-border);
  font-size: 0.875rem; color: var(--color-text-muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================== FORMULARIO / CONTACTO ===================== */
.contact-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4.5rem; align-items: start; }
.form-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.35rem; display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); margin-bottom: 0.55rem; }
input, textarea, select {
  font-family: var(--font-body); font-size: 1rem; width: 100%; padding: 0.85rem 1rem;
  color: var(--color-primary); background: var(--paper);
  border: 1px solid var(--color-border); border-radius: 3px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: #9AA7BE; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-accent); background: var(--color-white); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.checkbox-row { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 1.5rem; }
.checkbox-row input { width: auto; margin-top: 0.2rem; accent-color: var(--color-accent); }
.checkbox-row label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.9rem; margin: 0; color: var(--color-text-muted); cursor: pointer; line-height: 1.5; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 1rem; text-align: center; }

.channels { display: grid; gap: 1.5rem; }
.channel { display: flex; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.channel:last-child { border-bottom: none; padding-bottom: 0; }
.channel .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px; background: var(--accent-soft); color: var(--color-accent); display: flex; align-items: center; justify-content: center; }
.channel h5 { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); margin-bottom: 0.35rem; font-weight: 500; }
.channel a, .channel p { color: var(--color-primary); font-size: 1rem; margin: 0; }
.channel a:hover { color: var(--color-accent); }
.channel .muted { color: var(--color-text-muted); font-size: 0.9rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ===================== CHECKLIST (oscuro) ===================== */
.checklist-block { background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.checklist-block::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,180,216,0.18) 0%, transparent 70%); pointer-events: none; }
.checklist-block::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 90% 10%, black, transparent 70%); pointer-events: none; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; position: relative; z-index: 1; align-items: start; }
.checklist-grid h2 { color: #fff; }
.checklist-grid > div:first-child p { color: rgba(255,255,255,0.7); margin-top: 1.25rem; }
.checklist { list-style: none; display: grid; gap: 1.5rem; }
.checklist li { display: flex; gap: 1.1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.checklist li:last-child { border-bottom: none; padding-bottom: 0; }
.checklist .n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--color-accent); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; }
.checklist strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.25rem; font-size: 1.05rem; }
.checklist span { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.55; }
@media (max-width: 900px) { .checklist-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* page-load del hero (sin JS) */
.hero .anim { opacity: 0; transform: translateY(20px); animation: heroIn 0.85s var(--ease) forwards; }
.hero .anim:nth-child(1) { animation-delay: 0.05s; }
.hero-meta.anim { animation-delay: 0.05s; }
.hero h1.anim { animation-delay: 0.15s; }
.hero-lead.anim { animation-delay: 0.28s; }
.hero-ctas.anim { animation-delay: 0.4s; }
.hero-visual.anim { animation-delay: 0.5s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.divider { height: 1px; background: var(--color-border); margin: 0; }

/* ----- Stagger de reveal en grillas ----- */
.pillars > .reveal:nth-child(2), .team-grid > .reveal:nth-child(2), .values-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.pillars > .reveal:nth-child(3), .values-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.pillars > .reveal:nth-child(4), .values-grid > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stats > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stats > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stats > .reveal:nth-child(4) { transition-delay: 0.24s; }
.channels > .reveal:nth-child(2) { transition-delay: 0.08s; }
.channels > .reveal:nth-child(3) { transition-delay: 0.16s; }
.channels > .reveal:nth-child(4) { transition-delay: 0.24s; }
/* delays del hero interno (subpáginas) */
.hero .breadcrumb.anim { animation-delay: 0.05s; }
.hero .section-label.anim { animation-delay: 0.12s; }

/* ===================== SELECTOR DE IDIOMA + WHATSAPP FLOTANTE ===================== */
.nav-actions { display: flex; align-items: center; gap: 0.85rem; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border); border-radius: 999px;
  overflow: hidden; background: var(--color-white);
}
.lang-switch button {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 500;
  padding: 0.42rem 0.72rem; border: none; background: transparent;
  color: var(--color-text-muted); cursor: pointer; line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch button.active { background: var(--color-primary); color: #fff; }
.lang-switch button:not(.active):hover { color: var(--color-primary); }

/* flecha de CTAs por CSS (no la pisa la traducción) */
.btn-arrow::after {
  content: ''; width: 15px; height: 15px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

@media (max-width: 820px) { .nav-actions .btn-primary { display: none; } }

/* botón flotante WhatsApp */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 200; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6), 0 4px 12px rgba(0,0,0,0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 38px -8px rgba(37,211,102,0.7), 0 4px 12px rgba(0,0,0,0.2); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: 0.5; z-index: 0;
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.45; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 600px) { .wa-float { width: 54px; height: 54px; } .wa-float svg { width: 28px; height: 28px; } }

/* ===================== SELECTOR DE IDIOMA ===================== */
.nav-inner { justify-content: flex-start; gap: 1rem; }
.nav-links { margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; flex-shrink: 0;
  border: 1px solid var(--color-border); border-radius: 999px;
  overflow: hidden; background: var(--color-white);
}
.lang-btn {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem; background: transparent; border: none; cursor: pointer;
  color: var(--color-text-muted); line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.active { background: var(--color-primary); color: #fff; }
.lang-switch-mobile { display: none; }

@media (max-width: 820px) {
  .lang-switch { margin-left: auto; }
}

/* ===================== WHATSAPP FLOTANTE ===================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: waPulse 2.6s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px -6px rgba(37, 211, 102, 0.65); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px -6px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 10px 28px -6px rgba(37,211,102,0.55), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px -6px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }
