/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

.services-section {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-title {
  font-family: 'Anton', sans-serif;
  font-size: 80px;
  font-weight: 900;
  margin: 0 0 20px 0;
  line-height: 1;
  text-transform: uppercase;
}

.services-title-endo {
  color: #1e4b9e;
}

.services-title-comunidad {
  color: #da83b7;
}

.services-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #1e4b9e;
  margin: 0;
}

.services-subtitle b {
  font-weight: 700;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card */
.service-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Thumbnail */
.service-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: #000;
}

.service-thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.service-play-icon {
  width: 80px;
  height: 80px;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

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

/* Content */
.service-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* Loading */
.services-loading {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #1e4b9e;
  text-align: center;
  padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .services-title {
    font-size: 60px;
  }
  
  .services-subtitle {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .services-section {
    min-height: 100vh;
    padding: 30px 0;
  }
  
  .services-header {
    margin-bottom: 40px;
  }
  
  .services-title {
    font-size: 50px;
  }
  
  .services-subtitle {
    font-size: 18px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-content {
    padding: 20px;
  }
  
  .service-name {
    font-size: 20px;
  }
  
  .service-text {
    font-size: 14px;
  }
  
  .service-play-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .services-section {
    min-height: 100vh;
    padding: 20px 0;
  }
  
  .services-title {
    font-size: 40px;
  }
  
  .services-subtitle {
    font-size: 16px;
  }
}

