
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  color: rgb(255, 255, 255);
}

/* -------------------------------------------------------------------------------- */
/* ---------------------------------- Estilos generales ----------------------------*/
/* -------------------------------------------------------------------------------- */

body {
  font-family: "Lato", sans-serif;
  font-size: 16px;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------------------------------- */
/* ---------------------------------- Menú ---------------------------------------- */
/* -------------------------------------------------------------------------------- */

.navbar {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    background-color: 	#76111d;
    padding: 10px 20px;
    color: white;
    position: fixed;
}

.logo {
    width: 75px;
    height: 25px;
}

.logo-menu {
  width: 20px;
  margin-top: 1rem;

  @media (min-width: 768px) {
    display: none;
  }
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 5px;
    transition: none;
    display: flex;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.navbar-menu li {
    margin-left: 20px;
}

.navbar-menu li a {
    text-decoration: none;
    color:  rgb(255, 255, 255);
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.navbar-menu li a:hover {
    background-color:#eeeeeea1;
    color: #130101;
    border-radius: 2px;
}

.navbar-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color:  rgb(215, 211, 207);
    font-size: 1.5em;
    cursor: pointer;
    outline: none;
}

.containerIconos {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
    .navbar-menu {
        width: 45%;
        height: 100vh;
        background-color: #ffffff;
        position: absolute;
        top: 50px;
        right: 0;
        padding-top: 40px;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    }

    .navbar-menu li {
        margin: 10px;
        text-align: center;
    }
    .navbar-menu li a {
      color: #000000;
    }

    .navbar-toggler {
        display: block;
        font-size: 1.5em;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

/* -------------------------------------------------------------------------------- */
/* -------------------------------- Carrito --------------------------------------- */
/* -------------------------------------------------------------------------------- */

.cart-modal {
  position: absolute;
  top: 50px;
  height: 100vh;
  overflow-y: auto;
  right: 0;
  width: 45%;
  padding: 10px;
  background-color: rgb(255, 255, 255);
  color: rgb(14, 13, 13);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;

  transform: translateX(100%); 
  opacity: 0; 
  visibility: hidden;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.3s;

  @media (max-width: 768px) {
    width: 50%;
  }
}

.cart-modal.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s;
}

.cart-modal h4 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cart-modal p {
  color: #130101;
}

#cart-items {
  overflow-y: auto;
  max-height: 55vh;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 5px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.cart-item .info-item {
  width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000000;
}

.cart-item .info-item span {
  font-size: 1rem;
  color: #000000;

    @media (max-width: 768px) {
      font-size: 0.8rem;
    }
}

.cart-item .info-item button {
  font-size: 1rem;
  padding: 0.5rem;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 0.25rem;
  color: #000000;
}

.cart-item .info-item button:hover {
  background-color: #e0e0e0;
}

.cart-item .trash {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item .trash button {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

#cart-total {
  font-weight: bold;
  font-size: 18px;
  color: #130101;
}

#checkout-btn {
  width: 100%;
  padding: 10px;
  background-color:#76111d;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.cart-icon {
  font-size: 21px;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
}

/* styles couter */
.cart-count {
  position: absolute;
  top: -8px;
  right: -2px;
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------------- */
/* --------------------------------- Btn Scroll  ---------------------------------- */
/* -------------------------------------------------------------------------------- */

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  color: black; 
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000; 
  transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.2); 
  color: white;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------------------------------- */
/* ---------------------------------- Section-hero -------------------------------- */
/* -------------------------------------------------------------------------------- */

#hero {
  width: 100%;
  display: flex;
  justify-content: center;
  object-fit: contain;
}

.contenedorImg {
  display: flex;
  justify-content: center;
  width: 100%;
  object-fit: contain;
  padding-top: 50px;
}

.contenedorImg img {
  width: 100%;
}

/* -------------------------------------------------------------------------------------*/
/* ---------------------------------- Section-About Us -------------------------------- */
/* ------------------------------------------------------------------------------------ */

#aboutUs {
  background-color:#525056;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 40px 20px;
}

#aboutUs p {
  font-weight: lighter;
  text-align: center;
  padding: 0 0.5rem;
  max-width: 700px;
  margin-bottom: 0px;
}

h2 {
  font-weight: bolder;
  text-align: center;
  font-size: 2rem;
}

.container-info {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.info {
  background-color: rgba(88, 88, 88, 0.384);
  border-radius: 10px;
  width: 450px;
  padding: 0.5rem;
  margin: 1rem;
}

.info h3 {
  color: rgb(215, 211, 207);
  text-align: center;
  font-weight: bolder;
}

/* -------------------------------------------------------------------------------- */
/* --------------------------------- Section-Products ----------------------------- */
/* -------------------------------------------------------------------------------- */

.categorias {
  display: flex;
  flex-wrap:wrap;
  justify-content: center;
  gap: 1rem;
}

.categorias button {
    padding: 10px 20px;
    color: #130101;
    margin: 5px;
    border: none;
    background-color: #eee;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.categorias button:hover {
  background-color: #ddd;
}

.categorias button.active {
  background-color: #76111d;
  color: white;
}

.containerProductsBtn {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.containerProductsBtn h3 {
  color: #130101;
  text-align: center;
  padding: 20px;
  font-weight: bolder;
  font-size: 2rem;
}

#productos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.producto {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  height: 420px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto img {
  width: 140px;
  height:140px;
  border-radius: 8px;
  object-fit: contain;
}

.producto h2 {
  height: 55px;
  font-size: 1.5rem;
  margin: 10px 0;
  color: #333;
}

.producto p {
  width: 100%;
  height: 45px;
  font-size: 1rem;
  color: #666;
  margin: 10px 0;
  text-align: center;
}

.producto p strong {
  color: #130101;
}

.producto button {
  background-color: #76111d;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 10px;
  transition: background-color 0.3s;
}

/* btn ver más  */
#loadMore {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color:#76111d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

/* ---------------------------------------------------------------------------------- */
/* ---------------------------------- Section-Contact ------------------------------- */
/* ---------------------------------------------------------------------------------- */

.containerSectionContact {
  padding:20px;
  background-image: url(./img/contact/fondo-comic.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#contact {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

#contact form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  color: #130101;
}

#contact form textarea {
  height: 120px;
  resize: vertical;
}

#contact form button {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background-color:#76111d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact form button:hover {
  background-color:#602a2f;
}

.error {
  color: #d9534f;
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 10px;
}

#successMessage {
  color: #5cb85c;
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
}

/* -------------------------------------------------------------------------- */
/* ---------------------------------- Footer -------------------------------- */
/* -------------------------------------------------------------------------- */

footer {
  background-color:#525056;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
}

.logoFooter {
  width: 2rem;
}

.nombreCreador {
  font-size: 10px;
  font-weight: lighter;
  margin: 0;
  padding-bottom: 5px;
  padding-top: 5px;
}