/* ========================================
   SERVICE PAGES — Shared Styles
   ======================================== */

/* ---------- Base (extracted from index.css) ---------- */
body {
  background: var(--gray-950);
  color: var(--white);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-dark {
  background: var(--gray-950);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.section-dark::after,
.servicio-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 88%, transparent 100%);
}
.section-dark > * {
  position: relative;
  z-index: 1;
}

.section-dark .blob,
.servicio-hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(80px, 40px); }
  50% { transform: translate(30px, -60px); }
  75% { transform: translate(-50px, 20px); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, 30px); }
  50% { transform: translate(40px, 60px); }
  75% { transform: translate(20px, -40px); }
}
@keyframes blobPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ---------- Typography ---------- */
.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.section-headline {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}

.section-body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 580px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Service Hero ---------- */
.servicio-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--gray-950);
}
.servicio-hero > * {
  position: relative;
  z-index: 1;
}

.servicio-hero .blob-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  animation: blobDrift1 25s ease-in-out infinite;
}
.servicio-hero .blob-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -50px;
  animation: blobDrift2 20s ease-in-out infinite;
}

/* Accent color variants */
[data-accent="yellow"] .blob-1 { background: rgba(234, 179, 8, 0.15); }
[data-accent="yellow"] .blob-2 { background: rgba(234, 179, 8, 0.08); }
[data-accent="blue"] .blob-1 { background: rgba(59, 130, 246, 0.15); }
[data-accent="blue"] .blob-2 { background: rgba(59, 130, 246, 0.08); }
[data-accent="green"] .blob-1 { background: rgba(34, 197, 94, 0.15); }
[data-accent="green"] .blob-2 { background: rgba(34, 197, 94, 0.08); }
[data-accent="purple"] .blob-1 { background: rgba(168, 85, 247, 0.15); }
[data-accent="purple"] .blob-2 { background: rgba(168, 85, 247, 0.08); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb .sep {
  color: var(--gray-700);
}
.breadcrumb .current {
  color: var(--gray-300);
}

/* ---------- Badge ---------- */
.servicio-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
[data-accent="yellow"] .servicio-badge { background: rgba(234, 179, 8, 0.15); color: #eab308; }
[data-accent="blue"] .servicio-badge { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
[data-accent="green"] .servicio-badge { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
[data-accent="purple"] .servicio-badge { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.servicio-badge--soon {
  background: transparent !important;
  border: 1px solid var(--gray-700);
  color: var(--gray-400) !important;
}

/* ---------- Hero Layout ---------- */
.servicio-hero-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 32px;
}
.servicio-hero-text {
  flex: 1;
  min-width: 0;
}
.servicio-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.servicio-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--gray-400);
}

/* ---------- Service Image ---------- */
.servicio-image {
  flex-shrink: 0;
  width: 340px;
}
.servicio-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Content Section ---------- */
.servicio-content {
  padding: 100px 0;
}
.servicio-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}
.servicio-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-400);
  margin-bottom: 24px;
  max-width: 720px;
}

/* ---------- Feature Grid ---------- */
.servicio-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}
.servicio-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
}
.servicio-feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--gray-400);
}
[data-accent="yellow"] .servicio-feature-icon { color: #eab308; }
[data-accent="blue"] .servicio-feature-icon { color: #3b82f6; }
[data-accent="green"] .servicio-feature-icon { color: #22c55e; }
[data-accent="purple"] .servicio-feature-icon { color: #a855f7; }

.servicio-feature h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.servicio-feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 0;
  max-width: none;
}

/* ---------- CTA Section ---------- */
.servicio-cta {
  text-align: center;
  padding: 100px 0;
}
.servicio-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: 16px;
}
.servicio-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-body-lg);
  color: var(--gray-400);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.servicio-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.servicio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
}
.servicio-btn--primary {
  background: var(--accent);
  color: var(--white);
}
.servicio-btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.servicio-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
}
.servicio-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Related Services ---------- */
.servicio-related {
  padding: 80px 0 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.servicio-related h2 {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}
.related-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.related-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}
.related-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.related-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
}
.related-card .arrow {
  display: inline-block;
  margin-top: 16px;
  color: var(--gray-600);
  transition: color 0.2s, transform 0.2s;
}
.related-card:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- Services Index Grid ---------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.servicio-index-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s;
}
.servicio-index-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.servicio-index-card--wide {
  grid-column: span 2;
}
.servicio-index-icon {
  width: 44px;
  height: 44px;
}
.servicio-index-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}
.servicio-index-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
}
.servicio-index-card .card-arrow {
  margin-top: auto;
  color: var(--gray-600);
  transition: color 0.2s, transform 0.2s;
}
.servicio-index-card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- Footer override (transparent bg) ---------- */
footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }
  .servicio-hero {
    padding: 100px 0 48px;
  }
  .servicio-hero-layout {
    flex-direction: column;
    gap: 32px;
  }
  .servicio-image {
    width: 100%;
    max-width: 360px;
  }
  .section-dark {
    padding: 80px 0;
  }
  .servicio-content {
    padding: 80px 0;
  }
  .servicio-features {
    grid-template-columns: 1fr;
  }
  .servicio-cta {
    padding: 80px 0;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .servicio-related {
    padding: 60px 0 80px;
  }
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .servicio-index-card--wide {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .servicio-hero {
    padding: 88px 0 36px;
  }
  .servicio-title {
    font-size: clamp(26px, 7vw, 32px);
  }
  .servicio-feature {
    padding: 24px;
  }
}
