/* ============================================================
   Common Sense · Data Strategy Partners
   CSS principal — basado en diseño de Lucas (propuesta Resultados)
   Stack: Bootstrap 5 + custom
   ============================================================ */

/* ===== VARIABLES DE MARCA ===== */
:root {
  --navy:    #1A2A6B;   /* azul principal, dominante */
  --cyan:    #1E9FD6;   /* celeste, acento de marca */
  --magenta: #C2185B;   /* magenta, énfasis puntual / eyebrows */
  --paper:   #FAF8F4;   /* fondo cálido general */
  --card:    #FFFFFF;
  --ink:     #2A2D3A;
  --slate:   #4D5266;
  --mute:    #8A8F9E;
  --line:    #E9E5DC;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --radius-sm: 14px;
  --radius:    20px;
  --radius-lg: 28px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}

a { text-decoration: none; }

/* ===== NAVBAR ===== */
.cs-navbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  /*padding: 0;*/
}
.cs-navbar .navbar-brand img { height: 38px; width: auto; display: block; }
.cs-navbar .nav-link {
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  transition: color .18s;
}
.cs-navbar .nav-link:hover,
.cs-navbar .nav-link.active { color: var(--navy); }
.cs-navbar .nav-cta {
  border: 1.5px solid var(--navy) !important;
  color: var(--navy) !important;
  border-radius: 24px;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background .18s, color .18s;
}
.cs-navbar .nav-cta:hover {
  background: var(--navy);
  color: #fff !important;
}
.cs-navbar .navbar-toggler { border-color: var(--line); }

/* ===== EYEBROW ===== */
.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 600;
  font-family: var(--sans);
}

/* ===== BOTONES GLOBALES ===== */
.btn-primary-cs {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, transform .15s;
}
.btn-primary-cs:hover { background: #0f1a50; color: #fff; transform: translateY(-1px); }

.btn-text-cs {
  display: inline-block;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 3px;
  transition: color .18s;
}
.btn-text-cs:hover { color: var(--cyan); }

/* ===== HERO ===== */
.hero-section {
  background: var(--paper);
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-section h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-section h1 em { font-style: italic; color: var(--cyan); }
.hero-section .lead {
  font-size: 19px;
  color: var(--slate);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Hero visual */
.hviz {
  position: relative;
  height: 440px;
}
.hviz .mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--cyan) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .13;
  border-radius: 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 60% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 75% 75% at 60% 40%, #000, transparent);
}
.hviz .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .15;
}
.hviz .blob-1 { background: var(--cyan); width: 340px; height: 340px; top: -40px; right: -30px; }
.hviz .blob-2 { background: var(--magenta); width: 240px; height: 240px; bottom: -50px; left: -20px; opacity: .10; }

.hring {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
}

/* Floating KPI cards */
.hcard {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px -24px rgba(26, 42, 107, .32);
  padding: 16px 18px;
}
.hcard .cap { font-size: 11px; color: var(--mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.hcard .big { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1; }
.hcard .big em { font-style: normal; color: var(--cyan); }
.hcard .sub { font-size: 11.5px; color: var(--slate); margin-top: 3px; }

.hcard-k1 { top: 24px; left: 0; animation: floaty 5s ease-in-out infinite; }
.hcard-k2 { top: 150px; right: 0; animation: floaty 5s ease-in-out infinite .8s; }
.hcard-k3 { bottom: 26px; left: 30px; padding: 18px 20px; animation: floaty 5s ease-in-out infinite 1.6s; }

/* Mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; margin-top: 8px; }
.bars span { width: 14px; border-radius: 3px 3px 0 0; display: block; animation: grow 1.4s ease-out both; }
.bars span:nth-child(1) { height: 40%; background: linear-gradient(var(--cyan), #7fd3f0); animation-delay: .1s; }
.bars span:nth-child(2) { height: 64%; background: linear-gradient(var(--cyan), #7fd3f0); animation-delay: .25s; }
.bars span:nth-child(3) { height: 48%; background: linear-gradient(var(--cyan), #7fd3f0); animation-delay: .4s; }
.bars span:nth-child(4) { height: 86%; background: linear-gradient(var(--navy), #3a52a8); animation-delay: .55s; }
.bars span:nth-child(5) { height: 100%; background: linear-gradient(var(--magenta), #e0679a); animation-delay: .7s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes grow {
  from { height: 0 !important; opacity: .3; }
}

/* ===== BANDA RESULTADOS (navy) ===== */
.results-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 30px 0 0;
  padding: 56px;
}
.results-band .rh {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9FB0E0;
  margin-bottom: 34px;
  font-weight: 600;
}
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.res .n {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}
.res .n em { color: var(--cyan); font-style: normal; }
.res .l { font-size: 14px; color: #B9C4E4; margin-top: 10px; line-height: 1.4; }

/* ===== SERVICIOS ===== */
.services-section { padding: 84px 0; }
.sec-title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); color: var(--navy); margin-bottom: 18px; }
.sec-title em { font-style: italic; color: var(--cyan); }
.sec-intro { font-size: 17px; color: var(--slate); }

.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .18s;
}
.svc-card:hover { box-shadow: 0 12px 32px rgba(26,42,107,.10); transform: translateY(-3px); }

