body{
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

h1{
    font-family: 'Lemon', cursive;
    text-transform: uppercase;
    color: white;
    font-weight: normal;
}

h2{
    font-family: 'Gloria Hallelujah', cursive;
}

header,
main{
    
    padding: 10px 40px;
    background-color: pink;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #20bf55;
    background-image: linear-gradient(315deg, #20bf55 0%, #01baef 74%);
}

a{
    
    align-items: center;
    
    text-decoration: none;
    padding: 6px 20px;
    background: white;
    color: #444;
    border-radius: 5px;
}

main{
    background: #f7f7f7;
    min-height: 77vh ;
}

main ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Aumentás el mínimo */
  gap: 16px;
  max-width: 1000px;
  margin: 20px auto;
  padding: 10px;
  justify-content: center;
}

main ul li {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Rectangular estilo carta */
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: white;
}

main ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transform: none !important; /* 🔒 esto anula cualquier flip heredado */
  backface-visibility: hidden;
}



ul li img + img{
    transform: rotateY(180deg);
    transition: .3s;
    position: absolute;
    left: 0;
    top: 0;
}

ul li.fija img,
ul li.seleccionado img{
    transform: rotateY(180deg);
}

ul li.fija img + img,
ul li.seleccionado img + img{
    transform: rotateY(0deg);
}

footer{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: #222;
    color: white;
    padding: 0 20px;
    text-align: center;
    border-top: 2px solid #111;
    
}

footer span{
    color: pink;
    font-size: 1.2em;
}



#datos{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #01baef;
    padding-top: 10px;
    padding-bottom: 5px;
}

#datos h2{
    line-height: 100%;
    margin: 0;
}

body.noscroll{
    overflow: hidden;
}
#modal {
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#modal div {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

#modal input[type="text"] {
  width: 80%;
  padding: 8px;
  margin: 10px 0;
}

#modal input[type="range"] {
  width: 100%;
  margin: 10px 0;
}

.cerrar-modal {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: #01baef;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

/* 

.tema-claro {
  background-color: #f0f0f0;
  color: #222;
}

.tema-claro main ul li {
  background-color: #ffffff;
}


.tema-oscuro {
  background-color: #121212;
  color: #eee;
}

.tema-oscuro main ul li {
  background-color: #1e1e1e;
  border-color: #333;
}
 */