/* ==================================================
   Órbita Cola — estilos propios de la plantilla (hero: vitrina de bebidas)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   Capas del escenario: fondo < nombre gigante < latas y frutas (escenario de 1240 × 900 escalado) < burbujas
   < rocas < degradado < textos e interfaz
   oc.js actualiza: --k (escala del escenario), --foot-h, --cta-a/--cta-b (colores del botón) y data-flavor
   ================================================== */

.oc-hero {
	--k: 1;
	--foot-h: 92px;
	--cta-a: #e3122a;
	--cta-b: #ff5a3c;
	--zen: 'Zen Dots', 'Archivo', sans-serif;
	--code: 'Source Code Pro', ui-monospace, monospace;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	overflow: hidden;
	color: #fff;
	background: #0c0c0c;
}
.oc-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; }

/* Fondo de cada sabor (se cruzan) */
.oc-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s cubic-bezier(.645, .045, .355, 1); }
.oc-bg img.is-on { opacity: 1; }

/* Nombre gigante detrás de la lata */
.oc-big { position: absolute; z-index: 1; left: 0; right: 0; top: 46%; margin: 0; text-align: center; transform: translateY(-50%); pointer-events: none; white-space: nowrap; }
.oc-big span { display: inline-block; font-family: var(--zen); font-size: calc(300px * var(--k)); line-height: 1; text-transform: uppercase; color: rgba(255, 255, 255, .07); }

/* Escenario de 1240 × 900 (como el original), anclado abajo al centro y escalado */
.oc-grid { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1240px; height: 900px; transform-origin: 50% 100%; pointer-events: none; }
.oc-drink { position: absolute; left: 50%; bottom: 110px; width: 750px; height: 720px; margin-left: -375px; }
.oc-can { position: absolute; z-index: 2; left: 225px; top: 35px; width: 300px; height: 649px; }
.oc-shadow { position: absolute; z-index: 1; left: 113px; bottom: -6px; width: 523px; height: 80px; max-width: none; }
.oc-fruit { position: absolute; z-index: 3; }
.oc-fruit.is-back { z-index: 1; filter: blur(1.2px) brightness(.85); }
.oc-fruit img { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }

.oc-fizz { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Rocas al frente (tapan la base de la lata) */
.oc-rocks img { position: absolute; z-index: 4; left: 50%; bottom: calc(-60px * var(--k)); width: calc(2560px * var(--k)); max-width: none; height: auto; margin-left: calc(-1280px * var(--k)); filter: blur(3px); opacity: 0; transform-origin: 50% 100%; pointer-events: none; }
/* cada fondo de rocas tiene otra altura: se bajan para que todas tapen lo mismo de la lata */
.oc-rocks img:nth-child(2) { bottom: calc(-110px * var(--k)); }
.oc-rocks img:nth-child(3) { bottom: calc(-170px * var(--k)); }
.oc-rocks img:nth-child(4) { bottom: calc(-210px * var(--k)); }
.oc-grad { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, rgba(12, 12, 12, 0) 0%, rgba(12, 12, 12, 1) 100%); pointer-events: none; }