.svc-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.svc-card h3 { font-size: 23px; color: var(--navy); margin-bottom: 10px; }
.svc-card h3 em { font-style: italic; color: var(--cyan); }
.svc-card p { font-size: 14.5px; color: var(--slate); flex: 1; }
.svc-card .svc-more {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--navy); font-weight: 600; font-size: 14px;
  margin-top: 20px; border: none; background: none;
  cursor: pointer; padding: 0; align-self: flex-start;
  transition: color .18s;
}
.svc-card .svc-more:hover { color: var(--cyan); }
.svc-card .svc-more svg { transition: transform .18s; }
.svc-card .svc-more:hover svg { transform: translateX(3px); }

/* ===== OBJETIVOS ===== */
.obj-section { padding-top: 0; padding-bottom: 84px; }
.obj-list { border-top: 1px solid var(--line); margin-top: 48px; }
.obj-item {
  display: grid;
  grid-template-columns: 90px 56px 1fr;
  gap: 28px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.obj-num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  color: var(--cyan);
  line-height: .8;
  font-style: italic;
}
.obj-icon { width: 48px; height: 48px; color: var(--navy); }
.obj-content h4 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.obj-content p { font-size: 15px; color: var(--slate); max-width: 620px; }

/* ===== CLIENTES ===== */
.clients-section { text-align: center; padding: 0 0 84px; }
.clients-section .clients-label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); font-weight: 600; margin-bottom: 36px;
}
.cli-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.cli {
  background: #fff;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}
.cli img {
  max-width: 100%;
  max-height: 38px;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .25s, opacity .25s;
}
.cli:hover img { filter: grayscale(0); opacity: 1; }

/* ===== TESTIMONIOS ===== */
.quotes-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 84px 0;
}
.q-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }

/* Slider */
.q-viewport { overflow: hidden; }
.q-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.q-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 4px;
}
.q-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
  background: var(--paper);
}
.q-card blockquote {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  font-style: italic;
  margin-bottom: 22px;
  quotes: none;
}
.q-card .who { display: flex; align-items: center; gap: 13px; }
.q-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.q-name { font-weight: 600; font-size: 14.5px; }
.q-role { font-size: 13px; color: var(--mute); }

/* Controles testimonios */
.q-nav { display: flex; gap: 10px; }
.q-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  color: var(--navy); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: .18s;
}
.q-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.q-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.q-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); border: none; cursor: pointer;
  padding: 0; transition: all .2s;
}
.q-dot.active { background: var(--cyan); width: 26px; border-radius: 5px; }

/* ===== CTA FINAL — fondo paper, descarga ===== */
.cta-download {
  background: var(--paper);
  padding: 100px 0;
  text-align: center;
}
.cta-download h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.cta-download h2 em {
  font-style: italic;
  color: var(--cyan);
}
.cta-download p {
  font-size: 18px;
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.btn-download {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 36px;
  border-radius: 30px;
  transition: background .18s, transform .15s;
}
.btn-download:hover {
  background: #0f1a50;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.cs-footer {
  background: var(--ink);
  color: #AAB0C0;
  padding: 60px 0 34px;
}
.cs-footer a { color: #AAB0C0; transition: color .18s; }
.cs-footer a:hover { color: var(--cyan); }
.cs-footer .footer-logo { height: 38px; width: auto; display: block; margin-bottom: 16px; }
.cs-footer h5 { color: #fff; font-size: 13px; margin-bottom: 14px; font-family: var(--sans); font-weight: 600; }
.cs-footer p, .cs-footer li { font-size: 13.5px; line-height: 1.7; }
.cs-footer ul { list-style: none; padding: 0; }
.cs-footer hr { border-color: rgba(255,255,255,.08); margin: 32px 0 20px; }
.cs-footer .foot-bottom { font-size: 12px; color: #71778C; }

/* Certificaciones en el footer */
.certs {
    align-items: center;
    gap: 12px;
}
.certs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.certlogo {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 5px;
}
.certlogo--chip {
    background: #fff;
    padding: 6px 9px;
    height: 34px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.cert-chip {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: #C5C9D6;
  margin: 0 6px 8px 0;
}

  /* WhatsApp flotante */
  .wa-float{position:fixed;right:24px;bottom:24px;z-index:200;width:60px;height:60px;border-radius:50%;background:#25D366;display:grid;place-items:center;box-shadow:0 8px 24px rgba(37,211,102,.45);text-decoration:none;transition:transform .18s, box-shadow .18s}
  .wa-float:hover{transform:scale(1.06);box-shadow:0 12px 30px rgba(37,211,102,.55)}
  .wa-float svg{width:34px;height:34px;fill:#fff}
  .wa-float::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #25D366;animation:wa-ping 2.2s ease-out infinite;opacity:0}
  @keyframes wa-ping{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.7);opacity:0}}
  @media(max-width:880px){.wa-float{right:16px;bottom:16px;width:54px;height:54px}.wa-float svg{width:30px;height:30px}}

/* ===== UTILIDADES ===== */
section { padding: 84px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hviz { height: 320px; }
  .hcard-k1 { font-size: 13px; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .cli-grid  { grid-template-columns: repeat(4, 1fr); }
  .q-slide   { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hero-section { padding: 48px 0 36px; }
  .hero-section h1 { font-size: 2rem; }
  .hero-section .lead { font-size: 16px; }
  .hviz { height: 260px; margin-top: 36px; }
  .results-band { padding: 36px 24px; }
  .res-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cli-grid { grid-template-columns: repeat(3, 1fr); }
  .obj-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .obj-icon { display: none; }
  .q-header { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 60px 0; }
}

@media (max-width: 480px) {
  .cli-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid  { grid-template-columns: 1fr; }
}

