*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* fonts */
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
strong {
    font-family: 'Raleway', sans-serif;
}

img {
    max-width: 100%;
}

body {
    background-color: #fffaf3;
}

a {
    text-decoration: none;
    color: #000;
}

.margen-arriba {
    margin-top: 1rem;
}

a.current-link {
    font-weight: bold;
}

h2.titulo {
    text-align: center;
    color: #8dbef6;
    margin: 1rem 0;
}

h2.titulo::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #FFCB8E;
    margin: 0 auto;
}

/* underline links with thick line */
nav.menu-principal {
    display: flex;
    gap: 1rem;
    text-align: center;
    align-content: center;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

nav.menu-principal>a::after,
a.link-idioma::after,
a.link-normal::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFCB8E;
}

nav.menu-principal>a.boton-email{
    background-color: #FFCB8E;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    flex-basis: 100%;

}

a.link-en-parrafo {
    display: inline-block;
    position: relative;
    font-weight: bold;
}

a.link-en-parrafo::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFCB8E;
    position: absolute;
    left: 0;
}

/* header */
header.header-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

a.link-idioma {
    align-self: flex-end;
}

img.img-logo {
    width: 150px;
    margin-top: -1.4rem;
}

/* contenido en general */
main {
    padding: 1rem;
    background-color: white;
    border-radius: 1rem;
    margin: 1rem;
}

main.main-index {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.main-index>p {
    text-align: center;
    margin-bottom: 1rem;
}

/* image grids */
main>div.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

main>div.image-grid img {
    border-radius: 1rem;
    /* shadow */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main.main-about p {
    margin-bottom: 1rem;
}

main.main-upcoming-events {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* eventos */
article.evento {
    display: flex;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    min-width: 100%;
}

.evento>.fechas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.evento>.fechas>.fecha-mes {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFCB8E;
}

.evento>.fechas>.fecha-anio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFCB8E;
}

.evento>.detalles {
    margin-left: 1rem;
}

.evento>.detalles>.titulo-evento {
    /* color: #8dbef6; */
}

.evento>.detalles>.descripcion-evento {
    margin-bottom: 1rem;
}

.evento>.detalles>.lista-fechas {
    list-style: none;
}

.evento>.detalles>.lista-fechas>.detalle-fecha {
    color: #3d3c3c;
}

main.main-upcoming-events p.mensaje {
    text-align: center;
    margin-top: 1rem;
}

img.pieza-img {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    /* shadow */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main.main-pieza {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.main-pieza>a.link-normal {
    align-self: flex-start;
}

main.main-pieza>.detalles-pieza {
    margin-top: 1rem;
}

main.main-pieza>.pieza-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

table.info-tarjeta {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

tr.info-tarjeta-fila {
    border-bottom: 1px solid #FFCB8E;
}

th {
    text-align: left;
    padding: 0.5rem;
}

td {
    padding: 0.5rem;
}

/* img.img-ceramica {
    position: relative;
}

img.img-ceramica::after {
    content: attr(data-number);
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.2rem;
    border-top-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    font-size: 1rem;
    font-weight: bold;
} */

/* Add a border to all images with a data-number attribute */
div.image-grid>a[data-number] {
    position: relative; /* Ensure the image is the positioning context for the ::after pseudo-element */
}

/* Use the data-number attribute in the content property */
div.image-grid>a[data-number]::after {
    content: attr(data-number);
    position: absolute;
    bottom: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem;
    font-size: 1rem;
    font-weight: bold;
    z-index: 10; /* Ensure the pseudo-element is on top of the image */
    display: block; /* Ensure the pseudo-element is displayed */
}

/* after 800 width */
@media (min-width: 700px) {

    /* eventos */
    article.evento {
        min-width: unset;
        width: 500px;
    }
}

@media (min-width: 800px) {
    main {}

    main.main-pieza>.pieza-container {
        flex-direction: row;
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    main {
        max-width: 1200px;
        margin: 1rem auto;
    }
}