/**
 * Layout unificado — tarjetas de servicios (enterprise + estratégicos)
 */

.service-unified-card.strategic-card {
  transform: translateY(0);
  will-change: transform, box-shadow, border-color;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 40px -24px rgba(0, 0, 0, 0.55);
}

.service-unified-card.strategic-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 20;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-unified-card.strategic-card {
  position: relative;
}

.service-unified-card.strategic-card:hover {
  transform: translateY(-5px);
}

.service-unified-card.strategic-card:hover::before {
  opacity: 1;
}

/* ── Media header ── */

.service-card-media {
  isolation: isolate;
}

.service-card-photo {
  transform: scale(1.03);
}

.service-unified-card.strategic-card:hover .service-card-photo {
  transform: scale(1.09);
}

.service-card-media-overlay {
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.15) 0%,
    rgba(9, 9, 11, 0.35) 45%,
    rgba(9, 9, 11, 0.92) 78%,
    rgba(9, 9, 11, 0.98) 100%
  );
}

.service-card-media-accent {
  pointer-events: none;
}

.service-card-media-content {
  padding: 2.5rem 1.75rem 1.75rem;
}

@media (min-width: 640px) {
  .service-card-media-content {
    padding: 2.75rem 2rem 2rem;
  }
}

.service-card-media-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.service-card-media-titles {
  min-width: 0;
  flex: 1;
}

.service-card-icon {
  margin-bottom: 0;
}

.service-card-eyebrow {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgb(147 197 253);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-title {
  margin: 0;
  padding-top: 0.125rem;
  max-width: 100%;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

@media (min-width: 640px) {
  .service-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }
}

.service-card-badge {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.service-card-divider {
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 123, 255, 0.35) 50%,
    transparent 100%
  );
}

/* ── Body ── */

.service-card-body {
  padding: 1.875rem 1.75rem 1.75rem;
}

@media (min-width: 640px) {
  .service-card-body {
    padding: 2rem 2rem 2rem;
  }
}

.service-card-lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgb(203 213 225);
}

.service-card-extended {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(100 116 139);
}

.service-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.service-keyword {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(0, 123, 255, 0.2);
  background: rgba(0, 123, 255, 0.08);
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(96 165 250);
}

/* ── Detail panels ── */

.service-detail-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .service-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .service-detail-panel:has(.service-detail-list) {
    grid-column: span 1;
  }
}

.service-detail-panel {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  padding: 1.25rem 1.375rem 1.375rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service-unified-card:hover .service-detail-panel {
  border-color: rgba(255, 255, 255, 0.1);
}

.service-detail-panel-highlight {
  border-color: rgba(0, 123, 255, 0.22);
  background: rgba(0, 123, 255, 0.06);
}

.service-detail-title {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.service-detail-panel .service-detail-list,
.service-detail-panel .service-coverage-list,
.service-detail-panel .service-tag-list {
  margin-top: 0;
}

.service-coverage-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgb(226 232 240);
}

.service-coverage-block + .service-coverage-block {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-tag {
  display: inline-flex;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.625rem;
  font-size: 0.6875rem;
  color: rgb(148 163 184);
}

.service-tag-brand {
  background: rgba(0, 123, 255, 0.12);
  color: rgb(96 165 250);
  font-weight: 500;
}

/* ── CTAs ── */

.service-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .service-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.service-card-specialist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(29 78 216);
  transition: color 0.2s ease;
}

.service-card-specialist:hover {
  color: rgb(37 99 235);
}

.dark .service-card-specialist {
  color: rgb(96 165 250);
}

.dark .service-card-specialist:hover {
  color: rgb(147 197 253);
}

.service-unified-card .btn-primary,
.service-unified-card .btn-secondary {
  min-height: 2.625rem;
  border-radius: 0.625rem;
}

#soluciones-estrategicas .service-unified-card {
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .service-unified-card.strategic-card,
  .service-unified-card.strategic-card:hover {
    transform: none;
    transition: none;
  }

  .service-unified-card.strategic-card::before {
    display: none;
  }

  .service-card-photo,
  .service-unified-card.strategic-card:hover .service-card-photo {
    transform: none;
    transition: none;
  }
}

/* ── Contactos — oficina virtual ── */

.contact-office-visual {
  isolation: isolate;
}

.contact-office-photo {
  min-height: 22rem;
}

@media (min-width: 1024px) {
  .contact-office-photo {
    min-height: 28rem;
  }
}

.contact-office-overlay {
  pointer-events: none;
}

/* ── Navegación rápida servicios ── */

.services-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(203 213 225);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.services-nav-pill:hover {
  border-color: rgba(0, 123, 255, 0.35);
  background: rgba(0, 123, 255, 0.08);
  color: #fff;
}

.services-nav-pill-highlight {
  border-color: rgba(0, 123, 255, 0.35);
  background: rgba(0, 123, 255, 0.12);
  color: rgb(147 197 253);
}

.services-nav-count {
  display: inline-flex;
  min-width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgb(96 165 250);
}

.services-nav-link {
  font-weight: 600;
  color: rgb(148 163 184);
  transition: color 0.2s ease;
}

.services-nav-link:hover {
  color: rgb(96 165 250);
}

.services-nav-link-aml,
.services-nav-link-fraud {
  color: rgb(96 165 250);
}

/* ── Catálogo unificado ── */

.services-hub {
  background: transparent;
}

.services-hub-intro .heading-lg {
  line-height: 1.3;
}

.services-hub-catalog {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-category + .services-category {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-category-header {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-category-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(0, 123, 255, 0.12);
  color: rgb(96 165 250);
}

.services-category-text {
  min-width: 0;
  flex: 1;
}

.services-category-title {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}

.services-category-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgb(148 163 184);
}

.services-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(0, 123, 255, 0.25);
  background: rgba(0, 123, 255, 0.08);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(96 165 250);
}

.services-category-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .services-category-grid {
    gap: 2.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#servicios-todos .service-unified-card,
#soluciones-estrategicas .service-unified-card {
  transition-delay: calc(var(--reveal-index, 0) * 60ms);
}
