/* =====================
   TOKENS
   ===================== */
:root {
  --bg:        #F4F2EE;
  --surface:   #FFFFFF;
  --surface-2: #F8F7F4;
  --surface-3: #EFEDE8;

  --ink:       #1A1830;
  --ink-soft:  #5C5A72;
  --ink-muted: #9896AD;

  --violet:    #6660AF;
  --violet-lt: #EEEDFE;
  --violet-dk: #4A4594;
  --teal:      #1D9E75;
  --teal-lt:   #E1F5EE;
  --teal-dk:   #085041;
  --rose:      #D85A30;

  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow:    0 2px 16px rgba(26,24,48,0.07);
  --shadow-md: 0 8px 32px rgba(26,24,48,0.10);
  --shadow-lg: 0 20px 60px rgba(26,24,48,0.12);
  --container: 1160px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

/* =====================
   LAYOUT
   ===================== */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; letter-spacing: -0.025em; }

h1 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }
p { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--violet);
  flex-shrink: 0;
}
.eyebrow.light { color: rgba(255,255,255,0.65); }
.eyebrow.light::before { background: rgba(255,255,255,0.65); }
.eyebrow.teal { color: var(--teal); }
.eyebrow.teal::before { background: var(--teal); }

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244,242,238,0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: visible;
}
.site-header.scrolled {
  border-bottom-color: rgba(26,24,48,0.08);
  box-shadow: 0 1px 32px rgba(26,24,48,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
   min-height: 80px;
  overflow: visible;
}

.brand {
  position: relative;
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
}

.brand img {
  position: absolute;
  left: 0;
  top: 50%;
  height: 220px;
  width: auto;
  max-width: none;
  transform: translateY(-50%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
  border-radius: 2px;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--ink); }
.main-nav .btn-nav-cta { color: var(--surface); }
.main-nav .btn-nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #2d2b50;
  border-color: #2d2b50;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,24,48,0.22);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26,24,48,0.2);
}
.btn-outline:hover {
  background: rgba(26,24,48,0.04);
  border-color: rgba(26,24,48,0.35);
}
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(29,158,117,0.28);
}
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn-nav-cta {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}
.btn-nav-cta:hover {
  background: var(--violet-dk);
  border-color: var(--violet-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102,96,175,0.30);
}

/* Arrow icon in button */
.btn-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(5px); }

/* =====================
   SECTIONS
   ===================== */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.section-head { margin-bottom: 56px; }
.section-head p { margin-top: 14px; }
.section-head.center { text-align: center; }
.section-head.center p { max-width: 660px; margin-inline: auto; margin-top: 14px; }

/* =====================
   HERO
   ===================== */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

/* Richer ambient blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -200px;
  width: 750px; height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(102,96,175,0.13) 0%, rgba(29,158,117,0.05) 50%, transparent 70%);
  pointer-events: none;
  animation: blob-drift 12s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: blob-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.05); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero-copy { padding-bottom: 72px; }

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--violet);
  position: relative;
}
.hero-copy h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  border-radius: 2px;
  opacity: 0.35;
}
.hero-copy > p {
  font-size: 1.12rem;
  max-width: 520px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-note::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(29,158,117,0.18); }
  50%       { box-shadow: 0 0 0 6px rgba(29,158,117,0.06); }
}

.hero-visual {
  position: relative;
  align-self: end;
}

.hero-img-wrap {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  background: var(--surface-3);
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}
.hero-img-wrap:hover img { transform: scale(1.03); }

/* Floating metric card */
.hero-metric {
  position: absolute;
  bottom: 32px; left: -28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  animation: float-card 5s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.hero-metric-num {
  font-family: 'Roboto', sans-serif;
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1;
}
.hero-metric-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.hero-metric-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
/* =====================
   TRUST BAR MARQUEE
   ===================== */

/* =====================
   TRUST BAR MARQUEE (Logos más grandes)
   ===================== */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid rgba(26,24,48,0.07);
  border-bottom: 1px solid rgba(26,24,48,0.07);
  padding: 32px 0 36px; /* Aumentamos el padding para darles más aire vertical */
  overflow: hidden;
}

.trust-heading {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-muted);
  margin-bottom: 28px; /* Un poco más de separación respecto a los logos */
}

