/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #ffd8ec;
    color: #444;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #4b0082;
}

.logo {
    font-family: "Great Vibes", "Segoe Script", cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f4d03f;
}

.logo span {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #f4d03f;
    font-weight: 500;
    transition: color 0.3s ease-out;
    cursor: pointer;
}

.link:hover {
    color: white;
}

.log {
    margin-left: 15px;
    text-decoration: none;
    color: #f4d03f;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
    cursor: pointer;
}

.log:hover {
    color: #d63384;
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    color: #d63384;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero img {
    max-width: 300px;
    border-radius: 15px;
    margin-top: 20px;
}

.btn {
    background-color: #d63384;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    background-color: #b82b6e;
}


/* Categorías */
.categorias {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 70;
    padding: 10px;
    text-align: center;
    background: linear-gradient(180deg, #ffd8ec 70%, rgba(255, 255, 255, 0) 90%);
}

.categorias h2 {
    color: #d63384;
    font-size: 1.8rem;
}

.categoria-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.categoria {
    background-color: #d633848a;
    backdrop-filter: blur(50px);
    color: white;
    display: inline-block;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.categoria:hover {
    background-color: #b82b6f;
}


/* Catálogo */
.catalogo {
    margin-top: 20px;
    text-align: center;
    padding: 40px 100px;
}

.catalogo h2 {
    color: #d63384;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.productos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.producto {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 230px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.producto img {
    object-fit: content;
    width: 100%;
    height: 61%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.precio {
    color: #d63384;
    font-weight: 700;
    margin: 10px 0;
}

.btn-info {
    width: 100%;
    padding: 10px;
    background-color: #d63384;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-info:hover {
    background-color: #b82b6e;
}

.btn-whatsapp {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background-color: #25d366;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

.separador {
    border: none;
    height: 2px;
    background-color: #d63384;
    width: 80%;
    margin: 40px auto;
    border-radius: 2px;
}

/* Modal Salida */

.modal-salida {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content-salida {
    background-color: #fff;
    padding: 25px 35px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.7;
}

.modal-actions-salida {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.modal-actions-salida button {
    width: 45%;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

#cancelar {
    background: #ddd;
}

#confirmar {
    background: #d63384;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.247);
    backdrop-filter: blur(8px);
}

.modal-content {
    display: block;
    place-items: center;
    background-color: #fff;
    color: black;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.493);
}

.modal-content h3 {
    font-size: 30px;
    color: #d63384;
    margin: 5px;
}

/* ===== Carrusel Modal ===== */
.carousel {
    position: relative;
    width: 90%;
    max-width: 300px;
    margin: auto;
}

.carousel-images img {
    width: 100%;
    display: none;
    border-radius: 10px;
}

.carousel-images img.active {
    display: block;
}


.cerrar {
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    transition: 0.3s ease-out;
    cursor: pointer;
}

.cerrar:hover {
    color: red;
}


/* Footer */
.footer {
    font-family: "Montserrat", sans-serif;
    text-align: center;
    padding: 25px;
    background-color: #4b0082;
    color: white;
    width: 100%;
    margin-top: 40px;
}

.redes {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 10px;
}

.redes a {
    color: #f4d03f;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 600;
    transition: 0.3s;
}

.redes a:hover {
    color: white;
}

.footer a {
    color: #f4d03f;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: white;
}

/* Responsive */

/* Responsive */
@media (max-width: 1080px) {
    .body {
        width: 100%;
        height: 100dvh;
    }

    .producto {
        width: 220px;
    }

}

@media (max-width:500px) {

    .header {
        display: block;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        background-color: #4b0082;
    }

    .logo {
        font-family: "Great Vibes", "Segoe Script", cursive;
        font-size: 2rem;
        font-weight: 700;
        color: #f4d03f;
    }

    .logo span {
        font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 1.6rem;
        font-weight: 700;
        color: white;
    }

    .nav a {
        font-size: 1.1rem;
        text-decoration: none;
        color: #f4d03f;
        font-weight: 500;
        transition: color 0.3s ease-out;
        cursor: pointer;
    }

    .catalogo {
        padding: 20px 10px;
    }

    .categoria-grid {
        display: contents;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .producto {
        width: 170px;
    }
}