/* =========================================================
   SISTEMA DE SECCIONES – IMPPULSOR
   Estructura adaptable para contenido institucional
========================================================= */

/* ----- Contenedores principales ----- */
.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}
.section--light {
  background: #fff;
  color: #000;
  padding: 60px;
 
}
.section--dark {
  background: #03132b;
  color: #fff;
  padding: 60px;
}
.section--p-60 {
  padding: 60px;
}
.separator::after {
    content: "";
    width: 100%;
    display: block;
    padding-top: 50px;
    border-bottom: 1px solid;
}
.separator-40y::after {
    content: "";
    width: 100%;
    display: block;
    padding-top: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid;
}

/* ----- Grillas y columnas ----- */
.grid {
  display: grid;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: start;
}
.grid-2--75-25 {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 60px;
  align-items: start;
}
.grid-2--2fr-3fr {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}
.grid-2--2fr-1fr {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: start;
}
.grid-center {
  display: grid;
  place-items: center;
}
.text-center {
  text-align: center;
}

/* Responsive: tablet y mobile */
@media (max-width: 992px) {
  .section { padding: 60px 0; }
  .grid-2,
  .grid-2--75-25,
  .grid-2--2fr-3fr,
  .grid-4 { gap: 40px; grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .grid-2,
  .grid-2--75-25,
  .grid-2--2fr-3fr,
  .grid-4  {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

/* =========================================================
   TITULOS Y TEXTOS
========================================================= */

.heading-lg {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.heading-md {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 30px;
}

.heading-sm {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Activa la línea azul solo cuando se usa .line-left */
.line-left {
  padding-left: 18px;
  position: relative;
}

.line-left::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    min-height: 1em;
    height: 90%;
    background: #006eff;
    border-radius: 2px;
}




/* =========================================================
   IMÁGENES Y UTILIDADES
========================================================= */
.image img {
  width: 100%;
  height: auto;
  display: block;
}
.text img {
  max-width: 100%;
}

.text-body + .text-body {
  margin-top: 18px;
}

.text strong {
  font-weight: 600;
}

/* =========================================================
   BOTONES REUTILIZABLES
========================================================= */
.botones-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
}
.btn-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    text-decoration: none;
    transition: all .25s ease;
    color: #000;
    margin-bottom: 10px;
    gap: 12px;
}
.btn-arrow::after {
  content: '➜';
  font-size: 22px;
  transition: transform .2s;
  color: var(--azul-claro);
}
.btn-arrow:hover {
  color:var(--azul-claro);
  text-decoration: none;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}


.btn-arrow:last-child {
  margin-bottom: 0;
}

/* DIAGNOSTICO DE MADUREZ COMERCIAL */
.page-diagnostico .section {
    padding: 0;
}
/* OCHO ÁREAS DE GESTIÓN */
.ocho-areas__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.ocho-areas__texto {
  flex: 1;
  max-width: 520px;
}

.ocho-areas__imagen {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.ocho-areas__imagen img {
  width: 100%;
  object-fit: cover;
}

/* --- Tipografía --- */

.section-title span {
  display: block;
}


/* --- Lista de áreas --- */
.ocho-areas__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}



.ocho-areas__list li a::after {
  content: "→";
  margin-left: 8px;
  color: #3b82f6;
  transition: transform .25s ease;
}

.ocho-areas__list li a:hover {
  color: #3b82f6;
}

.ocho-areas__list li a:hover::after {
  transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .ocho-areas__inner {
    flex-direction: column;
    text-align: center;
  }

  .ocho-areas__imagen {
    justify-content: center;
  }

  .ocho-areas__texto {
    max-width: 100%;
  }

  .ocho-areas__list {
    justify-items: center;
  }
}
/* =========================================================
   BLOQUE 9 – Dimensiones de análisis
========================================================= */
.section-dimensiones {
  padding-top: 120px;
}

.dimensiones-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

.accordion-item {
    border: 1px solid #989898;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease;
    margin-bottom: 10px;
}
.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 24px;
  font-weight: 600;
  background: #fff;
  transition: background .25s ease;
      color: #000;
}

.accordion-header:hover {
  background: #e8edef;
}

.accordion-title {
  flex: 1;
  margin-right: 10px;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #006EFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.accordion-icon::before {
  content: '+';
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  transition: transform .3s ease;
}
.accordion-header.active .accordion-icon {
  background: #005BCC;
  transform: rotate(180deg);
}
.accordion-header.active .accordion-icon::before {
  content: '−';
}
.accordion-header.active h4.dimension-subtitulo::after {
    border-bottom: 1px solid;
    display: block;
    content: "";
    width: calc(100% - 60px);
    margin-top: 10px;
}
.accordion-content {
  height: 0;
  overflow: hidden;
  background: #F7FAFF;
  transition: height .35s ease;
}
.accordion-content-inner {
  padding: 0 24px 24px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .3s ease, transform .3s ease;
}
.accordion-header.active + .accordion-content .accordion-content-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Estado activo: fondo uniforme en header + contenido */
.accordion-header.active,
.accordion-header.active + .accordion-content {
  background: #e8edef;
}

/* También el fondo interno del contenido para continuidad visual */
.accordion-header.active + .accordion-content .accordion-content-inner {
  background: #e8edef;
}


@media (max-width: 992px) {
  .dimensiones-grid {
    display: block;
  }
}

/* =========================================================
   Animación de aparición para items del acordeón
========================================================= */

.accordion-item {
  border: 1px solid #989898;
  background: #fff;
  overflow: hidden;
  margin-bottom: 10px;

  /* Combina ambas transiciones */
  transition: box-shadow .2s ease, opacity .8s ease, transform .8s ease;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Visible (cuando entra al viewport) */
.accordion-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay progresivo dentro de cada columna */
.accordion-item:nth-child(1)  { transition-delay: .2s; }
.accordion-item:nth-child(2)  { transition-delay: .4s; }
.accordion-item:nth-child(3)  { transition-delay: .6s; }
.accordion-item:nth-child(4)  { transition-delay: .8s; }
.accordion-item:nth-child(5)  { transition-delay: 1s; }
.accordion-item:nth-child(6)  { transition-delay: 1.2s; }


/* =========================================================
   LISTA DIAGNÓSTICO (Bloque 10)
========================================================= */
.diagnostico-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.diagnostico-list li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgb(112 112 112);
    padding-bottom: 20px;
    line-height: 1.6;
}
.diagnostico-list li p {
    margin: 0;
    line-height: 1.6;
    position: relative;
    padding-top: 20px;
    margin-left: -50px;
}
.diagnostico-list li:last-child {
  border-bottom: none;
}

/* Numeración de los ítems */

span.num {
    position: absolute;
    left: 0;
    top: -15px;
    width: 28px;
    height: 28px;
    background: #006EFF;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width:991px) {
  span.num {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}

/* ================================
   Estilo para listas con ícono check
   ================================ */
.list-check {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  background: #006EFF; /* azul ticket */
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
  .list-check li {
    padding-left: 34px;
  }
  .list-check li::before {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}
/* ===================================
   Check circular azul 
   =================================== */
.check-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  background: #007BFF; /* azul principal */
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}

.check-icon::before {
  content: "✓";
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .check-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}


/* =========================================================
   VARIOS
========================================================= */
@media (min-width:1024px) {
  .insight-destacado {
    margin-top: -50%;
  }
  .grid-2--carousel-insights {
    grid-template-columns: 2fr 1fr;
  }
}

/* ===================================
   WRAPPER SLIDER
=================================== */
.insights-slider-wrapper {
  display: block;
  width: 100%;
  overflow: hidden;
}
.grid-2--carousel-insights {
    background: url(/wp-content/uploads/ellipse-bg.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
}
/* ===================================
   TARJETAS INSIGHTS — Impulsor v2
=================================== */
.insight-card {
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.insight-card-link {
  text-decoration: none;
  color: inherit; 
  display: block;
}

.insight-card__image,
.caso-card__image {
  overflow: hidden;
  height: 290px;
  width: 100%;
  position: relative;
}
.insight-destacado .insight-card__image {
    height: 420px;
}
.insight-card__image img,
.caso-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease, opacity .6s ease;
  filter: brightness(1);
  opacity: 1;
}

.insight-card:hover .insight-card__image img,
.caso-card:hover .caso-card__image img {
  transform: scale(1.08);
  filter: brightness(0.85);
  opacity: 0.9;
}

/* Contenido */
.insight-card__content,
.caso-card__content {
  padding: 10px 0;
}

.insight-card__content h3,
.caso-card__content h3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* máximo 3 líneas */
  max-height: 4em;         /* ajusta según tu line-height */
  min-height: 2.6em;       /* mínimo 2 líneas aprox. (line-height * 2) */
  line-height: 1.3em;      /* asegúrate de mantener la proporción */
}

.insight-card__content .insight-meta,
.caso-card__content .caso-meta {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    max-height: 2em;
    font-weight: 600;
    text-align: left;
}
.insight-resumen,
.caso-resumen {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 4.5em;
  text-align: justify;
  color: #000;
}

/* Botón borde negro */
.btn-outline--black {
  display: inline-block;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  text-transform: none;
  transition: all .2s ease;
}

.btn-outline--black:hover {
  background: #000;
  color: #fff;
}

/* ===================================
   FLECHAS DEL SLIDER INSIGHTS
   Arriba a la derecha, sin fondo
=================================== */
/* --- INSIGHTS: flechas visibles y clickeables --- */
.insights-slider-wrapper{ position: relative; }
.insights-slider{ position: relative; z-index: 1; }

.insights-slider-header{
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 20;            /* sobre las tarjetas */
  padding: 20px 0 10px;
  margin-bottom: 0;
}

.slider-arrows{ display:flex; gap:14px; }

.slider-arrows .swiper-button-prev,
.slider-arrows .swiper-button-next{
  position: static !important;          /* saca el absolute de Swiper */
  inset: auto !important;
  width: 44px; height: 44px;
  background: transparent !important;   /* sin fondo */
  border: none !important;
  color: var(--azul-corporativo);
  display:flex; align-items:center; justify-content:center;
  pointer-events: auto;                 /* aseguro click */
  transition: color .25s ease, transform .25s ease;
}

.slider-arrows .swiper-button-prev:hover,
.slider-arrows .swiper-button-next:hover{
  color: var(--azul-claro);
  transform: scale(1.1);
}

.slider-arrows .swiper-button-prev::after,
.slider-arrows .swiper-button-next::after{
  font-size: 20px; font-weight: 600;
}
/* =========================================================
   AJUSTES VARIOS GLOBALES
========================================================= */



.text-center img {
  margin: 0 auto;
}
.text-center .heading-md::before {
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Los títulos centrados no usan línea azul */
}
.section--dark .heading-md::before {
  background: #00B6FF;
}

/* pagina home */
.hero-slider__bloque-1 {
    background: linear-gradient(
131deg, #030F23, #006EFF);
    background: url(/wp-content/uploads/bg-gradiente-1.svg);
    background-size: cover;
    background-repeat: no-repeat;
}


.page-home .bloque-1 h2.heading-lg {
    max-width: 465px;
}
.page-home .bloque-casos-exito {
    background: none;
}
/* pagina comercial y clientes */
body.page-template-page-comercial-clientes {
  background: #fff;
}
.bg-gradient-13 {
    background: linear-gradient(
131deg, #030F23, #006EFF);
    background: url(/wp-content/uploads/bg-gradiente-13.svg);
    background-size: cover;
    background-repeat: no-repeat;
}
/* pagina soluciones */
main.page-soluciones {
  background: #fff;
}

