/* ==== RESET GENERAL ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==== BODY ==== */
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: #0f0f10;
  color: #eaeaea;
  padding-top: 60px;
  line-height: 1.6;
}

/* ==== NAVBAR PRINCIPAL ==== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #1a1a1d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
  z-index: 999;
  border-bottom: 1px solid #9b5de5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==== LOGO ==== */
.logo img {
  max-height: 40px;
  width: auto;
}

.logo-con-texto img {
  height: 30px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* ==== BUSCADOR ==== */
.busqueda {
  flex: 1;
  padding: 0 20px;
}

.busqueda input {
  background-color: #1f1f23;
  width: 100%;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  color: #9b5de5;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.busqueda input:focus {
  outline: none;
  border-color: #9b5de5;
  background-color: #2a2a2f;
}

/* ==== HERO ==== */
.hero {
  margin-top: 80px;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* ==== NAV SECUNDARIO ==== */
.nav2 {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #1f1f23;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5vw;
  z-index: 998;
  border-bottom: 1px solid #2e2e2e;
}

.nav2 ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav2 li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #eaeaea;
  transition: color 0.3s, transform 0.2s;
}

.nav2 li a:hover {
  color: #9b5de5;
  transform: scale(1.05);
}

.nav2 li a i {
  font-size: 18px;
}

/* ==== BOTÓN MENÚ ==== */
.menu-toggle {
  position: absolute;
  right: 5vw;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

.menu-toggle:hover {
  color: #9b5de5;
  transform: rotate(90deg);
}

/* ==== MENÚ DESPLEGABLE ==== */
.menu-desplegable {
  position: fixed;
  top: 160px;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: calc(100% - 160px);
  background-color: #18181b;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 998;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
}

.menu-desplegable.activo {
  transform: translateX(0%);
}

.menu-desplegable ul {
  list-style: none;
  padding: 20px;
}

.menu-desplegable li {
  margin: 15px 0;
}

.menu-desplegable a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: color 0.3s;
}

.menu-desplegable a:hover {
  color: #9b5de5;
}

/* ==== MODALES ==== */
.ubicacion-modal,
.contacto-modal {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  z-index: 9999;
  background-color: #1f1f23;
  padding: 25px;
  width: 85%;
  max-width: 480px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  color: #eaeaea;
  border: 1px solid #9b5de5;
}

.ubicacion-contenido,
.contacto-contenido {
  position: relative;
}

.cerrar,
.cerrar-contactos {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #bbb;
  transition: color 0.3s;
}

.cerrar:hover,
.cerrar-contactos:hover {
  color: #9b5de5;
}


.ubicacion-modal {
  transition: opacity 1s ease;
}




/* ==== MEDIA QUERIES ==== */
@media (max-width: 768px) {
  .titulo {
    font-size: 1.4rem;
  }

  .menu-desplegable {
    width: 70vw;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 4vw;
  }

  .titulo {
    font-size: 1.1rem;
  }

  .menu-toggle {
    font-size: 1.8rem;
  }
}
