/* ==========================================================================
   OBC · Estrategia en Acción — Design System
   ========================================================================== */

:root {
  --blue-light: #38c9ef;
  --blue-mid: #0f8fff;
  --blue: #006bb7;
  --navy: #071a3d;
  --navy-deep: #050f26;
  --grey: #73797e;
  --grey-light: #f4f7fa;
  --grey-lighter: #f9fbfc;
  --ink: #101d2c;
  --white: #ffffff;

  --gradient-brand: linear-gradient(120deg, var(--blue-light) 0%, var(--blue-mid) 45%, var(--blue) 100%);
  --gradient-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);

  --font-head: "Poppins", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Mulish", "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1220px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 60px -25px rgba(7, 26, 61, 0.35);
  --shadow-card: 0 10px 30px -15px rgba(7, 26, 61, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gradient-brand);
  display: inline-block;
  border-radius: 2px;
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { color: var(--grey); font-size: 1.05rem; margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-pad { padding: 64px 0; }
@media (max-width: 780px) { .section-pad { padding: 44px 0; } }

.bg-light { background: var(--grey-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(0, 107, 183, 0.55);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -12px rgba(0, 107, 183, 0.6);
}
.btn-ghost {
  border: 1.5px solid rgba(7, 26, 61, 0.15);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
}
.btn-ghost.on-dark { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost.on-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px -20px rgba(7, 26, 61, 0.4);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.4s var(--ease);
}
.brand:hover { transform: translateY(-2px); }
.brand img { height: 58px; width: auto; transition: height 0.4s var(--ease); display: block; }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .brand img { height: 48px; }
.site-header.is-scrolled .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.header-on-hero .nav-links a { color: var(--white); }
.header-on-hero.is-scrolled .nav-links a { color: var(--navy); }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-social { display: flex; gap: 10px; }
.header-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(7, 26, 61, 0.15);
  color: var(--navy);
  transition: all 0.3s ease;
}
.header-on-hero .header-social a { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.header-on-hero.is-scrolled .header-social a { border-color: rgba(7, 26, 61, 0.15); color: var(--navy); }
.header-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.header-social svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 600;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all 0.35s var(--ease);
}
.header-on-hero:not(.is-scrolled) .nav-toggle span { background: var(--white); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .nav-toggle span { background: var(--navy) !important; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to { transform: scale(1.16) translate3d(-1%,-1%,0); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,15,38,0.75) 0%, rgba(5,15,38,0.55) 40%, rgba(5,15,38,0.92) 100%),
    linear-gradient(100deg, rgba(0,60,120,0.55) 0%, rgba(5,15,38,0.15) 55%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.hero-blob.b1 { width: 480px; height: 480px; background: var(--blue-mid); top: -140px; right: -100px; animation: floatSlow 16s ease-in-out infinite; }
.hero-blob.b2 { width: 360px; height: 360px; background: var(--blue-light); bottom: -120px; left: -80px; animation: floatSlow 20s ease-in-out infinite reverse; }
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: 120px;
  padding-bottom: 72px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 26px 0 42px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Entrada 3D con perspectiva para el texto del banner principal */
.hero-content {
  transform-origin: center bottom;
  animation: heroEnter3D 1.1s var(--ease) both;
}
@keyframes heroEnter3D {
  from { opacity: 0; transform: perspective(1400px) rotateX(-55deg) translateY(50px) scale(0.92); }
  to { opacity: 1; transform: perspective(1400px) rotateX(0deg) translateY(0) scale(1); }
}

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
}
.hero-stats .stat {
  --accent: var(--blue-light);
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-stats .stat::before {
  content: "";
  position: absolute; top: -40%; right: -30%;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(38px);
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
}
.hero-stats .stat:nth-child(2) { --accent: var(--blue-mid); }
.hero-stats .stat:nth-child(3) { --accent: var(--blue); }
.hero-stats .stat:nth-child(4) { --accent: var(--blue-light); }
.hero-stats .stat:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.55);
}
.hero-stats .stat:hover::before { opacity: 0.6; }
.hero-stats .stat-icon {
  position: relative; z-index: 1;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 8px 20px -6px var(--accent);
  color: white;
  transition: transform 0.4s var(--ease);
}
.hero-stats .stat-icon svg { width: 20px; height: 20px; }
.hero-stats .stat:hover .stat-icon { transform: scale(1.1) rotate(-6deg); }
.hero-stats .stat b {
  position: relative; z-index: 1;
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(15,143,255,0.45));
}
.hero-stats .stat span { position: relative; z-index: 1; display: block; margin-top: 6px; color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal.pre-reveal {
  opacity: 0;
  transform: translateY(36px);
}
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-stagger.pre-reveal > * {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}
.reveal-stagger > * { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger > *:nth-child(9) { transition-delay: 0.61s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.68s; }
.reveal-stagger > *:nth-child(11) { transition-delay: 0.75s; }
.reveal-stagger > *:nth-child(12) { transition-delay: 0.82s; }

/* ==========================================================================
   Quienes Somos
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about-media { position: relative; }
.about-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 4/5;
}
.about-mosaic .frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.about-mosaic .frame:hover img { transform: scale(1.08); }
.about-media .float-card {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 14px;
}
.about-media .float-card b { font-family: var(--font-head); font-size: 1.8rem; color: var(--blue); display:block; }
.about-media .float-card span { color: var(--grey); font-size: 0.82rem; }
.about-media .float-badge {
  position: absolute; top: 24px; right: -18px;
  background: var(--gradient-brand);
  color: white;
  border-radius: 50%;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 14px 30px -10px rgba(0,107,183,0.55);
  animation: spinSlow 22s linear infinite;
}
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.about-media .float-badge span { display:inline-block; animation: counterSpin 22s linear infinite; }
@keyframes counterSpin { from { transform: rotate(0deg);} to { transform: rotate(-360deg);} }

.about-text p.intro { font-size: 1.12rem; color: var(--ink); margin-bottom: 20px; }
.about-text p.muted { font-size: 1.12rem; color: var(--ink); margin-bottom: 36px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(7,26,61,0.08);
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes rotateFrame { to { --angle: 360deg; } }

.value-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(7,26,61,0.07);
  border-radius: var(--radius-sm);
  padding: 34px 24px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--glow, var(--blue-mid)) 70deg, transparent 150deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  animation: rotateFrame 3s linear infinite;
}
.value-card:hover::before { opacity: 1; }
.value-card:nth-child(1) { --glow: #059669; }
.value-card:nth-child(2) { --glow: #ea580c; }
.value-card:nth-child(3) { --glow: #e11d48; }
.value-card:nth-child(4) { --glow: #38c9ef; }
.value-card:nth-child(5) { --glow: #f59e0b; }

.value-card .icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 12px 26px -12px rgba(0,107,183,0.55);
  transition: transform 0.45s var(--ease);
  color: var(--white);
}
.value-card:hover .icon { transform: translateY(-5px) scale(1.06); }
.value-card .icon span { font-size: 26px; line-height: 1; }
.value-card .icon svg { width: 30px; height: 30px; display: block; }
.value-card:nth-child(1) .icon { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 12px 26px -12px rgba(5,150,105,0.55); }
.value-card:nth-child(2) .icon { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 12px 26px -12px rgba(234,88,12,0.55); }
.value-card:nth-child(3) .icon { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 12px 26px -12px rgba(225,29,72,0.55); }
.value-card:nth-child(4) .icon.icon-team { background: linear-gradient(135deg, #bae6fd, #38c9ef); box-shadow: 0 12px 26px -12px rgba(56,201,239,0.6); }
.value-card:nth-child(5) .icon { background: linear-gradient(135deg, #fde047, #f59e0b); animation: bulbGlow 2.4s ease-in-out infinite; }
@keyframes bulbGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(245,158,11,0.18), 0 12px 26px -10px rgba(245,158,11,0.65); }
  50% { box-shadow: 0 0 0 11px rgba(245,158,11,0.3), 0 14px 32px -8px rgba(245,158,11,0.85); }
}
.value-card h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; }
.value-card p { font-size: 1.08rem; color: var(--grey); line-height: 1.65; }

/* ==========================================================================
   Banner divisor
   ========================================================================== */
.mini-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 0;
  overflow: hidden;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mini-banner img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
.mini-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(5,15,38,0.9) 0%, rgba(0,60,120,0.75) 55%, rgba(5,15,38,0.9) 100%);
}
.mini-banner::before {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 30%; height: 200%;
  z-index: 2;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.22) 45%, rgba(56,201,239,0.32) 50%, rgba(255,255,255,0.22) 55%, transparent 100%);
  transform: translateX(-160%) skewX(-15deg);
  animation: bannerShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bannerShine {
  0% { transform: translateX(-160%) skewX(-15deg); }
  32%, 100% { transform: translateX(260%) skewX(-15deg); }
}
.mini-banner .container { position: relative; z-index: 3; }
.mini-banner .container::before {
  content: "";
  display: block;
  width: 48px; height: 3px;
  margin: 0 auto 18px;
  background: var(--gradient-brand);
  border-radius: 2px;
  animation: barGlow 2.6s ease-in-out infinite;
}
@keyframes barGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(56,201,239,0); }
  50% { box-shadow: 0 0 14px 2px rgba(56,201,239,0.65); }
}
.mini-banner .quote {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: white;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* ==========================================================================
   Equipo
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1px solid rgba(7,26,61,0.07);
  border-radius: var(--radius-sm);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

.team-photo {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grey-light);
  box-shadow: 0 12px 26px -12px rgba(0,107,183,0.5);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.08); }

