/* Estilo general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Quicksand", sans-serif;
}

html, body {
    height: 100%; 
    margin: 0; 
}

body {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    min-height: 100vh; 
}

/* Barra de navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: papayawhip;
    padding: 12px 20px;
    z-index: 1000;
}

/* Contenido principal */
section {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 98dvw;
    gap: 16px;
    padding-top: 60px; 
    justify-content: center;
}

/* Artículos */
section > article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 90dvw;
    border-radius: 8px;
    border: 1px solid lightgray;
    max-width: 500px;
    min-height: 421.5px;
}

section > article > img {
    border-radius: 8px 8px 0px 0px;
    width: 90dvw;
    max-width: 500px;
}

/* Botones */
button {
    padding: 8px;
    font-weight: bold;
    background-color: #013739;
    color: #f4fce3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Tarjetas de evento */
.eventCard {
    padding: 16px;
    width: 100%;
}

.buttonCard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0px 16px 16px 16px;
}

/* Pie de página */
footer {
    background-color: papayawhip;
    padding: 6px 12px;
    margin-top: 12px;
    text-align: center;
    width: 100%;
}

.hidden {
    display: none;
}


@media screen and (max-width: 768px) {
    section > article {
        margin: auto;
        min-height: auto;
        max-width: 350px;
    }
    section > article > img {
        max-width: 350px;
    }
}

@media screen and (max-width: 1450px) {
    section {
        align-items: start;
    }
    section > article {
        max-width: 350px;
    }
    section > article > img {
        max-width: 350px;
    }
}