

/* Separador de secciones */
.section-divider {
  height: 60px;
  margin: 20px 0;
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.9)
  );
  border-radius: 50% 50% 0 0 / 20px;
}

.hero-container {
  position: relative;
  height: 470px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px; /* Añadir espacio después del hero */
}

.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("../images/diseño.jpg") center/cover no-repeat;
  z-index: 1;
  filter: brightness(0.5);
}

.hero-text-container {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(82, 87, 251, 0.18);
  backdrop-filter: blur(2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: gray;
}

.hero-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(255, 255, 255, 0.3)
  );
  z-index: 2;
}

/* Estilos para Carousel */
.carousel-container {
  max-width: 960px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.carousel-slide {
  position: relative;
  width: 100%;
  height: 400px;
}

.carousel-image {
  width: 100%;
  max-width: 700px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  margin: 0 auto;
  transition: transform 0.5s ease-in-out, opacity 0.4s ease;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-image[style*="display:block"] {
  display: block;
  opacity: 1;
}

.carousel-text {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 18px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 90vw;
  width: 70%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  z-index: 3;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  color: #5257fb;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 4;
  transition: background-color 0.3s;
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  margin-top: 18px;
  padding: 10px;
}

.dot {
  height: 11px;
  width: 11px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: 2px solid #fff;
}

.dot.active {
  background-color: #5257fb;
  transform: scale(1.2);
  border: 2px solid #5257fb;
}

/* --- NUEVO: Adaptabilidad para móvil --- */
@media (max-width: 600px) {
  .carousel-container {
    max-width: 100vw;
    margin: 20px 0;
    padding: 10px 0 30px 0;
    border-radius: 0;
    box-shadow: none;
  }
  .carousel-slide {
    height: 220px;
  }
  .carousel-image {
    max-width: 98vw;
    height: 180px;
    border-radius: 8px;
  }
  .carousel-text {
    width: 92vw;
    max-width: 98vw;
    padding: 10px 8px;
    font-size: 0.8rem;
    bottom: 10px;
    border-radius: 10px;
  }
  .carousel-button {
    font-size: 18px;
    padding: 6px 10px;
    top: 55%;
  }
  .carousel-button.left {
    left: 2px;
  }
  .carousel-button.right {
    right: 2px;
  }
  .carousel-dots {
    margin-top: 8px;
    padding: 4px;
  }
  .dot {
    height: 9px;
    width: 9px;
    margin: 0 2px;
  }
}

/* --- FIN ADAPTABILIDAD --- */
.custom-caption {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  padding: 32px 24px;
  bottom: 40px !important;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
}

.carousel-indicators.custom-indicators {
  bottom: 18px;
}

.carousel-indicators.custom-indicators button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #5257fb;
  margin: 0 6px;
  opacity: 0.7;
  transition: background 0.3s, transform 0.3s;
}

.carousel-indicators.custom-indicators button.active {
  background-color: #5257fb;
  opacity: 1;
  transform: scale(1.2);
  border: 2px solid #fff;
}

.carousel-button:hover {
  background-color: #5257fb;
  color: white;
}

.carousel-button.left {
  left: 20px;
}

.carousel-button.right {
  right: 20px;
}

.carousel-dots {
  text-align: center;
  margin-top: 18px;
  padding: 10px;
}

.dot {
  height: 11px;
  width: 11px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: 2px solid #fff;
}

.dot.active {
  background-color: #5257fb;
  transform: scale(1.2);
  border: 2px solid #5257fb;
}

/* Estilos para Services */
.services-section {
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 24px 24px 0 0;
  margin: 60px auto 0;
  max-width: 1200px;
  box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.08);
  position: relative;
  border-top: 5px solid rgba(82, 87, 251, 0.2);
}

.services-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.services-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #5257fb, #25d366);
  border-radius: 3px;
}

.services-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(82, 87, 251, 0.05);
  width: 380px;
  min-height: 340px;
  transition: transform 0.22s, box-shadow 0.22s;
  font-size: 1.18rem;
}

.services-subtitle {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: lighter;
}

.boton-contacto-flotante {
  display: inline-block;
  padding: 16px 32px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #5257fb 0%, #25d366 100%);
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(82, 87, 251, 0.15);
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.boton-contacto-flotante i {
  margin-right: 10px;
  font-size: 22px;
  vertical-align: middle;
}

.boton-contacto-flotante:hover {
  background: linear-gradient(90deg, #25d366 0%, #5257fb 100%);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(82, 87, 251, 0.25);
  color: #fff;
  text-decoration: none;
}

.service-image {
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
  }
  .service-card-link {
    width: 100%;
    margin-bottom: 20px;
  }
  .service-image {
    height: 200px;
  }
}

.service-title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}

.service-description {
  margin-top: 10px;
  font-size: 14px;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
  border-radius: 5px;
}

.service-card-link:hover .service-card {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(82, 87, 251, 0.18);
  z-index: 2;
}

.service-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.service-card {
  width: 380px;
  min-height: 340px;
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(82, 87, 251, 0.12);
  transition: transform 0.22s, box-shadow 0.22s;
  font-size: 1.18rem;
}
.service-card-link:hover .service-card {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(82, 87, 251, 0.18);
}
.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* Estilos para el Modal de Contacto */
.modal-content {
  border-radius: 15px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #5257fb 0%, #25d366 100%);
  color: white;
  border-bottom: none;
  padding: 15px 20px;
}

.modal-title {
  font-weight: 600;
  font-size: 1.3rem;
}

.btn-close {
  background-color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  transition: transform 0.3s;
}

.btn-close:hover {
  transform: rotate(90deg);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s;
}

.contact-link:hover {
  transform: translateY(-5px);
  color: #333;
}

.contact-link i {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: white;
  font-size: 24px;
}

.contact-link:nth-child(1) i {
  background-color: #ea4335;
}

.contact-link:nth-child(2) i {
  background-color: #34b7f1;
}

.contact-link:nth-child(3) i {
  background-color: #25d366;
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: #777;
}

.divider:before,
.divider:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #e0e0e0;
}

.divider:before {
  left: 0;
}

.divider:after {
  right: 0;
}

.projects-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #5257fb 0%, #25d366 100%);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
}

.projects-btn:hover {
  background: linear-gradient(90deg, #25d366 0%, #5257fb 100%);
  transform: translateY(-3px);
  color: white;
}

.projects-btn i {
  margin-right: 8px;
}

/* Animación para destacar las tarjetas de servicios */
@keyframes highlightCard {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 24px rgba(82, 87, 251, 0.12);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(82, 87, 251, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 24px rgba(82, 87, 251, 0.12);
  }
}

.service-card.highlight {
  animation: highlightCard 1.5s ease-in-out forwards;
}

/* Adaptación para móviles */
@media (max-width: 576px) {
  .contact-links {
    gap: 15px;
  }

  .contact-link i {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .projects-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}