.team-card:nth-child(1) .team-photo { box-shadow: 0 0 0 4px rgba(5,150,105,0.18), 0 12px 26px -12px rgba(5,150,105,0.55); }
.team-card:nth-child(2) .team-photo { box-shadow: 0 0 0 4px rgba(234,88,12,0.18), 0 12px 26px -12px rgba(234,88,12,0.55); }
.team-card:nth-child(3) .team-photo { box-shadow: 0 0 0 4px rgba(225,29,72,0.18), 0 12px 26px -12px rgba(225,29,72,0.55); }
.team-card:nth-child(4) .team-photo { box-shadow: 0 0 0 4px rgba(124,58,237,0.18), 0 12px 26px -12px rgba(124,58,237,0.55); }

.team-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.team-card .role {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.services-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.services-tabs {
  background: var(--gradient-navy);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-tab {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  color: rgba(255,255,255,0.72);
  text-align: left;
  width: 100%;
  transition: background 0.4s ease, color 0.4s ease;
  position: relative;
}
.service-tab .num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}
.service-tab span.title { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.service-tab:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.service-tab.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.service-tab.active .num { background: var(--gradient-brand); border-color: transparent; }

.services-panel { position: relative; background: var(--white); min-height: 560px; }
.service-pane {
  display: none;
  grid-template-rows: auto 1fr;
}
.service-pane.active { display: grid; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.service-pane .pane-media { position: relative; height: 230px; overflow: hidden; }
.service-pane .pane-media img { width: 100%; height: 100%; object-fit: cover; }
.service-pane .pane-media .pane-title {
  position: absolute; left: 20px; top: 20px; color: #fff;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  background: var(--gradient-navy);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.service-pane .pane-body { padding: 30px 36px 36px; }
.service-pane ul { display: grid; gap: 12px; }
.service-pane li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.97rem; color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(7,26,61,0.1);
}
.service-pane li:last-child { border-bottom: none; padding-bottom: 0; }
.service-pane li .chk {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 2px;
  background: var(--gradient-brand);
  display: grid; place-items: center; color: white;
}
.service-pane li .chk svg { width: 11px; height: 11px; }
.service-pane li .txt { flex: 1; min-width: 0; }

.service-pane .pane-media--diagram {
  height: auto;
  aspect-ratio: 1650 / 953;
  background: var(--grey-light);
}
.service-pane .pane-media--diagram img { object-fit: contain; }
#s3 .pane-media--diagram { aspect-ratio: 1536 / 1024; }

.services-mobile-select { display: none; }

/* Metodología */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; position: relative; }
.method-grid::before {
  content: "";
  position: absolute; top: 44px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0,107,183,0.3) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.method-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.method-card > * { position: relative; z-index: 2; }
.method-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--blue-light) 55deg, var(--blue-mid) 95deg, var(--blue) 135deg, transparent 210deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: rotateFrame 4.5s linear infinite;
  transition: opacity 0.4s var(--ease);
}
.method-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(15,143,255,0.25), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 55px -22px rgba(15,143,255,0.5), var(--shadow-card);
}
.method-card:hover::before { opacity: 1; animation-duration: 1.8s; }
.method-card:hover::after { opacity: 1; }
.method-card .step-num {
  width: 88px; height: 88px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  box-shadow: 0 14px 30px -10px rgba(0,107,183,0.5);
  animation: methodPulse 2.8s ease-in-out infinite;
}
.method-card:nth-child(2) .step-num { animation-delay: 0.35s; }
.method-card:nth-child(3) .step-num { animation-delay: 0.7s; }
@keyframes methodPulse {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(0,107,183,0.5), 0 0 0 0 rgba(56,201,239,0.5); }
  50% { box-shadow: 0 14px 34px -6px rgba(0,107,183,0.7), 0 0 0 10px rgba(56,201,239,0); }
}
.method-card h4 { margin-bottom: 10px; font-size: 1.05rem; }
.method-card p { color: var(--grey); font-size: 0.9rem; }

