.offer-product-section {
  margin-top: 8px;
}

body[data-catalog-page="ofertas"],
body[data-catalog-page^="oferta-"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 221, 145, 0.4), transparent 28%),
    linear-gradient(90deg, rgba(202, 162, 59, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(142, 103, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body[data-catalog-page="ofertas"] .catalog-shell,
body[data-catalog-page^="oferta-"] .catalog-shell {
  width: min(100%, 720px);
  position: relative;
  isolation: isolate;
}

body[data-catalog-page="ofertas"] .catalog-shell::before,
body[data-catalog-page^="oferta-"] .catalog-shell::before {
  content: "";
  position: absolute;
  top: 88px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: none;
}

body[data-catalog-page="ofertas"] .catalog-shell > *,
body[data-catalog-page^="oferta-"] .catalog-shell > * {
  position: relative;
  z-index: 1;
}

body[data-catalog-page="ofertas"] .catalog-shell > :not(.catalog-header),
body[data-catalog-page^="oferta-"] .catalog-shell > :not(.catalog-header) {
  margin-right: clamp(14px, 3vw, 28px);
  margin-left: clamp(14px, 3vw, 28px);
}

body[data-catalog-page="ofertas"] .catalog-header,
body[data-catalog-page^="oferta-"] .catalog-header {
  padding-bottom: 22px;
}

body[data-catalog-page="ofertas"] .catalog-kicker,
body[data-catalog-page^="oferta-"] .catalog-kicker,
body[data-catalog-page^="oferta-"] .catalog-back-link {
  color: var(--moss);
}

body[data-catalog-page="ofertas"] > .catalog-footer,
body[data-catalog-page^="oferta-"] > .catalog-footer {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 28px) 28px;
  background: transparent;
}

body[data-catalog-page^="oferta-"] .catalog-back-row {
  padding-top: 18px;
}

body[data-catalog-page="ofertas"] .catalog-product-list {
  grid-template-columns: minmax(0, 1fr);
}

body[data-catalog-page="ofertas"] .catalog-product-card,
body[data-catalog-page^="oferta-"] .catalog-product-card {
  box-shadow: none;
}

body[data-catalog-page="ofertas"] .offer-card-image-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 85, 30, 0.16);
  border-radius: var(--radius);
  background: var(--linen);
}

body[data-catalog-page="ofertas"] .offer-card-image-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.offer-product-section .catalog-product-copy strong {
  font-size: clamp(1.2rem, 4.2vw, 1.72rem);
}

.offer-pdf-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(114, 85, 30, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 245, 0.92), rgba(246, 231, 191, 0.92)),
    var(--linen);
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.offer-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.offer-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.94);
  box-shadow: none;
}

.offer-panel h2 {
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.offer-pdf-frame,
.offer-video-frame {
  width: 100%;
  border: 1px solid rgba(114, 85, 30, 0.16);
  border-radius: var(--radius);
  background: #fffdf5;
}

.offer-pdf-frame {
  min-height: 560px;
}

.offer-preview-fallback,
.offer-video-frame {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.offer-preview-fallback strong,
.offer-video-frame strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.offer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--leaf);
  color: #fffdf8;
  font-weight: 850;
}

.offer-button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 245, 0.78);
  color: var(--moss);
}

.offer-admin-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 60;
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-left: auto;
  padding: 12px;
  border: 2px solid rgba(199, 68, 56, 0.72);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 14px 44px rgba(37, 41, 31, 0.24);
}

.offer-admin-panel[hidden] {
  display: none;
}

.offer-admin-panel form,
.offer-admin-panel label,
.offer-admin-panel-head {
  display: grid;
  gap: 8px;
}

.offer-admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.offer-admin-panel-head strong {
  margin-right: auto;
}

.offer-admin-panel strong,
.offer-admin-panel label {
  color: #8c3028;
  font-weight: 850;
}

.offer-admin-panel label {
  font-size: 0.82rem;
}

.offer-admin-panel input {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
  font: inherit;
}

.offer-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.offer-admin-panel button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--button-bg, var(--moss));
  border-radius: var(--radius);
  background: var(--button-bg, var(--moss));
  color: var(--button-text, #fffdf8);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.offer-admin-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.offer-admin-panel button[data-offer-admin-close] {
  border-color: var(--line);
  background: rgba(255, 253, 245, 0.94);
  color: var(--moss);
}

