@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  line-height: 1.6;
}

header {
  text-align: center;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 50px 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  margin: 20px 20px 35px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

header h1 {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff;
}

header p {
  margin-top: 10px;
  font-size: 1.2em;
  color: #b0bec5;
}

.menu-categorias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.menu-categorias button {
  background-color: #00bcd4;
  color: #121212;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-categorias button:hover {
  background-color: #03a9f4;
}

.categoria {
  margin-bottom: 60px;
}

.categoria h2 {
  font-size: 3em;
  color: #00bcd4;
  padding-left: 12px;
  margin-bottom: 25px;
  text-align: center;
}

.componente {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.componente:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,255,255,0.2);
}

.componente img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
  margin-top: 15px;
  border-radius: 10px;
  border: 2px solid #00bcd4;
}

.componente h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #03dac6;
}

.componente p {
  font-size: 0.95em;
  color: #cfd8dc;
  margin-bottom: 15px;
}

.funciones {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-top: 20px;
  color: #eee;
}

footer {
  margin-top: 60px;
  background-color: #0d0d0d;
  text-align: center;
  border-top: 2px solid #00bcd4;
  box-shadow: 0 -3px 15px rgba(0,0,0,0.3);
  width: 100%;
}

footer p {
  margin: 10px 0;
  color: #999;
  padding: 30px 20px;
  font-size: 0.95em;
}

.menu-categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.menu-categorias button {
  background-color: #00bcd4;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-categorias button:hover {
  background-color: #0097a7;
}

.menu-categorias button.activo {
  background-color: #004d5a;
  color: #ffffff;
  border: 2px solid #00bcd4;
}

.categoria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#btn-top {
  position: fixed;
  bottom: 50px;
  right: 30px;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  display: none; 
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 50px;
  transition: opacity 0.3s;
}

#btn-top.show {
  display: block;
  opacity: 1;
}
