@font-face {
  font-family: 'Made';
  src: url('/Fonts/MADE_Tommy_Soft_Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Made', sans-serif;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 30px 30px;
  background-image: url('/images/RECTANGULO\ DE\ ARRIBA-12.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.logo {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  z-index: 3;
}

.logo img {
  height: 125px;
  width: auto;
}

nav {
  position: absolute;
  top: 0;
  right: 20px;
  margin-top: 120px;
  z-index: 3;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #4CAF50;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 10px 10px;
  transform: scaleX(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

/* CSS for the buttons */
.nav-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  margin-right: 15px;
  margin-top: 9px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s;
}

.rrhh-btn {
  background-color: transparent;
  color: black;
}

.rrhh-btn:hover {
  background-color: #4CAF50;
}

.login-btn {
  background-color: transparent;
  color: black;
}

.login-btn:hover {
  background-color: #4CAF50;
}

.nav-btn img {
  width: 20px;
  height: 20px;
}

/* Solución completa para el banner principal */
.main-banner {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 60vh;
  margin-top: -100px;
  z-index: 1;
}

.main-banner img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  z-index: -1;
  display: block;
}

/* Media queries específicas para el banner */
@media (max-width: 1024px) {
  .main-banner {
    min-height: 50vh;
    margin-top: -80px;
  }
}

/* Categorías */
.category-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 30px;
  padding: 0 20px;
}

.category-item {
  position: relative;
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.category-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: none;
}

/* Estilo para la imagen ampliada */
.category-item img.enlarged {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 30vw;
  max-width: 400px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  /* Sombra solo cuando la imagen está ampliada */
}

/* Más oscuro cuando se hace clic */
.category-item.clicked::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  /* Fondo más oscuro */
  z-index: 999;
}

/* Footer */
footer {
  background: linear-gradient(to right, #333333, #4CAF50);
  color: #fff;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

footer .social-links img {
  height: 35px;
  width: 35px;
}

footer p {
  font-size: 12px;
  text-align: right;
  margin: 0;
}

/* Responsividad */
@media (max-width: 1024px) {
  .category-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
    padding: 20px 20px;
  }

  .logo img {
    height: 100px;
  }

  .main-banner {
    min-height: 40vh;
    margin-top: -60px;
  }

  .main-banner img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }

  nav ul {
    flex-direction: column;
  }

  .category-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1600px) {
  body {
    max-width: 1400px;
    font-size: 18px;
  }

  .contenedor-principal {
    padding: 0 80px;
    gap: 40px;
  }

  h1 {
    font-size: 3rem;
  }
}
@media (max-width: 480px) {
  header {
    height: 60px;
    padding: 15px 15px;
  }

  .logo img {
    height: 80px;
  }

  .main-banner {
    min-height: 30vh;
    margin-top: -40px;
  }

  .category-container {
    grid-template-columns: 1fr;
  }

  .catalog-section {
    padding: 20px 10px;
  }

  .catalog-title {
    font-size: 28px;
  }

  .catalog-description {
    font-size: 16px;
  }
}