* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --left-pad: 96px;
  --top-pad: 34px;
  --title-size: 44px;
  --folder-size: 140px;
  --col-width: 220px;
  --row-gap: 52px;
  --col-gap: 70px;
}

html, body {
  height: 100%;
}

body {
  font-family: "Press Start 2P", monospace;
  color: #fff;
  background-color: black;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo-link {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-block;
}

.logo-img {
  width: 120px;
  height: auto;
  transition: transform 0.18s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.10);
}

.topbar {
  padding-top: var(--top-pad);
  padding-left: var(--left-pad);
}

.page-title {
  font-size: var(--title-size);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0,0,0,0.7);
}

.content {
  padding-left: var(--left-pad);
  padding-top: 60px;
}

.folders {
  display: grid;
  grid-template-columns: repeat(4, var(--col-width));
  gap: 0px 0px;
  justify-content: start;
  align-items: start;
}

.folder-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  width: var(--col-width);
  transition: transform 0.18s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.folder-card:hover {
  transform: scale(1.08);
}

.folder-icon {
  width: 170px;
  height: auto;
  display: block;
}

.folder-label {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0,0,0,0.7);
}

@media (max-width: 1100px) {
  :root {
    --col-width: 200px;
    --col-gap: 40px;
  }
}

@media (max-width: 900px) {
  .folders {
    grid-template-columns: repeat(2, var(--col-width));
  }
}

body::after{
  content: "";
  position: fixed;
  bottom: 0;
  right: 0;
  width: 420px;
  height: 420px;
  background: url("Insert_shirt.png") no-repeat bottom right;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 900px){
  body::after{
    content: none;
  }
}

body::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 800px;
  height: 800px;
  opacity: 40%;
  background: url("Wardrobe.png") no-repeat top left;
  background-size: contain;
  transform: translate(73px, 80px);
  pointer-events: none;
  z-index: -20;
}

@media (max-width: 900px){
  body::before{
    display: none;
  }
}

/* =========================
   MODAL CAMISETAS
   ========================= */

.shirt-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 28px;
}

.shirt-modal.is-open{
  display: flex;
}

.shirt-modal-content{
  width: min(900px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shirt-modal-image{
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

.shirt-modal-title{
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0,0,0,0.7);
}

.shirt-modal-counter{
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
  text-shadow: 0 3px 0 rgba(0,0,0,0.7);
}

.shirt-close{
  position: fixed;
  top: 20px;
  left: 20px;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.shirt-close:hover{
  transform: scale(1.06);
}

.shirt-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.shirt-nav:hover{
  transform: translateY(-50%) scale(1.06);
  background: rgba(255,255,255,0.16);
}

.shirt-nav-left{
  left: 26px;
}

.shirt-nav-right{
  right: 26px;
}

@media (max-width: 900px){
  .shirt-modal-content{
    width: min(92vw, 700px);
  }

  .shirt-nav{
    width: 58px;
    height: 58px;
    font-size: 34px;
  }

  .shirt-nav-left{
    left: 12px;
  }

  .shirt-nav-right{
    right: 12px;
  }

  .shirt-modal-title{
    font-size: 12px;
  }

  .shirt-modal-counter{
    font-size: 11px;
  }
}