:root {
  --bg: #f3f3f3;
  --colorPrimario: #000418;
  --colorSecundario: #ff8900;
  --colorTerciario: #d9e1ed;
  --colorAcento: #3b60ff;
  --colorBlanco: #ffffff;
  --colorBorde: #dcdcdc;
  --paddingSite: 15px 18px;
  --paddingReponsive: 15px 10px;
}

.menu_flotante {
  transform: translateY(-100px);
  transition: 0.9s ease-in-out;
  position: fixed;
  background: var(--bg);
  padding: 15px 50px;
  border-bottom: 1px solid var(--colorBorde);
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.menu_flotante.show {
  transform: translateY(0);
}
.menu_flotante img {
  width: 150px;
  height: auto;
}

.list_manu_flotante {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list_manu_flotante ul {
  list-style: none;
  display: flex;
  gap: 38px;
  padding: 0 15px;
}
.opcio_flotante {
  transition: 0.2s ease-in;
}

.opcio_flotante:hover {
  scale: 1.08;
}

.btn_carrito_flotente {
  position: relative;
  background: transparent;
  cursor: pointer;
}

.btn_carrito_flotente span {
  font-size: 32px;
}

.contenido_pag {
  position: relative;
}
.banner_info {
  padding: 15px 18px;
}

.banner {
  background: var(--colorTerciario);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 40% auto;
}

.info_baner {
  position: relative;
  padding: 40px;
  overflow: hidden;
}

.info_baner h1 {
  font-size: 50px;
}

#colorTex {
  color: #3b60ff;
}

.info_baner p {
  line-height: 1.5;
}

.btnsOpcio_banner {
  padding-top: 30px;
  display: flex;
  gap: 30px;
}

.btnsOpcio_banner span {
  padding: 0;
  margin: 0;
}

.btnsOpcio_banner button {
  padding: 8px 16px;
  border-radius: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: 0.1s ease-in;
}
.btnsOpcio_banner button:active {
  scale: 0.99;
}
.btnBannerPage_Product {
  background: var(--colorPrimario);
  color: var(--colorBlanco);
}

.btnBannerPage_Nov {
  border: solid 1px var(--colorPrimario);
}

.images_banner {
  position: relative;
  overflow: hidden;
}

.images_banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
}

.menu_categorias {
  max-width: 100%;
  overflow-x: auto;
  position: relative;
  padding: var(--paddingSite);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}

.menu_categorias::-webkit-scrollbar {
  display: none;
}

.categoria {
  border-radius: 10px;
  width: 190px;
  min-height: 150px;
  max-height: 200px;
  max-width: 250px;
  box-shadow: 0 0 0 1px gainsboro;
  background: var(--colorBlanco);
}

.categoria {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  place-items: center;
  padding: 8px;
}

.categoria h4 {
  font-size: 15px;
}

.categoria img {
  width: 70px;
  height: 100px;
  object-fit: cover;
}

.list_productos {
  padding: var(--paddingSite);
}

.encabezado {
  display: flex;
  justify-content: space-between;
}

.encabezado div {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--colorPrimario);
  cursor: pointer;
}

.productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.CardProducto {
  margin-top: 15px;
  background: var(--colorBlanco);
  border-radius: 10px;
  box-shadow: 0 0 1px gainsboro;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.CardProducto {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: center;
}

.CardProducto img {
  object-fit: cover;
  height: 150px;
}

.btnFavorito {
  display: flex;
  justify-content: right;
  padding-bottom: 20px;
}

.btnFavorito i {
  font-size: 26px;
  transition: 0.3 ease-in-out;
  cursor: pointer;
}

.btnFavorito i:active {
  scale: 1.1;
}

.calificacionProduct {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  font-size: 18px;
}

.calificacionProduct i {
  font-size: 15px;
}

.calificacionProduct p {
  font-size: 15px;
}
.btnAgregarCarrito {
  padding: 10px 0 0 0;
  display: flex;
  justify-content: right;
}

.btnAgregarCarrito button {
  display: flex;
  place-items: center;
  background: var(--colorPrimario);
  color: var(--colorBlanco);
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2 ease-in;
  cursor: pointer;
}

.btnAgregarCarrito button:active {
  scale: 0.98;
}

.caja_servicios {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: var(--paddingSite);
  background: var(--colorBlanco);
}

.caja_servicios .servicio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  place-items: center;
  padding: 15px;
  border-right: solid 1px var(--colorBorde);
}
.servicio span {
  height: 100%;
  font-size: 36px;
  color: var(--colorSecundario);
  transition: transform 0.5s ease-in-out;
  cursor: default;
}

