:root {
    --soft-white: #F5F5F5;
    --blush-beige: #f9eedc;
    --maroon: #710100;
    --brown: #643318;
    --soft-pink: #FED2E1;
    --bubblegum-pink: #ffb1b1;
    --passion-red: #DF0714;
    --soft-black: #0A0A0A;

    --font-primary: 'Lobster', cursive;
    --font-secondary: "Barlow Condensed", sans-serif;
    --font-body: 'Montserrat', sans-serif;

}

picture {
    display: block;
    height: auto;
}

nav {
    background-color: var(--maroon);
}

header {
    margin-top: 6rem;
    height: 400px;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/catalog/header-2200.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    color: var(--soft-white);
}

@media screen and (max-width: 1800px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/catalog/header-1800.webp);
    }
}

@media screen and (max-width: 1440px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/catalog/header-1440.webp);
    }
}

@media screen and (max-width: 1024px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/catalog/header-1024.webp);
    }
}

@media screen and (max-width: 768px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/catalog/header-768.webp);
    }
}

header h1 {
    font-size: clamp(4rem, 3.358rem + 2.936vw, 6rem);
    text-shadow: 1px 1px 2px var(--soft-black);
}


header p {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
    text-shadow: 1px 1px 5px var(--soft-black);
    text-align: center;
}


main {
    min-height: 100vh;
    width: 100%;
    background-color: var(--blush-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
}

main section {
    width: 100%;
    max-width: 1024px;
    display: flex;
    padding: 2rem 0;
    gap: 1rem;
    justify-content: center;
}

main h2 {
    font-size: clamp(2.5rem, 2.018rem + 2.202vw, 4rem);
    color: var(--maroon);
    margin-bottom: 4rem;
}

.catalog-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    padding: 1rem;
}

.catalog {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.catalog-item {
    width: 300px;
    background: var(--maroon);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .3s ease-out;
    padding: 1rem;
}

.catalog-item:hover {
    transform: scale(1.05);
}

.catalog-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.catalog-item h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.catalog-item button {
    margin-top: 1rem;
    padding: .5rem 1rem;
    width: 80%;
    border-radius: 8px;
    font-weight: bold;
    color: var(--soft-white);
    background-color: var(--maroon);
    border: 1px solid var(--soft-white);
    cursor: pointer;
    transition: color 0.3s ease-out, background-color 0.3s ease-out;
}


.catalog-item button:hover {
    color: var(--maroon);
    background-color: var(--soft-white);
    border: 1px solid var(--soft-white);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination button {
    background: var(--maroon);
    color: var(--soft-white);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    border: 2px solid var(--maroon);
}

.pagination button:hover {
    background: var(--soft-white);
    color: var(--soft-black);
    border: 2px solid var(--soft-black);
}

.pagination button.active {
    background: var(--soft-black);
    color: #fff;
}

#catalog {
    scroll-margin-top: 18rem;
    /* Ajusta el margen superior al hacer scroll */
}

/* Overlay */
.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fondo oscuro */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Contenido del modal */
.modal-content {
    position: relative;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.modal-content img {
    max-width: 100%;
    border-radius: 10px;
}

/* Botón para cerrar */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 4rem;
    color: var(--soft-white);
    text-shadow: 1px 1px 3px #F5F5F5;
    cursor: pointer;
    background: none;
    border: none;
}

.close-button:hover {
    color: #ff0000;
}