.trust-marquee {
  width: 100%;
  overflow: hidden;
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 64px; /* Aumentamos el espacio horizontal entre logos */
  width: max-content;
  animation: trustScroll 42s linear infinite;
}

.trust-track img {
  /* Aumentamos de 34px a 52px la altura máxima para que ganen presencia visual */
  max-height: 52px; 
  max-width: 160px; /* Expandimos el ancho máximo permitido para marcas horizontales */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Efecto sutil premium interactivo */
.trust-track img:hover {
  transform: scale(1.06);
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

@keyframes trustScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Ajustes fluidos para pantallas Mobile */
@media (max-width: 768px) {
  .trust-bar {
    padding: 24px 0;
  }

  .trust-track {
    gap: 40px; /* Reducción proporcional del espacio en celulares */
    animation-duration: 30s;
  }

  .trust-track img {
    /* En celulares sube de 28px a 38px para garantizar legibilidad */
    max-height: 38px;
    max-width: 120px;
  }
}
/* =====================
   PROBLEM SECTION
   ===================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(26,24,48,0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26,24,48,0.09);
}
.problem-item {
  background: var(--surface);
  padding: 32px;
  position: relative;
  transition: background 0.3s;
}
.problem-item:hover { background: #FAFAF9; }
.problem-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
  transform-origin: left;
  border-radius: 2px;
}
.problem-item:hover::after { transform: scaleX(1); }
.problem-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--violet-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  transition: transform 0.3s var(--ease-bounce);
}
.problem-item:hover .problem-icon { transform: scale(1.1) rotate(-3deg); }
.problem-item h3 { margin-bottom: 8px; font-size: 1.05rem; }

/* =====================
   SERVICES
   ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26,24,48,0.12);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-card p { margin-bottom: 20px; font-size: 0.98rem; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.service-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.service-card:hover .service-tag {
  background: var(--teal-lt);
  color: var(--teal-dk);
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--violet);
  transition: gap 0.25s var(--ease), color 0.2s;
}
.service-link:hover { gap: 12px; color: var(--violet-dk); }

/* =====================
   APPROACH / VALUE
   ===================== */
.approach-wrap {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.approach-wrap::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.approach-wrap::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,96,175,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}
.approach-head h2 { color: #fff; }
.approach-head p { color: rgba(255,255,255,0.6); margin-top: 14px; font-size: 1.05rem; line-height: 1.7; }

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.approach-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: border-color 0.3s;
}
.approach-step:last-child { border-bottom: none; padding-bottom: 0; }
.approach-step:first-child { padding-top: 0; }
.approach-step:hover { border-bottom-color: rgba(255,255,255,0.15); }
.step-num {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  color: rgba(29,158,117,0.55);
  line-height: 1;
  min-width: 32px;
  margin-top: 2px;
  transition: color 0.3s;
}
.approach-step:hover .step-num { color: var(--teal); }
.step-body h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.step-body p { color: rgba(255,255,255,0.55); font-size: 0.92rem; line-height: 1.6; }

/* =====================
   METRICS / IMPACT
   ===================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.metric-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  opacity: 0;
  transition: opacity 0.3s;
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.metric-card:hover::before { opacity: 1; }
.metric-num {
  font-family: 'Roboto', sans-serif;
  font-size: 3.4rem;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.metric-num span { color: var(--teal); }
.metric-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* =====================
   CASES
   ===================== */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-card {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-head {}
.case-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--violet-lt);
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.case-head h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.case-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 18px;
}
.case-metric-num {
  font-family: 'Roboto', sans-serif;
  font-size: 2.4rem;
  color: var(--teal);
  line-height: 1;
}
.case-metric-label { font-size: 0.85rem; color: var(--ink-muted); }

.case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-section {}
.case-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.case-section p { font-size: 0.92rem; line-height: 1.6; }

/* =====================
   TEAM
   ===================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-3);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { padding: 28px; }
.team-info h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 12px;
}
.team-info p { font-size: 0.9rem; line-height: 1.65; }
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--violet);
  transition: gap 0.2s, opacity 0.2s;
}
.team-linkedin:hover { gap: 10px; opacity: 0.8; }


/* =====================
   CTA BAND
   ===================== */
.cta-band {
  background: var(--ink);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,96,175,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.6); margin-top: 10px; font-size: 1.05rem; }
