/* ==================================================
   Sunshine Beer — estilos propios de la plantilla (hero: un océano de cerveza)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   sb.js dibuja en .sb-cv el fondo, la cerveza (oleaje, burbujas, espuma), la botella sumergida y el chorro
   ================================================== */

.sb-hero {
	--beer: #f19f00;
	--foot-h: 92px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100vh;
	height: 100svh;
	min-height: 720px;
	padding-top: 68px;
	overflow: hidden;
	color: #fff;
	background: #2a1606 linear-gradient(180deg, #3a2410 0%, #3a2410 34%, #f8b32a 34.2%, #9a5205 100%);
	touch-action: pan-y;
}
.sb-hero.is-live { background: #1a0e05; }
.sb-cv { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.sb-vids { position: absolute; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.sb-vids video { width: 2px; height: 2px; }
.sb-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(26, 12, 2, .7) 0%, rgba(26, 12, 2, .36) 30%, rgba(26, 12, 2, 0) 48%); }

/* ---------- Texto ---------- */
.sb-copy { position: absolute; z-index: 5; left: var(--gutter); top: calc(68px + 6vh); width: min(520px, 38vw); pointer-events: none; }
.sb-copy a { pointer-events: auto; }
.sb-kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.sb-logo { display: block; width: 150px; max-width: none; height: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.sb-kicker__n { padding-left: 16px; font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .8); border-left: 1px solid rgba(255, 255, 255, .35); }
.sb-page .sb-title { margin: 0 0 18px; font-family: 'Averia Serif Libre', serif; font-size: clamp(54px, 6.6vw, 112px); font-weight: 700; line-height: .9; letter-spacing: -.02em; text-align: left; text-transform: none; color: #fff; text-shadow: 0 6px 30px rgba(30, 12, 0, .55); }
.sb-l { display: block; overflow: hidden; padding: 0 .06em .06em 0; }
.sb-l__t { display: inline-block; }
.sb-l2 { margin: -.06em 0 -.04em .5em; font-family: 'Playball', cursive; font-size: .56em; font-weight: 400; line-height: 1.1; letter-spacing: 0; color: var(--beer); text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .5); }
.sb-desc { max-width: 40ch; margin: 0 0 26px; font-family: 'Inter', sans-serif; font-size: clamp(14px, 1.08vw, 17px); line-height: 1.65; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 12px rgba(0, 0, 0, .75); }
.ak-page .sb-get { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 30px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #21181f; background: #fff; border: 2px solid #21181f; box-shadow: 6px 6px 0 var(--beer); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ak-page .sb-get:hover, .ak-page .sb-get:focus-visible { color: #21181f; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--beer); }

/* ---------- Ficha y selector ---------- */
.sb-card { position: absolute; z-index: 5; right: var(--gutter); top: calc(68px + 22px); width: 236px; padding: 14px; color: #fff; background: rgba(33, 24, 31, .78); border: 1px solid rgba(255, 255, 255, .14); border-top: 3px solid var(--beer); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sb-card__k { margin: 0 0 4px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--beer); }
.sb-card__style { margin: 0 0 10px; font-family: 'Averia Serif Libre', serif; font-size: 24px; font-weight: 700; line-height: 1.1; }
.sb-card__data { margin: 0; }
.sb-card__data > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.sb-card__data dt { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sb-card__data dd { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sb-bar { position: relative; display: block; width: 46px; height: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sb-bar b { position: absolute; inset: 0; background: var(--beer); transform-origin: 0 50%; transform: scaleX(.3); transition: transform .6s var(--ease); }
.sb-swatch { display: block; width: 14px; height: 14px; border-radius: 50%; background: #f8b32a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); transition: background .6s ease; }
.sb-co2 { margin: 8px 0 12px; padding: 7px 10px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.sb-co2__v { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.sb-flavors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ak-page .sb-flavor { position: relative; display: grid; place-items: end center; height: 74px; margin: 0; padding: 4px 0 2px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 0; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.sb-flavor img { display: block; width: auto; height: 66px; max-width: none; transition: transform .25s var(--ease); }
.ak-page .sb-flavor:hover img, .ak-page .sb-flavor:focus-visible img { transform: translateY(-3px) rotate(-6deg); }
.ak-page .sb-flavor.is-on { background: rgba(255, 255, 255, .16); border: 2px solid var(--beer); }
.ak-page .sb-flavor:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sb-hint { position: absolute; z-index: 5; left: var(--gutter); bottom: calc(var(--foot-h) + 22px); margin: 0; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); pointer-events: none; }
.sb-hint--touch { display: none; }
@media (hover: none) {
	.sb-hint--mouse { display: none; }
	.sb-hint--touch { display: inline; }
}
.sb-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.sb-foot {
	position: relative;
	z-index: 8;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 14px clamp(20px, 3vw, 44px);
	align-items: center;
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: rgba(10, 10, 10, .95);
	border-top: 3px solid var(--accent);
}
.sb-foot__meta { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sb-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.sb-ctrl { display: flex; align-items: center; gap: 10px; }
.sb-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.sb-idx { display: inline-block; font-family: var(--mb-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; vertical-align: -5px; color: var(--accent); }
@media (max-width: 1180px) {
	.sb-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.sb-foot .ak-actions { grid-column: 1 / -1; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.sb-copy { top: calc(68px + 3vh); }
	.sb-page .sb-title { font-size: clamp(50px, 5.6vw, 92px); margin-bottom: 12px; }
	.sb-desc { margin-bottom: 18px; }
	.sb-card { top: calc(68px + 14px); padding: 10px 12px; }
	.sb-card__data > div { padding: 5px 0; }
	.sb-co2 { margin: 6px 0 8px; }
	.ak-page .sb-flavor { height: 60px; }
	.sb-flavor img { height: 54px; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.sb-hero { height: auto; min-height: 0; }
	.sb-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 700px; max-height: 1000px; }
	.sb-shade { background: linear-gradient(0deg, rgba(26, 12, 2, .9) 0%, rgba(26, 12, 2, .6) 38%, rgba(26, 12, 2, 0) 56%); }
	.sb-copy { top: auto; bottom: calc(var(--foot-h) + 24px); right: var(--gutter); width: auto; }
	.sb-logo { width: 120px; }
	.sb-page .sb-title { font-size: clamp(46px, 13vw, 84px); margin-bottom: 12px; }
	.sb-desc { display: none; }
	.ak-page .sb-get { min-height: 48px; font-size: 13px; }
	.sb-hint { display: none; }
	/* la ficha pasa a ser una fila arriba: estilo y botellas */
	.sb-card { top: calc(68px + 10px); left: var(--gutter); right: var(--gutter); width: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 8px 10px; }
	.sb-card__k { grid-column: 1; margin: 0; }
	.sb-card__style { grid-column: 1; margin: 0; font-size: 18px; }
	.sb-card__data, .sb-co2 { display: none; }
	.sb-flavors { grid-column: 2; grid-row: 1 / span 2; gap: 4px; }
	.ak-page .sb-flavor { width: 38px; height: 52px; }
	.sb-flavor img { height: 46px; }
}
@media (max-width: 700px) {
	.sb-hero { padding-top: 60px; }
	.sb-hero::before { height: min(calc(100svh - 136px), 820px); min-height: 680px; }
	.sb-card { top: calc(60px + 8px); }
	.sb-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.sb-ctrl { order: -1; }
	.sb-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ak-page .sb-get, .sb-flavor img, .sb-bar b, .sb-swatch { transition: none; }
}
