/* ============================================================
   CS Integrador - Minimalismo ejecutivo v1.1.53
   Home: menos acciones, más jerarquía, aire controlado y sobriedad.
   ============================================================ */

.home-compact {
  --executive-section-space: clamp(72px, 7.2vw, 100px);
  --executive-section-space-mobile: clamp(56px, 9vw, 70px);
}

/* Regla editorial: aire suficiente, sin vacíos excesivos. */
.home-compact .problem-section,
.home-compact .commercial-journey-section,
.home-compact .experience-section,
.home-compact .about-home-section,
.home-compact .work-method-section,
.home-compact .portal-trust-section,
.home-compact .technology-section,
.home-compact .solutions-section,
.home-compact .faq-section {
  padding-top: var(--executive-section-space);
  padding-bottom: var(--executive-section-space);
}

/* HERO: una acción primaria + un enlace secundario. */
.home-compact .executive-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.home-compact .executive-hero-actions .text-link {
  font-weight: 750;
  text-decoration: none;
}

/* PROBLEMAS: acordeón editorial, sin aspecto de tarjeta SaaS. */
.home-compact .problem-grid {
  display: block;
  border-top: 1px solid var(--line);
}

.home-compact .problem-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-compact .problem-item:hover {
  transform: none;
  box-shadow: none;
}

.home-compact .problem-summary {
  min-height: 68px;
  padding: 18px 0;
}

.home-compact .problem-number {
  color: var(--tech, #159ea4);
  font-size: .76rem;
  font-weight: 850;
}

.home-compact .problem-toggle-indicator {
  transition: transform .18s ease;
}

.home-compact .problem-item[open] .problem-toggle-indicator {
  transform: rotate(45deg);
}

.home-compact .problem-description {
  max-width: 880px;
  margin: 0;
  padding: 0 48px 20px;
  color: var(--muted);
}

/* RUTA COMERCIAL: las etapas explican; un solo CTA convierte. */
.home-compact .journey-step-grid {
  gap: 24px;
  margin-bottom: 24px;
}

.home-compact .journey-step-card {
  min-height: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-compact .journey-step-card::before {
  display: none;
}

.home-compact .journey-step-number {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  border-radius: 0;
  background: transparent;
  color: var(--tech, #159ea4);
  font-size: .76rem;
  font-weight: 900;
}

.home-compact .journey-step-card h3 {
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
}

.home-compact .executive-services-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.home-compact .executive-services-cta .text-link {
  font-weight: 800;
}

/* EVIDENCIA: conservar la prueba, eliminar repetición visible. */
.home-compact .experience-card {
  box-shadow: none;
}

.home-compact .experience-card[open] .experience-mobile-result {
  display: none;
}

/* SOBRE MÍ: chips convertidos en una línea discreta. */
.home-compact .about-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 18px;
  color: var(--muted);
  font-size: .88rem;
}

.home-compact .about-home-tags span {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.home-compact .about-home-tags span:not(:last-child)::after {
  content: " · ";
  margin: 0 7px;
  color: #a8b3ba;
}

.home-compact .about-home-actions {
  gap: 18px;
}

/* MÉTODO: diagrama, no colección de tarjetas. */
.home-compact .method-flow-compact,
.home-compact .method-mobile-flow {
  background: transparent;
  box-shadow: none;
}

.home-compact .method-mobile-step {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* PORTAL: demostrar primero y colocar el enlace después. */
.home-compact .portal-compact-copy .portal-public-link {
  display: none;
}

.home-compact .portal-feature-list article {
  box-shadow: none;
}

.home-compact .portal-executive-cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* TECNOLOGÍA: prueba discreta, sin píldoras protagonistas. */
.home-compact .technology-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
}

.home-compact .technology-home-tags span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  transition: color .16s ease;
}

.home-compact .technology-home-tags span:hover {
  color: var(--tech, #159ea4);
}

/* SOUT: ficha mínima; los planes viven en la landing del producto. */
.home-compact .solution-home-strip {
  box-shadow: none;
}

.home-compact .solution-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: var(--muted);
}

.home-compact .solution-home-tags span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.home-compact .solution-home-tags span:not(:last-child)::after {
  content: " · ";
  margin: 0 7px;
  color: #a8b3ba;
}

/* CTA final: un botón sólido + un enlace secundario. */
.home-compact .cta-button-row {
  align-items: center;
  gap: 18px;
}

.home-compact .cta-secondary-text {
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.home-compact .cta-secondary-text:hover,
.home-compact .cta-secondary-text:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Sombras: en home predominan borde fino + fondo + espacio. */
.home-compact .journey-step-card,
.home-compact .problem-item,
.home-compact .experience-card,
.home-compact .portal-feature-list article,
.home-compact .solution-home-strip {
  box-shadow: none !important;
}

/* Sticky móvil: una sola acción permanente. */
.home-compact .mobile-sticky-cta {
  justify-content: center;
}

.home-compact .mobile-sticky-cta .button {
  width: min(100%, 360px);
}

@media (max-width: 760px) {
  .home-compact .problem-section,
  .home-compact .commercial-journey-section,
  .home-compact .experience-section,
  .home-compact .about-home-section,
  .home-compact .work-method-section,
  .home-compact .portal-trust-section,
  .home-compact .technology-section,
  .home-compact .solutions-section,
  .home-compact .faq-section {
    padding-top: var(--executive-section-space-mobile);
    padding-bottom: var(--executive-section-space-mobile);
  }

  .home-compact .executive-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .home-compact .problem-description {
    padding-left: 0;
    padding-right: 0;
  }

  .home-compact .journey-step-grid {
    gap: 20px;
  }

  .home-compact .executive-services-cta,
  .home-compact .portal-executive-cta {
    justify-content: flex-start;
  }

  .home-compact .method-flow-compact,
  .home-compact .method-mobile-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-compact .method-mobile-arrow {
    justify-self: start;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .home-compact .cta-button-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
