#services {
  position: relative;
  padding: 100px 48px;
  background: #0a0a0f;
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.services-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #ffffff 0%, #00d4ff 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  animation: titleShine 6s linear infinite;
}

@keyframes titleShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.services-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2fff);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  margin: 14px auto 0;
  border-radius: 2px;
}

.services-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #8a9bb0;
  text-align: center;
  max-width: 560px;
  margin: 22px auto 0;
}

.services-currency {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 56px;
}

.currency-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9bb0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease,
              background 0.3s ease, box-shadow 0.3s ease;
}

.currency-btn:hover {
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.06);
}

.currency-btn.active {
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.12);
}

/* Carrusel */
.services-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.services-carousel-wrapper::before,
.services-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.services-carousel-wrapper::before {
  left: 64px;
  background: linear-gradient(to right, #0a0a0f 0%, transparent 100%);
}

.services-carousel-wrapper::after {
  right: 64px;
  background: linear-gradient(to left, #0a0a0f 0%, transparent 100%);
}

.services-carousel-track {
  overflow: hidden;
  width: 100%;
}

.services-grid {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.services-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #c0c8d8;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.services-arrow:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.7);
  color: #00d4ff;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
  transform: scale(1.08);
}

.services-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
}

.services-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.services-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.services-dot.active {
  background: #00d4ff;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transform: scale(1.3);
}

.services-dot:hover:not(.active) {
  background: rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.5);
}

