/* ========================================
   KUBU ANALYTICS — Sections
   ======================================== */

/* --------- FEATURES / Características --------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-light);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: .92rem;
  line-height: 1.65;
}

/* --------- TOOLS / Herramientas --------- */
.tools {
  position: relative;
}

.tools__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tools__visual {
  position: relative;
}

.tools__screen {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.tools__screen-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tools__screen-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tools__screen-header span:nth-child(1) { background: #EF4444; }
.tools__screen-header span:nth-child(2) { background: #F59E0B; }
.tools__screen-header span:nth-child(3) { background: #22C55E; }

.tools__screen-body {
  display: flex;
  gap: 16px;
}

.tools__screen-sidebar {
  width: 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.tools__screen-sidebar-item {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  margin: 0 auto;
}

.tools__screen-sidebar-item.active {
  background: var(--red-primary);
}

.tools__screen-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tools__screen-widget {
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
}

.tools__screen-widget--wide {
  grid-column: 1 / -1;
  height: 80px;
  background: linear-gradient(135deg, rgba(212,43,43,.15), rgba(59,130,246,.1));
}

/* New chart-style tools dashboard (mirrors hero) */
.tools__dashboard {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.tools__dashboard-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tools__dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tools__dashboard-dot:nth-child(1) { background: #EF4444; }
.tools__dashboard-dot:nth-child(2) { background: #F59E0B; }
.tools__dashboard-dot:nth-child(3) { background: #22C55E; }

.tools__dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tools__dashboard-card {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
}

.tools__dashboard-card-label {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tools__dashboard-card-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.tools__dashboard-card-value.text-green { color: #22C55E; }
.tools__dashboard-card-value.text-blue { color: #3B82F6; }
.tools__dashboard-card-value.text-amber { color: #F59E0B; }
.tools__dashboard-card-value.text-red-val { color: var(--red-primary); }

.tools__dashboard-chart {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.tools__chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--red-primary), rgba(212,43,43,.4));
  border-radius: 4px 4px 0 0;
  animation: growBar 1.2s ease forwards;
  transform-origin: bottom;
}

.tools__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.tool-item:hover {
  border-color: var(--red-primary);
  box-shadow: var(--shadow-sm);
}

.tool-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--red-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-item__title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tool-item__text {
  font-size: .88rem;
  line-height: 1.6;
}

/* --------- COUNTERS / Numbers --------- */
.counters {
  background: var(--dark);
  padding: 60px 0;
}

.counters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.counter__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
}

.counter__number .text-red { color: var(--red-primary); }

.counter__label {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}

/* --------- FAQ --------- */
.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--red-primary);
  box-shadow: 0 2px 12px rgba(212,43,43,.08);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.faq-item__question:hover {
  color: var(--red-primary);
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-item.active .faq-item__icon {
  background: var(--red-primary);
  transform: rotate(180deg);
}

.faq-item__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--dark-soft);
  fill: none;
  stroke-width: 2;
}

.faq-item.active .faq-item__icon svg {
  stroke: #fff;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* --------- CTA Final --------- */
.cta-section {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-darker) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section__title {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section__text {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------- Responsive --------- */
@media (max-width: 968px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools__wrapper {
    grid-template-columns: 1fr;
  }

  .tools__visual { order: -1; max-width: 520px; margin: 0 auto; }

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

@media (max-width: 580px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .counters__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}


/* ========================================
   Sistema de reporteo
   ======================================== */
.reporteo__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
}

.reporteo__benefits {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.reporteo__benefit {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.reporteo__benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(196,30,58,.22);
  flex-shrink: 0;
}

.reporteo__benefit-icon svg {
  width: 26px;
  height: 26px;
}

.reporteo__benefit-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.reporteo__benefit-text {
  color: var(--text-secondary);
  font-size: .98rem;
  line-height: 1.65;
  margin: 0;
}

.reporteo__proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.reporteo__proof-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.reporteo__proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.reporteo__proof-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.reporteo__proof-label {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.5;
}

.reporteo__proof-card--highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: #fff;
  border: none;
}

.reporteo__proof-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 10px;
}

.reporteo__proof-author {
  font-size: .85rem;
  opacity: .85;
}

@media (max-width: 980px) {
  .reporteo__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 580px) {
  .reporteo__proof {
    grid-template-columns: 1fr;
  }
  .reporteo__benefit {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }
  .reporteo__benefit-icon {
    width: 48px; height: 48px;
  }
}


/* ========================================
   Metodología de mejora continua
   ======================================== */
.metodologia__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: metodologia;
}

.metodologia__step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.metodologia__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0,0,0,.08);
  border-color: transparent;
}

.metodologia__step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}

.metodologia__step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.metodologia__step-text {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

.metodologia__promise {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.metodologia__promise-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metodologia__promise-icon svg {
  width: 24px;
  height: 24px;
}

.metodologia__promise-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metodologia__promise-text {
  color: var(--text-secondary);
  font-size: .95rem;
}

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

@media (max-width: 580px) {
  .metodologia__steps {
    grid-template-columns: 1fr;
  }
  .metodologia__promise {
    flex-direction: column;
    text-align: center;
  }
}

