/* Servicios page */

.servicios-intro {
  max-width: 720px;
  margin: 0 0 3.5rem;
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* ── Grid container ───────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1101px) {
  .services {
    gap: 2.5rem;
  }
}

/* ── Individual card ──────────────────────────────────────────── */
.service {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 2.25rem 1.75rem 1.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: serviceEnter 0.7s var(--ease-out) forwards;
  transition: transform var(--dur-medium) var(--ease-out),
              box-shadow var(--dur-medium) var(--ease-out),
              border-color var(--dur-base) ease;
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s var(--ease-out);
  z-index: 1;
}

.service:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  border-color: var(--gold-line);
}

.service:hover::before {
  height: 100%;
}

.service-num {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 7.5rem;
  font-weight: 200;
  line-height: 1;
  color: var(--gold-line);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  transition: transform 0.6s var(--ease-out), opacity var(--dur-medium) ease;
  z-index: 0;
}

.service:hover .service-num {
  opacity: 0.15;
  transform: scale(1.08) translateY(-4px);
}

.service-content {
  position: relative;
  z-index: 2;
}

.service-title {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.9rem;
  transition: color 0.3s ease;
}

.service:hover .service-title {
  color: var(--gold);
}

.service-price {
  font-size: 0.8rem;
  color: var(--text-3);
  margin: -0.4rem 0 1rem;
  letter-spacing: 0.02em;
}

.service-desc {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 1.35rem;
  max-width: 58ch;
}

.service-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 600px) {
  .service-details {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.75rem;
  }
}

.service-col-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-list li {
  position: relative;
  padding-left: 0.85rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-line);
  font-size: 0.8em;
}

.service:hover .service-list li {
  transform: translateX(2px);
}

.service-ideal {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.service-ideal strong {
  color: var(--gold);
  font-weight: 700;
}

/* Staggered entrance delays */
.service:nth-child(1)  { animation-delay: 0.1s; }
.service:nth-child(2)  { animation-delay: 0.25s; }
.service:nth-child(3)  { animation-delay: 0.4s; }
.service:nth-child(4)  { animation-delay: 0.55s; }
.service:nth-child(5)  { animation-delay: 0.7s; }
.service:nth-child(6)  { animation-delay: 0.85s; }
.service:nth-child(7)  { animation-delay: 1s; }
.service:nth-child(8)  { animation-delay: 1.15s; }
.service:nth-child(9)  { animation-delay: 1.3s; }
.service:nth-child(10) { animation-delay: 1.45s; }
.service:nth-child(11) { animation-delay: 1.6s; }
.service:nth-child(12) { animation-delay: 1.75s; }

@keyframes serviceEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card upgrades at wider viewports */
@media (min-width: 600px) {
  .service {
    padding: 2.5rem 2rem 2rem;
  }

  .service-num {
    font-size: 8.5rem;
    right: 16px;
    top: -12px;
  }

  .service-title {
    font-size: 1.8rem;
  }

  .service-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1101px) {
  .service-title {
    font-size: 1.95rem;
  }

  .service-num {
    font-size: 9.2rem;
  }
}

/* ── Teaser link (home capabilities section) ──────────────────── */
.capabilities-footer {
  margin-top: 2rem;
  text-align: center;
}

.capabilities-footer a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .1rem;
  transition: color .25s, border-bottom-color .25s;
}

.capabilities-footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-line);
}

.capabilities-footer a svg {
  transition: transform .3s;
}

.capabilities-footer a:hover svg {
  transform: translateX(3px);
}

/* ── Final CTA block ──────────────────────────────────────────── */
.servicios-cta {
  margin-top: 4.5rem;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  background: rgba(12, 13, 16, .58);
  text-align: center;
}

.servicios-cta h2 {
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: .55rem;
  line-height: 1.2;
}

.servicios-cta p {
  max-width: 530px;
  margin: 0 auto 1.55rem;
  color: var(--text-2);
  font-size: .97rem;
}