/* ---------- Cabecera de la marca (de ejemplo) ---------- */
.oc-top { position: absolute; z-index: 7; left: var(--gutter); right: var(--gutter); top: calc(68px + 22px); display: flex; align-items: center; gap: 28px; }
.oc-logo { margin: 0; font-family: var(--zen); font-size: 26px; line-height: 1; letter-spacing: 1px; color: #fff; }
.oc-logo i { display: inline-block; width: 9px; height: 9px; margin-left: 4px; border-radius: 50%; background: var(--cta-a); box-shadow: 0 0 12px var(--cta-a); vertical-align: 14px; transition: background-color .6s, box-shadow .6s; }
.oc-slogan { margin: 0; font-family: var(--code); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.oc-nav { display: flex; gap: 8px; margin-left: auto; }
.ec-page .oc-nav a, .oc-page .oc-nav a { padding: 7px 12px; font-family: var(--code); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; transition: background-color .25s, color .25s; }
.oc-page .oc-nav a:hover { color: #0c0c0c; background: #fff; }

/* ---------- Textos del sabor ---------- */
.oc-mid { position: absolute; z-index: 6; left: calc(var(--gutter) + 60px); right: calc(var(--gutter) + 60px); top: 40%; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; pointer-events: none; }
.oc-col { width: 270px; pointer-events: auto; }
.oc-col--r { width: 290px; text-align: right; }
.oc-mask { overflow: hidden; }
.oc-mask > * { display: block; }
.oc-caption { margin: 0 0 18px; font-family: var(--code); font-size: 14px; line-height: 25px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.oc-chev { margin: 0 0 22px; font-family: var(--code); font-size: 20px; font-weight: 300; letter-spacing: 2px; color: #fff; }
.oc-chev i { font-style: normal; animation: oc-chev 1.5s steps(1) infinite; opacity: .25; }
.oc-chev i:nth-child(2) { animation-delay: .25s; }
.oc-chev i:nth-child(3) { animation-delay: .5s; }
@keyframes oc-chev { 0%, 40% { opacity: 1; } 60%, 100% { opacity: .25; } }
.oc-page .oc-cta { display: inline-block; padding: 0 25px; font-family: var(--code); font-size: 13px; font-weight: 600; line-height: 40px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .92); background: linear-gradient(65deg, var(--cta-a) 0%, var(--cta-b) 100%); border-top: 1px solid rgba(255, 255, 255, .2); border-right: 1px solid rgba(255, 255, 255, .2); border-radius: 5px; box-shadow: 0 10px 30px -10px var(--cta-a); transition: filter .2s, transform .2s; }
.oc-page .oc-cta:hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.oc-desc { margin: 0; font-family: var(--code); font-size: 14px; line-height: 23px; color: rgba(255, 255, 255, .75); }

/* ---------- Navegación de sabores, redes y flechas ---------- */
.oc-flavors { position: absolute; z-index: 7; left: calc(var(--gutter) + 60px); bottom: 34px; display: flex; flex-direction: column; margin: 0; padding: 0; }
.ak-page .oc-flavor { display: flex; align-items: center; gap: 10px; width: auto; min-height: 0; margin: 0; padding: 0; font-family: var(--zen); font-size: 12px; line-height: 35px; letter-spacing: 1px; text-align: left; text-transform: uppercase; color: rgba(255, 255, 255, .42); background: none; border: 0; cursor: pointer; transition: color .3s; }
.oc-flavor::before { content: ''; width: 0; height: 2px; background: var(--cta-a); transition: width .35s cubic-bezier(.645, .045, .355, 1), background-color .6s; }
.ak-page .oc-flavor:hover, .ak-page .oc-flavor.is-on { color: #fff; }
.oc-flavor.is-on::before { width: 18px; }
.oc-flavor:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.oc-social { position: absolute; z-index: 7; right: calc(var(--gutter) + 60px); bottom: 40px; display: flex; gap: 6px; }
.oc-page .oc-social a { display: grid; place-items: center; width: 34px; height: 34px; font-family: var(--code); font-size: 11px; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; transition: background-color .25s, color .25s; }
.oc-page .oc-social a:hover { color: #0c0c0c; background: #fff; }
.ak-page .oc-arrow { position: absolute; z-index: 7; top: 50%; display: grid; place-items: center; width: 55px; height: 55px; min-height: 0; margin: -27px 0 0; padding: 0; color: #fff; background: rgba(0, 0, 0, .45); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .25s; }
.ak-page .oc-arrow:hover { background: rgba(0, 0, 0, .75); }
.oc-arrow svg { width: 18px; height: 18px; }
.oc-arrow--prev { left: 16px; }
.oc-arrow--next { right: 16px; }
.oc-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.oc-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;
	/* a la derecha queda libre el lugar del botón flotante de WhatsApp */
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: #0c0c0c;
	border-top: 3px solid var(--accent);
}
.oc-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); }
.oc-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.oc-ctrl { display: flex; align-items: center; gap: 10px; }
.oc-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.oc-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) {
	.oc-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.oc-foot .ak-actions { grid-column: 1 / -1; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.oc-hero { height: auto; min-height: 0; }
	.oc-stage { flex: none; height: 100vh; height: 100svh; min-height: 600px; }
	.oc-mid { left: var(--gutter); right: var(--gutter); top: calc(68px + 84px); }
	.oc-col--r { display: none; }
	.oc-col { width: auto; max-width: 340px; }
	.oc-nav { display: none; }
	.oc-flavors { left: 0; right: 0; bottom: 18px; flex-direction: row; justify-content: center; gap: 4px 16px; flex-wrap: wrap; padding: 0 var(--gutter); }
	.ak-page .oc-flavor { font-size: 11px; line-height: 28px; }
	.oc-flavor.is-on::before { width: 10px; }
	.oc-social { display: none; }
	.ak-page .oc-arrow { width: 44px; height: 44px; margin-top: -22px; }
	.oc-arrow--prev { left: 8px; }
	.oc-arrow--next { right: 8px; }
}
@media (max-width: 700px) {
	.oc-top { top: calc(60px + 16px); gap: 14px; }
	.oc-logo { font-size: 20px; }
	.oc-slogan { font-size: 9px; }
	.oc-mid { top: calc(60px + 64px); }
	.oc-caption { margin-bottom: 10px; font-size: 12px; line-height: 20px; }
	.oc-chev { display: none; }
	.oc-page .oc-cta { line-height: 36px; padding: 0 18px; font-size: 12px; }
	.oc-big { top: 40%; }
	.ak-page .oc-arrow { top: 58%; }
	.oc-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.oc-ctrl { order: -1; }
	.oc-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.oc-bg img { transition: none; }
	.oc-chev i { animation: none; opacity: 1; }
}
