/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arimo", sans-serif;
  background-color: #ffffff;
  color: #333;
  padding-top: 70px;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 9999;
}
.logo img {
  height: 50px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
nav ul li a {
  text-decoration: none;
  color: #002d72;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
  color: #c8102e;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #002d72;
  cursor: pointer;
}
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    border-top: 1px solid #ccc;
  }
  .nav-links.show {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-left: 20px;
  }
}

/* LANGUAGE DROPDOWN */
.language-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Arimo", sans-serif;
}
.language-dropdown button {
  background: none;
  border: 2px solid #002d72;
  color: #002d72;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-menu {
  position: absolute;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.lang-menu li:hover {
  background-color: #f0f0f0;
}
.lang-menu li img {
  width: 20px;
  height: auto;
  border-radius: 3px;
}
.hidden {
  display: none;
}

/* BANNER */
header.banner {
  background: url("../img/productos.jpg") no-repeat center center;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
header.banner h1 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
}

/* SECTIONS */
section {
  padding: 60px 20px;
}
h2 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #002d72;
  text-align: center;
  margin-bottom: 30px;
}

/* CATEGORIES */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}
.category-box {
  background: #f0f4f8;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: #002d72;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: color 0.4s ease, background-color 0.4s ease;
  user-select: none;
}
.category-box:hover {
  color: #c8102e;
  background-color: #e9d6db;
}
@media (max-width: 900px) {
  .grid-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .grid-categories {
    grid-template-columns: 1fr;
  }
}

/* PRODUCT LIST */
.product-list {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}
.product-list input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 30px;
  box-sizing: border-box;
}
#productList {
  list-style: none;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}
.product-item {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  color: #002d72;
  font-weight: 600;
}

/* CTA */
.cta {
  background-color: #c8102e;
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.cta h2 {
  color: white;
  font-size: 2.5rem;
}
.cta a {
  display: inline-block;
  background-color: white;
  color: #c8102e;
  text-decoration: none;
  padding: 14px 28px;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: bold;
}

/* FOOTER */
footer {
  background-color: #111;
  color: #eee;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.95rem;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
}
.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-column p,
.footer-column a {
  color: #ccc;
  text-decoration: none;
  margin: 5px 0;
  display: block;
}
.footer-column a:hover {
  color: #fff;
}
.footer-column strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}
.footer-bottom {
  margin-top: 30px;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    align-items: center;
  }
}
