html, body {
    margin: 0;
    padding: 0;
}

/* HEADER encabezado*/
header {
    height: 111px;
}
header img {
    width: 220px;
    height: 60px;
    border-radius: 10px;
    position: relative;
    bottom: 5px;
    margin-right: 10px;
}
nav {
  display: flex;
  justify-content:center;
  align-items: center;
  padding: 20px;
  gap: 30px;
  
}

select,
a {
    font-family: serif;
    font-size: 20px;
    color: rgb(14, 14, 66);
    border: none;
    text-decoration: none;
    
}
select{
    width: 100px;
    
}

/*HEADER 2 fondo de la palabra que se mueve*/ 
.header2 {
    position: relative;
    overflow: hidden;
    height: 30px; /* ajustá el alto que quieras */
    background-color: rgb(14, 14, 66);
}
.frase-movible {
    position: absolute;
    white-space: nowrap;
    color: white;
    font-weight: bold;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* MAIN PRODUCTOS */
main {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 30px;
    align-items: center;
}

.caja-productos {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}
.caja-productos h2 {
    font-family: serif;
    color: rgb(14, 14, 66);
    text-align: center;
}
.fila-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    justify-items: center;
}
.producto {
    width: 100%;
    max-width: 200px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.producto:hover {
    transform: scale(1.03);
}
.producto h3 {
    font-family: serif;
    font-size: 15px;
}
.producto h4 {
    font-family: serif;
    font-size: 18px;
}
.producto img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}
.carrito,
.ver-mas {
    font-size: 19px;
    color: rgb(14, 14, 66);
    border: none;
}
.carrito:hover {
    color: blue;
}
#mensaje-carrito {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #222;
  color: white;
  padding: 20px 40px;
  font-size: 20px;
  border-radius: 10px;
  z-index: 1000;
  background-color: rgb(14, 14, 66);
}

.ver-mas {
    width: 100px;
    margin: 40px auto 0;
}
.ver-mas:hover {
    color: red;
}

/* FOOTER */
footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    height: auto;
    background-color: rgb(14, 14, 66);
    color: white;
    font-family: serif;
    padding: 50px;
    box-sizing: border-box;
    margin-top:200px;
    align-items: center;

    
}

footer img {
    width: 200px;
    height: 60px;
    border-radius: 10px;
}
.sub-form{
  width: 290px;
  height: 280px;
  background-color: rgb(14, 14, 66);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  
  padding: 10px;
  
}
.sub-form input{
  width: 200px;
}
.sub-form h2{
  color: white;
}
.sub-form p{
  text-align: center;
}
.sub-form button{
  background-color: rgb(14, 14, 66);
  border: 2px solid white;
}

/* PROMOCIONES */
.caja-promos {
    width: 1500px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.caja-promos img {
    width: 100%;
    height: 100%;
}

.promociones {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}

.promociones h2 {
  color: #1c1c3c;
  font-size: 28px;
  margin-bottom: 30px;
}

.fila-promos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.promo-producto {
  background-color: white;
  padding: 20px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.promo-producto:hover {
  transform: scale(1.05);
}

.promo-producto img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.promo-producto h3 {
  font-size: 18px;
  margin: 10px 0 5px;
}

.precio-anterior {
  color: gray;
  text-decoration: line-through;
  font-size: 15px;
  margin: 5px 0;
}

.precio-oferta {
  color: red;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.promo-producto button {
  background-color: rgb(14, 14, 66);
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.promo-producto button:hover {
  background-color: rgb(28, 28, 100);
}

/* CONTACTO */
form {
  width: 90%;
  max-width: 850px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

form h2,
form h3 {
  text-align: center;
  color: rgb(14, 14, 66);
  font-family: serif;
  margin-bottom: 10px;
}

/* BLOQUE DE CAMPOS EN FORMATO FILA */
.bloque1,
.bloque2 {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Label - Input */
  gap: 10px 20px;
  align-items: center;
  margin-top: 20px;
}

/* Inputs de texto y textarea comunes */
form input,
form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Textarea específico */
form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Etiquetas */
form label {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

/* Botón de envío */
form button {
  display: block;
  margin: 30px auto 0;
  font-size: 18px;
  background-color: rgb(14, 14, 66);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: rgb(28, 28, 100);
}


/* ACERCA DE */
.main-acercade {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    margin: auto;
    justify-content: center;
    padding: 1%;
}
.titulo-acercade {
    width: 100%;
    text-align: center;
    background-color: rgb(243, 243, 243);
    font-family: serif;
}
.titulo-acercade h1 {
    font-size: 40px;
}
.titulo-acercade p {
    font-size: 19px;
}
.titulo-acercade span {
    color: rgb(14, 14, 66);
}
.cont-acercade {
    display: flex;
    align-items: center;
    gap: 100px;
    font-size: 18px;
    text-align: justify;
}
.cont-acercade img {
    width: 300px;
    height: 150px;
    margin-right: 40px;
}
.cont2-acercade {
    font-size: 18px;
    text-align: justify;
}
.cont2-acercade span {
    color: rgb(14, 14, 66);
    font-size: 25px;
    display: inline-block;
    margin: 20px 0;
}
.valores {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.caja {
    width: 320px;
    height: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.caja img {
    width: 100px;
    height: 100px;
}
/*SUCURSALES*/
/* Sucursales */
.h1-sucursal{
    text-align: center;
}
.contenedor{
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 100px;
}
.caja-sucur {
    width: 540px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sucursal {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: serif;
}
.sucursal img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}
.info-sucursal {
    display: flex;
    flex-direction: column;
}
.info-sucursal{
    color: rgb(14, 14, 66);
}
.info-sucursal p {
    margin: 0;
    line-height: 1.5;
}
.info-sucursal span {
    font-weight: bold;
    color: #333;
}
/*Refrigeracion*/
.seccion-izquierda {
  width: 200px;
}
.seccion-izquierda .categoria {
  border-bottom: 2px solid #cfcece;
}
.seccion-izquierda h4 {
  font-weight: bold;
  color: #333;
}

/* REFRIGERACIÓN PRODUCTOS */
.contenedor-principal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  max-width: 1300px;
  margin: 20px auto 0 auto;
  padding: 20px;
}

.main-entero {
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 1300px;
}

.caja-entero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
}

.producto-entero {
  width: 100%;
  max-width: 200px;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.producto-entero:hover {
  transform: scale(1.03);
}

.producto-entero img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.producto-entero h3 {
  font-family: serif;
  font-size: 15px;
}

.producto-entero h4 {
  font-family: serif;
  font-size: 18px;
}

.carrito {
  font-size: 16px;
  padding: 8px 12px;
  margin-top: 10px;
  background-color: #fff;
  border: 1px solid #aaa;
  cursor: pointer;
}
.carrito:hover {
  color: blue;
}

/* para buscar */
#buscador {
  font-size: 16px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
  font-family: serif;
}

select {
  width: 140px;
  font-size: 18px;
}
