/* ===== NUEVA SECCIÓN SERVICIOS - CARRUSEL CON MISMO TAMAÑO ===== */

.services {
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #faf8f5 0%, #fff5f0 100%);
}

.services .section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.services .section-heading h6 {
  color: #d4754d;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.services .section-heading h4 {
  color: #2a2a2a;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.services .section-heading h4 em {
  color: #e84393;
  font-style: normal;
}

.services .section-heading .line-dec {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #d4754d 0%, #e84393 100%);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== CARRUSEL ===== */
.services-carousel {
  margin-top: 50px;
}

/* Controles del carrusel (botones) */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 0 20px;
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.carousel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  background: #fff;
  border: 2px solid #e6d5c8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Poppins', sans-serif;
  min-width: 110px;
  pointer-events: auto;
  position: relative;
  z-index: 100;
}

.carousel-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(232, 67, 147, 0.15);
  border-color: #d4754d;
}

.carousel-btn.active {
  background: linear-gradient(135deg, #d4754d 0%, #e84393 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 67, 147, 0.3);
  transform: scale(1.05);
}

.carousel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #d4754d;
  transition: all 0.3s ease;
}

.carousel-btn.active .carousel-icon {
  color: #fff;
  font-size: 24px;
}

.carousel-label {
  font-size: 13px;
  font-weight: 600;
  color: #2a2a2a;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.carousel-btn.active .carousel-label {
  color: #fff;
}

/* Contenedor de contenido del carrusel */
.carousel-content {
  position: relative;
  min-height: 550px;
}

/* Tarjeta de servicio - MISMO TAMAÑO PARA TODOS */
.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #d4754d;
  position: absolute;
  width: 100%;
  height: 500px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
  display: flex;
  flex-direction: row;
  gap: 40px;
  overflow: hidden;
}

.service-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 10;
  position: relative;
  height: auto;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.05) 0%, rgba(212, 117, 77, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 15px;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Lado izquierdo - Información */
.service-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: fadeInLeft 0.6s ease 0.2s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Lado derecho - Imágenes */
.service-right {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  animation: fadeInRight 0.6s ease 0.2s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Icono y título en la parte superior */
.service-icon-top {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f5e6db;
}

.service-icon-top .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #fff5f0 0%, #faf8f5 100%);
  border-radius: 50%;
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card.active .service-icon-top .icon {
  background: linear-gradient(135deg, #e84393 0%, #d4754d 100%);
  transform: scale(1.1) rotate(8deg);
}

.service-icon-top .icon i {
  font-size: 45px;
  color: #d4754d;
  transition: all 0.3s ease;
}

.service-card.active .service-icon-top .icon i {
  color: #fff;
  font-size: 50px;
}

.service-icon-top h4 {
  color: #2a2a2a;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

/* Contenido del servicio */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px 0;
  font-weight: 400;
}

/* Lista de características */
.service-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 15px;
}

.service-features li {
  color: #555;
  font-size: 13px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: #d4754d;
  font-size: 14px;
}

/* Carrusel de imágenes principal */
.service-images-carousel {
  position: relative;
  width: 55%;
  height: 410px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f5f1;
  flex-shrink: 0;
  order: 2;
  margin-left: 30px;
}

.service-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 12px;
  border: 8px solid #f5d5e8;
}

.service-img.active {
  opacity: 1;
}

/* Thumbnails - Vertically on the side */
.image-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  order: 1;
  flex-shrink: 0;
}

.image-thumbnails .thumb {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 5px solid #f5d5e8;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-thumbnails .thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-thumbnails .thumb.active {
  border-color: #d4754d;
  box-shadow: 0 4px 15px rgba(212, 117, 77, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .service-card {
    padding: 30px;
    height: auto;
    flex-direction: column;
    gap: 30px;
  }

  .service-right {
    flex-direction: column;
    align-items: stretch;
  }

  .service-images-carousel {
    width: 100%;
    height: 320px;
  }

  .image-thumbnails {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .image-thumbnails .thumb {
    width: 65px;
    height: 65px;
  }

  .carousel-controls {
    gap: 10px;
  }

  .carousel-btn {
    padding: 12px 15px;
    min-width: 95px;
    font-size: 12px;
  }

  .carousel-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .services {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .services .section-heading h4 {
    font-size: 28px;
  }

  .service-card {
    padding: 25px;
    gap: 20px;
    height: auto;
  }

  .carousel-content {
    min-height: auto;
  }

  .service-icon-top .icon {
    width: 75px;
    height: 75px;
  }

  .service-icon-top .icon i {
    font-size: 40px;
  }

  .service-icon-top h4 {
    font-size: 18px;
  }

  .service-content p {
    font-size: 13px;
  }

  .service-images-carousel {
    height: 200px;
  }

  .image-thumbnails .thumb {
    width: 50px;
    height: 50px;
  }

  .carousel-controls {
    gap: 8px;
    margin-bottom: 40px;
  }

  .carousel-btn {
    padding: 10px 12px;
    min-width: 85px;
    font-size: 11px;
  }

  .carousel-icon {
    font-size: 20px;
    width: 35px;
    height: 35px;
  }

  .service-left {
    width: 100%;
  }

  .service-right {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .services {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .services .section-heading h4 {
    font-size: 22px;
  }

  .service-card {
    padding: 20px;
    gap: 15px;
  }

  .service-right {
    flex-direction: column;
    align-items: center;
  }

  .service-icon-top .icon {
    width: 65px;
    height: 65px;
  }

  .service-icon-top .icon i {
    font-size: 36px;
  }

  .service-icon-top h4 {
    font-size: 16px;
  }

  .service-content p {
    font-size: 12px;
  }

  .service-features li {
    font-size: 12px;
  }

  .service-images-carousel {
    height: 300px;
    width: 100% !important;
  }

  .image-thumbnails {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
  }

  .image-thumbnails .thumb {
    width: 45px;
    height: 45px;
  }

  .carousel-controls {
    gap: 6px;
    margin-bottom: 30px;
  }

  .carousel-btn {
    padding: 8px 10px;
    min-width: 75px;
    font-size: 10px;
  }

  .carousel-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
  }

  .carousel-label {
    font-size: 10px;
  }
}
