@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
     font-family: "Poppins", sans-serif;
     background-color: #1b1726;
}

img{
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-image: url(imagenes/MJ.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 80px 0;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #FF5A2C;
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #FFFFFF;
    font-weight: 600;
    display: block;
}

.menu .navbar ul li a:hover {
    color: #FF5A2C;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.header-content {
    display: flex;
}

.header-txt {
    flex-basis: 50%;
}

.header-txt h1 {
    font-size: 60 px;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 25px;
}

.header-txt span {
    color: #FF5A2C;
}

.header-txt p {
    font-size: 17px;
    color: #e0e0e0;
    margin-bottom: 45px;
}

.butons {
    display: flex;
}

.btn-1, .btn-2, .btn-3 {
    display: inline-block;
    padding: 11px 35px;
    border: 2px solid #FF5A2C;
    border-radius: 25px;
    margin-right: 25px;
    font-size: 17px;
    color: #FFFFFF;
}

.btn-1:hover{
    background-color: #FF5A2C;
}

.popular {
    padding: 100px 0;
    text-align: center;
}

h2 {
    color: #FFFFFF;
    font-size: 35px;
    margin-bottom: 45px;
}

.popular-content {
    display: flex;
    justify-content: space-between;
}

.popular-content img {
   width: 100%;
  height: 250px; 
  object-fit: cover; 
  border-radius: 10px; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 
  transition: transform 0.3s ease;
}
.popular-content img:hover,
.product-content img:hover {
  transform: scale(1.05); 
}

.product-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.product-1 {
    background-color: #2a223a;
}

.product-txt {
    padding: 50px 30px;
}

h3 {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price p{
    font-size: 17px;
    color: #FF5A2C;
}

.btn-2 {
    padding: 5px 25px;
    background-color: #FF5A2C;
    margin-right: 0;
}

.contact {
    padding: 150px 300px;
}
.contact-content {
    background-color: #2a223a;
    text-align: center;
    padding: 50px;
    border-radius: 50px;
}

form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

input {
    padding: 18px 25px;
    background-color: #3F3456;
    border: 0;
    border-radius: 25px;
    outline: none;
    margin-right: 10px;
    color: #FFFFFF;
    font-size: 17px;
}
::placeholder {
    color: #e0e0e0;
    font-size: 17px;
}
.btn-3 {
    background-color: #FF5A2C;
    cursor: pointer;
    margin-right: 0;
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
}

.link ul {
    display: flex;
}

.link ul li > a {
    font-size: 17px;
    color: #FFFFFF;
    margin-right: 20px;
}

.link ul li > a:hover {
    color: #FF5A2C;
}

@media (max-width:991px){

    .menu{
        padding: 20px;
    }
    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0%;
        right: 0;
        background-color: #FF5A2C;
        display: none;
    }

    .menu .navbar ul li a:hover {
        color: aqua;
    }
    .menu .navbar ul li {
        width: 100%;
    }

    #menu:checked ~ .navbar {
        display: initial;
    }
    .header {
        min-height: 0vh;
        padding: 80px 30px 50px 30px;
    }
    
    .header-txt {
        text-align: center;
        flex-basis: 100%;
    }

    .header-txt h1 {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .butons {
        justify-content: center;
    }

    .btn-1:last-of-type {
        margin-right: 0;
    }

    .popular {
        display:none;
    }

    .product {
        padding: 30px;
    }

    .product-content {
        grid-template-columns: repeat(1,1fr);
        gap: 30px;
    }

    .product-1 img {
        width: 100%;
    }

    .contact {
        padding: 30px;
    }

    form {
        flex-direction: column;
    }

    input {
        margin: 0 0 20px 0;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .link ul {
        margin-top: 20px;
    }

    /* 🎨 Galería de imágenes responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.popular img,
.product-1 img {
  width: 100%;
  height: 250px; 
  object-fit: cover; 
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.popular img:hover,
.product-1 img:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

}
.cuadro-popular {
  width: 100%; /* Ocupa todo el ancho de su columna */
  height: 250px; /* Altura fija para todos */
  overflow: hidden; /* Oculta partes que sobresalgan */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuadro-popular img {
  height: 100%; /* La imagen ocupa toda la altura */
  width: auto; /* Mantiene proporción */
  object-fit: cover; /* Recorta la imagen si es necesario */
}

.cuadro-popular {
  width: 200px;   /* ancho fijo de cada cuadro */
  height: 250px;  /* altura fija */
  overflow: hidden;
  border-radius: 10px;
  background-color: #000; /* opcional, para resaltar */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuadro-popular img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene proporción y recorta si es necesario */
}

#nosotros h3 {
  color: #ffc107; /* Color dorado similar al botón */
  margin-bottom: 15px;
}

#nosotros p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-precio {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-precio:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.popup-oferta {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background-color: #ffc107; /* color de fondo */
  color: #000;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 9999;
}

/* Popup de oferta */
.popup-oferta {
  position: fixed;
  top: -100px; /* empieza fuera de pantalla */
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107; /* amarillo */
  color: #000;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 9999;
}

.mapa {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-1 img {
  width: 100%;        /* Ocupa todo el ancho del contenedor */
  height: 250px;      /* Fija la altura (puedes ajustar a tu gusto) */
  object-fit: cover;  /* Recorta la imagen si es necesario, mantiene proporción */
  border-radius: 10px; /* Opcional, redondea esquinas */
}

#popupImagen img {
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.1); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
