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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #02060c;
  color: #222;
  line-height: 1.6;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* === MAIN === */
main {
  background: linear-gradient(135deg, #111, #222);
  color: #eee;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/wave-texture.png) repeat;
  opacity: 0.05;
  animation: moveWaves 30s linear infinite;
  z-index: 0;
  /* background-size: cover; */
  background-attachment: fixed;
  background-repeat: repeat;
}

@keyframes moveWaves {
  from { background-position: 0 0; }
  to { background-position: 1000px 0; }
}

/* === SECTION BOX === */
.section-box {
  background-color: rgb(0 0 0 / 70%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 30px rgba(255,0,51,0.2);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  color: #eee;
}

/* === HEADER === */
.main-header {
  width: 100%;
  height: 25vh;
  background-image: url('../img/dj-controller.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.header-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: center;
}

/* === TOP BAR === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
  padding: 10px 20px;
  width: 100%;
  height: 75px;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5em;
  color: #fff;
  text-shadow: 2px 2px #ff0033;
  animation: fadeInLogo 1s ease-in-out;
}

.logo a{
  text-decoration: none;
  color: inherit;
}

.logo i {
  margin-right: 10px;
  color: #ff0033;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-selector select {
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #222;
  color: #fff;
  border: 2px solid #ff0033;
  font-weight: bold;
  font-size: 0.9em;
}

/* === BOTÓN HAMBURGUESA === */
.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.2);
}

/* === MENÚ LATERAL (MÓVIL) === */
.nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: rgba(0,0,0,0.95);
  box-shadow: -5px 0 15px rgba(255,0,51,0.3);
  transition: right 0.4s ease;
  z-index: 999;
  padding-top: 80px;
}

.nav-panel.open {
  right: 0;
}

.nav-panel ul {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-panel ul li a {
  color: #fff;
  font-size: 1.2em;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.nav-panel ul li a:hover {
  background-color: #ff0033;
  color: #000;
}

/* === MENÚ HORIZONTAL (ESCRITORIO) === */
.nav-menu {
  margin-top: 20px;
}

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

.nav-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px 20px;
  border-radius: 30px;
  background-color: #00000078;
  transition: all 0.3s ease;
  animation: pulseMenu 2s infinite;
  position: relative;
  z-index: 1;
}

.nav-menu ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(45deg, #ff0033, #ff9900);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.nav-menu ul li a:hover {
  background-color: #ff0033;
  color: #000;
  transform: scale(1.1);
}

/* === FOOTER === */
footer {
  background-color: #222;
  color: #eee;
  text-align: center;
  border-top: 3px solid #ff0033;
  width: 100%;
  background-image: url(../img/footer-bg.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.footer-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: center; 
}
.footer-content{
  padding: 20px;
}

.footer-content p {
  margin: 10px 0;
  font-size: 1em;
}

.social-icons {
  display: flex;
  gap: 20px;
  font-size: 2em;
  justify-content: center;
}

.social-icons a {
  color: #ff0033;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: beat 1.5s infinite;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #fff;
}

/* === BOTÓN RESERVA CON BORDE DEGRADADO === */
.gradient-border {
  display: inline-block;
  padding: 2px;
  border-radius: 30px;
  background: linear-gradient(45deg, #ff0033, #ff9900);
}

.button-content {
  display: inline-block;
  padding: 10px 20px;
  margin-left: 3px;
  border-radius: 30px;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
  border: 0;
}

.button-content:hover {
  transform: scale(1.05);
}

/* Fondo oscuro detrás del panel */
.overlay-bg {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 998;
  display: none;
}

/* Mostrar cuando el panel está abierto */
.nav-panel.open ~ .overlay-bg {
  display: block;
}

/* Botón de cierre dentro del panel */
.close-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6em;
  cursor: pointer;
  z-index: 1001;
}

/* Mostrar menú horizontal en escritorio */
@media (min-width: 601px) {
  .nav-menu {
    display: block;
  }

  .menu-toggle,
  .nav-panel,
  .overlay-bg {
    display: none;
  }
}


/* === ANIMACIONES === */
@keyframes fadeInLogo {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseMenu {
  0% { box-shadow: 0 0 0 0 rgba(255,0,51, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255,0,51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,51, 0); }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .nav-menu {
    display: none;
  }

  .logo{
    font-size: 20px;
  }
  .main-header{
    height: 75px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    display: block;
  }
}

@media (min-width: 720px) {
  .menu-toggle,
  .nav-panel {
    display: none;
  }

  .nav-menu{
    display: flex;
  justify-content: center;
  position: relative;
  z-index: 999;
  width: 100%;
  margin-top: -40px
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 2em;
  padding: 14px 16px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}