/* Card */
.service-card {
  position: relative;
  flex-shrink: 0;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover { transform: translateY(-8px) scale(1.02); }

.service-badge {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 2;
  width: 150px;
  padding: 5px 0;
  background: linear-gradient(90deg, #00d4ff, #0099cc);
  color: #0a0a0f;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(40deg);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.4);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,10,15,0.30) 0%, rgba(10,10,15,0.55) 45%, rgba(10,10,15,0.72) 100%);
  transition: background 0.35s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(160deg, rgba(10,10,15,0.20) 0%, rgba(10,10,15,0.40) 45%, rgba(10,10,15,0.58) 100%);
}

.service-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  z-index: 1;
}

.service-icon {
  font-size: 36px;
  transition: transform 0.35s ease;
}

.service-card:hover .service-icon { transform: scale(1.15); }

.service-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* Lista de características — solo dentro del modal, visible al hacer click */
.service-modal-features {
  list-style: none;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-modal-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #a0aec0;
  text-align: left;
}

.service-modal-features li i {
  font-size: 12px;
  color: #00d4ff;
  flex-shrink: 0;
}

.service-price {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Colores por card */
.service-card:nth-child(1) { border: 1px solid rgba(0,212,255,0.45); box-shadow: 0 0 18px rgba(0,212,255,0.1); }
.service-card:nth-child(1) .service-icon,
.service-card:nth-child(1) .service-price { color: #00d4ff; text-shadow: 0 0 10px rgba(0,212,255,0.5); }
.service-card:nth-child(1):hover { box-shadow: 0 8px 32px rgba(0,212,255,0.2), 0 0 18px rgba(0,212,255,0.15); }

.service-card:nth-child(2) { border: 1px solid rgba(123,47,255,0.45); box-shadow: 0 0 18px rgba(123,47,255,0.1); }
.service-card:nth-child(2) .service-icon,
.service-card:nth-child(2) .service-price { color: #a066ff; text-shadow: 0 0 10px rgba(123,47,255,0.5); }
.service-card:nth-child(2):hover { box-shadow: 0 8px 32px rgba(123,47,255,0.2), 0 0 18px rgba(123,47,255,0.15); }

.service-card:nth-child(3) { border: 1px solid rgba(0,255,180,0.4); box-shadow: 0 0 18px rgba(0,255,180,0.08); }
.service-card:nth-child(3) .service-icon,
.service-card:nth-child(3) .service-price { color: #00ffb4; text-shadow: 0 0 10px rgba(0,255,180,0.5); }
.service-card:nth-child(3):hover { box-shadow: 0 8px 32px rgba(0,255,180,0.18), 0 0 18px rgba(0,255,180,0.12); }

.service-card:nth-child(4) { border: 1px solid rgba(255,60,120,0.45); box-shadow: 0 0 18px rgba(255,60,120,0.1); }
.service-card:nth-child(4) .service-icon,
.service-card:nth-child(4) .service-price { color: #ff3c78; text-shadow: 0 0 10px rgba(255,60,120,0.5); }
.service-card:nth-child(4):hover { box-shadow: 0 8px 32px rgba(255,60,120,0.2), 0 0 18px rgba(255,60,120,0.15); }

.service-card:nth-child(5) { border: 1px solid rgba(255,180,0,0.4); box-shadow: 0 0 18px rgba(255,180,0,0.08); }
.service-card:nth-child(5) .service-icon,
.service-card:nth-child(5) .service-price { color: #ffb400; text-shadow: 0 0 10px rgba(255,180,0,0.5); }
.service-card:nth-child(5):hover { box-shadow: 0 8px 32px rgba(255,180,0,0.18), 0 0 18px rgba(255,180,0,0.12); }

.service-card:nth-child(6) { border: 1px solid rgba(0,220,255,0.4); box-shadow: 0 0 18px rgba(0,220,255,0.08); }
.service-card:nth-child(6) .service-icon,
.service-card:nth-child(6) .service-price { color: #00dcff; text-shadow: 0 0 10px rgba(0,220,255,0.5); }
.service-card:nth-child(6):hover { box-shadow: 0 8px 32px rgba(0,220,255,0.18), 0 0 18px rgba(0,220,255,0.12); }

/* Modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-modal.open {
  pointer-events: all;
  opacity: 1;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
  z-index: 1;
}

.service-modal.open .service-modal-card { transform: translateY(0) scale(1); }

.service-modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.service-modal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(10,10,15,0.6) 0%, rgba(10,10,15,0.88) 100%);
}

.service-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #c0c8d8;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-modal-close:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.4);
  color: #00d4ff;
}

.service-modal-content {
  position: relative;
  z-index: 2;
  padding: 52px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.service-modal-icon { font-size: 48px; margin-bottom: 4px; }

.service-modal-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.service-modal-desc {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #a0aec0;
  max-width: 380px;
}

.service-modal-price {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
}

.service-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 32px;
  background: #25d366;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 18px rgba(37,211,102,0.25);
}

.service-modal-cta:hover {
  background: #1fb855;
  box-shadow: 0 0 28px rgba(37,211,102,0.4);
  transform: translateY(-2px);
}

/* Card width por breakpoint */
.service-card { flex: 0 0 calc((100% - 48px) / 3); }

/* 1440px+ */
@media (min-width: 1440px) {
  #services { padding: 100px 64px; }
  .services-inner { max-width: 1320px; }
}

/* Laptop */
@media (max-width: 1280px) {
  #services { padding: 100px 40px; }
}

/* Tablet landscape — coincide con visibleCount()=2 en services.js (<=900px) */
@media (max-width: 1024px) {
  #services { padding: 80px 32px; }
}

@media (max-width: 900px) {
  .service-card { flex: 0 0 calc((100% - 24px) / 2); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  #services { padding: 72px 24px; }
  .services-title { font-size: 28px; }
  .services-currency { margin-bottom: 40px; }
  .services-carousel-wrapper::before,
  .services-carousel-wrapper::after { display: none; }
}

/* Móvil — lista vertical apilada en vez de carrusel (coincide con visibleCount()=1 en services.js, <=580px) */
@media (max-width: 580px) {
  .services-carousel-wrapper { display: block; }
  .services-grid { flex-direction: column; gap: 18px; }
  .service-card { flex: 0 0 auto; width: 100%; height: 320px; }
  .services-arrow,
  .services-dots { display: none; }
}

@media (max-width: 480px) {
  #services { padding: 64px 16px; }
  .services-title { font-size: 22px; }
  .services-subtitle { font-size: 14px; }
  .currency-btn { font-size: 13px; padding: 8px 12px; }
  .service-modal-content { padding: 48px 20px 32px; }
  .service-modal-name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .services-title { animation: none; }
}