/* ============================================
   SINERGIADS — HOME CORREGIDO
   home.css — v2.1
   Ajustes quirúrgicos: menos ruido, más claridad
============================================ */

/* ---- HERO — sin blobs, respiración clara ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px 0 72px; /* padding-top = altura header */
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Blobs muy sutiles — solo como textura, no protagonismo */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.055; /* bajado de 0.09 → no compite con el texto */
  pointer-events: none;
}
.hb1 { width: 500px; height: 500px; background: var(--blue); top: -80px; right: -160px; }
.hb2 { width: 300px; height: 300px; background: #90A8FF; bottom: -60px; left: -60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag { margin-bottom: 1.2rem; }

.hero-h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--dark);
  margin-bottom: 1.3rem;
}
.hero-h1 em { font-style: normal; color: var(--blue); }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bdr);
}
.hstat-n {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1;
}
.hstat-l {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Diagrama hero — más simple, sin competir */
.hero-visual { position: relative; z-index: 1; }
.hero-diagram { width: 100%; max-width: 480px; margin-left: auto; opacity: 0.9; }

/* ---- CLIENTES CARRUSEL — logos con mejor tratamiento ---- */
.clients-sec {
  padding: 3rem 0;
  background: var(--bg-w);
  border-top: 1px solid var(--bdr-l);
  border-bottom: 1px solid var(--bdr-l);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.carousel-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.carousel-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollCarousel 34s linear infinite;
  align-items: center;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes scrollCarousel {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 120px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.client-logo:hover { opacity: 0.9; }
/* Logos con fondo negro: inversión limpia */
.client-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  max-width: 130px;
  filter: invert(1) brightness(0.3); /* → grafito oscuro, no negro puro */
}
.client-logo:hover img { filter: invert(1) brightness(0.15); opacity: 1; }

/* ---- PROPUESTA DE VALOR ---- */
.value-sec { padding: var(--sec) 0; }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--bg-c);
  border: 1px solid var(--bdr);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  transition: all var(--t);
}
.pill:hover {
  background: rgba(74,108,247,0.07);
  border-color: rgba(74,108,247,0.2);
  color: var(--blue);
}
/* Panel visual — cards apiladas */
.value-visual { position: relative; }
.value-cards-stack { position: relative; height: 340px; }
.vcard {
  position: absolute;
  background: var(--bg-w);
  border: 1px solid var(--bdr);
  border-radius: var(--rm);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--sh-m);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.vcard-ico {
  width: 38px; height: 38px;
  background: rgba(74,108,247,0.07);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.vcard-ico svg { width: 19px; height: 19px; }
.vcard-title { font-size: 0.86rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.vcard-desc  { font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.vcard-1 { top: 0;     left: 0;   right: 60px; z-index: 3; }
.vcard-2 { top: 100px; left: 30px; right: 0;   z-index: 2; }
.vcard-3 { top: 200px; left: 0;   right: 40px; z-index: 1; }
.blue-dot-deco { position: absolute; border-radius: 50%; background: var(--blue); }
.bdd-1 { width: 10px; height: 10px; top: -8px; right: 80px; animation: dotPulse 2.5s infinite; }
.bdd-2 { width: 7px;  height: 7px;  bottom: 20px; left: -8px; animation: dotPulse 2s 0.5s infinite; }
@keyframes dotPulse { 0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.4);opacity:.5} }

/* ---- CASOS ---- */
.casos-sec {
  padding: var(--sec) 0;
  background: var(--bg-w);
}
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.caso-card {
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: var(--rl);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-l);
  border-color: rgba(74,108,247,0.2);
}
.caso-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-c);
}
.caso-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.caso-card:hover .caso-img-wrap img { transform: scale(1.04); }
/* Fallback */
.caso-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--bg-c), rgba(74,108,247,0.06));
}
.caso-fallback svg { width: 30px; height: 30px; color: var(--muted); opacity: 0.35; }
.caso-fallback span { font-size: 0.7rem; color: var(--muted); opacity: 0.45; }
.caso-industry-badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  padding: 3px 10px;
  background: rgba(255,255,255,0.92);
  border-radius: 100px;
  font-size: 0.67rem; font-weight: 700;
  color: var(--dark);
  backdrop-filter: blur(4px);
}
.caso-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.caso-client {
  font-size: 0.68rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.45rem;
}
.caso-title {
  font-size: 0.93rem; font-weight: 700; color: var(--dark);
  line-height: 1.3; margin-bottom: 0.6rem;
}
.caso-desc {
  font-size: 0.78rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1.1rem; flex: 1;
}
.caso-metrics {
  display: flex; gap: 1.3rem;
  padding-top: 1rem; border-top: 1px solid var(--bdr);
}
.metric-n { font-size: 1.25rem; font-weight: 700; color: var(--dark); letter-spacing: -0.02em; }
.metric-l { font-size: 0.66rem; color: var(--muted); margin-top: 2px; }

