/* Nuevos estilos para servicios con video */
.service-video-card {
  position: relative;
  min-height: 400px;
  cursor: pointer;
  overflow: hidden;
}

.service-video-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.service-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(0, 0, 0, 0.6) 25%, 
    rgba(0, 0, 0, 0.2) 75%, 
    rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-video-card:hover .service-thumbnail {
  opacity: 0;
}

.service-video-card:hover .service-video {
  opacity: 1;
}

.service-video-card:hover .service-overlay {
  opacity: 1;
}

.service-content {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.5rem;
}

.service-content p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* Modal de servicios */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(10px);
}

.service-modal-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 120vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.service-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.service-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.service-modal-video {
  width: 100%;
  aspect-ratio: 16/9;
}

.service-modal-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-modal-info {
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-modal-info h3 {
  margin: 0 0 15px;
  color: var(--text);
  font-size: 2rem;
}

.service-modal-info p {
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid-row {
    grid-template-columns: 1fr !important;
  }
  
  .service-video-card {
    border-left: none !important;
    border-bottom: 1px solid #EAEFF2;
  }
  
  .service-video-card:last-child {
    border-bottom: none;
  }
}