@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto+Slab:wght@100..900&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Siempre 4 columnas */
  gap: 1.5rem;
  width: 90%;
  max-width: 1800px; /* 400px x 4 tarjetas */
  box-sizing: border-box;
  margin-left: -250px;
  margin-top: 50px;
}

.card {
  background-color: #0a3e44;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 400px;
}

.card-image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.card-content {
  padding: 1rem;
}

.card-title {
  color: #93d3c4;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card-modelo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #93d3c4;
  margin-bottom: 0.5rem;
}

.card-precio {
  color: #93d3c4;
  margin-bottom: 1rem;
}

#secret {
    display:none;
}

.button-group {
  display: flex;
  gap: 0.5rem;
}

.button {
  padding: 0.5rem 1rem;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button.read {
  background-color: #3498db;
  font-family: 'Montserrat', sans-serif;
}

.button.read:hover {
  background-color: #2980b9;
}

.button.quote {
  background-color: #2ecc71;
  font-family: 'Montserrat', sans;
}

.button.quote:hover {
  background-color: #27ae60;
}

.no-products {
  text-align: center;
  grid-column: span 3;
  padding: 4rem 0;
}

.no-products h2 {
  font-size: 2rem;
  color: #555;
}

.no-products p {
  color: #777;
  font-size: 1.2rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
}

#cotizar-title {
  display:none;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal-leer-content {
  background-color:#93d3c4;
  padding:30px;
  border-radius: 8px;
  display: flex;
  flex-wrap: nowrap;           /* Evita que los elementos salten de línea */
  gap: 20px;
  align-items: flex-start;     /* Alinea arriba los dos bloques */
  width: 900px;
}

/* Carrusel a la izquierda */
.carousel {
  flex: 0 0 400px;             /* No se expande ni se contrae, ancho fijo */
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

/* Imagen del carrusel */
.carousel-img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-img.active {
  display: block;
}

/* Botones de navegación del carrusel */
.carousel-buttons {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-buttons button {
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 20px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 10%;
}

.carousel-buttons button:hover {
  background-color:#1c2833;
}

#btn-ver-video {
  margin-top: 40%;
  background-color: #2980b9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

#btn-ver-video:hover {
  background-color: #1c5980;
}


/* Datos del producto a la derecha */
.modal-details {
  flex: 1;                     /* Ocupa el resto del espacio disponible */
  min-width: 250px;
  max-width: 100%;          /* Evita que se desborde */
  margin-left:50px;
  font-size: 18px;
  color:#0a3e44;
}

.modal-details p {
  margin-top: 14px;
  color:#0a3e44;
}