/* ---- SERVICIOS ---- */
.svc-sec { padding: var(--sec) 0; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.8rem;
}
.svc-card {
  padding: 1.8rem;
  background: var(--bg-w);
  border: 1px solid var(--bdr);
  border-radius: var(--rm);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,108,247,0.04), transparent);
  opacity: 0; transition: opacity var(--t);
}
.svc-card:hover { border-color: rgba(74,108,247,0.22); transform: translateY(-3px); box-shadow: var(--sh-m); }
.svc-card:hover::after { opacity: 1; }
.svc-card:hover .svc-arrow { color: var(--blue); transform: translateX(3px); }
.svc-num {
  font-size: 0.66rem; font-weight: 700; color: rgba(74,108,247,0.3);
  letter-spacing: 0.15em; margin-bottom: 1.1rem;
}
.svc-icon {
  width: 40px; height: 40px;
  background: var(--bg-c); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 1.1rem;
  transition: background var(--t);
}
.svc-card:hover .svc-icon { background: rgba(74,108,247,0.09); }
.svc-icon svg { width: 20px; height: 20px; }
.svc-name { font-size: 0.93rem; font-weight: 700; color: var(--dark); margin-bottom: 0.45rem; }
.svc-desc { font-size: 0.79rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem; }
.svc-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.76rem; font-weight: 600; color: var(--muted);
  transition: all var(--t);
}
.svc-arrow svg { width: 12px; height: 12px; }

/* ---- NOSOTROS — respira mejor con el fondo ---- */
.nosotros-sec {
  padding: var(--sec) 0;
  background: var(--dark); /* mantener contraste pero sin acumular efectos */
  position: relative;
  overflow: hidden;
}
/* Único elemento decorativo — suficiente */
.nosotros-sec::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 420px; height: 420px;
  background: var(--blue); opacity: 0.04;
  border-radius: 50%; filter: blur(90px);
}
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.nosotros-sec .tag { color: rgba(255,255,255,0.38); }
.nosotros-sec .tag::before { background: rgba(255,255,255,0.38); }
.nosotros-h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; letter-spacing: -0.025em;
  margin: 1rem 0 1.3rem;
}
.nosotros-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.5);
  line-height: 1.8; margin-bottom: 2rem;
}
.nosotros-mv { display: flex; flex-direction: column; gap: 0.85rem; }
.mv-item {
  display: flex; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rm);
  transition: all var(--t);
}
.mv-item:hover {
  background: rgba(74,108,247,0.08);
  border-color: rgba(74,108,247,0.18);
}
.mv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 5px; }
.mv-label { font-size: 0.68rem; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.mv-text  { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.nosotros-visual { position: relative; }
.team-placeholder {
  height: 400px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rl);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  position: relative; overflow: hidden;
}
.team-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,108,247,0.05), transparent);
}
.team-placeholder svg { width: 36px; height: 36px; color: rgba(255,255,255,0.18); }
.team-placeholder span { font-size: 0.78rem; color: rgba(255,255,255,0.18); text-align: center; }
.nos-dot-1 {
  position: absolute; width: 12px; height: 12px;
  background: var(--blue); border-radius: 50%;
  top: -5px; right: 36px;
  animation: dotPulse 2.2s infinite;
}
.nos-dot-2 {
  position: absolute; width: 7px; height: 7px;
  background: var(--blue); border-radius: 50%;
  bottom: 18px; left: -3px; opacity: 0.6;
  animation: dotPulse 2.8s 0.6s infinite;
}

