* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #002c5f !important;
  color: #ffffff;
}

.barranav {
  background-color: #020211;
  font-size: 1.2rem;
  font-weight: 600;
}

@media (min-width: 992px) {
  .barranav {
    height: 15vh;
  }
}

.nav-item .nav-link,
.nav-item .nav-link.active {
  color: rgb(168, 208, 235) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin: 30px;
  font-family: 'Raleway', sans-serif;
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #c5d8ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link {
  position: relative;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.027);
  color: #c5d8ff;
}

.foto-logo {
  height: 15vh;
  border-radius: 30vh;
  margin-left: 5vh;
  animation: float 2s ease-in-out infinite;
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    margin: 10px;
    width: 40vh;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.custom-toggler {
  border: none;
  background-color: rgb(22, 68, 167);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
}

.toggler-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link::after,
.nav-link::before {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dropdown */
.dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
  color: #1f1b1b;
  text-align: center;
}

.dropdown-menu .dropdown-item {
  border-radius: 10px !important;
  color: #ffffff !important;
  font-weight: 600;
  text-align: center;
}

.dropdown-menu .dropdown-item.destacado:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 50vh;
  
}

@media (max-width: 991px) {
  #menuPrincipal {
    border-radius: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.2rem;
  }

  .nav-link {
    background-color: rgba(14, 32, 66, 0.911) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    border: 2px solid rgb(130, 182, 182) !important;
    transition: all 0.3s ease;
    width: 60vh;
    text-align: center;
    border-radius: 10px !important;
  }

  .nav-link:hover {
    transform: scale(1.03);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
  }

  .dropdown-menu {
    border: none;
    border-radius: 1rem !important;
    padding: 0.5rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
  }

  .dropdown-item {
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgb(130, 182, 182) !important;
    margin: 5px;
    max-width: 40vh !important;
    margin-left: 10px;
  }
}

.producto-img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border-radius: 0.5rem;
}

.producto-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.carousel-item {
  transition: transform 0.5s ease;
}

@media (max-width: 768px) {
  .producto-img {
    height: auto;
  }

  .carousel-item {
    padding: 15px 0;
  }
}

.whatsapp-flotante {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 999;
}

.whatsapp-flotante img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-flotante img:hover {
  transform: scale(1.1);
}

.shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shine 8s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

.card:hover .shine {
  animation: shine 7s infinite;
}
