:root {
  --bg:        #ffffff;
  --bg-dark:   #0a0d12;
  --bg-darker: #060809;
  --ink:       #14181f;
  --ink-soft:  #51596a;
  --line:      #e7e9ef;

  --red:    #f0354c;
  --orange: #ff7a18;
  --yellow: #f5a623;
  --green:  #19b35c;
  --blue:   #1f8fff;


  --maxw: 1180px;
  --font: 'Roboto', system-ui, sans-serif;
  --radius-btn: 6px;
  --radius-card: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
  line-height: 1;
  border: 0;
}
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }

/*btn-primary*/



.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: var(--radius-btn);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); }

.btn-lg { padding: 14px 24px; font-size: 15px; }

/* =====================================================
   HERO — ESTRUCTURA CORREGIDA
   ===================================================== */
.hero {
  background: var(--bg-darker);
  color: #fff;
  overflow: visible;
  position: relative;
}
header.hero.hero-home {
  position: relative;
}
/* Nav */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 22px;
}
.brand-logo { height: 50px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 20px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.has-caret { display: flex; align-items: center; gap: 3px; }
.caret { font-size: 10px; color: rgba(255,255,255,.55); }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }

/* Hero image — FUERA DEL CONTAINER, ancho completo */
.hero-art {
  position: absolute;
  top: 0;
  left: auto;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Blur overlay: gradiente de izquierda a derecha */
.hero-img-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--bg-darker) 0%,
    var(--bg-darker) 5%,
    rgba(6,8,9,.98) 15%,
    rgba(6,8,9,.90) 25%,
    rgba(6,8,9,.70) 35%,
    rgba(6,8,9,.45) 45%,
    rgba(6,8,9,.20) 55%,
    rgba(6,8,9,.05) 65%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 2;
}

/* Hero content — dentro del container, flotando sobre la imagen */
.hero-inner {
  position: relative;
  z-index: 3;
  padding-block: 60px 100px;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-copy { 
  max-width: 550px; 
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .15em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}
.hero-orange { color: var(--orange); }
.hero-green  { color: var(--green); }

.hero-sub {
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 300;
  color: rgba(255,255,255,.80);
  max-width: 430px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
}

/* =====================================================
   SECCIÓN TÍTULOS
   ===================================================== */
.section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}
.accent-orange { color: var(--orange); }
.accent-green  { color: var(--green); }

/* =====================================================
   PROBLEMAS
   ===================================================== */
.problems { padding-block: 72px 60px; }
.problem-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  box-shadow: 0 8px 28px -18px rgba(20,24,31,.22);
  transition: transform .2s, box-shadow .2s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(20,24,31,.28); }
.p-icon {
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 18px;
  height: 45px;
  margin-bottom: 14px;
  place-items: center;
  width: 45px;
  padding: 8px;
}
.p-icon img {
  width: 100%;
  max-width: 120px;
  object-position: center;
  object-fit: cover;
}

.ic-red    { background: var(--red); }
.ic-orange { background: var(--orange); }
.ic-yellow { background: var(--yellow); }
.ic-green  { background: var(--green); }
.problem-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.problem-card p  { font-size: 13px; color: var(--ink-soft); }

/* =====================================================
   SOLUCIONES
   ===================================================== */