/* ---- CERTIFICACIONES ---- */
.certs-sec {
  padding: var(--sec-sm) 0;
  background: var(--bg-w);
  border-top: 1px solid var(--bdr-l);
  border-bottom: 1px solid var(--bdr-l);
}
.certs-inner { display: flex; align-items: center; gap: 3.5rem; flex-wrap: wrap; }
.certs-lbl {
  font-size: 0.8rem; font-weight: 600;
  color: var(--dark); max-width: 140px;
  line-height: 1.4; flex-shrink: 0;
}
.certs-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; flex: 1; }
.cert-badge {
  display: flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 18px;
  background: white;
  border: 1px solid var(--bdr);
  border-radius: var(--rm);
  transition: all var(--t);
  min-width: 120px;
  box-shadow: 0 1px 4px rgba(47,47,47,0.05);
}
.cert-badge:hover {
  border-color: rgba(74,108,247,0.25);
  transform: translateY(-2px);
  box-shadow: var(--sh-s);
}
.cert-badge img {
  height: 28px; width: auto;
  object-fit: contain; max-width: 140px;
  filter: none; /* logos ya procesados sin fondo */
}

/* ---- INSIGHTS ---- */
.insights-sec { padding: var(--sec) 0; }
.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.8rem;
}
.ins-card {
  background: var(--bg-w); border: 1px solid var(--bdr);
  border-radius: var(--rl); overflow: hidden;
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.ins-card:hover { transform: translateY(-3px); box-shadow: var(--sh-m); border-color: rgba(74,108,247,0.18); }
.ins-card.feat { background: var(--dark); }
.ins-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-c), rgba(74,108,247,0.07));
  flex-shrink: 0;
}
.ins-card.feat .ins-img { background: linear-gradient(135deg, rgba(74,108,247,0.1), rgba(74,108,247,0.02)); }
.ins-body { padding: 1.5rem; flex: 1; }
.ins-cat {
  display: inline-block; padding: 3px 9px;
  background: rgba(74,108,247,0.08); color: var(--blue);
  border-radius: 100px; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.ins-card.feat .ins-cat { background: rgba(74,108,247,0.2); }
.ins-title {
  font-size: 0.95rem; font-weight: 700; color: var(--dark);
  line-height: 1.3; margin-bottom: 0.55rem;
}
.ins-card.feat .ins-title { color: var(--white); }
.ins-sum { font-size: 0.78rem; color: var(--muted); line-height: 1.65; }
.ins-card.feat .ins-sum { color: rgba(255,255,255,0.42); }
.ins-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bdr);
}
.ins-card.feat .ins-meta { border-color: rgba(255,255,255,0.09); }
.ins-date { font-size: 0.68rem; color: var(--muted); }
.ins-card.feat .ins-date { color: rgba(255,255,255,0.28); }
.ins-link { font-size: 0.74rem; font-weight: 600; color: var(--blue); }

/* ---- CTA FINAL ---- */
.cta-sec {
  padding: var(--sec) 0;
  background: var(--dark);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-sec::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,108,247,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-sec .tag { justify-content: center; color: rgba(255,255,255,0.38); display: inline-flex; }
.cta-sec .tag::before { background: rgba(255,255,255,0.38); }
.cta-h {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; letter-spacing: -0.025em;
  max-width: 740px; margin: 1.3rem auto 1rem;
}
.cta-h em { font-style: normal; color: var(--blue); }
.cta-sub {
  font-size: 0.95rem; color: rgba(255,255,255,0.42);
  max-width: 480px; margin: 0 auto 2.2rem; line-height: 1.75;
}
.cta-acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-w { background: var(--white); color: var(--dark); }
.btn-w:hover { background: var(--blue); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,108,247,0.38); }
.btn-ow { border: 1.5px solid rgba(255,255,255,0.16); color: white; }
.btn-ow:hover { border-color: rgba(255,255,255,0.48); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