.cta-sub-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cta-sub-note::before {
  content: '✓';
  color: var(--teal);
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  padding: 60px 0 44px;
  border-top: 1px solid rgba(26,24,48,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
}
.footer-logo { height: 180px; width: auto; margin-bottom: 14px; }
.footer-desc { font-size: 0.92rem; color: var(--ink-muted); max-width: 300px; line-height: 1.7; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,24,48,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--ink-muted); }

.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; color: var(--ink-muted); }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer ul li a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s, padding-left 0.2s var(--ease);
}
.site-footer ul li a:hover { color: var(--violet); padding-left: 4px; }

/* =====================
   WHATSAPP FLOAT
   ===================== */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: wa-ping 3s ease-in-out 2s infinite;
}
@keyframes wa-ping {
  0%, 80%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.25); }
  40%           { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}
.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
  animation: none;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

.wa-tooltip {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s var(--ease);
}
.wa-float:hover + .wa-tooltip,
.wa-tooltip.show { opacity: 1; transform: translateY(0); }

/* =====================
   ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-up.show { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger-children.show > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.stagger-children.show > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.12s; }
.stagger-children.show > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.19s; }
.stagger-children.show > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.26s; }
.stagger-children.show > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.33s; }
.stagger-children.show > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.40s; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-copy { padding-bottom: 0; }
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-card { grid-template-columns: 160px 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .cta-band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26,24,48,0.08);
    gap: 8px;
    box-shadow: 0 8px 32px rgba(26,24,48,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .case-card { grid-template-columns: 1fr; gap: 24px; }
  .case-body { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 140px 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .approach-wrap { padding: 40px 28px; }
  .problem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--container)); }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding-top: 48px; }
  .section { padding: 72px 0; }
  .metrics-grid { grid-template-columns: 1fr; }
  .case-card { padding: 24px; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 3/2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .clients-wrap { padding: 28px 20px; }
  .btn { height: 48px; padding: 0 22px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust-inner { gap: 20px; }
  .trust-logos { gap: 20px; }
}

/* =====================
   PAGE HERO (internas)
   ===================== */
/* =====================
   PAGE HERO (Optimizado y Equilibrado)
   ===================== */
.page-hero {
  padding: 100px 0 72px; /* Un poco más de aire vertical */
  position: relative;
  overflow: hidden;
}

/* Potenciamos el círculo de fondo para darle más presencia en la derecha */
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; 
  right: -100px;
  width: 650px; 
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(102,96,175,0.13) 0%, rgba(29,158,117,0.05) 50%, transparent 68%);
  pointer-events: none;
  animation: blob-drift 14s ease-in-out infinite alternate;
}

.page-hero-inner {
  max-width: 680px; /* Reducido estratégicamente para equilibrar el peso visual frente a la derecha */
}

.page-hero-inner h1 { 
  margin-bottom: 20px; 
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Resalte de marca opcional para usar con la etiqueta <em> */
.page-hero-inner h1 em {
  font-style: normal;
  color: var(--violet);
}

.page-hero-inner p { 
  font-size: 1.1rem; 
  line-height: 1.7; 
  color: var(--ink-soft);
  max-width: 580px; /* El párrafo se lee mucho mejor en bloques más angostos */
}

/* Ajustes para que en pantallas medianas o tablets no se pegue a los bordes */
@media (max-width: 1024px) {
  .page-hero {
    padding: 80px 0 56px;
  }
  .page-hero-inner {
    max-width: 100%;
  }
}
/* =====================
   SERVICIOS (Optimizado y Equilibrado)
   ===================== */
.service-detail {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 380px 1fr; /* Un poco más de aire a la izquierda */
  gap: 56px;
  align-items: stretch; /* CRUCIAL: Fuerza a ambas columnas a medir lo mismo */
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}

.service-detail:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26,24,48,0.12);
}

/* Columna Izquierda */
.service-detail-left {
  display: flex;
  flex-direction: column;
  height: 100%; /* Toma todo el alto disponible equilibrado */
}

.service-detail-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 16px;
}

.service-detail-left h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 14px;
}

.service-detail-left > p { 
  font-size: 0.98rem; 
  margin-bottom: 24px; 
  line-height: 1.7; 
}

/* Contenedor inferior de la izquierda: Se va automáticamente al fondo */
.service-detail-left .service-bottom-wrapper {
  margin-top: auto; 
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  align-self: flex-start; /* Evita que el botón se estire a lo ancho */
}

