* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: auto;
  overflow-y: auto;
  background-color: #fff;
}

body {
  font-family: 'Bebas Neue', sans-serif;
}

.logo {
  width: 150px;
  height: 60px;
  cursor: pointer;
}

.mensaje-pago {
  background-color: #f9f1e7;
  border: 1px solid #f1c40f;
  padding: 12px 20px;
  border-radius: 5px;
  margin: 20px auto;
  color: #b8860b;
  text-align: center;
  max-width: 900px;
  font-weight: 500;
}

.title {
  font-weight: bold;
  display: flex;
  justify-content: center;
  margin-top: 1vh;
}

.tarjeta {
  width: 100%;
  max-width: 220px;
  height: 305px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0px;
  text-align: center;
  justify-content: flex-start;
}

h6 {
  font-size: 14px;
}

.tarjeta-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 6px;
  border: 2px solid #ccc;
  box-shadow: 1px 1px 2px #ddd;
  
}

.tarjeta.flipped .tarjeta-inner {
  transform: rotateY(180deg);
}

.tarjeta-front,
.tarjeta-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 1px 1px 2px #ddd;
  text-align: center;
  font-size: 15px;
}

.tarjeta-front img {
  width: 185px;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.tarjeta-back {
  transform: rotateY(180deg);
  color: black;
}

.tarjeta-back p {
  margin: 6px 0;
}

.tarjeta-back ul {
  display: inline-block;
  text-align: left;
  list-style-position: inside;
  padding-left: 0;
  margin: 0 5px auto;
}

.tarjeta-back li {
  margin: 2px 0;
}

.tarjeta-back li.sin-punto {
  list-style-type: none;
}


.btn-custom {
  color: black;
  font-style: italic;
  border: 4px solid black;
  width: 150px;
  min-height: 40px ;
  margin-top: auto;
  margin-bottom: 10px;
  cursor: pointer;
  background-color: white;
  transition: border 0.3s ease, background-color 0.3s ease;
}

.btn-custom:hover {
  background-color: white;
  border-color: black;
}

.descripcion {
  display: flex;
  flex-direction: column;
  padding: 0;
}

#btnSubir {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s;
}

#btnSubir:hover {
  background-color: #555;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid white;
  box-shadow: 0 0 20px #000;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}