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

/* === 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*/

.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);
}

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

.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: 30px 0 15px 0;
}

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

/* ------SECCION PRODUCTOS PERROS */
.contenido-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px;
  align-items: center;
  justify-items: center;
}

.contenido-grid img {
  width: 250px;
  height: 400px;
  padding: 05px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card {
  perspective: 1000px;
  width: 250px;
  height: 400px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front {
  cursor: pointer;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 1px 1px 6px 1px rgba(0, 0, 0, 0.409);
}

.card-back a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-front img,
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.card-back img {
  filter: drop-shadow(2px 7px 5px #0000007a);
}

.card-back {
  transform: rotateY(180deg);
}

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

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

@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;
  }

  .seccion-marca {
    height: 20vh;
  }

  .seccion-marca h3 {
    padding: 25px 0 0px 0;
  }

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