/* ============================================================
   ACATHI — pantalla: Servicios (patterns/services.php)
   REDISEÑO EDITORIAL · hero oscuro + tarjetas con acento de color
   por servicio + flecha animada + banda CTA de cierre.
   ============================================================ */

/* ═══════════════════ HÉROE editorial ═══════════════════ */
.ac-services-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(120% 130% at 50% 0%, #4a148c 0%, transparent 60%),
    linear-gradient(160deg, #1a1228 0%, #310065 65%, #4a148c 100%);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.ac-services-hero__rainbow { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--rainbow-gradient); z-index: 4; }
.ac-services-hero__inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.ac-services-hero__inner .ac-eyebrow { justify-content: center; }
.ac-services-hero__eyebrow { color: var(--secondary-fixed-dim); }
.ac-services-hero__title {
  font-family: var(--font-display); font-weight: var(--weight-extra);
  font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.9rem);
  line-height: 1.05; letter-spacing: -0.025em; color: #fff;
  margin: 18px auto 0; max-width: 780px; text-wrap: balance;
}
.ac-services-hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55;
  color: rgba(255,255,255,0.86); margin: 22px auto 0; max-width: 620px;
}
.ac-services-hero__meta {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.ac-services-hero__meta li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 13px; color: #fff;
}
.ac-services-hero__meta .material-symbols-outlined { font-size: 18px; color: var(--secondary-fixed-dim); }

/* ═══════════════════ Rejilla de servicios ═══════════════════ */
.ac-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Tarjetas premium: acento superior de color por servicio + relieve. */
.ac-services-grid .ac-service-card {
  position: relative; overflow: hidden; padding-top: 32px;
  border-radius: var(--radius-2xl);
}
.ac-services-grid .ac-service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--reveal-ease);
}
.ac-services-grid .ac-service-card:hover::before { transform: scaleX(1); }
.ac-service-card--primary::before   { background: var(--primary); }
.ac-service-card--secondary::before { background: var(--secondary); }
.ac-service-card--amber::before     { background: var(--acathi-amber); }
.ac-service-card--success::before   { background: var(--success); }
.ac-services-grid .ac-icon-tile { width: 60px; height: 60px; }
.ac-services-grid .ac-icon-tile .material-symbols-outlined { font-size: 32px; }
.ac-services-grid .ac-service-card h3 { font-size: 20px; line-height: 1.25; }
.ac-services-grid .ac-link-more { margin-top: auto; }

/* ═══════════════════ Banda CTA de cierre ═══════════════════ */
.ac-services-cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-3xl); padding: clamp(36px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.ac-services-cta__copy { position: relative; z-index: 2; max-width: 540px; }
.ac-services-cta__copy h2 { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); color: #fff; margin: 0 0 10px; line-height: 1.15; }
.ac-services-cta__copy p { color: rgba(255,255,255,0.82); margin: 0; font-size: 16px; line-height: 1.5; }
.ac-services-cta__actions { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .ac-services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .ac-services-grid { grid-template-columns: 1fr; }
  .ac-services-cta { flex-direction: column; align-items: flex-start; }
}