.service-detail-cta:hover {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,96,175,0.25);
}

/* Columna Derecha */
.service-detail-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface-2); /* Un fondo sutil para unificar el espacio visual */
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  height: 100%; /* Rellena el contenedor de forma elegante */
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0; /* Un poco más de aire entre filas */
  border-bottom: 1px solid rgba(26,24,48,0.06);
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.5;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}

.check-list li:hover { color: var(--ink); padding-left: 6px; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal-lt);
  border: 1.5px solid var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%231D9E75' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  transition: transform 0.25s var(--ease-bounce);
}
.check-list li:hover::before { transform: scale(1.15); }

/* Bloque "También incluye" */
.service-also {
  background: var(--surface-3);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 0; /* Quitamos margen para controlarlo desde el wrapper */
}

.service-also-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.service-also-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-also-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.10);
  color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.service-also-tag:hover {
  background: var(--violet-lt);
  border-color: rgba(102,96,175,0.2);
  color: var(--violet);
  transform: translateY(-1px);
}

/* Ajuste Responsivo */
@media (max-width: 1024px) {
  .service-detail { 
    grid-template-columns: 1fr; 
    gap: 32px; 
    padding: 36px; 
  }
  .service-detail-left .service-bottom-wrapper {
    margin-top: 24px;
  }
}

/* =====================
   METODOLOGÍA
   ===================== */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.method-steps::before {
  content: '';
  position: absolute;
  left: 28px; top: 56px; bottom: 56px;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), rgba(29,158,117,0.08));
}
.method-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(26,24,48,0.07);
  align-items: start;
}
.method-step:last-child { border-bottom: none; }

.method-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  color: var(--teal);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
  box-shadow: 0 0 0 0 rgba(29,158,117,0.2);
}
.method-step:hover .method-step-num {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(29,158,117,0.10);
}
.method-step-body {}
.method-step-body h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 12px;
}
.method-step-body > p { margin-bottom: 24px; line-height: 1.7; }

.method-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.method-item {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.method-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,24,48,0.07);
  border-color: rgba(29,158,117,0.2);
}
.method-item h4 { margin-bottom: 4px; font-size: 0.92rem; }
.method-item p { font-size: 0.86rem; }

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.differential-card {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29,158,117,0.2);
}
.differential-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: transform 0.3s var(--ease-bounce);
}
.differential-card:hover .differential-icon { transform: scale(1.12) rotate(-5deg); }
.differential-card h3 { font-size: 1rem; margin-bottom: 6px; }
.differential-card p { font-size: 0.9rem; }

/* =====================
   IMPACTO / CASOS
   ===================== */
