/* ============================= */
/* SECCIÓN SERVICIOS             */
/* ============================= */

.services {
  position: relative;
  padding: 80px 10%;
  background: linear-gradient(160deg, #07152f 0%, #0a1f44 45%, #0f2c66 100%);
  overflow: hidden;
  box-shadow: inset 0 -3px 0 rgba(0, 194, 255, 0.35);
}

/* Viso superior izquierdo — triángulo celeste */
.services::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.22), transparent 65%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

/* Viso inferior derecho — destello radial */
.services::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.services-header {
  position: relative;
  z-index: 2;
}

.services-header h2 {
  font-size: 36px;
  color: white;
  font-weight: 800;
}

.services-header p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* Grid */
.services-grid {
  margin-top: 50px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Card */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.3),
    0 0 0 1px rgba(0, 194, 255, 0.15);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0, 194, 255, 0.4);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0, 194, 255, 0.08), transparent);
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.5s;
  display: block;
}

.service-card:hover img {
  transform: scale(1.1);
}

/* Overlay */
.service-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(7, 21, 47, 0.97), rgba(10, 31, 68, 0.2));
  color: white;
  text-align: left;
  opacity: 0.9;
  transition: 0.4s;
  z-index: 1;
}

.service-card:hover .service-overlay {
  background: rgba(7, 21, 47, 0.95);
  opacity: 1;
}

.service-overlay h3 {
  font-size: 20px;
  font-weight: 600;
}

/* Botón ver más */
.btn-service {
  margin-top: 10px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(0, 194, 255, 0.6);
  color: var(--celeste-acento);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-service:hover {
  background: var(--celeste-acento);
  border-color: var(--celeste-acento);
  color: white;
}

/* ============================= */
/* RESPONSIVE SERVICIOS          */
/* ============================= */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 220px;
  }
}
