@font-face {
  font-family: Fredoka;
  src: url('/identidad-visual/fonts/Fredoka-Bold-latin.woff2');
}
@font-face {
  font-family: Poppins;
  src: url('/identidad-visual/fonts/Poppins-Regular-latin.woff2');
  font-weight: 400;
}
@font-face {
  font-family: Poppins;
  src: url('/identidad-visual/fonts/Poppins-SemiBold-latin.woff2');
  font-weight: 650;
}
* {
  box-sizing: border-box;
}
.more {
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: #294d38;
  font: inherit;
  cursor: pointer;
}
body {
  margin: 0;
  background: #fff9e9;
  color: #294d38;
  font:
    16px/1.5 Poppins,
    sans-serif;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
header {
  border-bottom: 1px solid #d7d9c5;
  background: #fffdf4;
}
.brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand a {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font:
    25px Fredoka,
    sans-serif;
}
.brand > span {
  font-size: 13px;
}
h1,
h2,
h3 {
  font-family: Fredoka, sans-serif;
  line-height: 1.12;
}
h1 {
  font-size: clamp(34px, 6vw, 57px);
  margin: 40px 0 25px;
}
h2 {
  font-size: 28px;
  margin: 30px 0 14px;
}
h3 {
  font-size: 20px;
  margin: 12px 0 4px;
}
.cartas {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.carta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #294d38;
  color: #fff8e6;
  padding: 16px;
  border-radius: 18px;
}
.carta img {
  width: 78px;
  height: 86px;
  object-fit: contain;
}
.carta h2 {
  color: #fff8e6;
  font-size: 22px;
  margin: 0 0 6px;
}
.search {
  margin: 30px 0 10px;
}
.search label {
  display: block;
  font-weight: 650;
  margin-bottom: 5px;
}
input {
  font: inherit;
  width: min(100%, 44rem);
  padding: 12px 16px;
  border: 1px solid #98a88e;
  border-radius: 12px;
  background: white;
  color: #294d38;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(205px, 100%), 1fr));
  gap: 15px;
}
.tile {
  border: 1px solid #dadfcc;
  background: #fffef9;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media {
  width: 100%;
  height: 150px;
  background: #f1eedb;
  display: grid;
  place-items: center;
  border: 0;
  cursor: zoom-in;
  padding: 0;
}
.media img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.body small {
  color: #52604e;
  margin: 0 0 12px;
}
.download,
button#cerrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 13px;
  background: #ffda44;
  color: #234634;
  font:
    650 14px Poppins,
    sans-serif;
  text-decoration: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  align-self: start;
}
.body .download {
  margin-top: auto;
}
.download:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #729a25;
  outline-offset: 2px;
}
.carta .download {
  min-height: 36px;
}
#estado {
  font-size: 14px;
}
main {
  padding-bottom: 50px;
}
dialog {
  padding: 12px;
  border: 0;
  border-radius: 15px;
  background: #fff9e9;
  max-width: min(95vw, 760px);
}
dialog::backdrop {
  background: #142616cf;
}
#visor :is(img, video) {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 8px auto 0;
}
@media (max-width: 580px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .media,
  .media img {
    height: 135px;
  }
  .body {
    padding: 0 9px 10px;
  }
  .body h3 {
    font-size: 17px;
  }
  .body small {
    font-size: 12px;
  }
  .download {
    font-size: 12px;
    padding: 7px 9px;
  }
  .brand {
    height: 55px;
  }
  h1 {
    margin: 26px 0 18px;
  }
}
@media (max-width: 310px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(100px, 1fr));
  gap: 12px;
  align-items: end;
  background: #fffdf4;
  border: 1px solid #d7d9c5;
  border-radius: 14px;
  padding: 14px;
}
.filters .search {
  margin: 0;
  min-width: 0;
}
.filters label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 650;
}
.filters select,
.filters input {
  width: 100%;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  background: white;
  border: 1px solid #9aa895;
  border-radius: 8px;
  padding: 8px;
}
.filters .more {
  justify-self: start;
  margin: 0;
}
#preview h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
@media (max-width: 800px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .filters .search,
  .filters label:last-of-type {
    grid-column: 1/-1;
  }
}
