

:root {
    --primary-blue: #13357a;
    --light-gray: #efefef;
    --dark-gray: #979797;
    --category-1: #009642;
    --category-2: #1d1d1b;
    --category-3: #22386d;
    --category-4: #009ee2;
    --category-5: #f18c13;
    --category-6: #f8be01;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Cabecera */
.site-header {
    width: 100%;
}

/* Franja azul superior */
.header-top {
    background-color: var(--primary-blue);
    height: 59px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
}

/* Logo con efecto rollover */
.logo {
    height: 40px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    width: 202px;
}

.logo:hover {
    filter: drop-shadow(0 -1px 3px rgba(0,0,0,0.3));
    transform: translateY(-1px);
}

/* Barra de búsqueda */
.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    display: flex;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-bar input {
    width: 100%;
    padding: 5px 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
}

.search-bar button {
    background: #ddd;
    border: none;
    padding: 0 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-bar button svg {
    height: 16px;
    transition: transform 0.3s ease;
}

.search-bar:hover {
    border: 2px solid #083060;
}

.search-bar:hover button svg {
    transform: scale(0.9);
}

/* Botones de usuario */
.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-actions img {
    height: 30px;
    width: 28px;
}

.btn-login, .btn-register, .btn-cart {
    background: transparent;
}

.btn-register:hover, 
.btn-login:hover, 
.btn-cart:hover {
    background: white;
    color: var(--primary-blue);
}

/* Botón de menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Franja gris inferior */
.header-bottom {
    background-color: var(--light-gray);
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.3s ease;
}


/* Menu despegable que aparece al dar clic en boton hamburguesa */
.menu-movil {
  display: none;
  width: 100%;
  background: #ffffff;
  font-family: 'Arial', sans-serif;
  font-size: 45px;
  overflow: hidden;
}

/* Mostrar cuando se activa */
    .menu-movil.active {
      display: block;
      margin-top: 55px;
          position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
    }

.categorias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 20px;
}

.cat {  
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 0px 0px;
  border-radius: 6px;
  font-size: 14px;
}

.cat a {
  display: flex;
  flex-direction: column; /* Imagen arriba, texto abajo */
  align-items: center;    /* Centra horizontalmente */
  text-align: center;
  color: white;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 5px;
}

.verde {
  background-color: #2eaa4f;
}
.cat img {
  margin-bottom: 8px;
  width: 50%;
  height: auto; /* Mantiene proporción */
}

.negro {
  background-color: #1c1c1c;
}

.azul-oscuro {
  background-color: #1e3277;
}

.celeste {
  background-color: #00a5e3;
}

.naranja {
  background-color: #f7941e;
}

.amarillo {
  background-color: #f9be00;
  color: #000;
}

.navegacion {
  list-style: none;
  padding: 100;
  margin: 100;
}

.navegacion li {
  display: flex;
  align-items: center;
  padding: 15px;
  border-top: 1px solid #ddd;
  font-weight: bold;
  color: #888;
  font-size: 16px;
}

.navegacion li img {
  width: 20px;
  margin-right: 10px;
  font-size: 18px;
}

/* Menú de categorías */
.categories-menu ul {
    display: flex;
    gap: 1px;
    height: 100%;
    width: 70%;
    justify-content: flex-start;
    list-style: none; /* Elimina puntos de lista */
    margin: 0;
    padding: 0;
}

.categories-menu ul > li {
    flex: 1 0 auto;
    min-width: 50px;
}

.categories-menu ul > li a {
  color: #333;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 0;
  transition: all 0.3s ease;
  height: 100%;
    position: relative;
  padding-left: 15px; /* Espacio para el icono */
}

.categories-menu ul > li a svg {
    width: 25px;
    height: 25px;
    margin-right: 5px;
    fill: var(--dark-gray);
    transition: fill 0.3s ease;
}

.categories-menu ul > li:hover svg {
    fill: #ffffff;
}

.categories-menu ul > li:nth-child(6):hover svg { /* Herramientas */
    fill: #000000;
}



/* Efectos rollover específicos para cada categoría */
.categories-menu ul li:nth-child(1):hover a { /* Control y Fuerza */
   
    background-color: var(--category-1);
    font-weight: bold;
    color: white;
}

.categories-menu ul li:nth-child(2):hover a { /* Conductores */
    background-color: var(--category-2);
    font-weight: bold;
    color: white;
}

.categories-menu ul li:nth-child(3):hover a { /* Media Tensión */
  background-color: var(--category-3);
  font-weight: bold;
  color: white;
}

.categories-menu li:nth-child(4):hover a { /* Baja Tensión */
    background-color: var(--category-4);
    font-weight: bold;
    color: white;
}

.categories-menu li:nth-child(5):hover a { /* Iluminación */
    background-color: var(--category-5);
    font-weight: bold;
    color: white;
}

.categories-menu li:nth-child(6):hover a { /* Herramientas */
    background-color: var(--category-6);
    font-weight: bold;
    color: black;
}

.blog-menu ul {
    display: flex;
    gap: 0px;
    height: 100%;
    width: 30%;
    justify-content:left;
    margin: 0;
    padding: 0px;
       
}

.blog-menu li {
  flex: 1 0 auto;
  min-width: 50px;
  list-style: none; /* Elimina puntos de lista */
}

.blog-menu ul li:hover a { /* Control y Fuerza */
  background-color: var(--category-3);
  font-weight: bold;
  color: white;
}

.blog-menu li a {
  color: #333;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 0;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  padding-left: 5px; /* Espacio para el icono */
}



/* ============== RESPONSIVE ============== */
/* Estilos para móvil */
@media (max-width: 960px) {
    .site-header {
        position: relative;
    }

    .header-top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-bottom {
        position: fixed;
        top: 59px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        transform: translateX(-100%);
        z-index: 999;
        overflow-y: auto;
        transition: transform 0.3s ease;
    }
    
    .header-bottom.active {
        transform: translateX(100%);
    }
    
    .categories-menu {
        flex-direction: column;
    }
    
    .categories-menu a {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .blog-menu ul {
        flex-direction: column;
    }
    
    .user-actions {
        display: none;
    }
    
    /* Animación del botón hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Estilos para desktop */
@media (min-width: 960px) {
    .header-bottom {
        height: 40px;
        flex-direction: row;
        padding: 0 20px;
    }
    
    .categories-menu {
        flex-direction: row;
        width: 100%;
    }
    
    .blog-menu ul{
        flex-direction: row;
        width: 30%;
        background: transparent;
    }
    
    .blog-menu ul li{
        padding: 0 10px;
        border-bottom: none;
        justify-content: flex-end;
    }
}

/* Contenido principal */
.productos {
    padding: 0px;
    margin: 0px;
}

.container-fluid {
    margin: 0px;
    width: 100%;
    background: #f8f9fa;
    text-align: center;
}

.container-fluid::before {
    display: block;
    color: #6c757d;
    margin-bottom: 20px;
}

.productos__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 20px;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
}

a {
  text-decoration: none;
}

.productos__filtro {
  margin: 10px 0;
}
@media screen and (min-width: 0px) {
  .productos__filtro {
    text-align: center;
  }
}
@media screen and (min-width: 767px) {
  .productos__filtro {
    text-align: unset;
  }
}
.productos__filtro input {
  background: #F7F7F7;
  border: 1px solid #F7F7F7;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 15px;
  padding: 10px;
  text-indent: 30px;
  background-image: url("../img/icon-search.svg");
  background-repeat: no-repeat;
  background-position: 10px center;
}
@media screen and (min-width: 0px) {
  .productos__filtro input {
    min-width: 0px;
  }
}
@media screen and (min-width: 767px) {
  .productos__filtro input {
    min-width: 350px;
  }
}
.productos__filtro input:focus {
  outline: none;
}
.productos__filtro ::-webkit-input-placeholder {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.productos__filtro ::-moz-placeholder {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.productos__filtro :-ms-input-placeholder {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.productos__filtro ::-ms-input-placeholder {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.productos__filtro ::placeholder {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.productos__order {
  margin-left: 20px;
}
.productos__order strong {
  font-family: Quicksand;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 17px;
}
@media screen and (min-width: 0px) {
  .productos__order strong {
    margin-top: 15px;
    display: inline-block;
  }
}
@media screen and (min-width: 767px) {
  .productos__order strong {
    margin-top: 0;
  }
}
.productos__order select {
  font-family: Quicksand;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 17px;
  text-align: center;
  color: #797979;
  background-color: transparent;
  border: none;
}

.productos__card {
  width: 17%;
  margin-top: 10px;
  margin-bottom: 10px;
}
.productos__card img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
}
@media screen and (min-width: 0px) {
  .productos__card {
    width: 45%;
  }
}
@media screen and (min-width: 700px) {
  .productos__card {
    width: 30%;
  }
}
@media screen and (min-width: 900px) {
  .productos__card {
    width: 17%;
  }
}

.productos__desc .productos__precio {
  font-family: Roboto;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  line-height: 19px;
  color: #404040;
}
.productos__desc .productos__titulo {
  font-family: Quicksand;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 17px;
  color: #797979;
}

.producto__caption {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.producto__caption .productos__cart .productos__add-to-cart {
  background-color: #ACD9B2;
  padding: 15px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-block;
  position: relative;
  -webkit-transition: 200ms;
  transition: 200ms;
}
.producto__caption .productos__cart .productos__add-to-cart:hover {
  opacity: 0.8;
}
.producto__caption .productos__cart .productos__add-to-cart img {
  width: 25px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  position: absolute;
  margin: 0;
}

footer {
  font-family: Quicksand;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 17px;
  text-align: center;
  color: #797979;
  background-color: #0000;
  border: none;
}

@-webkit-keyframes menu_responsive {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes menu_responsive {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

