/* Estilos unificados para las vistas de códigos y selección */
body.seleccion-layout {
  background-color: #f5f5f5;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.seleccion-container {
  padding-bottom: 2rem;
}

.seleccion-section-title {
  text-align: center;
  margin: 2rem 0 1.5rem;
  font-weight: 700;
  color: #333;
}

.seleccion-subtitle {
  text-align: center;
  font-weight: 500;
  color: #555;
}

.seleccion-info-text {
  text-align: center;
  font-size: 1.05rem;
  color: #444;
}

.seleccion-results-count {
  font-size: 1rem;
  color: #444;
}

.seleccion-grid {
  row-gap: 1.5rem;
}

.seleccion-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.seleccion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.seleccion-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.seleccion-card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #fafafa;
  padding: 1rem;
}

.seleccion-card-img--compact {
  height: 220px;
  object-fit: cover;
  width: auto;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.seleccion-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seleccion-card-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.seleccion-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6a00;
  margin-bottom: 0.25rem;
}

.seleccion-card-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff4747;
  cursor: pointer;
  transition: color 0.3s ease;
  word-break: break-word;
}

.seleccion-card-code:hover,
.seleccion-card-code:focus {
  color: #e64a19;
  text-decoration: none;
}

.seleccion-card-value {
  font-style: italic;
}

.seleccion-available-date {
  font-size: 0.8rem;
  color: #999;
}

.seleccion-btn-primary {
  background-color: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  font-weight: 600;
}

.seleccion-btn-primary:hover,
.seleccion-btn-primary:focus {
  background-color: #e65c00;
  border-color: #e65c00;
  color: #fff;
}

.seleccion-btn-outline {
  border-color: #ff6a00;
  color: #ff6a00;
  font-weight: 600;
}

.seleccion-btn-outline:hover,
.seleccion-btn-outline:focus {
  background-color: #ff6a00;
  color: #fff;
}

.seleccion-btn-secondary {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: #fff;
  font-weight: 600;
}

.seleccion-btn-secondary:hover,
.seleccion-btn-secondary:focus {
  background-color: #148a9c;
  border-color: #148a9c;
  color: #fff;
}

.seleccion-btn-share {
  background-color: #ff4747;
  border-color: #ff4747;
  color: #fff;
  font-weight: 600;
}

.seleccion-btn-share:hover,
.seleccion-btn-share:focus {
  background-color: #e03d3d;
  border-color: #e03d3d;
  color: #fff;
}

.seleccion-copy-message {
  font-size: 0.875rem;
  color: #4caf50;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.seleccion-loader {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin: 2rem 0;
}

.seleccion-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
}

@keyframes seleccion-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.seleccion-arrow {
  font-size: 24px;
  color: #ff4747;
  text-align: center;
  animation: seleccion-bounce 1s infinite;
}

.seleccion-share-banner {
  margin-top: 20px;
  padding: 1rem;
  background: #fff9c4;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: #8d6e63;
}

.seleccion-share-banner:empty {
  display: none;
}

.seleccion-search-bar .input-group {
  max-width: 420px;
  margin: 0 auto;
}

.seleccion-search-bar .btn {
  font-weight: 600;
}

.seleccion-loader p {
  margin-bottom: 0;
}

/* Barra superior con CTA para navegar entre vistas */
.seleccion-cta-bar {
  background: linear-gradient(135deg, #ff6a00, #ff3d6e);
  color: #fff;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(255, 80, 40, 0.25);
}

.seleccion-cta-message {
  max-width: 540px;
}

.seleccion-cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.seleccion-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
}

.seleccion-cta-text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.seleccion-cta-buttons {
  gap: 0.75rem;
}

.seleccion-cta-buttons .btn {
  min-width: 200px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.seleccion-cta-buttons .btn-light {
  color: #ff3d6e;
  border: none;
}

.seleccion-cta-buttons .btn-light:hover,
.seleccion-cta-buttons .btn-light:focus {
  color: #ff1744;
}

.seleccion-cta-buttons .btn-outline-light {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.seleccion-cta-buttons .btn-outline-light:hover,
.seleccion-cta-buttons .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

@media (max-width: 576px) {
  .seleccion-cta-title {
    font-size: 1.25rem;
  }

  .seleccion-cta-buttons .btn {
    min-width: 0;
    width: 100%;
  }
}
