/* Escala visual y contraste legible — los 7 sitios */

/* Tarjetas de servicio — respetan tema claro u oscuro */
.service-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-card, var(--white, #fff));
  border-radius: var(--radius, 10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}

.section--alt .service-card {
  background: var(--bg-card, var(--white, #fff));
}

.service-card__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
  color: var(--text-muted, var(--gray-500, #64748b));
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--navy, var(--text, #1a2332));
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted, var(--gray-500, #475569));
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.service-card__icon svg {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  max-height: 48px;
  display: block;
}

/* Paneles SEO — texto oscuro sobre fondo claro */
.seo-section {
  background: #eef1f5 !important;
  color: #1e293b;
}

.seo-section h2,
.seo-section .seo-keywords,
.seo-section .seo-area,
.seo-section .service-area,
.seo-section .service-area-block {
  color: #0f172a !important;
}

.seo-section .seo-prose p {
  color: #334155 !important;
  opacity: 1 !important;
}

.seo-section strong {
  color: #0f172a;
}

.seo-section a {
  color: #1e4a72;
}

.seo-section a:hover {
  color: #0f172a;
}

.seo-section .seo-keywords {
  background: rgba(15, 23, 42, 0.07);
  color: #334155;
}

/* Bloques IA / resumen */
.ai-seo-section .ai-summary h2,
.ai-seo-section .ai-summary p,
.ai-seo-section .ai-summary strong {
  color: var(--navy, var(--text, #1e293b));
}

.ai-seo-section .ai-summary p {
  opacity: 1;
}

.ai-seo-section .ai-tag {
  color: var(--navy, var(--text, #1e293b));
}

/* Textos secundarios legibles */
.section__lead {
  color: var(--text-muted, var(--gray-500, #64748b));
  opacity: 1;
}

.process-step h3 {
  font-size: 0.92rem;
  color: var(--navy, var(--text, #1e293b));
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-muted, var(--gray-500, #64748b));
  opacity: 1;
}

/* Grid de servicios — desktop/tablet */
.services-scroll-wrap {
  overflow: visible;
  margin: 0;
  padding: 0;
}

.services-grid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.scroll-hint {
  display: none !important;
  color: #64748b !important;
  opacity: 1;
}

/* Ilustraciones laterales */
.content-split__figure {
  max-width: 340px;
  margin: 0 auto;
}

.content-split__figure svg,
.content-split__figure img {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
}

/* Hero / paneles decorativos */
.hero__visual,
.hero__dashboard {
  max-width: min(100%, 300px);
  margin-inline: auto;
}

.hero__frame {
  transform: rotate(1deg);
  max-width: 100%;
}

.hero__frame-bars {
  height: 88px;
  max-height: 88px;
}

.hero__frame-inner {
  padding: 1rem 1.1rem;
}

.orbit {
  width: min(100%, 240px);
  height: min(100%, 240px);
  max-width: 240px;
  max-height: 240px;
}

.dashboard {
  max-width: 100%;
  transform: scale(0.92);
  transform-origin: top center;
}

.hero__dashboard .dashboard {
  max-width: 280px;
  margin-inline: auto;
}

.process-step__img {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__img .service-card__icon {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .content-split__figure {
    max-width: 280px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .services-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .services-grid {
    display: flex !important;
    width: max-content !important;
    gap: 0.85rem;
  }

  .services-grid .service-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
    padding: 1.1rem;
  }

  .scroll-hint {
    display: block !important;
    font-size: 0.78rem;
    width: 100%;
    text-align: center;
    margin-top: 0.35rem;
  }

  .hero__visual,
  .hero__dashboard {
    max-width: 260px;
  }
}

@media (min-width: 961px) {
  .hero__visual,
  .hero__dashboard {
    max-width: 300px;
    margin-inline: 0;
    justify-self: end;
  }
}