.cases-full {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case-full {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.case-full:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-full-header {
  padding: 36px 40px 28px;
  border-bottom: 1px solid rgba(26,24,48,0.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.case-full-title-area {}
.case-full-title-area h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-top: 10px;
}
.case-full-metric {
  text-align: right;
  flex-shrink: 0;
}
.case-full-metric-num {
  font-family: 'Roboto', sans-serif;
  font-size: 3rem;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.case-full-metric-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.case-full-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.case-full-section {
  padding: 28px 32px;
  border-right: 1px solid rgba(26,24,48,0.07);
  transition: background 0.25s;
}
.case-full-section:hover { background: var(--surface-2); }
.case-full-section:last-child { border-right: none; }
.case-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.case-full-section p { font-size: 0.94rem; line-height: 1.65; }
.case-full-sector {
  padding: 16px 40px;
  background: var(--surface-2);
  border-top: 1px solid rgba(26,24,48,0.06);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.sector-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.sector-tag span { color: var(--ink-soft); font-weight: 400; }

/* Testimonial */
.testimonial-band {
  background: var(--violet-lt);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.testimonial-band::before {
  content: '"';
  position: absolute;
  top: -24px; left: 36px;
  font-family: 'Roboto', sans-serif;
  font-size: 15rem;
  color: rgba(102,96,175,0.09);
  line-height: 1;
  pointer-events: none;
}
.testimonial-text {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-style: italic;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.55;
  position: relative;
}
.testimonial-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--violet);
}
.testimonial-role {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* =====================
   CONTACTO (Unificado y Optimizado)
   ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid rgba(26,24,48,0.08);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.contact-form-card h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 8px;
}
.contact-form-card > p { margin-bottom: 32px; }

.form-grid { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid rgba(26,24,48,0.12);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: var(--radius);
  outline: none;
  transition: all 0.25s var(--ease);
  font-size: 0.97rem;
  appearance: none;
  -webkit-appearance: none;
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239896AD' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--violet);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(102,96,175,0.09);
  transform: translateY(-1px);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-muted); }
.form-row textarea { resize: vertical; min-height: 130px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-submit {
  width: 100%;
  height: 54px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.btn-submit:hover {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(102,96,175,0.28);
}
.btn-submit:active { transform: translateY(0); }
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 12px;
}
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--teal-lt);
  color: var(--teal-dk);
  border: 1px solid rgba(29,158,117,0.2);
}
.form-status.error {
  display: block;
  background: #FAECE7;
  color: #712B13;
  border: 1px solid rgba(216,90,48,0.2);
}

/* =====================
   SECCIÓN CONTACTO (Barra Lateral Corregida y Forzada)
   ===================== */
.contact-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

/* Tarjetas Generales Blancas */
.contact-sidebar .contact-card {
  background: var(--surface) !important;
  border: 1px solid rgba(26,24,48,0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  transition: box-shadow 0.25s, transform 0.25s var(--ease) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 16px rgba(26,24,48,0.04) !important;
  text-align: left !important;
}

.contact-sidebar .contact-card:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 32px rgba(26,24,48,0.08) !important;
  transform: translateY(-2px) !important;
}

.contact-sidebar .contact-card h3 {
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--ink-muted) !important;
  margin-bottom: 20px !important;
  line-height: 1.1 !important;
}

.contact-sidebar .contact-label-small {
  display: block !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--ink-muted) !important;
  margin-bottom: 8px !important;
}

/* Enlace del Correo Institucional */
.contact-sidebar .corporate-email-link {
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  transition: color 0.2s var(--ease) !important;
  word-break: break-all !important;
  display: inline-block !important;
  margin-top: 4px !important;
  text-decoration: none !important;
}

.contact-sidebar .corporate-email-link:hover {
  color: var(--violet) !important;
}

/* Contenedor y Botones de Redes (Forzados para recuperar las píldoras) */
.contact-sidebar .contact-channels {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}

.contact-sidebar .contact-channel-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(26,24,48,0.15) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--ink-soft) !important;
  background: var(--surface) !important;
  transition: all 0.25s var(--ease) !important;
  text-decoration: none !important;
}

.contact-sidebar .contact-channel-btn:hover {
  border-color: var(--violet) !important;
  color: var(--violet) !important;
  background: var(--violet-lt) !important;
  transform: translateY(-2px) !important;
}

/* Tarjeta Oscura Inferior (Corregida sin reborde superior claro) */
.contact-sidebar .contact-card.contact-card-dark {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  
  /* Sobreescribimos la sombra: removemos el 'inset 0 1px 0' blanco y dejamos solo una sombra exterior suave */
  box-shadow: 0 4px 20px rgba(26, 24, 48, 0.08) !important; 
}

.contact-sidebar .contact-card.contact-card-dark h3 {
  color: rgba(255, 255, 255, 0.45) !important;
}

.contact-sidebar .contact-card.contact-card-dark p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
}

/* Estado hover limpio para la tarjeta oscura */
.contact-sidebar .contact-card.contact-card-dark:hover {
  box-shadow: 0 12px 32px rgba(26, 24, 48, 0.15) !important;
  transform: translateY(-2px) !important;
}
/* =====================
   RESPONSIVE — páginas internas
   ===================== */