.method-card--green { background: linear-gradient(160deg, #eafaf1 0%, #d7f2e2 100%); }
.method-card--green h4 { color: #14532d; }
.method-card--green p { color: #3f6b52; }

.method-card--red { background: linear-gradient(160deg, #fdeeee 0%, #fbdcdc 100%); }
.method-card--red h4 { color: #7f1d1d; }
.method-card--red p { color: #8a5252; }

/* ==========================================================================
   Experiencia / Counters
   ========================================================================== */
.experiencia { background: var(--gradient-navy); color: white; position: relative; overflow: hidden; }
.experiencia::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(56,201,239,0.18), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(15,143,255,0.18), transparent 45%);
}
.experiencia .section-head h2 { color: white; }
.experiencia .section-head p { color: rgba(255,255,255,0.65); }
.experiencia .eyebrow { color: var(--blue-light); }
.experiencia .eyebrow::before { background: var(--gradient-brand); }

.exp-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.exp-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.exp-stat:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.exp-stat .stat-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px rgba(15,143,255,0.12);
}
.exp-stat .stat-icon svg { width: 22px; height: 22px; }
.exp-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.exp-stat span { display: block; margin-top: 10px; color: rgba(255,255,255,0.65); font-size: 0.88rem; }

.counters-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border-radius: var(--radius); overflow: hidden; }
.counter-card { background: rgba(255,255,255,0.04); padding: 40px 28px; text-align: left; }
.counter-card .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; gap: 2px;
}
.counter-card .label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 8px; }

/* ==========================================================================
   Clientes
   ========================================================================== */
.clients-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.clients-track { display: flex; align-items: center; gap: 70px; width: max-content; animation: marquee 34s linear infinite; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-logo { height: 84px; display: flex; align-items: center; justify-content: center; }
.client-logo img {
  max-height: 84px; max-width: 200px; object-fit: contain;
  transition: transform 0.4s ease;
}
.client-logo:hover img { transform: scale(1.06); }

/* ==========================================================================
   Publicaciones
   ========================================================================== */
.pubs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pub-card {
  background: #e3f3e6;
  border: 1px solid rgba(34,110,63,0.2);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pub-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.pub-card .tag {
  align-self: flex-start;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #256b3a; background: rgba(34,110,63,0.16);
  padding: 5px 12px; border-radius: 100px;
}
.pub-card time { color: var(--grey); font-size: 0.8rem; }
.pub-card h4 { font-size: 1.05rem; line-height: 1.35; flex-grow: 1; }
.pub-card .read-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--navy); transition: gap 0.3s ease, color 0.3s ease; }
.pub-card:hover .read-more { gap: 12px; color: var(--blue); }
.pub-card .read-more svg { width: 14px; height: 14px; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.contact-info { background: var(--gradient-navy); color: white; padding: 56px 46px; display: flex; flex-direction: column; }
.contact-info h3 { color: white; font-size: 1.7rem; margin-bottom: 14px; }
.contact-info p.desc { color: rgba(255,255,255,0.68); margin-bottom: 40px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-line:first-of-type { border-top: none; }
.contact-line .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; }
.contact-line .ic svg { width: 18px; height: 18px; color: var(--blue-light); }
.contact-line b { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.contact-line span, .contact-line a { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.contact-social { display: flex; gap: 12px; margin-top: auto; padding-top: 40px; }
.contact-social a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); display: grid; place-items: center; transition: all 0.3s ease; }
.contact-social a:hover { background: var(--blue-light); border-color: var(--blue-light); }
.contact-social svg { width: 17px; height: 17px; }

.contact-form { background: white; padding: 56px 46px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; position: relative; }
.field label { display: block; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid rgba(7,26,61,0.14);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--grey-lighter);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,107,183,0.1);
  background: white;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--grey); margin-top: 4px; }
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #0a8a4a; }
.form-status.error { color: #c0392b; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img {
  height: 55px; margin-bottom: 22px;
}
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.5); }
.footer-col h5 { color: white; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: 0.92rem; color: rgba(255,255,255,0.6); transition: color 0.3s ease, transform 0.3s ease; }
.footer-col a:hover { color: var(--blue-light); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.82rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: grid; place-items: center; }
.footer-social svg { width: 14px; height: 14px; }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
  animation: pulseWA 2.6s ease-in-out infinite;
}
.wa-float svg { width: 28px; height: 28px; color: white; }
@keyframes pulseWA {
  0%, 100% { box-shadow: 0 14px 30px -8px rgba(37,211,102,0.6); }
  50% { box-shadow: 0 14px 30px -8px rgba(37,211,102,0.9), 0 0 0 10px rgba(37,211,102,0.12); }
}

