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

.servicios {
  padding: var(--space-section) 0;
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-gray-50) 100%
  );
  position: relative;
}

.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.03),
    transparent
  );
  pointer-events: none;
}

.servicios .container {
  position: relative;
  z-index: 1;
}

/* Encabezado de sección */
.servicios__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.servicios__subtitle {
  font-family: var(--font-accent);
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-normal);
}

.servicios__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
}

.servicios__intro {
  font-size: var(--font-size-lg);
  color: var(--color-gray-700);
  max-width: 800px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Grid de servicios */
.servicios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

/* Card de servicio */
.servicio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

/* Imagen del servicio */
.servicio-card__imagen {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--color-gray-200);
}

.servicio-card__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Badge sobre la imagen */
.servicio-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

/* Icono del servicio */
.servicio-card__icono {
  position: absolute;
  bottom: -30px;
  left: var(--space-lg);
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transition: transform var(--transition-base);
  border: 3px solid var(--color-white);
}

.servicio-card:hover .servicio-card__icono {
  transform: rotate(-10deg) scale(1.1);
}

/* Contenido del servicio */
.servicio-card__contenido {
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.servicio-card__titulo {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-md);
}

.servicio-card__descripcion {
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  flex: 1;
}

/* Lista de características */
.servicio-card__caracteristicas {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.servicio-card__caracteristicas li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
}

.servicio-card__caracteristicas li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
  font-size: var(--font-size-base);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Precio (si aplica) */
.servicio-card__precio {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.servicio-card__precio-valor {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.servicio-card__precio-periodo {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

/* Botón del servicio */
.servicio-card__accion {
  margin-top: auto;
}

.servicio-card__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
  min-height: 44px;
}

.servicio-card__btn:hover,
.servicio-card__btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.servicio-card__btn:active {
  transform: translateY(0);
}

/* Servicio destacado */
.servicio-card--destacado {
  border: 2px solid var(--color-primary);
  position: relative;
}

.servicio-card--destacado::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent)
  );
}

.servicio-card--destacado .servicio-card__badge {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Servicios incluidos en Full Party */
.servicios-incluidos {
  margin-top: var(--space-3xl);
  padding: var(--space-3xl);
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.servicios-incluidos::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.servicios-incluidos__contenido {
  position: relative;
  z-index: 1;
}

.servicios-incluidos__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  text-align: center;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-bold);
}

.servicios-incluidos__subtitle {
  font-family: var(--font-accent);
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.servicios-incluidos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.servicio-incluido-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.servicio-incluido-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  transform: translateX(8px);
}

.servicio-incluido-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: var(--space-xs);
}

.servicio-incluido-item__texto {
  flex: 1;
}

.servicio-incluido-item__title {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-lg);
}

.servicio-incluido-item__description {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  line-height: var(--line-height-relaxed);
}

/* CTA de servicios */
.servicios__cta {
  margin-top: var(--space-3xl);
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.servicios__cta-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-bold);
}

.servicios__cta-text {
  font-size: var(--font-size-lg);
  color: var(--color-gray-700);
  margin-bottom: var(--space-xl);
}

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

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .servicios__title {
    font-size: var(--font-size-5xl);
  }

  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .servicios-incluidos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .servicios {
    padding: var(--space-4xl) 0;
  }

  .servicios__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .servicio-card__imagen {
    height: 280px;
  }

  .servicio-card__icono {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
}

/* Large: 1280px+ */
@media (min-width: 1280px) {
  .servicios__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.servicio-card {
  animation: fadeInScale 0.5s ease-out both;
}

/* Stagger para animaciones secuenciales */
.servicio-card:nth-child(1) { animation-delay: 0.05s; }
.servicio-card:nth-child(2) { animation-delay: 0.1s; }
.servicio-card:nth-child(3) { animation-delay: 0.15s; }
.servicio-card:nth-child(4) { animation-delay: 0.2s; }
.servicio-card:nth-child(5) { animation-delay: 0.25s; }
.servicio-card:nth-child(6) { animation-delay: 0.3s; }
.servicio-card:nth-child(7) { animation-delay: 0.35s; }
.servicio-card:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   ACCESIBILIDAD
   ============================================ */

/* Reducir movimiento para usuarios con preferencias */
@media (prefers-reduced-motion: reduce) {
  .servicio-card,
  .servicio-card__imagen img,
  .servicio-card__icono,
  .servicio-incluido-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Focus visible para navegación por teclado */
.servicio-card:focus-within {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.servicio-card__btn:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Asegurar que los botones sean accesibles */
.servicio-card__btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
