/* ==== Navbar ==== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.4s;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}

.navbar .navbar-brand {
  color: #009688 !important;
  font-size: 1.3rem;
  font-weight: bold;
}

/* ==== Carousel ==== */
.carousel,
.carousel-inner,
.carousel-item,
.carousel-img {
  height: 80vh;
}

.carousel-img {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;

  /* Zoom constante */
  animation: zoomEffect 12s ease-in-out infinite;
}

@keyframes zoomEffect {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  z-index: 1;
}

/* ==== Texto del carrusel ==== */
.carousel-caption {
  position: absolute;
  bottom: 12%;
  left: 6%;
  text-align: left;
  color: #fff;
  z-index: 2;
  max-width: 650px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: fadeInUp 1.2s ease forwards;
}

.carousel-caption h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 15px;
  animation: slideInLeft 1.5s ease both;
}

.carousel-caption h1::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 70px;
  height: 4px;
  background: #009688;
  border-radius: 2px;
}

.carousel-caption h1 span {
  color: #009688;
}

.carousel-caption p {
  font-size: 1.3rem;
  margin-top: 10px;
  font-weight: 400;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: fadeIn 2s ease both;
}

.carousel-caption .btn {
  margin-top: 20px;
  padding: 12px 30px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #009688;
  border: none;
  color: #fff;
  transition: 0.2s;
  animation: fadeInUp 2.5s ease both;
}

.carousel-caption .btn:hover {
  background-color: #00796b;
  transform: translateY(-2px);
}

/* ==== Animaciones ==== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ==== Transición rápida ==== */
.carousel-item {
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
}

/* ==== Controles ==== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}