.servicio span:hover {
  transform: rotateY(360deg);
}

.caja_servicios p {
  font-size: 13px;
}

.footer_pag {
  width: 100%;
  margin-top: 60px;
  padding: 60px 8%;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.footer_info {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
  align-items: start;
}

.footer_info_contacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer_info_contacto img {
  width: 170px;
  height: auto;
}

.footer_info_contacto p {
  color: #666;
  line-height: 1.7;
  font-size: 15px;
}

.footer_redes {
  display: flex;
  gap: 15px;
}

.footer_redes button {
  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: #f3f3f3;

  cursor: pointer;

  transition: 0.3s;
}

.footer_redes button:hover {
  background: #000;
  color: #fff;
}

.footer_redes i {
  font-size: 18px;
}

.footer_contacto ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
}
.footer_contacto li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer_links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.list_enlaces_footer h4 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #222;
}

.list_enlaces_footer ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.list_enlaces_footer a {
  text-decoration: none;
  color: #666;
  font-size: 15px;

  transition: 0.3s;
}

.list_enlaces_footer a:hover {
  color: var(--colorSecundario);
  padding-left: 6px;
}

.footer_pag hr {
  margin: 45px 0 25px;
  border: none;
  border-top: 1px solid #e5e5e5;
}

.footer_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer_bottom p {
  color: #777;
}

.caja_input {
  display: flex;
  padding: 6px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid gainsboro;
  border-radius: 10px;
}

.caja_input input {
  border: none;
  width: 100%;
  padding: 16px 12px;
}

.caja_input input:focus {
  outline: none;
}

.input_suscribise {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.caja_input button {
  transition: 0.2s ease-in;
  border-radius: 12px;
  color: var(--colorPrimarios);
  background: var(--bg);
  padding: 12px 20px;
}

.caja_input button:hover {
  background: #000;
  color: var(--colorBlanco);
  opacity: 0.9;
}

.caja_input button:active {
  scale: 0.97;
}

.caja_input button:active {
  scale: 0.97;
}

.btn_suscribirse {
  overflow: hidden;
}

.btn_suscribirse span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn_suscribirse:hover span {
  transform: rotate(-15deg) scale(1.1);
}

.btn_suscribirse:active span {
  transform: translateX(40px) scale(0.7);
  opacity: 0;
  transition:
    transform 0.2s ease-in,
    opacity 0.2s;
}

/* Responsive */

@media (max-width: 992px) {
  .footer_info {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer_links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  /* Header y banner */

  .opcio_selector a {
    font-size: 14px;
  }

  .banner_info {
    padding: 0;
  }
  .banner {
    grid-template-columns: 1fr;
  }

  .banner_info .info_baner {
    grid-row: 2;
  }

  .banner_info .images_banner {
    grid-row: 1;
  }

  .images_banner img {
    border-radius: 10px 10px 0 0;
    height: 200px;
    max-height: 400px;
  }

  .btnsOpcio_banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .btnsOpcio_banner button {
    justify-content: center;
    padding: 12px 0;
    font-size: 14px;
  }

  .info_baner {
    padding: 20px;
  }

  .info_baner p {
    font-size: 14px;
  }

  .info_baner h1 {
    font-size: clamp(1.25rem, 5.5vw, 2.5rem);
    line-height: 2;
  }

  /* Targetas de productos */

  .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .CardProducto {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .img_product {
    text-align: center;
  }

  .CardProducto img {
    object-fit: cover;
    height: 130px;
  }

  .btnFavorito {
    display: none;
  }

  .calificacionProduct {
    font-size: 14px;
  }

  .calificacionProduct i {
    font-size: 12px;
  }

  .calificacionProduct p {
    font-size: 13px;
  }

  .infoProducto h4 {
    font-size: 14px;
  }

  .caja_servicios {
    grid-template-columns: repeat(2, 1fr);
  }

  .caja_servicios .servicio {
    grid-template-columns: 1fr;
    place-items: center;
    border-right: none;
  }

  .servicio h4 {
    font-size: 14px;
    text-align: center;
  }

  .servicio p {
    font-size: 13px;
    text-align: center;
  }
  .servicio span {
    font-size: 34px;
  }

  .footer_info_contacto {
    text-align: center;
    align-items: center;
  }

  .footer_redes {
    justify-content: center;
  }

  .derechos_text {
    font-size: 12px;
  }

  .footer_bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Aplicamos el order al DIV hijo directo, no al párrafo */
  .footer_bottom > div:first-child {
    order: 2;
    margin-top: 20px;
    text-align: center;
  }

  .input_email_suscribir,
  .input_email_suscribir::placeholder {
    font-size: 14px;
  }
}
