/* ═══════════════════════════════════════════════════════════════
   servicios.css — Franja horizontal + imagen abajo
═══════════════════════════════════════════════════════════════ */

/* ─── SECTION WRAPPER ────────────────────────────────────────── */
.services-section {
  padding-block: clamp(4rem, 8vw, 6rem);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── CARD — flex column (content arriba + thumb abajo) ─────── */
.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255 255 255 / 0.07);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform    0.3s var(--ease-out),
    box-shadow   0.3s ease;
}

@media (hover: hover) {
  .service-card:hover {
    border-color: rgba(124 58 237 / 0.4);
    transform: translateX(6px);
    box-shadow: 0 8px 40px rgba(124 58 237 / 0.12);
  }
  .service-card:hover .service-card__content::before { width: 6px; opacity: 1; }
  .service-card:hover .service-card__icon { background: rgba(124 58 237 / 0.22); transform: scale(1.05); }
  .service-card__cta:hover          { background: rgba(124 58 237 / 0.18); border-color: rgba(124 58 237 / 0.7); color: #fff; }
  .service-card__cta:hover svg      { transform: translateX(3px); }
}

/* ─── CONTENT — la franja horizontal original ────────────────── */
/* Barra de acento izquierda — solo cubre el content, no la imagen */
.service-card__content::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.service-card__content {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background-color: var(--color-bg-surface);
}

/* ─── ICONO ──────────────────────────────────────────────────── */
.service-card__icon {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-md);
  background: rgba(124 58 237 / 0.12);
  border: 1px solid rgba(124 58 237 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

/* ─── BODY ───────────────────────────────────────────────────── */
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.service-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hue-cyan);
}
.service-card__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.service-card__desc {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 65ch;
}

/* ─── CTA ────────────────────────────────────────────────────── */
.service-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(124 58 237 / 0.4);
  color: #c084fc;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.service-card__cta svg { transition: transform 0.2s ease; }

/* ─── THUMB — imagen abajo ───────────────────────────────────── */
.service-card__thumb {
  height: 220px;
  background-color: rgba(255 255 255 / 0.02);
  background-size: cover;
  background-position: center;
  /* Sombra interior que une visualmente con el content */
  box-shadow: inset 0 8px 24px rgba(7 5 20 / 0.6);
}

/* Cards sin imagen: glow sutil en lugar de vacío */
.service-card__thumb:not([style]) {
  background-image: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(124 58 237 / 0.18) 0%,
    transparent 70%
  );
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  .service-card__content {
    grid-template-columns: 3.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .service-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
  .service-card__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .service-card__thumb { height: 180px; }
}

@media (max-width: 480px) {
  .service-card__content { padding: 1.5rem; gap: 1rem; }
  .service-card__thumb   { height: 150px; }
}

@media (max-width: 380px) {
  .service-card__content {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .service-card__icon { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
  .service-card__cta  { align-self: flex-start; }
}
