/**
 * Bloques de contenido en landings SEO y secciones con grids/cards inline.
 * Complementa layout.css en móvil y tablet.
 */

/* Contenedor principal de landings */
.page-content {
  overflow-x: clip;
}

.page-content .section > .container > div {
  min-width: 0;
}

/* Hero landings: menos padding en móvil */
@media (max-width: 767px) {
  .page-content .section[style*="padding: 5rem"] {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .page-content .section[style*="padding: 5rem"] h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem) !important;
  }

  .page-content .section[style*="padding: 5rem"] .btn {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-content .section[style*="padding: 5rem"] {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }
}

/* Grids y listas de cards (benefit, feature, mosaic, pillar) */
.page-content ul.grid,
.page-content ol {
  min-width: 0;
}

.page-content ul.grid > li,
.page-content ol > li {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Timeline de pasos numerados */
.page-content .step-timeline > li {
  gap: 0.75rem;
}

.page-content .step-timeline__rail {
  width: 2.5rem;
  flex-shrink: 0;
}

.page-content .step-timeline__number {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
}

@media (max-width: 380px) {
  .page-content .step-timeline__rail {
    width: 2.25rem;
  }

  .page-content .step-timeline__number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8125rem;
  }
}

/* FAQ en landings */
.page-content details summary {
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.page-content details summary > span:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.page-content details summary .icon {
  flex-shrink: 0;
}

/* CTA final landings */
@media (max-width: 767px) {
  .page-content .section[style*="primary-700"] .btn,
  .page-content .section[style*="primary-800"] .btn {
    width: 100%;
    max-width: 20rem;
  }
}

/* Grids legacy con auto-fit (hasta regenerar páginas) */
@media (max-width: 767px) {
  .page-content ul.grid[style*="minmax(220px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Mosaic: ítem destacado a ancho completo solo en 2+ columnas */
@media (max-width: 767px) {
  .page-content ul.grid > li[style*="grid-column:1 / -1"] {
    grid-column: auto !important;
  }
}
