/* --------- Estilos Globales --------- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #333;
  color: #fff;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* --------- Encabezado y Navegación --------- */
header {
  background: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 30px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  gap: 20px;
}

.cubo-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

/* Menú */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  position: relative;
  z-index: 2000;
}

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

nav ul li a {
  border: 2px solid gray;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  min-width: 160px;
  z-index: 3000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

.menu-logo:hover .dropdown-menu {
  display: block;
}

/* Logo del slide principal */
.hero-content .logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* Slider */
.slider {
  position: relative;
  pointer-events: auto;
  z-index: 1;
}

.slides {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  margin: auto;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 20;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Botón Común */
.boton {
  background-color: #0033A0;
  color: white;
  border: 2px solid gray;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: #002080;
}

/* WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 100;
}

.whatsapp-button img {
  width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.95em;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-wrapper a {
  color: #00ccff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-wrapper a:hover {
  text-decoration: underline;
  color: #00ffff;
}

/* Responsive: Tablets y móviles */
@media (max-width: 768px) {
  nav {
    display: block;
    width: 100%;
    background: none;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav ul li {
    text-align: center;
  }

  nav ul li a {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
  }

  .cubo-container {
    display: none;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  nav ul li a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .boton {
    display: block;
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
  }

  .dropdown-menu li a {
    font-size: 14px;
    padding: 10px;
  }
}