html{
    width: 100%;
    background-color: rgb(184, 200, 208);
    box-sizing: border-box;
}
body{

    width: 90%;
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin:auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.nav-bar{
    position: sticky;
    top:0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #0d0e28;
    border-radius: 8px;
    z-index: 1;

    
}
.nav-items li a{
    color: rgb(224, 217, 217);
    text-decoration: none;
}
.nav-items li a:hover{
    text-decoration: underline;
}
.logo{
    width:20%;
    
}
.menu-toggle {
    font-size: 32px;
    cursor: pointer;
    display: none;
    margin-left: auto;
    margin-right: 15px;
    color: white;
}
.nav-items ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-items li{
    margin: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    color: white;
}
.image{
    width:90%;
    display: block;
    max-width:800px;
    margin-top:20px;
    margin-bottom: 20px;;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid #0d0e28;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

}

article{
    text-indent: 20px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
}
h1{
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}
h2{
    text-align: center;
    margin-left: 30px;
    margin-right: 30px;
    background-color: rgb(184, 200, 208);
    border-radius: 8px;
    padding: 10px;
}
h3{
    text-align: center;
    background-color: #0d0e28;
    padding: 10px;
    border-radius: 8px;
}
h3 a{
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

h3:hover{
    background-color: #003f82;
    transform: scale(0.97);
}
h4{
    padding-left: 10px;
    padding-right: 10px;;
    margin-top: 0;
    margin-bottom: 0;
}

.galeria{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:20px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}
.tarjeta{
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px;
}
.tarjeta:hover {
    transform: scale(1.05);
}
.imagen-container {
    height: 480px; /* Altura fija para todas las imágenes */
    overflow: hidden;
    
}
.imagen {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Recorta para mantener proporción */
}

.titulo {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}
.descripcion {
    padding: 10px;
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.ver-mas-container {
    text-align: center;
    margin: 20px 0;
}
.ver-mas-boton {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 10px;
    background-color: #0d0e28;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}
.ver-mas-boton:hover {
    background-color: #003f82;
    transform: scale(1.05);
}



.catalogo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

.tarjeta-producto {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 550px;
}

.tarjeta-producto:hover {
    transform: scale(1.05);
}

.imagen-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
}

.imagen {
    width: auto;
    height: 100%; /* Altura completa del contenedor */
    object-fit: contain; /* Mantener la proporción y mostrar completa */
    max-width: 100%;
}

.titulo {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

.material {
    font-size: 1rem;
    color: #666;
    margin: 5px 0;
}

.descripcion {
    padding: 10px;
    font-size: 0.9rem;
    color: #555;
}

.btn-cotizacion {
    display: inline-block;
    margin: 10px auto;
    padding: 8px 16px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-cotizacion:hover {
    background-color: #218838;
}

.prensa {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
}
.articulos-prensa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.articulo {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.imagen-articulo {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
}
.contenido-articulo {
    padding: 20px;
    text-align: left;
}
.fuente-fecha {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
}
.boton-leer {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.boton-leer:hover {
    background-color: #004a99;
}

.video-articulo {
    margin-bottom: 15px;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.contacto {
  padding: 2em;
  background-color: #f8f8f8;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.contacto h2 {
  text-align: center;
  color: #333;
  margin-bottom: 1em;
}

.info-contacto p {
  font-size: 1.1em;
  margin: 0.5em 0;
}

.enlace-ws {
  color: green;
  font-weight: bold;
  text-decoration: none;
}

.enlace-ws:hover {
  text-decoration: underline;
}

.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer a {
  color: #aad;
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  text-decoration: underline;
}

.ubicacion {
  text-align: center;
  padding: 30px 20px;
}

.mapa-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.boton-waze {
  margin-top: 1rem;

}

.boton-waze button {
  background-color: #00b3ff;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: auto;
  margin-right: auto;
  display: block;
  align-items: center;
  margin-bottom: 20px;

}
.enlace-waze {
  text-decoration: none;
}

.boton-waze button:hover {
  background-color: #008ecc;
}

#back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #444;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease-in-out;
}

#back-to-top:hover {
  background-color: #222;
}

@media screen and (max-width: 600px) {
    .menu-toggle {
        display: block;
        font-size: 32px;
        cursor: pointer;
        margin-left:auto ;
        margin-right: 15px;
    }

    .nav-items {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        max-width: 100%;
        transform: translateX(-50%);
        background-color: #0d0e28;
        position: absolute;
        top: 60px;
        margin: auto;
        left: 50%;
        text-align: center;
        z-index: 1;
        border-radius: 8px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-items.active {
        display: flex;
        
    }

    .nav-items ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        color: white;
       
    }

    .nav-items li {
        margin: 10px 0;
        font-size: 18px;
        width: 100%;
        text-align: center;
        color: white;
    }
    .logo{
        width:30%;
        
    }
}

@media screen and (min-width: 900px) {
    .tarjeta {
        width: 30%; /* Tres tarjetas por fila */
    }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    .tarjeta {
        width: 45%; /* Dos tarjetas por fila */
    }
}

@media screen and (max-width: 599px) {
    .tarjeta {
        width: 90%; /* Una tarjeta por fila */
    }
}

@media screen and (min-width: 900px) {
    .tarjeta-producto {
        width: 30%; /* Tres tarjetas por fila */
    }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    .tarjeta-producto {
        width: 45%; /* Dos tarjetas por fila */
    }
}

@media screen and (max-width: 599px) {
    .tarjeta-producto {
        width: 90%; /* Una tarjeta por fila */
    }
}