/**
 * Services Home Section Styles
 * Estilos específicos para la sección de servicios en la página de inicio
 */

/* Sección de servicios en home */
.services-section {
  padding: 80px 0;
  background: #ffffff;
  color: #000;
  position: relative;
  overflow: hidden;
}

/* Eliminado el fondo SVG para coincidir con la imagen de referencia de fondo blanco */

.services-section .container {
  position: relative;
  z-index: 2;
}

/* Layout de servicios */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contenido de servicios */
.services-content {
  max-width: 500px;
}

.services-content #services-title {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 900;
  color: #000000;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Remover el pseudo-elemento ::after del h2 global para esta sección */
.services-content #services-title::after {
  display: none !important;
}

.services-content .service-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #666666;
  text-decoration: none;
  margin-bottom: 40px;
  margin-top: 0;
  transition: color 0.3s ease;
}

.services-content .service-link:hover {
  color: #000000;
}

/* Lista de servicios */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  transform: translateX(8px);
}

.service-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #000000;
  letter-spacing: 0.02em;
}

/* Grid de imágenes */
.services-images {
  justify-self: end;
}

.image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 600px;
}

.image-large {
  grid-row: 1 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-large:hover img {
  transform: scale(1.05);
}

.image-small-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-small {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-small:hover img {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .services-images {
    justify-self: center;
  }
  
  .image-grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 0;
  }
  
  .services-layout {
    gap: 40px;
  }
  
  .services-content #services-title {
    font-size: 2.5rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  
  .image-large {
    grid-row: auto;
  }
  
  .image-small-grid {
    flex-direction: row;
    justify-content: center;
  }
  
  .image-small {
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 40px 0;
  }
  
  .services-content #services-title {
    font-size: 2rem;
  }
  
  .service-item {
    padding: 12px 16px;
  }
  
  .service-name {
    font-size: 1rem;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item {
  animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .service-item,
  .image-large img,
  .image-small img {
    animation: none !important;
    transition: none !important;
  }
}

/* Estados de focus */
.services-content .service-link:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
  border-radius: 4px;
}

.service-item:focus-within {
  outline: 2px solid #000000;
  outline-offset: 2px;
}