.solutions { padding-block: 20px 72px; }
.service-list { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.service {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 210px;
  gap: 26px;
  align-items: center;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  transition: box-shadow .2s, transform .2s;
}
.service:hover { box-shadow: 0 18px 50px -20px rgba(20,24,31,.18); transform: translateY(-2px); }
.svc-img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/11; background: #0a0d12; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; flex: none; }

/* Rojo: 2, 8, 14, 20... */
.step:nth-child(6n+2) .step-num { background: var(--red); }
.step:nth-child(6n+3) .step-num { background: var(--orange); }
.step:nth-child(6n+4) .step-num { background: var(--yellow); }
.step:nth-child(6n+5) .step-num { background: var(--green); }
.step:nth-child(6n+6) .step-num { background: var(--blue); }
.step:nth-child(6n+7) .step-num { background: #84b1dd; }


.svc-body p { font-size: 13px; color: var(--ink-soft); }
.svc-body .ideal { margin-top: 10px; font-size: 12.5px; }
.svc-body .ideal strong { color: var(--ink); }
.svc-feats { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svc-feats li { position: relative; padding-left: 22px; font-size: 13px; }
.svc-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.svc-meta { display: flex; flex-direction: column; gap: 10px; }
.meta-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; background: #fff; }
.meta-label { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 3px; }
span.meta-label img {
  width: 100%;
  height: auto;
  max-width: 20px;
  margin-bottom: 2px;
}

.meta-value { display: block; font-size: 13.5px; font-weight: 700; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner { padding-block: 10px 72px; }
.cta-box {
  position: relative;
  background: var(--bg-dark);
  border-radius: 18px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 34px;
  color: #fff;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute; right: -8%; top: -50%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,122,24,.18), transparent 65%);
  pointer-events: none;
}
.cta-radar { width: 110px; height: 110px; border-radius: 50%; position: relative; z-index: 2; }
.cta-copy h3 { font-size: 21px; font-weight: 700; margin-bottom: 9px; }
.cta-copy p  { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.78); max-width: 400px; }
.cta-action  { text-align: center; position: relative; z-index: 2; }
.cta-note    { margin-top: 11px; font-size: 13px; color: var(--yellow); }

/* =====================================================
   POR QUÉ
   ===================================================== */
.why { padding-block: 20px 80px; }
.why-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}
.why-ic { width: 48px; height: 48px; margin: 0 auto 14px; }
.why-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.why-item p  { font-size: 12.5px; font-weight: 300; color: var(--ink-soft); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--bg-darker); color: rgba(255,255,255,.55); padding-block: 26px; text-align: center; font-size: 13px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1080px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid     { grid-template-columns: repeat(3, 1fr); }
  .service {
    grid-template-columns: 180px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "img body" "feats meta";
  }
  .svc-img   { grid-area: img; }
  .svc-body  { grid-area: body; }
  .svc-feats { grid-area: feats; }
  .svc-meta  { grid-area: meta; }
}

@media (max-width: 767px) {

  .hero-inner { 
    padding-block: 36px 60px;
    min-height: auto;
  }
  .hero-art { display: none; }
  .hero-copy { max-width: 100%; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }

  .cta-box { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 28px 24px; }
  .cta-radar { margin: 0 auto; }
  .cta-copy p { margin-inline: auto; }
  
  .hero-actions {
    flex-wrap: wrap;
  }
  
  a.btn.btn-primary.btn-lg {
    white-space: normal;
    word-break: break-word;
}
}

@media (max-width: 479px) {
  .problem-grid { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; grid-template-areas: "img" "body" "feats" "meta"; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

.nav-links.open {
  display: flex;
  position: absolute;
  top: 72px; left: 0; right: 0;
  flex-direction: column;
  background: var(--bg-dark);
  padding: 20px 24px;
  gap: 16px;
  align-items: flex-start;
  z-index: 20;
  border-top: 1px solid rgba(255,255,255,.08);
}







/* =====================================================
   ESTILOS NUEVOS PARA LA PÁGINA DE INICIO (HOME)
   Pega TODO esto al final de tu styles.css actual.
   ===================================================== */

/* ---- Subtítulo bajo los títulos de sección ---- */
.section-sub {
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---- Hero: pills de features bajo los botones ---- */
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}
.hero-pills li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.hero-pills li img { width: 18px; height: 18px; object-fit: contain; }

/* En el home el hero suele ser un poco más bajo */
.hero-home .hero-inner { min-height: 520px; }

/* =====================================================
   SISTEMAS — 4 tarjetas con "Saber más"
   ===================================================== */
.systems { padding-block: 60px 60px; background: #f7f8fa; }
.systems-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.system-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px -18px rgba(20,24,31,.18);
  transition: transform .2s, box-shadow .2s;
}
.system-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px -18px rgba(20,24,31,.26); }
.sys-ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.sys-ic img { width: 30px; height: 30px; object-fit: contain; }
.system-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.system-card p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.sys-link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
  color: var(--orange);
}
.sys-link .arrow { transition: transform .18s; }
.sys-link:hover .arrow { transform: translateX(3px); }

/* =====================================================
   PROCESO — Cómo trabajamos (6 pasos)
   ===================================================== */
.process { padding-block: 64px 64px; }
.process-track {
  margin-top: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
/* Línea horizontal que conecta los pasos */
.process-line {
  position: absolute;
  top: 16px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--orange) 25%, var(--yellow) 45%,
    var(--green) 70%, var(--blue) 100%);
  opacity: .35;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step-ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.step-ic img { width: 36px; height: 36px; object-fit: contain; }
.step h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* =====================================================
   CTA DIAGNÓSTICO — banner oscuro con radar
   ===================================================== */
.diag-box {
  position: relative;
  background: var(--bg-dark);
  border-radius: 18px;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: 230px 1fr 280px;
  align-items: center;
  gap: 36px;
  color: #fff;
  overflow: hidden;
}
.diag-box::after {
  content: "";
  position: absolute; left: 4%; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,122,24,.16), transparent 65%);
  pointer-events: none;
}
.diag-radar { position: relative; z-index: 2; }
.diag-radar img { width: 100%; max-width: 210px; border-radius: 50%; }
.diag-copy { position: relative; z-index: 2; }
.diag-copy h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.diag-copy p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.78); margin-bottom: 18px; }
.diag-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.diag-feats li {
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; color: rgba(255,255,255,.92);
}
.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; display: inline-block; position: relative; }
.dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: #fff; font-weight: 700; }
.dot-red    { background: var(--red); }
.dot-orange { background: var(--orange); }
.dot-yellow { background: var(--yellow); }
.dot-green  { background: var(--green); }
.dot-blue  { background: var(--blue); }

