/* --------VARIABLES------- */

:root {
  /* ------COLORES------ */
  --fondo-color: #126aa9;
  --button-color: #126aa9;
  --h3-color-secundario: #0d4a73;
  --titulo-color: #ffffff;
  --parrafo-color: #e6e6e6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

h1,
h2 {
  color: var(--titulo-color);
}

/* --------------------------HEADER------- */

header {
  width: 100%;
  background-color: #111111e8;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 90px;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-toggle {
  font-size: 1.8rem;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.nav-links i:hover {
  color: var(--fondo-color);
}

.cart-icon {
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a:hover {
  color: var(--fondo-color);
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ------------------------- */
.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
}

.img-carrito {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.item-carrito i {
  cursor: pointer;
  color: red;
}

/* --------- */

.nav-icons {
  position: relative;
}

#contador-carrito {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 0px 4px;
  font-size: 12px;
  display: none;
}

/* ------ESTO ESTA DENTRO DEL CARRITO */
.contenedor-total-pago {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 5px;
}

.cart-item-info h4 {
  font-size: 14px;
  margin: 0 0 5px;
  color: #fff;
}

.cart-item-info p {
  font-size: 13px;
  margin: 0;
  color: #ccc;
}

/* === DISEÑO DEL PANEL DEL CARRITO === */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #222222;
  color: white;
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 1100;
} /* AQUI TERMINA EL DISEÑO DEL PANEL DEL CARRITO*/

/* ----------ESTILO DEL DISEÑO DEL BOTON PAGAN */

.btn-pagar {
  margin-top: 30px;
  padding: 12px 25px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background-color: red;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.btn-pagar:hover {
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.47),
    0 0 20px rgba(255, 255, 255, 0.395);
  transform: scale(1.05);
}
/* ---------------------AQUI TERMINA EL DISEÑO DE PAGAR */

.nav-icons i:hover {
  color: var(--fondo-color);
}

.cart-panel.show {
  right: 0;
}

.cart-panel h2 {
  margin-bottom: 20px;
}

.cart-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-panel i:hover {
  color: var(--fondo-color);
}

.nav-links i {
  display: none;
}

/* ----------SECCION MARCA-PERRO BANNER------ */
.seccion-banner {
  height: 50vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../img/imagenes-tienda/10.jpg);
  box-shadow: 12px 2px 8px 0px rgba(0, 0, 0, 0.598);
}

/* ---------SECCION CARNE Y LECHE */
.seccion-carne {
  height: 70vh;
}
.container-productos {
  max-width: 1200px;
  margin: auto;
  display: flex;
}

.img-producto {
  width: 35%;
}

.img-producto img {
  margin-top: -60px;
  height: 550px;
}

.contenido-producto {
  width: 65%;
  margin-left: 50px;
}

.contenido-producto h3 {
  color: var(--h3-color-secundario);
  font-size: clamp(18px, 2.5vw, 43px);
  margin-top: 90px;
  margin-bottom: 20px;
}

.contenido-producto i {
  padding: 0 8px;
  color: #414141;
}

.contenido-producto p {
  line-height: 19px;
  font-weight: 500;
  color: #414141;
  font-size: clamp(12px, 1.5vw, 15px);
  padding: 10px 0;
}

.valores {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.contenido-producto span {
  font-size: clamp(18px, 2.5vw, 35px);
  font-weight: 700;
}

.cart-btn {
  padding: 12px 15px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background-color: red;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.cart-btn:hover {
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.47),
    0 0 20px rgba(0, 0, 0, 0.395);
  transform: scale(1.05);
}

/* ----------SECCION BENEFICIOS --- */
.seccion-beneficios {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 20px;
}

.img-beneficios {
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
  box-shadow: 0px 5px 10px 1px rgba(0, 0, 0, 0.594);
}

.texto-beneficios {
  text-align: center;
}

.texto-beneficios h3 {
  font-size: clamp(22px, 2.5vw, 38px);
  color: var(--h3-color-secundario);
  padding: 15px;
}

/* -----------------SECIONES----- */
.super-can {
  background-color: #e8e8e8;
}

/* ---------------FOOTER----------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 170px;
  background-color: var(--h3-color-secundario);
  border-top: 25px solid #075c94;
}

.derechos-logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  gap: 140px;
}

.footer-logo img {
  max-width: 120px;
}

.footer-logo img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.ul-redes {
  display: flex;
  gap: 10px;
}

.ul-redes i {
  color: #fff;
  font-size: 25px;
  border: 2px solid #fff;
  padding: 8px;
}

.ul-redes i:hover {
  background-color: #fff;
  color: #044774;
}

@media screen and (max-width: 1024px) {
  .seccion-banner {
    height: 40vh;
  }

  .img-producto {
    width: 30%;
  }

  .img-producto img {
    margin-top: -40px;
    height: 500px;
  }

  .contenido-producto {
    padding-right: 20px;
    width: 70%;
    margin-left: 20px;
  }
}

@media screen and (max-width: 768px) {
  header {
    background-color: #111111be;
  }

  .logo {
    width: 70px;
  }

  .nav-toggle {
    display: block;
  }

  /* ---DISEÑO DEL MENU DESPEGABLE EN CELULARES--- */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 50vh;
    width: 50%;
    background-color: #111;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
  }

  /* ----ESTE .SHOW ES SOLO PARA JAVASCRIP SI EN NAV-LINKS TENEMOS RIGTH:-100% CON EL NUEVO VALOR DE .SHOW HACEMOS QUE SE DESLICE*/
  .nav-links.show {
    right: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
  }

  .nav-links i {
    display: block;
  }

  #menu-toggle {
    display: block;
  }

  .nav-links li:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
  }

  .seccion-banner {
    height: 30vh;
  }

  .img-producto {
    width: 30%;
  }

  .img-producto img {
    margin-top: 10px;
    height: 260px;
  }

  .contenido-producto {
    padding-right: 20px;
    width: 70%;
    margin-left: 10px;
  }

  .contenido-producto h3 {
    margin-top: 70px;
  }

  /* -----SECCION FOOTER */
  .footer {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    gap: 20px;
  }

  .derechos-logo {
    flex-direction: column;
    gap: 20px;
    font-size: 10px;
    text-align: center;
  }

  .ul-redes {
    justify-content: center;
  }

  .ul-redes i {
    font-size: 18px;
  }
}
