* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #eaeaea;
  color: rgb(62, 139, 202);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: fixed;
  width: 100%;
  top: 0;  
  z-index: 1000;
}

header h1 {
  margin: 0;
}

nav a {
  color: rgb(62, 139, 202);
  margin: 0 1rem;
  text-decoration: none;
}

.productos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  grid-template-columns: repeat(1, 1fr);
}

.producto {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  max-width: 300px;
  width: 100%;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.producto h3 {
  margin-bottom: 10px;
}

.producto p {
  font-size: 14px;
  color: #555;
}

.imagenes-producto {
  display: flex;
  overflow-x: auto;
  gap: 10px;
}

.imagenes-producto img {
  height: 150px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  width: 266px;
}

/*.descripcion {
  display: none;
}

.producto:hover .descripcion {
  display: block;
  margin-top: 10px;
  transition: all 0.3s ease;
}*/

.descripcion {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.producto:hover .descripcion {
  max-height: 500px; /* Ajusta según el contenido */
  opacity: 1;
  margin-top: 10px;
}

#form-producto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}

#form-producto input,
#form-producto textarea {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#form-producto button {
  background-color: #0066cc;
  color: white;
  padding: 10px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}

#form-producto button:hover {
  background-color: #004d99;
}

.hero {
  background-color: #e4e4e4;
  color: rgb(62, 139, 202);
  padding: 4rem 2rem;
  text-align: center;         
}

.carousel {
  position: relative;
  width: 85%;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;     
  box-shadow: 0 0 10px #0003; 
}

.slides {
  display: flex;
  transition: transform 0.9s ease-in-out;
  width: 100%;
  height: 100%;
}

.slides img {
  height: 500px;        
  width: 100vw;         
  flex: 0 0 auto;       
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.section {
  padding: 3rem 2rem;
  background-color: #fff;
  margin: 1rem 0;
}


.grid-section_mobile {
  display: grid;
  grid-template-columns: repeat(2 1fr);
  gap: 20px;
}
.grid-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.card {
  background-color: #eaeaea;
  padding: 1rem;
  border-radius: 8px;
  flex: 1 1 200px;
}
.card2 {
  background-color: #dce1e8;
  padding: 1rem;
  border-radius: 8px;
  flex: 1 1 200px;
}

.card3 {
  background-color: #dce1e8;
  padding: 1rem;
  border-radius: 8px;
  flex: 1 1 200px;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #abc8e5;
  color: #fff;
  margin-top: 2rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-contenido {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
}

.cerrar {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.pregunta {
  margin-bottom: 15px;
}


#chatContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  font-family: sans-serif;
  z-index: 9999;
}

#chatHeader {
  background-color: #007bff;
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}

#chatBox {
  display: none;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#chatMessages {
  height: 180px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

#chatInput {
  width: calc(100% - 60px);
  border: none;
  padding: 10px;
  box-sizing: border-box;
  font-size: 14px;
}

#chatBox button {
  width: 67px;
  border: none;
  background: #007bff;
  color: white;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

#pdfContainer{
  position: relative;
  width: 20%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;     
  box-shadow: 0 0 10px #0003; 

}

.pdfview{
  display: inline-block; 
  position: relative; 
  width: auto; 
  height: 390px;
  transform: scale(1); 
  transform-origin: top left;
  
}

/* .pdfframe{
  display:inline-block; 
  position:relative; 
  width:100%; 
  height:100%;
} */
.page_1{
  display:inline-block; 
  position:relative; 
  width:100%; 
  height:100%;
}

.div_abri_pdf{
  position:absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  z-index:10;
  cursor: pointer;
}

