/* Página de un regalo: galería, precio, qué lleva con foto de cada producto. */
.rgp { --wine: #9E2A5F; --green: #2F6B53; --ink: #1D1D1D; --cream: #F6EFE3; padding-bottom: 40px; }
.rgp-page { max-width: 1180px; margin: 0 auto; padding: 18px var(--pg-pad, 20px) 0; }
.rgp-back { display: inline-block; margin: 6px 0 16px; color: var(--green); font-weight: 600; text-decoration: none; }
.rgp-back:hover { text-decoration: underline; }

.rgp-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.rgp-media { position: static; }
.rgp-photo { position: relative; aspect-ratio: 4 / 5; background: #F6EFE3; border-radius: 28px; overflow: hidden; display: grid; place-items: center; }
.rgp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; padding: 0; box-sizing: border-box; }
.rgp-photo.is-empty { background: var(--cream); }
.rgp-photo.is-empty::after { content: attr(data-fallback); font-family: var(--font-display, Georgia, serif); font-size: clamp(40px, 8vw, 84px); color: var(--wine); }
.rgp-photo.is-empty img { display: none; }
.rgp-badge { position: absolute; top: 16px; left: 16px; background: var(--wine); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; }
.rgp-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.rgp-thumbs button { flex: 0 0 76px; height: 76px; padding: 4px; border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; }
.rgp-thumbs button[aria-pressed="true"] { border-color: var(--green); }
.rgp-thumbs button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.rgp-thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

.rgp-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.rgp-eyebrow span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.rgp-eyebrow span + span::before { content: "·"; margin-right: 8px; color: #b9a98f; }
.rgp-info h1 { margin: 0 0 14px; font-family: var(--font-display, Georgia, serif); font-size: clamp(38px, 5.4vw, 68px); line-height: .96; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.rgp-lead { margin: 0 0 22px; font-size: 18px; line-height: 1.5; color: #3a3a3a; max-width: 52ch; }

.rgp-buy { display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: end; padding: 20px; background: #fff; border-radius: 22px; }
.rgp-price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rgp-price strong { font-family: var(--font-display, Georgia, serif); font-size: clamp(36px, 4.4vw, 48px); line-height: 1; }
.rgp-price s { color: #8a8a8a; font-size: 18px; }
.rgp-price small { flex-basis: 100%; color: #6b6b6b; font-size: 12.5px; }
.rgp-qty { justify-self: start; display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; }
.rgp-qty button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.rgp-qty button:hover { background: #fff; }
.rgp-qty output { min-width: 28px; text-align: center; font-weight: 700; }
.rgp-cta { width: 100%; justify-content: center; text-align: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.rgp-cta[disabled] { opacity: .5; cursor: not-allowed; }
.rgp-note { min-height: 1.2em; margin: 10px 4px 0; color: var(--wine); font-weight: 600; font-size: 14px; }
.rgp-custom { display: block; margin: 8px 0 0; padding: 14px 18px; border: 2px dashed #cdbf9f; border-radius: 18px; color: var(--ink); text-decoration: none; }
.rgp-custom[hidden] { display: none; }
.rgp-custom b { color: var(--green); }
.rgp-custom:hover { border-color: var(--green); }
.rgp-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.rgp-points li { position: relative; padding-left: 26px; color: #3a3a3a; }
.rgp-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.rgp-page section { padding: 56px 0 0; }
.rgp-story > div { max-width: 68ch; font-size: 17px; line-height: 1.65; }
.rgp-story p { margin: 0 0 14px; }
.rgp-sub { margin: 0 0 22px; color: #5a5a5a; }
.rgp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.rgp-item { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; color: inherit; text-decoration: none; }
a.rgp-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); transition: .15s; }
.rgp-item__img { aspect-ratio: 1 / 1; background: var(--cream); display: grid; place-items: center; }
.rgp-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.rgp-item__img span { font-size: 34px; opacity: .55; }
.rgp-item__body { display: grid; gap: 4px; padding: 12px 14px 16px; }
.rgp-item__body strong { font-size: 15px; line-height: 1.25; }
.rgp-item__body small { color: var(--wine); font-weight: 600; }
.rgp-item__body em { font-style: normal; color: var(--green); font-size: 13px; font-weight: 600; }

@media (max-width: 820px) {
  .rgp-hero { grid-template-columns: 1fr; }
  .rgp-media { position: static; }
  .rgp-photo { border-radius: 22px; }
  .rgp-page section { padding-top: 40px; }
  .rgp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rgp-buy { padding: 16px; }
}

.rgp-noimg { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 14px 18px; background: #fff; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rgp-noimg li { display: grid; gap: 2px; }
.rgp-noimg strong { font-size: 14px; line-height: 1.25; }
.rgp-noimg small { color: var(--wine); font-weight: 600; }

/* Qué lleva: todos iguales (foto o recuadro neutro, nombre y cantidad), para que se vea parejo. */
.rgp-rows { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rgp-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: #fff; border-radius: 16px; color: inherit; text-decoration: none; }
a.rgp-row:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.rgp-row__img { width: 64px; height: 64px; border-radius: 12px; background: #F6EFE3; display: grid; place-items: center; overflow: hidden; }
.rgp-row__img img { width: 100%; height: 100%; object-fit: contain; }
.rgp-row__img span { font-size: 22px; opacity: .45; }
.rgp-row__body { display: grid; gap: 2px; min-width: 0; }
.rgp-row__body strong { font-size: 14px; line-height: 1.25; }
.rgp-row__body small { color: var(--wine); font-weight: 600; }
