/* Reset y normalización */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit; /* Asegura contraste de colores accesibles si se usa color del contenedor */
}

ul {
  list-style: none;
}

.active {
  color: #4e9df8;
  text-decoration: underline;
  font-weight: bold;
}

body,
html {
  overflow-x: hidden;
  font-family: sans-serif; /* Mejora legibilidad general */
  background-color: #f4f4f4; /* Fondo neutro accesible */
}

/* Navbar */
.navbar {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Mejora legibilidad sobre imagen */
  color: whitesmoke;
  z-index: 10;
}

.navbar .logo {
  max-width: 100px;
  min-width: 100px;
}

/* Enlaces navegación */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin: 0 30px;
}

.nav-links a:focus {
  outline: 2px dashed #5099ec;
  outline-offset: 5px;
}

/* Header */
header {
  width: 100vw;
  height: 100vh;
  background-image: url(/assets/drumsheader1.jpg);
  background-position: bottom;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.header-content {
  margin-bottom: 150px;
  color: whitesmoke;
  text-align: center;
}

.header-content h2 {
  font-size: 4vmin;
}

.line {
  width: 150px;
  height: 4px;
  background: #5099ec;
  margin: 10px auto;
  border-radius: 5px;
}

.header-content h1 {
  font-size: 7vmin;
  margin-top: 50px;
  margin-bottom: 30px;
}

.btn {
  padding: 10px 20px;
  background-color: #5099ec;
  border-radius: 30px;
  color: whitesmoke;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn:hover,
.btn:focus {
  background: whitesmoke;
  color: #5099ec;
  box-shadow: 2px 2px 5px #00000056;
}

/* Botón menú hamburguesa (Solo en dispositivos pequeños) */
.menu-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  cursor: pointer;
  display: none; /* Ocultarlo en pantallas grandes */
}

/* Secciones */
section {
  width: 80%;
  margin: 80px auto;
}

/* Sección About */
.about {
  width: 100%;
  height: 100vh;
  background-image: url(/assets/drumbackabout.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.about-content {
  width: 50%;
  padding: 50px;
  color: whitesmoke;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.5); /* Mejora contraste del texto */
  border-radius: 10px;
}

.about-content h1 {
  font-size: 7vmin;
}

.about-content .line {
  margin-bottom: 50px;
}

.about-content p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
}

.about-content .btn {
  margin-top: 40px;
}

/* Título de sección */
.title {
  text-align: center;
  font-size: 4vmin;
  color: #5099ec;
}

/* Productos */
.row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.row .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  max-width: 45%;
}

.row .col img {
  border-radius: 5%;
  max-width: 100%;
  height: auto;
}

.products .row {
  margin-top: 50px;
}

h4 {
  font-size: 3vmin;
  color: #5099ec;
  margin: 20px auto;
}

p {
  color: #7c7c7c;
  padding: 0px 40px;
  text-align: center;
}

.products .btn {
  margin-top: 30px;
}

/* Footer */
.footer {
  width: 100%;
  min-height: 100px;
  padding: 20px 80px;
  margin: 0;
  background: #484872;
  text-align: center;
}

.footer p {
  color: whitesmoke;
  margin: 20px auto;
  font-size: 0.9rem;
}

/* Imagen con efecto */
img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.1);
}

/* Hover en listas */
li:hover {
  color: #5099ec;
  cursor: pointer;
}

/* Responsividad - Menú hamburguesa en pantallas pequeñas */
@media only screen and (max-width: 850px) {
  /* Mostrar botón de menú hamburguesa */
  .menu-btn {
    display: block;
  }

  .navbar {
    padding: 0;
  }

  .logo {
    position: absolute;
    top: 30px;
    left: 30px;
  }

  /* Ocultar los enlaces de navegación cuando el menú está cerrado */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: #484872;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
  }

  /* Mostrar el menú cuando está abierto */
  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 20px 0;
  }

  .about-content {
    width: 90%;
    padding: 20px;
  }

  .row {
    flex-direction: column;
  }

  .col {
    max-width: 90%;
  }

  .footer {
    padding: 10px;
  }

  header {
    text-align: center;
    background-position: center;
  }
}
