/* Estilos exclusivos de detalle de promoción — lenguaje editorial. */

.promo-detail {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem 4.5rem;
}

@media (min-width: 640px) {
  .promo-detail {
    padding: 2.5rem 1.5rem 5.5rem;
  }
}

.promo-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.promo-detail__breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.promo-detail__breadcrumb a:hover {
  color: #1e3a5f;
}

.promo-detail__article {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #e8eef5;
  background: #fff;
}

.promo-detail__media {
  overflow: hidden;
  max-height: 28rem;
  background: #eef2f7;
}

.promo-detail__image {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.promo-detail__body {
  padding: 1.75rem 1.35rem 2rem;
}

@media (min-width: 640px) {
  .promo-detail__body {
    padding: 2.25rem 2.25rem 2.5rem;
  }
}

.promo-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.promo-detail__kind,
.promo-detail__store,
.promo-detail__shopping {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-detail__kind {
  background: #f0f5fa;
  color: #1e3a5f;
}

.promo-detail__store,
.promo-detail__shopping {
  background: #f1f5f9;
  color: #475569;
}

.promo-detail__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #0f172a;
}

.promo-detail__lead {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #475569;
}

.promo-detail__description {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
}

.promo-detail__description p {
  margin: 0 0 1rem;
}

.promo-detail__validity {
  margin: 1.75rem 0 0;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  font-size: 0.925rem;
  color: #475569;
}

.promo-detail__validity span {
  font-weight: 700;
  color: #0f172a;
  margin-right: 0.35rem;
}

.promo-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.promo-detail__link {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.promo-detail__link:hover {
  background: #f8fafc;
}

.promotion-reactions {
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.promotion-reactions__label {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.promotion-reactions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.promotion-reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.promotion-reaction-btn:hover {
  transform: translateY(-1px);
}

.promotion-reaction-btn:focus-visible {
  outline: 2px solid #c5d429;
  outline-offset: 2px;
}

.promotion-reaction-btn--like {
  color: #152a45;
  background: linear-gradient(135deg, #e8f0a8 0%, #d4e157 100%);
  box-shadow: 0 8px 20px rgba(197, 212, 41, 0.25);
}

.promotion-reaction-btn--like:hover {
  background: linear-gradient(135deg, #f0f6c4 0%, #dce85f 100%);
}

.promotion-reaction-btn--dislike {
  color: #475569;
  background: #fff;
  border-color: #cbd5e1;
}

.promotion-reaction-btn--dislike:hover {
  background: #f8fafc;
}

.promotion-feedback {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.promotion-feedback--success {
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.promotion-feedback--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.promotion-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.promotion-modal[hidden] {
  display: none;
}

.promotion-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
}

.promotion-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.promotion-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.promotion-modal__subtitle {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #64748b;
}

.promotion-modal__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.promotion-modal__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
}

.promotion-modal__input:focus {
  outline: 2px solid #c5d429;
  outline-offset: 1px;
  border-color: #c5d429;
}

.promotion-modal__privacy {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.promotion-modal__error {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #b91c1c;
}

.promotion-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.promotion-modal__btn {
  flex: 1 1 auto;
  min-width: 7rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.promotion-modal__btn--primary {
  color: #152a45;
  background: linear-gradient(135deg, #e8f0a8 0%, #d4e157 100%);
}

.promotion-modal__btn--secondary {
  color: #475569;
  background: #fff;
  border-color: #cbd5e1;
}

.promotion-modal__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
