/* servicios-specific styles */

/* ─── Hero ─────────────────────────────────────────────────────── */
.svc-hero {
  position: relative;
  height: 80vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.svc-hero__bg {
  position: absolute;
  inset: 0;
  top: -15%;
  bottom: auto;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

.svc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 6, 6, .95) 0%,
    rgba(6, 6, 6, .50) 45%,
    rgba(6, 6, 6, .20) 100%
  );
  z-index: 1;
}

.svc-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 6rem;
  max-width: 820px;
}

.svc-hero__title {
  font-family: var(--font-headings);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -6px;
  line-height: 1.0;
  margin: .6rem 0 1.1rem;
}

.svc-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(252, 252, 252, .72);
  line-height: 1.7;
  margin: 0;
  max-width: 60ch;
}

/* ─── Secciones ────────────────────────────────────────────────── */
.svc-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

@media (min-width: 992px) {
  .svc-section { padding: 7rem 0; }
}

.svc-section--alt {
  background-color: var(--bg-alt);
}

.svc-intro__text {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  color: rgba(252, 252, 252, .65);
  line-height: 1.85;
  margin-bottom: 1.3rem;
}

.svc-intro__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, .07);
}

/* ─── Cards de servicio ────────────────────────────────────────── */
.svc-card {
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, .07);
  background-color: var(--bg-surface);
  height: 100%;
  transition: border-color var(--transition), background-color var(--transition);
}

.svc-card:hover {
  border-color: rgba(255, 255, 255, .4);
  background-color: var(--bg-surface-hover);
}

.svc-card__icon {
  font-size: 1.7rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1.1rem;
  transition: transform var(--transition);
}

.svc-card:hover .svc-card__icon {
  transform: translateY(-2px);
}

.svc-card__title {
  font-family: var(--font-headings);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-base);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .7rem;
  line-height: 1.3;
}

.svc-card__text {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}

/* ─── CTA con parallax ─────────────────────────────────────────── */
.svc-cta {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  text-align: center;
}

@media (min-width: 992px) {
  .svc-cta { padding: 9rem 0; }
}

.svc-cta__bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.svc-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, .70);
  z-index: 1;
}

.svc-cta__content {
  position: relative;
  z-index: 2;
}

.svc-cta__title {
  text-transform: none;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.svc-cta__text {
  font-family: var(--font-body);
  color: rgba(252, 252, 252, .75);
  line-height: 1.8;
  max-width: 60ch;
  margin: 0 auto 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .svc-hero__bg,
  .svc-cta__bg { transform: none !important; }
}
