* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: #f4f4f4; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER STICKY */
.main-header { position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.top-bar { background-color: #88C9DB; padding: 10px 0; }
.header-flex { display: flex; align-items: center; justify-content: space-between; }
.logo-box img { height: 75px; cursor: pointer; }

.search-box { flex-grow: 1; margin: 0 40px; }
.search-input-container { 
    background: white; 
    border-radius: 50px; 
    padding: 10px 20px; 
    display: flex; 
    align-items: center; 
}

.search-input-container input { 
    border: none; 
    outline: none; 
    width: 100%; 
    margin-left: 10px; 
    font-size: 16px;
}

.user-menu ul { list-style: none; display: flex; }
.user-menu li { margin-left: 20px; }
.user-menu a { text-decoration: none; color: #222; font-weight: 700; font-size: 13px; text-transform: uppercase; cursor: pointer; }

.category-bar { background-color: #7abccf; padding: 12px 0; }
.category-list { list-style: none; display: flex; justify-content: center; gap: 30px; }
.category-list a { text-decoration: none; color: #222; font-weight: 700; font-size: 13px; cursor: pointer; }

/* SECCIONES */
section { padding: 90px 0; }
h2.section-title { text-align: center; font-size: 35px; margin-bottom: 40px; font-weight: 900; }

.hero-section { 
    padding: 90px 0;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://thumbs.dreamstime.com/b/alimentos-congelados-en-un-refrigerador-de-gran-supermercado-borroso-vista-lateral-191049632.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
}
.hero-title h1 { color: white; text-align: center; font-size: 45px; font-weight: 900; margin-bottom: 30px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

.main-content-card { 
    background: white; 
    border-radius: 15px; 
    padding: 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    max-width: 1000px; 
    margin: 0 auto;
}

.banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.banner-card { border-radius: 15px; height: 220px; position: relative; color: white; overflow: hidden; display: flex; align-items: center; transition: 0.4s; }
.banner-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }

.banner-card::before { 
    content: ""; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    z-index: 2; 
}
.orange-banner::before { background: linear-gradient(90deg, rgba(247, 139, 0, 0.8), rgba(247, 139, 0, 0.3)); }
.dark-banner::before { background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); }

.banner-text { position: relative; z-index: 3; padding: 30px; max-width: 80%; }
.banner-text h3 { font-size: 24px; font-weight: 900; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

.banner-card img { 
    position: absolute; 
    top: 0; left: 0;
    width: 100%; height: 100%; 
    object-fit: cover; 
    z-index: 1; 
}

.btn-banner { background: white; color: #f78b00; padding: 10px 20px; text-decoration: none; border-radius: 8px; font-weight: 900; display: inline-block; }

/* CATEGORIAS */
.categories-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.category-item { background: #f9f9f9; padding: 20px; border-radius: 12px; width: 180px; text-align: center; transition: 0.3s; cursor: pointer; }
.category-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.category-item img { width: 60px; margin-bottom: 10px; }

/* PRODUCTOS */
.products-section { background: white; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { text-align: center; border: 1px solid #eee; padding: 20px; border-radius: 10px; transition: 0.3s; background: white; }

.btn-select { 
    background: #88C9DB; 
    color: white; 
    border: none;
    padding: 12px; 
    display: block; 
    width: 100%;
    border-radius: 5px; 
    font-weight: 700; 
    margin-top: 15px; 
    cursor: pointer;
    transition: 0.3s;
}
.btn-select:hover { background: #6fb3c5; }

.product-options {
    max-height: 0;
    overflow: hidden;
    background: #f8fdff;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    border-radius: 0 0 10px 10px;
    text-align: left;
}

.product-options.show {
    max-height: 600px;
    padding: 15px;
    border: 1px solid #88C9DB;
    border-top: none;
    margin-top: -5px;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.option-row:last-child { border-bottom: none; }

.option-info h4 { font-size: 14px; color: #222; margin-bottom: 2px; }
.option-info p { font-size: 12px; color: #666; margin: 0; }

.btn-add-inline {
    background: #222;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-add-inline:hover { background: #88C9DB; }

/* NOSOTROS */
.about-flex { display: flex; align-items: center; gap: 50px; }
.about-text h2 { font-size: 40px; color: #88C9DB; margin-bottom: 20px; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 10px; font-weight: 700; }
.check-list i { color: #88C9DB; margin-right: 10px; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: 15px 15px 0 #88C9DB; }

/* CONTACTO */
.contact-section { background-color: #88C9DB; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { color: white; font-size: 18px; line-height: 2; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px; border-radius: 8px; border: none; }
.btn-store { background: #222; color: white; border: none; padding: 15px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* BOTONES */
.floating-btns { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 2000; }
.wpp-btn { background: #25d366; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.cart-btn { background: #222; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.cart-btn span { position: absolute; top: -5px; left: -5px; background: #88C9DB; font-size: 10px; padding: 2px 6px; border-radius: 50%; }

@media (max-width: 900px) {
    .header-flex, .about-flex, .contact-grid, .banners-grid { flex-direction: column; text-align: center; }
    .search-box { width: 100%; margin: 20px 0; }
}
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}

.cart-btn { position: relative; }

.cart-btn span { 
    position: absolute; 
    top: -8px; 
    left: -8px; 
    background: #FF5722; 
    color: white; 
    font-size: 11px; 
    font-weight: 900; 
    min-width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 2px solid #222; 
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.cart-menu-item { position: relative; }
.cart-icon-nav { font-size: 18px !important; }
#cart-counter-nav { 
    position: absolute; top: -10px; right: -10px; 
    background: #FF5722; color: white; font-size: 10px; 
    padding: 2px 6px; border-radius: 50%; font-weight: 900; 
}

.cart-modal { 
    display: none; position: fixed; z-index: 3000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); 
}

.cart-content { 
    background: white; margin: 10% auto; padding: 20px; 
    width: 90%; max-width: 400px; border-radius: 15px; 
}

.cart-header { 
    display: flex; justify-content: space-between; 
    align-items: center; border-bottom: 2px solid #88C9DB; 
    padding-bottom: 10px; margin-bottom: 15px; 
}

.cart-items-list { max-height: 300px; overflow-y: auto; }

.btn-checkout { 
    background: #88C9DB; color: white; border: none; 
    padding: 15px; width: 100%; border-radius: 8px; 
    font-weight: 700; cursor: pointer; margin-top: 20px; 
}

.cart-modal { 
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
}

.cart-content { 
    background: white; 
    margin: 10% auto; 
    padding: 20px; 
    width: 90%; 
    max-width: 400px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cart-item-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
}


.btn-vaciar-full {
    background-color: #ff4d4d; 
    color: white;
    border: none;
    padding: 12px;
    width: 100%; 
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap; 
    cursor: pointer;
    transition: 0.3s;
}

.btn-vaciar-full:hover {
    background-color: #ff3333;
}

.btn-enviar-full {
    background-color: #28a745; 
    color: white;
    border: none;
    padding: 12px;
    width: 100%; 
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar-full:hover {
    background-color: #218838;
}