/* Carrusel Estilos */
.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controles del carrusel */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1f52df;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-button:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: #1039a8;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #ffffff;
  transform: scale(1.2);
}

/* Overlay con texto en las imágenes */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem 1rem 1rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide .slide-overlay {
  opacity: 1;
}

.slide-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slide-description {
  font-size: 0.875rem;
  line-height: 1.4;
}

#about {
  padding: 4rem 1rem;
  background-color: #f9fafb;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}
.title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #1f52df;
  margin-bottom: 1rem;
}
.subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 5rem;
  height: 0.25rem;
  background-color: #1f52df;
  margin: 0 auto 2rem;
  border-radius: 9999px;
}

.contact-card {
  max-width: 48rem;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateX(0.5rem);
}

.icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.contact-item:hover .icon-wrapper {
  background-color: #1f52df;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #1f52df;
  transition: color 0.3s ease;
}

.contact-item:hover .icon {
  color: white;
}

.contact-info {
  margin-left: 1rem;
}

.contact-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.contact-value {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: #1f52df;
}

@media (max-width: 640px) {
  .title {
    font-size: 1.875rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-list {
    gap: 1.5rem;
  }
}

/* Navbar animations */
.navbar {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #0d6efd;
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Carousel enhancements */
.carousel-item {
  position: relative;
  overflow: hidden;
}

.carousel-item img {
  transform: scale(1.1);
  transition: transform 6s ease;
}

.carousel-item.active img {
  transform: scale(1);
}

.carousel-caption {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

.carousel-item.active .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Cards animations */
.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
  background: linear-gradient(45deg, #0d6efd, #0dcaf0);
  color: white;
  border-radius: 10px 10px 0 0 !important;
}

.list-group-item {
  transition: all 0.3s ease;
  border-left: 0px solid #0d6efd;
}

.list-group-item:hover {
  border-left: 5px solid #0d6efd;
  background-color: #f8f9fa;
  padding-left: 1.5rem;
}

/* Jumbotron animations */
.jumbotron {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(13, 110, 253, 0.1),
    rgba(13, 202, 240, 0.1)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.jumbotron:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Button animation */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
}

.btn-primary:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* Footer animations */
.footer-logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.1);
}

.social-icons a {
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: translateY(-5px);
  color: #0dcaf0 !important;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #0d6efd, #0dcaf0);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Loading animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #0d6efd;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
