/* --------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 TIENDA------ */
.seccion-tienda {
  height: 50vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../img/imagenes-tienda/10.jpg);
}

/* ------------SECCION MARCA-------  */
.seccion-marca {
  height: 37vh;
}

.contenido-marca {
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.contenido-marca h3 {
  font-weight: 900;
  color: var(--h3-color-secundario);
  font-size: clamp(32px, 2.5vw + 1rem, 3rem);
  padding: 20px 0;
}

.contenido-marca p {
  color: #595959;
  line-height: 30px;
  font-size: clamp(15px, 1.5vw, 18px);
}

/* ---------SECCION PERROS Y GATOS---- */
.seccion-perro-gato {
  height: 100vh;
}

.imagenes-perro-gato {
  display: flex;
}

.fondo-perro {
  width: 50%;
  height: 695px;
  background-image: url(../img/imagenes-tienda/perro.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  background-size: 110%;
  transition: background-size 0.7s ease;
}

.fondo-perro:hover {
  background-size: 120%;
}

.fondo-gato {
  position: relative;
  width: 50%;
  height: 695px;
  background-image: url(../img/imagenes-tienda/gato-01.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-size: 100%;
  transition: background-size 0.7s ease;
}

.fondo-gato:hover {
  background-size: 110%;
}

.info-perro {
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* fondo semitransparente */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.info-gato {
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.628); /* fondo semitransparente */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.info-perro:hover {
  opacity: 1;
}

.info-gato:hover {
  opacity: 1;
}

.info-perro h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  padding-bottom: 25px;
}

.info-perro p {
  font-size: clamp(12px, 2.5vw, 16px);
  width: 300px;
  line-height: 30px;
  padding-bottom: 30px;
}

.info-gato h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  padding-bottom: 25px;
}

.info-gato p {
  font-size: clamp(12px, 2.5vw, 16px);
  width: 300px;
  line-height: 30px;
  padding-bottom: 30px;
}

.banner-button {
  display: flex;
  align-items: center;
}

.banner-button a {
  background-color: var(--button-color);
  border: none;
  color: var(--titulo-color);
  font-weight: bold;
  font-size: 17px;
  padding-left: 15px;
  cursor: pointer;
}

.banner-button a:hover {
  background-color: var(--titulo-color);
  color: var(--fondo-color);
}

.banner-button i {
  margin-left: 10px;
  font-weight: bold;
  padding: 10px;
  background-color: var(--h3-color-secundario);
  font-size: 20px;
}

.banner-button button:hover {
  background-color: var(--titulo-color);
  color: var(--fondo-color);
}

/* ---------------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-tienda {
    height: 40vh;
  }

  .seccion-marca {
    padding: 0 30px;
  }

  .seccion-perro-gato {
    height: 65vh;
  }

  .fondo-perro {
    height: 445px;
  }

  .fondo-gato {
    height: 445px;
  }

  .seccion-perro-gato {
    height: 60vh;
  }

  .fondo-perro {
    height: 410px;
  }

  .fondo-gato {
    height: 410px;
  }
}

@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 ---- */
  .seccion-tienda {
    height: 25vh;
  }

  .seccion-marca {
    height: 25vh;
  }

  .contenido-marca h3 {
    padding: 10px 0;
  }

  .contenido-marca p {
    line-height: 22px;
  }

  .seccion-perro-gato {
    height: 39vh;
  }

  .fondo-perro {
    height: 270px;
  }

  .fondo-gato {
    height: 270px;
  }

  .info-perro p {
    width: 200px;
    line-height: 20px;
    padding-bottom: 20px;
  }

  .banner-button a {
    font-size: 13px;
    padding-left: 10px;
  }

  .banner-button i {
    margin-left: 6px;
    padding: 8px;
    font-size: 18px;
  }

  .info-gato p {
    width: 200px;
    line-height: 20px;
    padding-bottom: 20px;
  }

  /* -----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;
  }
}
