ul.horizontal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

ul.horizontal-list li {
  display: inline-block;
}

ul.horizontal-list a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

ul.horizontal-list a:hover {
  background-color: #55555588;
  color: #fff;
  border-radius: 5px;
}

/*_________________MENU_________________*/

.menu {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #00000065;
  color: white;
  border-radius: 15px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(218, 218, 218, 0.659); /*brillo del menu*/
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  gap: 2rem; /* Espacio entre menú y botones */
}

.menu-buttons {
  display: flex;
  gap: 0.5rem;
}

.menu-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #0066cc;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.menu-buttons button:hover {
  background-color: #004a99;
}



body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #303030;
}

/* Añadido para evitar que el contenido quede debajo del menú */
.container {
  margin-top: 100px; /* Más que la altura del menú (60px) + algo de espacio */
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*__________TITULOS__________*/
h1, h2, h3, h4, h5 {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: #222;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* Estilo individual por jerarquía */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.3rem;
}

  h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #555, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #555;
    animation: typing 4s steps(30, end) forwards, blink 0.75s step-end infinite;
    margin: 0;
  }

  @keyframes typing {
    to {
      width: 100%;
    }
  }

  @keyframes blink {
    50% {
      border-color: transparent;
    }
  }

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c7c7c7;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #444;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  font-style: italic;
}

/*____________________ Carrito____________________*/

.card-container {
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.card {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 1rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}
.card2 {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 1rem;
  width: 400px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.card-img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.card-text {
  color: #ccc;
  margin: 0.8rem 0;
  font-size: 1rem;
}

.btn-buy,
.btn-view {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  margin: 0.4rem 0.3rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-buy:hover {
  background-color: #28a745; /* verde */
}

.btn-view:hover {
  background-color: #007bff; /* azul */
}

/*____________________ Contenedores secundarios____________________*/

.product-box {
  display: flex;
  gap: 1.5rem;
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  align-items: center;
  flex-wrap: wrap;
}

.container_I {
  flex: 1 1 40%;
}

.container_I .card-img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.container_D {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container_D .card-text {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.container_D .btn-buy,
.container_D .btn-view {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: fit-content;
}

.container_D .btn-buy:hover {
  background-color: #28a745;
}

.container_D .btn-view:hover {
  background-color: #007bff;
}

/*____________________ Adaptacion de menu y titulo a moviles ____________________*/

@media (max-width: 600px) {
  .menu {
    height: auto;
    padding: 6px 10px;
    gap: 0.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap; /* Permite que los elementos bajen si no caben */
  }

  .horizontal-list {
    flex-wrap: wrap; /* Para que los links también bajen si es necesario */
    gap: 0.3rem;
  }

  .horizontal-list a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .menu-buttons {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .menu-buttons button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 1.8rem;
    border-right: 2px solid #555;
    animation: typing-sm 3s steps(20, end) forwards, blink 0.75s step-end infinite;
  }

  @keyframes typing-sm {
    to {
      width: 100%;
    }
  }
}



/*____________________ Separador de elementos \n para los pythonros ____________________*/

.elemento {
  margin-bottom: 1rem; /* separación debajo */
}
/*____________________ Pie de pagina ____________________*/
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icon {
  width: 28px;
  height: 28px;
  filter: grayscale(1) brightness(1.2);
  transition: transform 0.3s, filter 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
  filter: grayscale(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #222;
  color: #888;
  font-size: 0.8rem;
}

/*____________________ Boton de regro al inicio ____________________*/

.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0066cc;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.btn-scroll-top:hover {
  background-color: #004a99;
}
