/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #fff8f0;
    color: #3a3a3a;
}

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

header {
    background-color: #c0392b;
    color: white;
    padding: 0.6rem 0;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: Arial, sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #f7d6d6;
    background-color: rgba(255, 255, 255, 0.15);
}

.hero {
    background: linear-gradient(rgba(192, 57, 43, 0.7), rgba(192, 57, 43, 0.7)), url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    padding: 5rem 0 6rem 0;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.4);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.btn {
    background-color: #c0392b;
    color: white;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.5);
}

.btn:hover {
    background-color: #922b21;
    box-shadow: 0 6px 15px rgba(146, 43, 33, 0.7);
}

.productos {
    padding: 4rem 0;
    background-color: #fff4f0;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(192, 57, 43, 0.1);
}

.productos h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #c0392b;
    font-weight: 700;
    font-size: 2.2rem;
}

.productos-lista {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.producto {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.15);
    width: 280px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(192, 57, 43, 0.3);
}

.producto img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
}

.producto h3 {
    margin-bottom: 0.7rem;
    color: #c0392b;
    font-weight: 700;
    font-size: 1.3rem;
}

.producto p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #555;
}

.precio {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #7a3a2a;
    font-size: 1.1rem;
}

.nosotros {
    background-color: #fceeea;
    padding: 4rem 0;
    text-align: center;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 0 20px rgba(192, 57, 43, 0.1);
}

.nosotros h2 {
    color: #c0392b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
}

.nosotros p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #6b4a3a;
    line-height: 1.5;
}

.contacto {
    padding: 4rem 0;
}

.contacto h2 {
    text-align: center;
    color: #c0392b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
}

form {
    max-width: 550px;
    margin: 0 auto;
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.15);
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: #7a3a2a;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1.8rem;
    border: 1px solid #d9b8b8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #c0392b;
    outline: none;
}

textarea {
    resize: vertical;
}

.form-mensaje {
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
    color: green;
    font-size: 1.1rem;
}

footer {
    background-color: #c0392b;
    color: white;
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 4rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive */

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    header {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    nav ul {
        display: none;
    }

    #navToggle {
        display: block !important;
        margin-left: auto;
    }

    .hero {
        padding: 3rem 0 4rem 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .productos-lista {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .producto {
        width: 100%;
        max-width: 300px;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .nosotros h2,
    .contacto h2,
    .productos h2 {
        font-size: 1.5rem;
    }

    .nosotros p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    form {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }

    .social-bubbles {
        right: 0.3rem;
        gap: 0.5rem;
    }

    .social-bubble {
        width: 40px;
        height: 40px;
    }

    .social-bubble svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    nav ul {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        display: flex;
    }

    nav ul li {
        margin-left: 0;
    }

    .productos-lista {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .producto {
        width: 90%;
        max-width: 400px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .nosotros h2,
    .contacto h2,
    .productos h2 {
        font-size: 1.8rem;
    }

    .nosotros p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    form {
        padding: 2rem 1.5rem;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .modal-content {
        width: 85%;
        margin: 15% auto;
    }

    .social-bubbles {
        right: 0.4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .productos-lista {
        justify-content: center;
        gap: 2rem;
    }

    .producto {
        width: 250px;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .nosotros h2,
    .contacto h2,
    .productos h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 70%;
        max-width: 600px;
    }
}

@media (min-width: 1025px) {
    .productos-lista {
        justify-content: space-around;
    }

    .producto {
        width: 280px;
    }

    .hero h2 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .nosotros h2,
    .contacto h2,
    .productos h2 {
        font-size: 2.3rem;
    }
}

/* Cart Icon */
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cart-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fff;
    color: #c0392b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cart-item input {
    width: 50px;
    text-align: center;
}

.cart-item button {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.cart-item button:hover {
    background-color: #922b21;
}

#cartTotal {
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.cancel-btn {
    background-color: #ccc;
    color: #333;
    margin-left: 10px;
}

.cancel-btn:hover {
    background-color: #aaa;
}

#checkoutTotal {
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

/* Social media bubble buttons */

.social-bubbles {
    position: fixed;
    top: 50%;
    left: auto;
    right: 0.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10000;
}

.social-bubble {
    background-color: #c0392b;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.social-bubble:hover {
    background-color: #922b21;
    transform: scale(1.1);
}

.social-bubble svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Specific colors for each social network */

.social-bubble.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    box-shadow: 0 4px 10px rgba(253, 89, 73, 0.7);
}

.social-bubble.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 10%, #fd5949 50%, #d6249f 70%, #285aeb 100%);
}

.social-bubble.facebook {
    background-color: #3b5998;
    box-shadow: 0 4px 10px rgba(59, 89, 152, 0.7);
}

.social-bubble.facebook:hover {
    background-color: #2d4373;
}

.social-bubble.tiktok {
    background-color: #010101;
    box-shadow: 0 4px 10px rgba(1, 1, 1, 0.7);
}

.social-bubble.tiktok:hover {
    background-color: #333333;
}