.offer-admin-message {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(199, 68, 56, 0.22);
  border-radius: var(--radius);
  background: #fff7f6;
  color: #8c3028;
  font-size: 0.82rem;
  font-weight: 800;
}

.offer-admin-selected,
.offer-admin-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.offer-admin-selected strong {
  color: var(--ink);
}

.offer-admin-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.offer-admin-values span {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(114, 85, 30, 0.16);
  border-radius: var(--radius);
  background: #fffaf0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.offer-admin-values strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.offer-admin-help kbd {
  display: inline-block;
  min-width: 1.45em;
  margin: 0 1px;
  padding: 1px 5px;
  border: 1px solid rgba(114, 85, 30, 0.22);
  border-radius: 4px;
  background: rgba(255, 253, 245, 0.94);
  color: var(--moss);
  font: inherit;
  font-weight: 850;
  text-align: center;
}

.offer-admin-mode .is-offer-admin-selectable {
  cursor: crosshair;
  outline: 2px dashed rgba(140, 101, 25, 0.42);
  outline-offset: 3px;
}

.offer-admin-mode .is-offer-admin-active {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
}

.offer-card-image-frame > img[data-offer-admin-key] {
  transform:
    translate(var(--offer-image-x, 0%), var(--offer-image-y, 0%))
    scale(var(--offer-image-zoom, 1))
    rotate(var(--offer-image-rotation, 0deg));
  transform-origin: center;
}

@media (max-width: 820px) {
  .offer-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .offer-pdf-frame {
    min-height: 420px;
  }
}

.offer-congresso-shell {
  max-width: 720px;
  overflow-x: clip;
}

.congresso-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.congresso-hero h1 {
  max-width: none;
  overflow-wrap: normal;
}

.congresso-hero h1 span {
  display: block;
}

.congresso-hero-copy,
.congresso-section-heading,
.congresso-download-card,
.congresso-video-panel,
.congresso-steps-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.congresso-hero-copy {
  max-width: none;
}

.congresso-hero-copy p,
.congresso-section-heading p,
.congresso-download-card p,
.congresso-video-panel p,
.congresso-steps-panel p,
.congresso-steps-panel li {
  overflow-wrap: break-word;
}

.congresso-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.congresso-primary-action,
.congresso-secondary-action,
.congresso-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
}

.congresso-primary-action,
.congresso-download-link {
  gap: 8px;
  border: 1px solid var(--button-bg, var(--moss));
  background: var(--button-bg, var(--moss));
  color: var(--button-text, #fffdf8);
}

.congresso-primary-action {
  padding: 11px 15px;
}

.congresso-secondary-action {
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 245, 0.78);
  color: var(--moss);
}

.congresso-primary-action svg,
.congresso-download-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.congresso-small-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.congresso-hero-figure {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.congresso-hero-figure img {
  width: 100%;
  height: clamp(420px, 58vh, 620px);
  border: 1px solid rgba(114, 85, 30, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.78);
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.congresso-hero-figure figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.congresso-download-section {
  gap: 18px;
}

.congresso-section-title {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.7rem);
  line-height: 1;
}

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

.congresso-download-card,
.congresso-video-panel,
.congresso-steps-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.94);
  box-shadow: none;
}

.congresso-download-card.is-featured {
  border-color: var(--line);
  background: rgba(255, 253, 245, 0.94);
}

.congresso-download-preview,
.congresso-photo-frame {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 85, 30, 0.16);
  border-radius: var(--radius);
  background: #fffdf8;
}

.congresso-download-preview img,
.congresso-photo-frame img {
  display: block;
  width: 100%;
  height: clamp(180px, 48vw, 300px);
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  transform:
    translate(var(--offer-image-x, 0%), var(--offer-image-y, 0%))
    scale(var(--offer-image-zoom, 1))
    rotate(var(--offer-image-rotation, 0deg));
  transform-origin: center;
}

.congresso-photo-frame img {
  object-fit: cover;
  object-position: center;
}

.congresso-download-preview.is-all img,
.congresso-photo-frame.is-all img {
  height: clamp(280px, 76vw, 460px);
}

.congresso-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  appearance: none;
  cursor: default;
}

.congresso-photo-frame:focus-visible {
  outline: 3px solid rgba(102, 123, 77, 0.36);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.congresso-image-zoom-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 253, 248, 0.78);
  border-radius: 999px;
  background: rgba(46, 36, 19, 0.54);
  color: #fffdf8;
  cursor: zoom-in;
}

