/* reset CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Estilos generales */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4ecda;
}
main {
    flex: 1 0 auto;
}
.contenedor {
    width: 70%;
    margin: 0 auto;
}
/* Estilos hero */
.hero {
    text-align: center;
    padding: 1.2rem 0;
    background-color: #cd190c;
}
.hero-contenido h1 {
    font-size: 2rem;
    color: #efb01c;
    font-weight: 300;
    margin-bottom: 0.6rem;
    font-weight: bold;
}
.hero-contenido p {
    color: #ffffff;
}
/* Estilos contenido */
.tablero {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    width: 48rem;
    margin: 0 auto;
    padding: 2rem 0;

}
/* Estilos cartas */
.carta {
    flex: 0 0 10rem;
    height: 14rem;
}
.carta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 14rem;
    background-color: black;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../img/reverso-1.jpg");
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
/* Pseudoclase :hover */
.carta-1:hover {
    color:transparent;
    background-color:brown;
    background-image: url("../img/carta-1.png");
    background-repeat: no-repeat;
    background-position: center;
}
.carta-2:hover {
    color:transparent;
    background-color:brown;
    background-image: url("../img/carta-2.png");
    background-repeat: no-repeat;
    background-position: center;
}
.carta-3:hover {
    color:transparent;
    background-color:brown;
    background-image: url("../img/carta-3.png");
    background-repeat: no-repeat;
    background-position: center;
}
.carta-4:hover {
    color:transparent;
    background-color:brown;
    background-image: url("../img/carta-4.png");
    background-repeat: no-repeat;
    background-position: center;
}
.carta-5:hover {
    color:transparent;
    background-color:brown;
    background-image: url("../img/carta-5.png");
    background-repeat: no-repeat;
    background-position: center;
}
.carta-6:hover {
    color:transparent;
    background-color:brown;
    background-image: url("../img/carta-6.png");
    background-repeat: no-repeat;
    background-position: center;
}
/* Propiedad order */
.carta:nth-child(1)  { order: 2; }
.carta:nth-child(2)  { order: 3; }
.carta:nth-child(3)  { order: 7; }
.carta:nth-child(4)  { order: 1; }
.carta:nth-child(5)  { order: 6; }
.carta:nth-child(6)  { order: 12; }
.carta:nth-child(7)  { order: 5; }
.carta:nth-child(8)  { order: 9; }
.carta:nth-child(9)  { order: 4; }
.carta:nth-child(10) { order: 11; }
.carta:nth-child(11) { order: 10; }
.carta:nth-child(12) { order: 8; }

/* Estilos footer*/
footer {
    text-align: center;
    background-color: #cd190c;
    padding: 1rem 0;
}
footer p {
    color: #681c05;
}
/* Media Queries */
/* Tablet hasta 1024px */
@media (max-widh: 64rem) {
    .contenedor {
        width: 85%;
    }
    .hero-contenido h1 {
        font-size: 1.7rem;
    }
    .tablero {
        width: 90%;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .carta {
        flex: 0 0 8rem;
        height: 11.2rem;
    }
    .carta-link {
        width: 8rem;
        height: 11.2rem;
        font-size: 1.1rem;
    }
}
/* Mobile hasta 600px */
@media (max-width: 37.5rem) {
    body {
        font-size: 0.8rem;
    }
    .contenedor {
        width: 90%;
    }
    .hero {
        padding: 1rem 0;
    }
    .hero-contenido h1 {
        font-size: 1.4rem;
    }
    .hero-contenido p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    .tablero {
        width: 95%;
        gap: 0.8rem;
        padding: 1.2rem 0;
    }
    .carta {
        flex: 0 0 7rem;
        height: 9.8rem;
    }
    .carta-link {
        width: 7rem;
        height: 9.8rem;
        font-size: 1rem;
        border-radius: 0.6rem;
    }
}