@media (max-width: 1024px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .differentials-grid { grid-template-columns: repeat(2, 1fr); }
  .case-full-header { flex-direction: column; }
  .case-full-metric { text-align: left; }
}
@media (max-width: 860px) {
  .method-items { grid-template-columns: 1fr; }
  .differentials-grid { grid-template-columns: 1fr; }
  .case-full-body { grid-template-columns: 1fr; }
  .case-full-section { border-right: none; border-bottom: 1px solid rgba(26,24,48,0.07); }
  .case-full-section:last-child { border-bottom: none; }
  .contact-sidebar { grid-template-columns: 1fr; }
  .method-steps::before { display: none; }
  .method-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .testimonial-band { padding: 36px 24px; }
}
@media (max-width: 600px) {
  .service-detail { padding: 24px; }
  .case-full-header { padding: 24px; }
  .case-full-section { padding: 20px 24px; }
  .case-full-sector { padding: 14px 24px; }
  .contact-form-card { padding: 28px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* =====================
   AJUSTES SOLICITADOS
   ===================== */
.team-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
.team-expertise span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-soft);
}
.partner-label {
  margin-top: 30px;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.app-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.app-logo-item img {
  max-height: 70px;
  width: auto;
}
.app-logo-item {
  background: var(--surface-2);
  border: 1px solid rgba(26,24,48,0.07);
  border-radius: var(--radius);
  min-height: 82px;
  min-width: 180px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  color:var(--ink-soft);
  font-weight:700;
}

.differential-card {
  text-align: left;
}

/* =====================
   CLIENTES / PARTNERS MARQUEE
   ===================== */

.clients-section {
  background: var(--surface);
  overflow: hidden;
}

.clients-wrap {
  padding: 72px 0;
}

.clients-section .section-head h2,
.partner-label {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  text-transform: none;
}

.partner-label {
  margin: 64px 0 32px;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: clientsScroll 55s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.client-item {
  min-width: 240px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(26,24,48,0.06);
  border-radius: 20px;
  padding: 24px;
}

.client-item img {
  max-width: 180px;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.25s ease;
}

.client-item:hover img {
  transform: scale(1.04);
}

.partners-marquee .clients-track {
  animation-duration: 36s;
}

@keyframes clientsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .clients-wrap {
    padding: 56px 0;
  }

  .clients-section .section-head h2,
  .partner-label {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .clients-track {
    gap: 20px;
    animation-duration: 42s;
  }

  .client-item {
    min-width: 190px;
    height: 92px;
    padding: 18px;
  }

  .client-item img {
    max-width: 140px;
    max-height: 48px;
  }
}



.section-head.center {
  text-align: left;
}

.section-head.center p {
  margin-inline: 0;
}

/* =====================
   PREMIUM FINISH
   ===================== */

.problem-item,
.service-card,
.metric-card,
.method-item,
.differential-card,
.contact-card,
.client-item,
.service-detail,
.case-full {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 2px 16px rgba(26,24,48,0.04);
}

.problem-item:hover,
.service-card:hover,
.metric-card:hover,
.method-item:hover,
.differential-card:hover,
.contact-card:hover,
.service-detail:hover,
.case-full:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 12px 32px rgba(26,24,48,0.08);
}

/* Textos alineados a izquierda */
.section-head.center,
.center,
.testimonial-band {
  text-align: left;
}

.section-head.center p,
.testimonial-text {
  margin-inline: 0;
}

.app-logo-row {
  justify-content: flex-start;
}

/* =====================
   SECCIÓN APP / HUMAND (Compacto y Textos Izquierda)
   ===================== */
.section-app {
  /* Reducimos el padding general de la sección para quitar el exceso de aire superior e inferior */
  padding-top: 40px !important;
  padding-bottom: 56px !important;
}

.section-app .section-head {
  margin-bottom: 24px; /* Reducido para acercar el logo al texto */
}

.app-logo-transparent-display {
  display: flex;
  justify-content: center; /* Mantiene únicamente el logo centrado */
  align-items: center;
  width: 100%;
  margin-top: 24px; /* Pegado armónico al texto de arriba */
  padding: 0; /* Eliminamos paddings internos innecesarios */
}

.app-logo-clean {
  width: 100%;
  /* Aumentamos drásticamente el ancho máximo y la altura máxima para darle una escala masiva */
  max-width: 620px; 
  max-height: 200px; 
  
  height: auto;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  
  /* Transición premium */
  transition: transform 0.3s var(--ease);
}

.app-logo-clean:hover {
  transform: scale(1.03); /* Un crecimiento leve ya que al ser muy grande no necesita exageración */
}

/* Ajustes de escala fluidos para pantallas medianas (Notebooks / Tablets) */
@media (max-width: 1024px) {
  .app-logo-clean {
    max-width: 480px;
    max-height: 150px;
  }
}

/* Ajuste proporcional para celulares */
@media (max-width: 600px) {
  .app-logo-transparent-display {
    margin-top: 32px;
  }
  .app-logo-clean {
    max-width: 320px; /* Grande pero cómodo dentro de la pantalla de un teléfono */
    max-height: 100px;
  }
}