body {
  font-family: "Roboto", sans-serif;
  background-color: #f2f2f2;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  position: sticky; /* Add this line to make the header sticky */
  top: 0; /* Add this line to position the header at the top */
  z-index: 100; /* Add this line to ensure the header is above other elements */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin-right: 10px;
}

nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  position: relative;
}

nav a:hover {
  color: #2b87d1;
  background-color: #e8f4fc;
}

nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #333;
  bottom: -3px;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

nav a:hover::after {
  opacity: 1;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
}

p {
  text-align: justify;
  line-height: 1.5;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 0;
}

h3 {
  text-align: center;
}

li {
  margin-bottom: 5px;
  margin-top: 5px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive td:first-child {
  text-align: center; /* Cambia la alineación a centro */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #2b87d1;
  color: #fff;
}

td:first-child {
  text-align: left;
}

/* Estilo de los botones */
.btn {
  display: inline-block;
  background-color: #2b87d1;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin-top: 20px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #1862a8;
}

/* Estilo de los enlaces */
a {
  color: #2b87d1;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1862a8;
}

.product-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: calc(25% - 15px);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product img {
  max-width: 80%;
  height: auto;
  margin-bottom: 15px;
}

.product h2 {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.2;
}

.product p.price {
  font-size: 1.3em;
  margin: 10px 0;
  font-weight: bold;
  color: #4a4a4a;
}

@media (max-width: 1200px) {
  .product {
    width: calc(33.33% - 13.33px);
  }
}

@media (max-width: 768px) {
  .product {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .product {
    width: 100%;
  }
}
/* Footer */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #f2f2f2;
  padding: 0px;
  text-align: center;
}

.footer-bottom {
  margin-top: 3px;
}

.footer-bottom p {
  font-size: 12px;
  color: #888;
  text-align: center;
}

.coming-soon {
  text-align: center;
  padding: 20px;
}

.coming-soon h2 {
  font-size: 2em;
  color: #2b87d1;
}

.coming-soon p {
  /*font-size: 1.2em;*/
  color: #333;
  margin-bottom: 20px;
}

.coming-soon-image {
  max-width: 400px;
  height: auto;
}

.centered-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  height: 100%;
  align-items: center;
}

.app-promo {
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin: 24px 0;
  box-sizing: border-box;
}

.app-promo h2 {
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
}

.app-promo p {
  margin-bottom: 0;
}

.app-promo-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #2b87d1;
  color: #fff;
  border: none;
  margin: 8px;
  border-radius: 5px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color 0.2s;
  margin-right: 10px; /* Add margin-right to create space between the buttons */
}

.cta-button:last-child {
  margin-right: 0; /* Remove margin-right for the last button to avoid extra spacing */
}

.cta-button:hover {
  background-color: #1862a8;
  color: #fff;
}

.contact-form {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.contact-form iframe {
  width: 100%;
  height: 100%;
  min-height: 800px;
  border: none;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  display: inline-block;
  max-width: 50%;
  height: auto;
}

/* Agregar reglas de estilo para dispositivos móviles */
@media (max-width: 768px) {
  header {
    padding: 10px; /* Ajustar el padding para dispositivos móviles */
  }

  nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 500px; /* Ajustar el ancho máximo del menú */
    margin: 0 auto; /* Centrar el menú horizontalmente */
  }

  nav li {
    margin-right: 10px; /* Restablecer el margen derecho */
    margin-bottom: 0; /* Restablecer el margen inferior */
  }

  nav a {
    font-size: 14px; /* Ajustar el tamaño del texto para dispositivos móviles */
  }
  .cta-button {
    font-size: 14px; /* Reducir el tamaño de la fuente para pantallas pequeñas */
  }

  .app-promo {
    padding: 18px;
  }

  .table-responsive {
    width: 90vw;
  }

  table {
    width: 90vw; /* Asegura que la tabla no desborde su contenedor */
    font-size: 10px; /* Reduce el tamaño de la fuente para mejorar la legibilidad */
  }
  td,
  th {
    padding: 5px;
  }
}

/* Custom styles for the new form */
.calculator-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.calculator-container h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.calculator-container label {
  display: block;
  font-size: 1em;
  margin-bottom: 5px;
}

.calculator-container select,
.calculator-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.calculator-container button {
  display: block;
  width: 100%;
  background-color: #2b87d1;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.calculator-container button:hover {
  background-color: #1862a8;
}

.calculator-container #m2Muro,
.calculator-container #volumenValue {
  background-color: #f2f2f2;
  cursor: not-allowed;
}

/* Adjust the form styles for mobile devices */
@media (max-width: 768px) {
  .calculator-container input[type="number"] {
    width: 100%;
    max-width: 100%;
  }
}

/* Blog --------------------------------------------------------------*/
.blog-main {
  max-width: 900;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.blog-header {
  text-align: center;
  margin-bottom: 20px;
}

.blog-title {
  font-size: 2.5em;
  margin: 0;
}

.blog-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-article img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.blog-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.blog-article h2 {
  text-align: center; /* Centra el texto horizontalmente */
  margin-left: auto; /* Junto con margin-right, centra el bloque si es necesario */
  margin-right: auto;
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.blog-article p {
  font-size: 1em;
  color: #777;
  text-align: center;
  margin-bottom: 20px;
}

.blog-article .btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: #ffffff;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.blog-article .btn:hover {
  background-color: #0056b3;
}

.blog-article-full {
  max-width: 900px; /* o el valor que prefieras, ajustado al contenedor principal */
  margin: 0 auto; /* centra el artículo en la página */
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden; /* asegura que todo el contenido se mantenga dentro del borde redondeado */
}

.blog-article-full img {
  max-width: 100%; /* asegura que la imagen no sea más ancha que el contenedor */
  height: auto; /* mantiene la proporción de la imagen */
  object-fit: cover; /* se asegura de que la imagen cubra el área asignada sin perder su proporción */
  border-radius: 5px; /* opcional, si deseas bordes redondeados en las imágenes */
  margin-bottom: 20px; /* agrega espacio debajo de la imagen */
  display: block; /* asegura que la imagen no tenga espacio extra alrededor */
  margin-left: auto; /* junto con margin-right, centra la imagen si es más estrecha que el contenedor */
  margin-right: auto;
}

/* Media queries para ajustar estilos en dispositivos más pequeños */
@media (max-width: 768px) {
  .blog-article-full {
    padding: 10px; /* reduce el padding en dispositivos más pequeños */
  }

  .blog-article-full img {
    width: 100%; /* asegura que las imágenes se ajusten a la pantalla en dispositivos más pequeños */
    object-fit: scale-down; /* ajusta la imagen dentro de su contenedor sin recortarla */
  }
}
.blog-article-full h2 {
  text-align: center; /* Centra el texto horizontalmente */
  margin-left: auto; /* Junto con margin-right, centra el bloque si es necesario */
  margin-right: auto;
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
  margin-top: 50px;
}

/* Menú hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 4px;
  z-index: 1050; /* Asegura que esté por encima de otros elementos */
}

@media (max-width: 768px) {
  .hamburger {
    display: block; /* Asegura que el botón sea visible en móviles */
  }

  .menu-container {
    display: none; /* Oculto por defecto en móviles */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .menu-container.is-open {
    display: flex; /* Mostrar cuando esté activo */
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav li {
    display: block;
    width: 100%;
  }

  header {
    min-height: 25px;
  }
}