/* back to top */
.top-btn {
  position: fixed; right: 26px; bottom: 96px; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-card);
  display: grid; place-items: center; color: var(--navy);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all 0.4s var(--ease);
}
.top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.top-btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   Mobile nav drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 550;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.nav-open .mobile-drawer { transform: translateY(0); }
.mobile-drawer a {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600;
  color: white; padding: 14px 0;
  opacity: 0.85;
}
.mobile-drawer a:hover { opacity: 1; color: var(--blue-light); }
.mobile-drawer .drawer-social { display: flex; gap: 16px; margin-top: 30px; }
.mobile-drawer .drawer-social a { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; padding: 0; }
.mobile-drawer .drawer-social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 26px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .services-wrap { grid-template-columns: 1fr; }
  .services-tabs { flex-direction: row; overflow-x: auto; }
  .service-tab { flex-direction: column; text-align: center; gap: 8px; min-width: 120px; }
  .service-tab span.title { font-size: 0.78rem; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .pubs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-links, .header-social { display: none; }
  .header-actions .btn-ghost.on-dark { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 46px; }
  .hero { min-height: auto; }
  .hero-content { padding-top: 110px; padding-bottom: 50px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; margin-top: 44px; padding-top: 36px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .mini-banner { padding: 50px 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid::before { display: none; }
  .counters-grid { grid-template-columns: 1fr; }
  .exp-stats { grid-template-columns: 1fr; }
  .pubs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 40px 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-media .float-card { left: 0; bottom: -20px; padding: 16px 18px; }
  .about-media .float-badge { display: none; }
  .about-mosaic { gap: 8px; }
  .section-pad { padding: 36px 0; }
}
