/* ==========================================================================
   FOTOX PRO - SMART PHOTO PACK SELECTOR (100% MOBILE-FIRST ADAPTIVE)
   ========================================================================== */

.smart-photo-selection {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--brand-orange);
  padding: 18px;
  color: #fff;
  margin: 14px 0;
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.selection-header span {
  color: var(--brand-orange);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
}

.selection-header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  margin: 2px 0 0;
  text-transform: uppercase;
  color: #fff;
}

.smart-total {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  line-height: 1;
}

/* Available Packs Toggles */
.available-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.available-packs > div {
  border: 1px solid var(--border-card);
  background: var(--bg-deep);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.available-packs > div:hover {
  border-color: var(--brand-orange);
}

.available-packs > div.active {
  border-color: var(--brand-orange);
  background: var(--brand-orange-subtle);
  border-left: 3px solid var(--brand-orange);
}

.available-packs small {
  color: var(--brand-orange);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.available-packs b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13.5px;
  color: #fff;
}

.available-packs strong {
  font-size: 10.5px;
  color: var(--text-light);
  font-weight: 800;
}

/* Status Strip */
.smart-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-card);
  padding: 6px 10px;
  margin-bottom: 12px;
  font-size: 11px;
}

.smart-status .smart-count {
  color: var(--brand-orange);
  font-weight: 900;
}

.smart-status em {
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
}

/* Contact-Sheet Grid */
.photo-selector.smart-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}

.photo-choice {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border-card);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.photo-choice:hover {
  border-color: rgba(255, 107, 0, 0.5);
}

.photo-choice input {
  position: absolute;
  opacity: 0;
}

.photo-choice span {
  position: relative;
  height: 75px;
  background: #000;
  display: block;
}

.photo-choice span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-choice span i {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  font-style: normal;
}

.photo-choice input:checked ~ span i {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #000;
}

.photo-choice:has(input:checked) {
  border-color: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange-glow);
}

.photo-choice small {
  padding: 4px 6px 1px;
  font-size: 9.5px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.photo-choice b {
  padding: 0 6px 4px;
  font-size: 9.5px;
  color: var(--brand-orange);
  font-weight: 800;
}

.smart-help {
  font-size: 11px;
  color: var(--text-muted);
  margin: 10px 0;
  line-height: 1.4;
}

.smart-photo-selection > button {
  width: 100%;
  background: var(--brand-orange);
  color: #000;
  border: 0;
  padding: 10px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.smart-photo-selection > button:hover {
  background: var(--brand-orange-light);
}

/* ==========================================================================
   MOBILE RESPONSIVE (CELULARES)
   ========================================================================== */
@media (max-width: 768px) {
  .smart-photo-selection {
    padding: 14px;
  }
  .photo-selector.smart-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: 240px;
  }
  .photo-choice span {
    height: 65px;
  }
  .available-packs {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .photo-selector.smart-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-choice span {
    height: 75px;
  }
}
