* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

p{
  text-align: justify;
}

.navbar {
  width: 100%;
  background: rgb(5, 10, 154);
  transition: all 0.3s ease;
  z-index: 999;
  position: absolute;
  top: 0;
}

.navbar.fixed {
  position: fixed;
  background: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 20px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color:#fe9c5e;
  font-size: 18px;
}

.logo img {
  height: 50px;
  filter: drop-shadow(0px 7px 21px rgb(255, 162, 0));
  animation: rotar 5s linear infinite;
}
@keyframes rotar {
  0% {
    transform: rotateY(-180deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

.logo span {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #ff6403, #ff8b07, #c8f407 , #ff6403, #ff8b07, #c8f407);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 15s linear infinite;
}
@keyframes animate-gradient {
  to{
    background-position: 300%;
  }
}
/* NAVIGATION */
.nav-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.nav-center:hover{
  color: rgb(10, 135, 135);
}
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.navbar.fixed .nav-links li a {
  color: rgb(255, 255, 255);
}
.navbar.fixed .logo{
  color: #ff6600;
}
/* SUBMENU ESTILIZADO */
.dropdown {
  position: relative;
}
/* SUBMENÚ ESTILIZADO CORREGIDO */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000000; /* naranja institucional */
  display: none;
  flex-direction: column;
  min-width: 230px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 10px 0;
  border-radius: 5px;
}

.dropdown-menu li {
  list-style: none; /* Elimina bullets */
}

.dropdown-menu li a {
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: block;
  text-align: left;
}

.dropdown-menu li a:hover {
  background-color: #e17000;
  border-radius: 3px;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}


/* ICONO MENÚ */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #004080;
  background: none;
  border: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  
  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-center {
    display: initial;
  }

  .nav-links {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background-color:#e17000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2px 1px; /* antes era 3px -1px */
    gap: 2px;
    width: 75%; /* ligeramente más angosto */
    max-width: 500px; /* ajustado */
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px; /* mejor diseño */
    z-index: 999;
  }
  
  
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .nav-links li a {
    color: white;
    font-size: 13px !important;
    padding: 3px 6px;
    font-weight: 600;
    line-height: 1.1;
    display: block;
  }
  
  .nav-links li a:hover {
    background: #cc5f00;
    padding: 8px;
    border-radius: 5px;
  }

  .dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #e17000;
    border-radius: 10px;
    margin-top: 2px;
    width: 100%;
    padding: 2px 0px;
    gap: 2px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
    position: relative;
  }
  
  

  .dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown-menu li a {
    font-size: 13px;
    padding: 4px 10px;
    color: white;
  }

  .telefono,
  .redes-sociales {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 22px;
    color: #e17000;
    background: none;
    border: none;
    cursor: pointer;
  }

  .navbar.fixed .menu-toggle {
    color: white;
  }
}

/* icono */
.btn-wsp {
  position: fixed;
  bottom: 30px; /* 🔧 ya no 100px */
  right: 20px;
  z-index: 999;
  background-color: #25d366;
  color: white;
  font-size: 1.8rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  line-height: 55px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: rebote 1.8s infinite;
  transition: transform 0.3s ease;
}


.btn-wsp:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

@keyframes rebote {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
      @media (max-width: 768px) {
        .btn-wsp {
          bottom: 20px;
        }}
/* banner */
.slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(60%);
  display: block;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
  animation: fadein 1s ease-in-out;
}

.slide-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.btn-banner {
  background-color: #0b03ff;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-banner:hover {
  background-color: #e17000;
}

.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@keyframes fadein {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .slide-overlay h2 {
    font-size: 1.5rem;
  }

  .btn-banner {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .slide-overlay h2 {
    font-size: 1.2rem;
  }

  .btn-banner {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}