/*
  commission-sheet.css
  --------------------
  Estilos de la vista de precios, sus tarjetas y el visor de imagenes.
*/

body.show-commissions {
  display: block;
  padding: 0;
  overflow: hidden !important;
  height: 100vh !important;
}

.sheet-page-wrapper {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
}

.sheet-board {
  width: 98vw;
  max-width: 1550px;
  height: min(96vh, 760px);
  max-height: 96vh;
  background: linear-gradient(135deg, var(--glass-grad-1) 0%, rgba(37, 0, 54, 0.4) 50%, var(--glass-grad-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  padding: 12px 30px;
  box-sizing: border-box;
  gap: 10px;
  overflow: hidden;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(214, 34, 136, 0.3);
  padding-bottom: 6px;
}

.sheet-header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0;
  color: var(--text-light);
  text-shadow: 0 0 15px rgba(214, 34, 136, 0.8);
}

.sheet-header h2 {
  font-family: 'Marcellus', serif;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  letter-spacing: 4px;
  margin: 0;
  color: var(--accent-light);
  text-transform: uppercase;
}

.header-info {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
}

.header-info p { margin: 0; }
.header-info strong { color: white; }

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sheet-home-row {
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 6px;
}

.sheet-card {
  background: rgba(26, 0, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sheet-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
}

.sheet-card h3 {
  font-family: 'Marcellus', serif;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--accent-light);
}

.img-container {
  width: 100%;
  height: clamp(180px, 32vh, 320px);
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
}

.img-container::after {
  content: 'Click para agrandar';
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  pointer-events: none;
}

.price-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.img-container:hover .price-pic { transform: scale(1.08); }

.sheet-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2px 0 0;
  text-shadow: 0 0 8px var(--accent-purple);
}

.desc-mini {
  font-size: 0.7rem;
  color: var(--muted);
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 2px;
}

.info-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  min-width: 0;
}

.info-box h4 {
  font-family: 'Marcellus', serif;
  font-size: 0.8rem;
  margin: 0 0 4px;
  color: var(--accent-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
}

.info-box ul { list-style: none; padding: 0; margin: 0; }
.info-box li { margin-bottom: 2px; color: var(--muted); }
.info-box strong { color: white; }

.info-box .is-allowed { color: #4ade80; }
.info-box .is-forbidden { color: #ef4444; }

.btn-explore {
  background: linear-gradient(135deg, var(--btn-grad-1) 0%, var(--btn-grad-3) 100%);
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  justify-self: center;
  align-self: center;
  width: fit-content;
  min-width: min(220px, 100%);
}

.btn-home-centered {
  margin: 0 auto;
  width: min(260px, 92vw);
}

.btn-explore::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.btn-explore:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 34, 136, 0.6);
  border-color: var(--accent-light);
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--bg-purple-light) 100%);
}

.btn-explore:hover::after { left: 200%; }
.btn-explore:active { transform: scale(1.01) translateY(1px); box-shadow: 0 4px 10px rgba(214, 34, 136, 0.4); }

.disclaimer-bottom {
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 0, 20, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
}

.image-modal.active { opacity: 1; visibility: visible; }

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(214, 34, 136, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.image-modal.active img { transform: scale(1); }

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  text-shadow: 0 0 15px rgba(214, 34, 136, 0.8);
  z-index: 100000;
}

.close-modal:hover { color: var(--accent-light); transform: scale(1.2); }

.sheet-inline-footer { grid-column: 1 / -1; }
.sheet-welcome-desc { margin-bottom: 2rem; }
.sheet-want-more { font-size: 0.7rem; margin-bottom: 2px; }

@media (max-width: 1000px) {
  body.show-commissions { overflow-y: auto !important; height: auto !important; }
  .sheet-page-wrapper { height: auto; padding: 20px; position: relative; }
  .sheet-board { height: auto; max-height: none; overflow: visible; }
  .sheet-grid { grid-template-columns: 1fr; }
  .img-container { height: clamp(260px, 45vh, 340px); }
  .img-container::after { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-card,
  .price-pic,
  .btn-explore,
  .image-modal,
  .image-modal img { transition: none; }
}
