/* navbar.php */

.nav-link {
  color: #f4d3a2;
}

.navbar-nav .nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

/* productos.php */

.pagination .page-link {
  color: #ff4d4d;
}

.pagination .page-link:hover {
  background-color: #ff9999;
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: #ff4d4d;
  border-color: #ff4d4d;
  color: white;
}

/* barraDeArriba.php */

.barraDeArriba {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: black;
  color: white;
  gap: 1%;
  font-size: 1.8vh;
}

.barraDeArriba a {
  text-decoration: none;
  color: white;
  padding-right: 2%;
}

/* crearCuenta.php */

.botonRegistro {
  width: 90%;
}

.contenedor-botones-registro {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contenedor-botones-registro small {
  grid-column: 1/3;
  color: red;
  font-style: italic;
  font-size: 2vh;
}

/* admin login.php */

.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.login-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #0056b3;
}

/* footer.php */
.img-fluid {
  width: auto;
  height: auto;
  object-fit: cover;
}

/* botonFlotante.php */

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.whatsapp-button img {
  width: 40px;
  height: 40px;
}

.whatsapp-button:hover {
  background-color: rgb(136, 114, 18);
}

/* contacto.php */
.contenedor-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 5%;
}

.contenedor-contacto form {
  grid-column-start: 2;
}

/* categorias.php */
.contenedor-categorias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2% 10% 2% 10%;
}

.custom-card {
  --card-height: 60vh;
  --card-width: calc(var(--card-height) / 1.5);
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* padding: 0 36px; */
  perspective: 2500px;
  border: 1px gold solid;
  margin: 5%;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrapper {
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.custom-card:hover .wrapper {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}

.wrapper::before,
.wrapper::after {
  content: "";
  opacity: 0;
  width: 100%;
  height: 80px;
  transition: all 0.5s;
  position: absolute;
  left: 0;
}

.wrapper::before {
  top: 0;
  height: 100%;
  background-image: linear-gradient(to top,
      transparent 46%,
      rgba(12, 13, 19, 0.5) 68%,
      rgba(12, 13, 19) 97%);
}

.wrapper::after {
  bottom: 0;
  opacity: 1;
}

.custom-card:hover .wrapper::before,
.wrapper::after {
  opacity: 1;
}

.custom-card:hover .wrapper::after {
  height: 120px;
}

.title {
  width: 80%;
  transition: transform 0.5s;
}

.custom-card:hover .title {
  transform: translate3d(0%, -50px, 400px);
}

.character {
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.custom-card:hover .character {
  opacity: 1;
  transform: translate3d(0%, -30%, 100px);
}

/* detalles.php */

.product-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

:root {
  --primary-color: #dc3545;
  --secondary-color: #343a40;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --transition: all 0.3s ease;
}

.product-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.product-image-container {
  padding: 2rem;
  border-right: 1px solid #eee;
}

.product-main-image {
  max-height: 300px;
  /* max-height: 300px; */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  border-radius: 8px;
}

.product-thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  border-radius: 5px;
  height: 80px;
  object-fit: cover;
}

.product-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.product-details {
  padding: 2rem;
}

.product-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  font-size: 2rem;
  font-family: 'Gelasio', serif;
}

.product-code {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.product-features {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 2rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 500;
  font-size: 1.05rem;
}

.product-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.product-features li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.product-category-badge {
  background-color: var(--light-gray);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.product-auth-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.product-auth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  color: white;
}

.btn-primary-custom:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  color: white;
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  color: white;
}

.btn-secondary-custom:hover {
  background-color: #23272b;
  transform: translateY(-2px);
  color: white;
}

.product-price-notice {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-top: 1rem;
}

.product-back-button {
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.product-back-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.contenedor-detalles {
  padding: 0% 15% 0% 15%;
}

.variasImagenes {
  padding-top: 10%
}

/* productos.php */

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Asegura que todas las tarjetas tengan la misma altura */
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Ajusta el alto de la tarjeta al contenido */
}

.card-body .card-title {
  color: red;
  margin-bottom: 1rem;
  /* Espacio debajo del título */
  flex-grow: 0;
  /* Evita que el título ocupe más espacio del necesario */
  white-space: normal;
  /* Permite que el texto del título se ajuste a varias líneas si es necesario */
  word-wrap: break-word;
  /* Permite que las palabras largas se ajusten y no salgan del contenedor */
}

.card-text {
  color: rgb(54, 54, 54);
  font-weight: 500;
  flex-grow: 1;
}

.card-body .btn {
  margin-top: auto;
  /* Coloca el botón al final de la tarjeta */
  text-align: center;
  /* Centra el botón */
}

.card-img-top {
  max-height: 250px;
  /* Limita la altura de las imágenes para que no rompan el diseño */
  object-fit: cover;
  /* Asegura que la imagen mantenga la proporción sin deformarse */
}

/* subcategorias.php */

.container-subcategoria {
  display: grid;
  margin: 2vh;
  padding: 1vh;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2vh;
}

.card-subcategoria {
  width: auto;
  height: 100px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Mueve el texto a la derecha */
  text-align: right;
  padding-right: 25px;
  /* Espacio entre el texto y el borde derecho */
  color: white;
  font-size: 1.5em;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

.card-subcategoria:hover {
  transform: scale(1.05);
}

/* galeria.php */
.letra-productos-galeria {
  /* font-family: "DM Serif Display"; */
  font-family: "Gelasio";
}

/* ############################### Estilos de celular ############################### */
@media (width < 800px) {

  /* categorias.php */
  .custom-card {
    flex: 1 1 calc(50% - 2%);
    margin: 2%;
    --card-height: 30vh;
  }

  .h1Categorias {
    font-size: 1.8rem;
    /* Reduce el tamaño del texto */
    width: 100%;
    /* Asegura que ocupe el ancho completo */
    text-align: center;
    margin: 10px 0;
  }

  .contenedor-categorias {
    grid-template-columns: 1fr;
  }

  /* subCategorias.php */
  .container-subcategoria {
    grid-template-columns: 1fr;
  }

  /* detalles.php */
  .product-image-container {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .product-title {
    font-size: 1.5rem;
  }

}