/* RESET MARGEN Y PADDING */
html, body {
    margin: 0;
    padding: 0;
}

/* ======= HEADER ======= */
header {
    height: 111px;
    padding-top: 15px;
}

header img {
    width: 220px;
    height: 60px;
    border-radius: 10px;
    position: relative;
    bottom: 5px;   
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

nav button {
    width: 40px;
    height: 40px;
    border-color: rgb(14, 14, 66);
    cursor: pointer;
}

nav button img {
    width: 35px;
    height: 34px;
    position: relative;
    top: 1px;
    left: -5px;
}

select,
a {
    font-family: serif;
    font-size: 20px;
    color: rgb(14, 14, 66);
    border: none;
    text-decoration: none;
}

select {
    width: 100px;
}

/* ======= HEADER 2: Frase animada ======= */
.header2 {
    position: relative;
    overflow: hidden;
    height: 30px;
    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%);
}

/* ======= INICIO DE SESIÓN ======= */
#login-fondo {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

#login-content form {
    width: 450px;
    height: 350px;
}

#login-content form input {
    margin-top: 10px;
    margin-bottom: 10px;
}

#login-content input[type="submit"] {
    width: 100px;
    display: block;
    margin: 15px auto 0 auto;
    color: white;
    background-color: rgb(14, 14, 66);
}

#registro {
    width: 140px;
    font-size: 12px;
    background-color: #aaa;
}

#btn-cerrar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-right: -10px;
    width: 10px;
    height: 20px;
}

/* ======= MAIN PRODUCTOS ======= */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.caja-productos {
    width: 630px;
    height: 350px;
    display: flex;
    flex-direction: column;
    margin: 40px auto 60px auto;
    padding-bottom: 120px;
}

.caja-productos h2 {
    font-family: serif;
    color: rgb(14, 14, 66);
    text-align: center;
}

.fila-productos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.producto {
    width: 200px;
    text-align: center;
}

.producto h3 {
    font-family: serif;
    font-size: 15px;
}

.producto h4 {
    font-family: serif;
    font-size: 18px;
}

.producto img {
    width: 200px;
    height: 200px;
}

/* Botones agregar carrito y ver más */
.carrito,
.ver-mas {
    font-size: 19px;
    color: rgb(14, 14, 66);
    border: none;
    background: none;
    cursor: pointer;
}

.carrito:hover {
    color: blue;
}

#mensaje-carrito {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(14, 14, 66);
    color: white;
    padding: 20px 40px;
    font-size: 20px;
    border-radius: 10px;
    z-index: 1000;
}

.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: 360px;
    background-color: rgb(14, 14, 66);
    color: white;
    font-family: serif;
    position: relative;
    top: 200px;
    align-items: center;
}

footer img {
    width: 200px;
    height: 60px;
    border-radius: 10px;
}

.sub-form {
    width: 290px;
    height: 250px;
    background-color: rgb(14, 14, 66);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.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;
    color: white;
    cursor: pointer;
}

.sub-form button:hover {
    background-color: rgb(28, 28, 100);
}

/* ======= 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);
}

/* ======= FORMULARIO 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;
}

.bloque1,
.bloque2 {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Label - Input */
    gap: 10px 20px;
    align-items: center;
    margin-top: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form label {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

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 ======= */
.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;
    color: rgb(14, 14, 66);
}

.info-sucursal p {
    margin: 0;
    line-height: 1.5;
}

.info-sucursal span {
    font-weight: bold;
    color: #333;
}

/* ======= REFRIGERACIÓN ======= */
.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;
}

.caja-entero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}

.producto-entero {
    width: 300px;
    text-align: center;
}

.producto-entero img {
    width: 300px;
    height: 300px;
}

.producto-entero h3 {
    font-size: 16px;
}

.producto-entero h4 {
    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;
}