.diag-action {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
}
.diag-price { text-align: left; margin-bottom: 18px; }
.diag-price-ic { width: 22px; height: 22px; margin-bottom: 6px; }
.diag-price-label { display: block; font-size: 12px; color: rgba(255,255,255,.65); }
.diag-price-value { display: block; font-size: 26px; font-weight: 900; }
.diag-action .btn { width: 100%; justify-content: center; }
.diag-note { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.6); }

/* =====================================================
   INDUSTRIAS
   ===================================================== */
.industries { padding-block: 64px 64px; }
.industries-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  text-align: center;
}
.industry {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px;
  position: relative;
}
/* separadores verticales sutiles entre industrias */
.industry:not(:last-child)::after {
  content: "";
  position: absolute; right: -9px; top: 12px; bottom: 12px;
  width: 1px; background: var(--line);
}
.industry-ic { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }
.industry h4 { font-size: 14px; font-weight: 700; }

/* =====================================================
   CTA FINAL
   ===================================================== */
.final-cta { background: var(--bg-darker); color: #fff; padding-block: 56px; overflow: hidden; }
.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.final-cta-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.final-cta-copy p {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,.78);
  max-width: 460px;
}
.final-cta-action { text-align: center; position: relative; z-index: 2; }
.final-cta-note { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.75); }
.final-cta-arrow {
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 220px; opacity: .9; pointer-events: none; z-index: 1;
}

/* =====================================================
   RESPONSIVE — secciones nuevas
   ===================================================== */
@media (max-width: 1080px) {
  .systems-grid    { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .process-track   { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-line    { display: none; }
  .diag-box {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 26px;
  }
  .diag-radar img { margin: 0 auto; max-width: 170px; }
  .diag-feats { display: inline-flex; text-align: left; }
  .diag-price { text-align: center; }
  .final-cta-arrow { display: none; }
}

@media (min-width: 992px) {
  .nav-links.open {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    border-top: none;
    top: auto;
    left: auto;
    right: auto;
    gap: 24px;
    align-items: center;
  }
}

@media (max-width:991px){
  .nav-links{
    display: none;
  }
  .nav-toggle {
        display: block;
    }
}

@media (max-width: 767px) {
  .systems-grid    { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track   { grid-template-columns: repeat(2, 1fr); }
  .industry:not(:last-child)::after { display: none; }
  .final-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .final-cta-copy p { margin-inline: auto; }
}

  
  .hero-pills      { gap: 14px; }
}

