.st-page { background: #fff; }
.st-w { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
.st-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 112px 0 44px; }
.st-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.st-script { font-family: 'Caveat', cursive; font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.st-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 8px 0 12px; color: #fff; }
.st-hero p { font-size: 1.1rem; max-width: 44ch; }
.st-basket { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.st-basket[hidden], .st-tabs[hidden] { display: none; }
.st-basket img { width: 120px; height: 68px; object-fit: contain; background: #fff; border-radius: 12px; border: 2px solid var(--border); flex: none; }
.st-basket figcaption { font-size: .82rem; line-height: 1.3; color: var(--text-muted, #6b6f5a); }
.st-hero-fig { margin: 0; }
.st-hero-img { display: block; width: 100%; max-height: 300px; object-fit: cover; object-position: center 40%; border-radius: var(--radius); border: 6px solid #fff; }
.st-caption { display: block; margin-top: 4px; font-size: .74rem; line-height: 1.3; text-align: center; color: rgba(255,255,255,.85); }
.st-progress { margin-top: 22px; max-width: 420px; }
.st-bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.st-progress small { display: block; margin-top: 6px; }
.st-main { padding-top: 30px; padding-bottom: 60px; }
.st-main section { margin-top: 34px; }
.st-main h2 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 12px; color: var(--primary-dark); }
.st-sub { color: var(--text-muted); margin-bottom: 10px; }
.st-notice { background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; text-align: center; font-weight: 600; }
.st-mode { display: flex; gap: 8px; flex-wrap: wrap; }
.st-mode button, .st-tabs button { border: 2px solid var(--border); background: #fff; border-radius: 99px; padding: 9px 16px; font: 600 .95rem var(--font); color: var(--text); cursor: pointer; }
.st-mode button.on, .st-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.st-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-pack { border: 2px solid var(--border); border-radius: var(--radius-sm); background: #fff; padding: 16px 10px; cursor: pointer; font-family: var(--font); color: var(--text); }
.st-pack b { display: block; font-family: var(--font-display); }
.st-pack-tag { display: inline-block; margin-bottom: 3px; padding: 1px 9px; border-radius: 99px; background: var(--primary); color: #fff; font: 700 .68rem var(--font); letter-spacing: .06em; text-transform: uppercase; }
.st-pack strong { display: block; font: 800 2rem var(--font-display); color: var(--primary); }
.st-pack small { color: var(--text-muted); }
.st-pack.on { border-color: var(--primary); background: var(--bg-gray); }
.st-other { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; font-weight: 600; }
.st-other input { width: 90px; }
.st-main input:not([type=checkbox]), .st-main textarea { padding: 11px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font: 1rem var(--font); }
.st-main textarea { width: 100%; font-family: monospace; }
.st-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.st-tabs-sm button { padding: 5px 10px; font-size: .84rem; }
.st-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.st-grid button { aspect-ratio: 1; border: 2px solid var(--border); background: #fff; border-radius: 8px; font: 600 .86rem var(--font); color: var(--text); cursor: pointer; padding: 0; }
.st-grid button.sel, .st-legend i.sel { background: var(--accent); border-color: var(--primary); }
.st-grid button:disabled, .st-legend i.off { background: #e9ebe1; border-color: #e9ebe1; color: #a0a494; cursor: not-allowed; text-decoration: line-through; }
.st-legend { display: flex; gap: 16px; margin-top: 10px; font-size: .86rem; color: var(--text-muted); }
.st-legend i { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.st-link { border: 0; background: none; color: var(--primary); font: 600 .95rem var(--font); text-decoration: underline; cursor: pointer; padding: 12px 0; }
.st-summary form { max-width: 520px; display: grid; gap: 12px; }
.st-summary label:not(.st-check) { display: grid; gap: 4px; font-weight: 600; }
.st-check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.st-check input { margin-top: 4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.st-chips span { background: var(--accent); color: var(--primary-dark); font-weight: 700; border-radius: 7px; padding: 2px 8px; font-size: .86rem; }
.st-gift { color: var(--primary); font-weight: 600; }
.st-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--border); padding-top: 10px; }
.st-total b { font: 800 1.8rem var(--font-display); color: var(--primary); }
.st-error { color: #b3261e; font-weight: 600; }
.st-pay { background: var(--primary); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 15px; font: 700 1.05rem var(--font-display); cursor: pointer; }
.st-pay:disabled { opacity: .6; cursor: wait; }
.st-rules ul { padding-left: 20px; display: grid; gap: 6px; }
.st-privacy { margin-top: 14px; font-size: .84rem; color: var(--text-muted); }
.st-result { background: var(--bg-gray); border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.st-result .st-chips { justify-content: center; margin-top: 12px; }
@media (max-width: 720px) {
  .st-hero { padding-top: 96px; }
  .st-hero-grid { grid-template-columns: 1fr; }
  .st-hero-img { max-height: 200px; }
  .st-caption { display: none; }
  .st-basket { display: none !important; }
  .st-packs { grid-template-columns: 1fr 1fr; }
  .st-grid { gap: 3px; }
  .st-grid button { font-size: .72rem; border-radius: 5px; }
}

.st-only-wiz { display: none; }
body.st-wiz { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.st-wiz .st-only-wiz { display: block; }
.st-wiz .st-hero { padding: 78px 0 10px; flex: none; }
.st-wiz .st-hero-grid { display: block; }
.st-wiz .st-hero-fig, .st-wiz .st-hero-img, .st-wiz .st-caption, .st-wiz .st-script, .st-wiz .st-hero p, .st-wiz .st-progress { display: none; }
.st-wiz .st-hero h1 { font-size: 1.2rem; margin: 0; }
.st-wiz .st-main { flex: 1; min-height: 0; width: 100%; padding: 10px 16px 0; display: flex; flex-direction: column; }
.st-wiz #st-shop { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.st-wiz [data-step]:not(.st-cur), .st-wiz .st-rules:not(.open) { display: none; }
.st-wiz .st-main section { margin-top: 8px; }
.st-wiz section.st-cur { flex: 1; min-height: 0; overflow-y: auto; }
.st-wiz .st-main h2 { font-size: 1.1rem; margin-bottom: 8px; }
.st-wiz .st-numbers { display: flex; flex-direction: column; overflow: hidden !important; }
.st-wiz .st-tabs { flex: none; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 6px; scrollbar-width: none; }
.st-wiz .st-tabs button { flex: none; padding: 6px 12px; font-size: .84rem; }
.st-wiz .st-grid { flex: 1; min-height: 0; grid-template-rows: repeat(10, minmax(0, 1fr)); }
.st-wiz .st-grid button { aspect-ratio: auto; min-height: 0; }
.st-wiz .st-legend { margin-top: 4px; flex: none; }
.st-wiz .st-numbers .st-link { flex: none; padding: 4px 0; text-align: left; }
.st-wiz .st-summary form { gap: 8px; }
.st-wiz .st-chips { max-height: 58px; overflow-y: auto; }
.st-wiz .st-total b { font-size: 1.4rem; }
.st-wiz .st-pay { padding: 12px; }
.st-wiz .st-rules.open { position: fixed; inset: 0; z-index: 2000; margin: 0; padding: 18px; background: #fff; overflow-y: auto; }
.st-close { margin-left: auto; background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.st-nav { flex: none; padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); }
.st-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-nav-row span { font-size: .84rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.st-nav-row button { border: 2px solid var(--primary); background: #fff; color: var(--primary); border-radius: 10px; padding: 10px 16px; font: 700 .95rem var(--font); }
.st-nav-row button.next { background: var(--primary); color: #fff; }
.st-nav-msg { color: #b3261e; font-weight: 600; font-size: .86rem; margin-bottom: 4px; }

.st-wiz.st-last .st-hero { display: none; }
.st-wiz.st-last .st-main { padding-top: 78px; }
@media (max-width: 720px) and (max-height: 620px) {
  .st-wiz .st-mode button { padding: 6px 12px; font-size: .84rem; }
  .st-wiz .st-mode { flex-wrap: nowrap; }
  .st-wiz .st-pack { padding: 6px; }
  .st-wiz .st-pack strong { font-size: 1.25rem; }
  .st-wiz .st-pack small { display: block; line-height: 1.15; font-size: .72rem; }
  .st-wiz .st-chips { max-height: 30px; }
  .st-wiz .st-summary label:not(.st-check) { gap: 1px; font-size: .9rem; }
  .st-wiz .st-main input:not([type=checkbox]) { padding: 7px 10px; }
  .st-wiz .st-gift { display: none; }
}
@media (min-width: 1100px) {
  .st-w { max-width: none; padding-left: 40px; padding-right: 40px; }
  .st-hero { padding: 86px 0 14px; }
  .st-hero-grid { grid-template-columns: 1fr auto; gap: 40px; }
  .st-script { font-size: 1.7rem; }
  .st-hero h1 { font-size: 1.9rem; margin: 0; }
  .st-hero p { display: none; }
  .st-progress { margin-top: 8px; max-width: 520px; }
  .st-hero-img { height: 104px; width: 170px; border-width: 3px; }
  .st-hero-fig { width: 170px; }
  .st-hero-link { display: block; }
  .st-main { padding-top: 14px; padding-bottom: 30px; }
  #st-shop { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(460px, 1.7fr) minmax(300px, 1fr); grid-template-rows: auto 1fr; column-gap: 36px; align-items: start; }
  #st-shop .st-mode { grid-column: 1; grid-row: 1; }
  #st-packs, #st-vales { grid-column: 1; grid-row: 2; }
  .st-numbers { grid-column: 2; grid-row: 1 / span 2; margin-top: 0 !important; }
  .st-summary { grid-column: 3; grid-row: 1 / span 2; margin-top: 0 !important; }
  .st-rules { grid-column: 1 / -1; }
  .st-main section { margin-top: 14px; }
  .st-main h2 { font-size: 1.15rem; margin-bottom: 8px; }
  .st-packs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .st-pack { padding: 8px 6px; }
  .st-pack strong { font-size: 1.5rem; }
  .st-pack small { font-size: .75rem; display: block; line-height: 1.2; }
  .st-grid { grid-auto-rows: clamp(26px, calc((100vh - 500px) / 10), 56px); gap: 4px; }
  .st-grid button { aspect-ratio: auto; }
  .st-legend { margin-top: 6px; }
  .st-link { padding: 6px 0; }
  .st-summary form { max-width: none; gap: 8px; }
  .st-chips { max-height: 92px; overflow-y: auto; }
}

.st-hero p.st-open { grid-column: 1 / -1; margin: 0; max-width: none; background: var(--gold); color: var(--primary-dark); border-radius: 10px; padding: 8px 14px; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.st-wiz .st-hero p.st-open { display: block; margin-top: 6px; padding: 5px 10px; font-size: .78rem; }
@media (min-width: 1100px) {
  .st-hero-grid { grid-template-columns: 1fr auto auto; }
  .st-hero p.st-open { display: block; grid-column: 2; width: 340px; }
}

/* Venta cerrada, error o resultado del pago: en movil se quita la foto y el aviso de compra para que el mensaje se vea sin hacer scroll */
.st-again { display: inline-block; margin-top: 16px; padding: 12px 24px; border: 0; border-radius: 99px; background: var(--primary); color: #fff; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; }
@media (max-width: 720px) {
  body.st-off .st-hero-fig, body.st-off .st-open { display: none; }
  body.st-off .st-hero { padding-bottom: 20px; }
  body.st-off .st-notice { margin-top: 16px; padding: 18px; font-size: 1.05rem; line-height: 1.4; text-align: center; font-weight: 600; }
}

/* Movil (compra en 3 pasos): etiqueta PACK en la misma linea que el nombre, para que quepan los 4 packs y 'otra cantidad' sin scroll */
@media (max-width: 720px) {
  .st-wiz .st-pack-tag { display: inline-block; margin: 0 5px 0 0; padding: 0 7px; font-size: .62rem; line-height: 1.5; vertical-align: 1px; }
  .st-wiz .st-pack b { display: inline; font-size: .86rem; }
  .st-wiz .st-pack { padding: 5px 4px 6px; }
  .st-wiz .st-pack strong { font-size: 1.15rem; line-height: 1.15; }
  .st-wiz .st-pack small { font-size: .68rem; line-height: 1.1; }
  .st-wiz .st-packs { gap: 6px; }
}

/* ---- Maquetacion: centrado y a todo el ancho ---- */
.st-hero-grid > div { text-align: center; }
.st-hero h1 { text-align: center; }
.st-hero .st-progress { margin-left: auto; margin-right: auto; }
.st-open { text-align: center; }
.st-mode { flex-wrap: wrap; }
.st-mode button { flex: 1 1 150px; text-align: center; }
.st-other { display: flex; align-items: center; gap: 10px; width: 100%; }
.st-other input { flex: 1; min-width: 0; }
.st-chips-title { flex: 1 0 100%; background: none !important; padding: 0 !important; color: var(--text-muted, #6b6f5a) !important; font-weight: 600 !important; font-size: .78rem !important; }
#step-label small { display: block; font-size: .78rem; font-weight: 600; color: var(--primary); }
@media (max-width: 720px) {
  .st-mode { flex-wrap: nowrap; }
  .st-mode button, .st-wiz .st-mode button { flex: 1 1 0; padding: 10px 6px; font-size: .9rem; }
  .st-wiz .st-pack b { font-size: .72rem; white-space: nowrap; }
  .st-wiz .st-pack-tag { font-size: .54rem; padding: 0 5px; margin-right: 3px; }
  .st-wiz .st-pack strong { font-size: 1.3rem; }
}
@media (max-width: 720px) and (min-height: 760px) { .st-wiz .st-script { display: block; font-size: 1.5rem; } }

/* Compartir por WhatsApp */
.st-share { display: block; margin-top: 12px; padding: 11px 16px; border-radius: 99px; background: #25D366; color: #073b1c; font: 700 .95rem var(--font); text-align: center; text-decoration: none; }
.st-share:hover { filter: brightness(.95); }
.st-result .st-share { display: inline-block; margin: 10px 0 0 8px; }
@media (max-width: 720px) {
  .st-wiz .st-share { margin-top: 6px; padding: 8px 14px; font-size: .88rem; }
  .st-result .st-share { display: block; margin: 10px auto 0; max-width: 320px; }
  .st-result .st-again { display: block; margin: 16px auto 0; max-width: 320px; text-align: center; }
}

/* Tras participar: voluntariado */
.st-vol { margin: 26px auto 0; max-width: 560px; padding: 22px 20px; border-radius: 22px; background: #fbf5e8; border: 2px solid #e8dfc6; text-align: left; }
.st-vol-k { margin: 0; font: 700 1.5rem 'Caveat', cursive; color: var(--primary); }
.st-vol h3 { margin: 0 0 4px; font: 800 1.35rem var(--font-display); color: var(--primary-dark); }
.st-vol-sub { margin: 0 0 14px; font-size: .95rem; color: var(--text-muted, #5b5f48); }
.st-vol-list { display: grid; gap: 10px; }
.st-vol-card { background: #fff; border: 2px solid #e8dfc6; border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; }
.st-vol-card small { font-weight: 700; font-size: .78rem; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.st-vol-card b { font-size: 1rem; line-height: 1.3; color: var(--primary-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-vol-card span { font-size: .85rem; color: var(--text-muted, #5b5f48); }
.st-vol-btn { justify-self: start; display: inline-block; margin-top: 6px; padding: 9px 20px; border-radius: 99px; background: var(--primary); color: #fff !important; font-weight: 700; text-decoration: none; }
.st-vol-none { margin: 0 0 4px; font-size: .95rem; }
.st-vol-more { margin: 14px 0 0; font-size: .88rem; text-align: center; }
.st-vol-more a { color: var(--primary); font-weight: 600; }
@media (max-width: 720px) { .st-vol { margin-top: 20px; padding: 18px 14px; } .st-vol-btn { justify-self: stretch; text-align: center; } }

/* Aviso: cestas Kinder de una en una */
.st-kinder-note { margin: 6px 0 10px; font-size: .82rem; line-height: 1.4; color: #5b5f48; }
#raffle-tabs button:disabled { opacity: .55; cursor: not-allowed; }
