body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
}


/* HEADER Y NAVBAR */

header {
  position: fixed; /* El navbar está fijo en la parte superior */
  top: 0;
  left: 0;
  right: 0;
  background-color: #192e5a;
  z-index: 1050; /* Asegura que el navbar se quede encima del contenido */
  padding: 0.5rem 1rem; /* Espaciado ajustado */
  width: 100%;
}

.navbar-brand img {
  max-height: 50px;
  margin-left: 10px;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  color: #ffffff;
  margin-right: 1rem;
  transition: color 0.3s;
}


/* SIDE BAR */

.sidebar {
  width: 310px;
  background: #e9ecef;
  height: calc(100vh - 92px); /* Resta la altura del header */
  position: fixed;
  left: 0;
  top: 92px; /* Empieza justo debajo del header */
  padding: 15px;
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto; /* Scroll interno */
}

.sidebar h2 {
  font-size: 20px;
  margin-bottom: 30px;
}

.category1, .category2, .category3 {
  margin: 20px 0;
  cursor: pointer;
}

.subcategory2 input, .subcategory3 input{
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 15px;
}

.close-button {
  display: none;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1101;
}

#ultimo_div_sidebar{
  margin-bottom: 25px;
}


.main-content {
  width: 100%;
  align-items: center;
  margin-left: 310px; /* Espacio para el sidebar */
  margin-top: 92px; /* Espacio para el header */
  padding: 25px;
  transition: margin-left 0.3s ease;
}

/* BOTÓN DE FILTROS  (ABRIR SIDEBAR) */

.menu-button {
  display: none;
  background: #0d6efd;
  border-radius: 0.375rem;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  z-index: 1100;
  margin: 20px 0;
  margin-left: 25px;
}


/* TARJETAS */

.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Se adapta dinámicamente */
  gap: 20px;
}

.card-container {
  padding: 15px;
  text-align: center;
  perspective: 1000px; /* Profundidad para el efecto 3D */
}

.card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: opacity 0.6s ease, transform 0.6s ease; /* Suavizar el volteo y opacidad */
  transform-style: preserve-3d; /* Habilitar el efecto 3D */
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease-in-out;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hidden {
  display: none !important;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.card.hide { /* esta clase se setea en Javascript */
  opacity: 0; /* Desaparecer la tarjeta */
  visibility: hidden; /* Evitar que ocupe espacio */
}

@keyframes flipIn {
  from {
    transform: rotateY(90deg); /* Comienza volteada */
    opacity: 0; /* Invisible al inicio */
  }
  to {
    transform: rotateY(0deg); /* Aparece de frente */
    opacity: 1; /* Completamente visible */
  }
}


/* MODALES */

.modal-flip { /* esta clase se setea en Javascript */
  animation: flipIn 0.4s ease-in-out; /* Animación al abrir la modal */
  transform-origin: center; /* Punto de referencia del volteo */
}

.modal-header {
  background-color: #192e5a;
  color: #ffffff;
}

.btn-close {
  filter: invert(1);
}


/* CONTACTO-INFO */

.contact-container{
  margin-top: 100px;
}

.logo-contact {
  margin: 0 auto 20px auto;
  max-width: 150px;
}

.label-contact-header{
  color: #192e5a;
}

.social-links {
  display: flex;
  gap: 15px; /* Espacio entre íconos */
  margin-top: 10px;
}

.social-icon {
  text-decoration: none;
  color: #333; /* Color inicial del ícono */
  font-size: 30px; /* Tamaño de los íconos */
  transition: transform 0.3s, color 0.3s;
}

@media (hover: hover) {
  .social-icon:hover {
    transform: scale(1.2); /* Agranda el ícono al pasar el cursor */
    color: #026322; /* Cambia de color al hacer hover */
  }
}
  
  
/* CONTACTO-FORMULARIO */

.google-form-iframe {
  width: 100%;
  height: 100vh;
}


/* FOOTER */

.linea-footer {
  padding-top: 2%;
  padding-left: 5%;
  padding-right: 5%;
}


/* BOTÓN SUBIR */
.subir-button {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: black;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.subir-button i{
  color: white;
  font-size: 24px;
}

.subir-button:hover {
  transform: scale(1.1);
}


/* BOTÓN DE WHATSAPP */

.whatsapp-button {
  position: fixed;
  bottom: 150px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.whatsapp-button img {
  width: 45px;
  height: 45px;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}



/* RESPONSIVE */

@media (max-width: 1024px) {
  .sidebar {
      transform: translateX(-100%);
      position: fixed;
      height: calc(100vh - 92px);
      top: 92px;
  }

  .sidebar.show-sidebar {
      transform: translateX(0);
  }

  .main-content {
      margin-left: 0;
  }

  .menu-button {
      display: block;
  }

  .sidebar .close-button {
      display: block;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
      width: 40%;
  }
}

@media (max-width: 768px) {
  .sidebar {
      width: 80%;
  }

  .sidebar .close-button {
      display: block;
  }

  #ultimo_div_sidebar{
    margin-bottom: 75px;
  }

  .productos-container {
    grid-template-columns: repeat(1, 1fr);
  }
}