.congresso-image-zoom-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.congresso-image-zoom-button:hover,
.congresso-image-zoom-button:focus-visible {
  background: rgba(46, 36, 19, 0.72);
  outline: 3px solid rgba(102, 123, 77, 0.36);
  outline-offset: 2px;
}

.congresso-carousel-frame {
  position: relative;
  height: clamp(280px, 76vw, 460px);
  touch-action: pan-y;
}

.congresso-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.congresso-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.congresso-carousel-slide img {
  width: 100%;
  height: 100%;
}

.congresso-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 999px;
  background: rgba(46, 36, 19, 0.36);
  color: #fffdf8;
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-50%);
}

.congresso-carousel-arrow--prev {
  left: 10px;
}

.congresso-carousel-arrow--next {
  right: 10px;
}

.congresso-carousel-arrow:hover,
.congresso-carousel-arrow:focus-visible {
  background: rgba(46, 36, 19, 0.52);
  outline: 3px solid rgba(102, 123, 77, 0.36);
  outline-offset: 2px;
}

.congresso-carousel-pill {
  position: absolute;
  right: 58px;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 253, 248, 0.74);
  border-radius: 999px;
  background: rgba(46, 36, 19, 0.46);
  color: #fffdf8;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.congresso-carousel-pill-label {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 220ms ease;
}

.congresso-carousel-pill-label.is-active {
  opacity: 1;
}

.congresso-download-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.congresso-download-card h3 {
  font-size: clamp(1.32rem, 4vw, 1.85rem);
  line-height: 1.05;
}

.congresso-download-card p {
  font-size: 0.96rem;
}

.congresso-download-link {
  width: 100%;
  margin-top: 4px;
  padding: 0 16px;
}

.congresso-help-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.congresso-help-section > :only-child {
  grid-column: 1 / -1;
}

.congresso-video-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.82);
  color: var(--muted);
  text-align: center;
}

.congresso-video-panel.has-video {
  padding: 0;
  overflow: hidden;
}

.congresso-video-panel.has-video .congresso-video-placeholder {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #000;
}

.congresso-video-placeholder iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.congresso-video-placeholder strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.congresso-play-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(102, 123, 77, 0.26);
  border-radius: 50%;
  background: rgba(102, 123, 77, 0.12);
  color: var(--leaf);
}

.congresso-play-mark svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.congresso-steps-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.3rem;
}

.congresso-steps-panel li {
  padding-left: 2px;
}

.congresso-primary-action:focus-visible,
.congresso-secondary-action:focus-visible,
.congresso-download-link:focus-visible {
  outline: 3px solid rgba(102, 123, 77, 0.36);
  outline-offset: 3px;
}

.is-congresso-lightbox-open {
  overflow: hidden;
}

.congresso-lightbox[hidden] {
  display: none;
}

.congresso-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(46, 36, 19, 0.72);
}

.congresso-lightbox-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 980px);
  height: min(100%, 840px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(46, 36, 19, 0.32);
}

.congresso-lightbox-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.congresso-lightbox-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.94);
  color: var(--moss);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.congresso-lightbox-controls button:focus-visible {
  outline: 3px solid rgba(102, 123, 77, 0.36);
  outline-offset: 2px;
}

.congresso-lightbox-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  border: 1px solid rgba(114, 85, 30, 0.16);
  border-radius: var(--radius);
  background: #fffdf8;
}

.congresso-lightbox-stage img {
  display: block;
  max-width: min(100%, 900px);
  max-height: 720px;
  transform-origin: center;
  transition: transform 160ms ease;
}

@media (min-width: 760px) {
  .congresso-download-card.is-featured {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .congresso-hero,
  .congresso-help-section {
    grid-template-columns: 1fr;
  }

  .congresso-hero h1 {
    max-width: none;
  }

  .congresso-hero-figure {
    max-width: min(100%, 460px);
  }

}

@media (max-width: 520px) {
  .congresso-hero h1 {
    font-size: clamp(2.1rem, 10.4vw, 2.95rem);
  }

  .congresso-hero-figure img {
    height: min(520px, 124vw);
  }

  .congresso-primary-action,
  .congresso-secondary-action,
  .congresso-download-link {
    width: 100%;
  }

  .congresso-download-grid {
    grid-template-columns: 1fr;
  }
}
