/* ==================================================
   Abuela Rosa — estilos propios de la plantilla (hero: mermeladas caseras en cuatro sabores)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   Capas del hero: video de fondo < sombra < ingredientes flotantes < tarjeta de pergamino < frasco < sello e interfaz.
   Los colores de cada sabor (--main, --jam, --ink2) los pone ar.js en .ar-hero.
   ================================================== */

.ar-hero {
	--main: #9d0f12;
	--jam: #b3121b;
	--ink2: #4a0a0c;
	--paper: #f3e7cf;
	--cond: 'Bebas Neue', 'Archivo', sans-serif;
	--serif: 'Fraunces', Georgia, serif;
	--script: 'Yellowtail', cursive;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 660px;
	padding-top: 68px;
	overflow: hidden;
	background: #2a0507;
}
.ar-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; outline: none; }

/* ---------- Fondos en video ---------- */
.ar-bgs, .ar-bg, .ar-shade, .ar-floats { position: absolute; inset: 0; }
.ar-bg { visibility: hidden; }
.ar-bg.is-on, .ar-bg.is-in { visibility: visible; }
.ar-bg.is-in { z-index: 2; }
.ar-bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.ar-shade {
	z-index: 3;
	background:
		radial-gradient(120% 90% at 76% 50%, rgba(0, 0, 0, .08) 0 30%, rgba(0, 0, 0, .55) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .25));
	pointer-events: none;
}
.ar-floats { z-index: 4; pointer-events: none; }
.ar-float { position: absolute; width: var(--w, 80px); will-change: transform; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.ar-float.is-blur { filter: blur(5px) drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); opacity: .85; }
.ar-float svg { display: block; width: 100%; height: auto; }

/* ---------- Tarjeta de pergamino ---------- */
.ar-card {
	position: absolute;
	z-index: 5;
	left: clamp(14px, 1.4vw, 22px);
	top: clamp(14px, 2vh, 20px);
	bottom: clamp(14px, 2vh, 20px);
	width: 49%;
	padding: clamp(26px, 4.5vh, 48px) 22% clamp(22px, 3.4vh, 36px) clamp(30px, 5.6vw, 84px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #2b1d14;
}
.ar-card > * { flex-shrink: 0; }
.ar-card__paper {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 6px;
	background:
		radial-gradient(130% 90% at 20% 10%, rgba(255, 255, 255, .55), transparent 60%),
		radial-gradient(80% 60% at 90% 100%, rgba(150, 105, 50, .16), transparent 70%),
		var(--paper);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(110, 70, 30, .12), inset 0 0 70px rgba(140, 95, 45, .22);
}
/* grano de papel y borde cosido */
.ar-card__paper::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: .5;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ar-card__paper::after {
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: 3px;
	border: 1.5px dashed color-mix(in srgb, var(--main) 35%, transparent);
	transition: border-color .8s;
}

.ar-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(12px, 3vh, 38px); color: var(--main); text-decoration: none; transition: color .8s; }
.ar-brand__jar { width: clamp(46px, 4.4vw, 64px); height: auto; flex: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }
.ar-brand__txt { display: grid; line-height: 1; }
.ar-brand__txt b { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: .01em; }
.ar-brand__txt small { margin-top: 4px; padding-left: 26%; white-space: nowrap; font-family: var(--serif); font-size: clamp(12px, 1vw, 16px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #3a2a1d; }

.ar-title { margin: 0; text-align: left; font-family: var(--cond); font-weight: 400; font-size: clamp(60px, min(8.2vw, 12.6vh), 140px); line-height: .84; letter-spacing: .005em; text-transform: uppercase; color: var(--main); transition: color .8s; }
.ar-l { display: block; overflow: hidden; padding-top: .16em; margin-top: -.12em; }
.ar-l > span { display: block; }
.ar-desc { max-width: 35ch; margin: clamp(10px, 2.2vh, 26px) 0 0; font-family: var(--serif); font-size: clamp(14px, min(1.3vw, 2.15vh), 20px); font-weight: 500; line-height: 1.45; color: #2b1d14; min-height: 5.8em; }
.ar-note { display: none; }
.ar-cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: clamp(14px, 3vh, 30px);
	padding: .62em 1.15em .5em;
	font-family: var(--cond);
	font-size: clamp(22px, 1.9vw, 30px);
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff4e2;
	text-decoration: none;
	background: var(--main);
	border-radius: 4px;
	box-shadow: 0 6px 0 var(--ink2), 0 14px 24px rgba(0, 0, 0, .18);
	transition: background-color .8s, box-shadow .8s, transform .2s;
}
.ar-cta svg { width: .8em; height: .8em; transition: transform .25s; }
.ar-cta:hover { transform: translateY(-2px); }
.ar-cta:hover svg { transform: translateX(4px); }
.ar-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink2), 0 6px 12px rgba(0, 0, 0, .18); }
.ar-cta:focus-visible, .ar-rail button:focus-visible, .ar-nav__b:focus-visible, .ar-soc a:focus-visible { outline: 3px solid var(--accent, #ffe000); outline-offset: 3px; }

/* Riel de sabores: cuatro frascos chicos con su barra de tiempo */
.ar-rail { display: flex; gap: clamp(8px, 1vw, 14px); margin-top: auto; padding-top: clamp(10px, 2vh, 20px); }
.ar-rail button {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 6px;
	width: clamp(56px, 5vw, 76px);
	padding: 6px 4px 9px;
	font: 600 clamp(10px, .78vw, 12px)/1.15 var(--serif);
	color: #5a4636;
	background: rgba(255, 255, 255, .35);
	border: 1px solid rgba(110, 70, 30, .18);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color .3s, transform .3s, color .3s;
}
.ar-rail button svg { width: 52%; height: auto; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ar-rail button:hover svg { transform: translateY(-4px) rotate(-6deg); }
.ar-rail button[aria-selected="true"] { background: #fffaf0; color: var(--main); border-color: color-mix(in srgb, var(--main) 45%, transparent); transform: translateY(-3px); }
.ar-rail i { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; background: rgba(110, 70, 30, .15); overflow: hidden; border-radius: 2px; }
.ar-rail i::after { content: ""; position: absolute; inset: 0; background: var(--main); transform: scaleX(var(--p, 0)); transform-origin: left; }
.ar-note { margin: clamp(10px, 2vh, 18px) 0 0; font-family: var(--serif); font-size: clamp(13px, 1.1vw, 18px); font-weight: 600; font-style: italic; color: rgba(60, 40, 25, .42); }

/* ---------- Frasco ---------- */
.ar-jarwrap {
	position: absolute;
	z-index: 6;
	left: calc(14px + 49% - var(--jw) * .5);
	top: 50%;
	--jw: clamp(220px, min(27vw, 50vh), 420px);
	width: var(--jw);
	margin-top: calc(var(--jw) * -.66);
	perspective: 900px;
	pointer-events: none;
}
.ar-jar { position: relative; transform-style: preserve-3d; will-change: transform; }
.ar-jar svg { display: block; width: 100%; height: auto; overflow: visible; }
.ar-jarshadow { position: absolute; left: 6%; right: 6%; bottom: -4%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px); }
.ar-jar__glint { mix-blend-mode: screen; }

/* ---------- Sello de lacre ---------- */
.ar-seal {
	position: absolute;
	z-index: 7;
	left: calc(14px + 49% + var(--jw, 320px) * .34);
	top: calc(50% + var(--jw, 320px) * .32);
	--jw: clamp(220px, min(27vw, 50vh), 420px);
	width: clamp(96px, 8.4vw, 134px);
	filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4));
	pointer-events: none;
}
.ar-seal svg { display: block; width: 100%; height: auto; animation: ar-spin 22s linear infinite; }
.ar-seal__wax { fill: var(--main); stroke: color-mix(in srgb, var(--main) 70%, #000); stroke-width: 4; transition: fill .8s; }
.ar-seal__in { fill: none; stroke: rgba(255, 240, 220, .55); stroke-width: 2; stroke-dasharray: 3 5; }
.ar-seal__txt { fill: #fff2dc; font: 700 15.5px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.ar-seal__big { fill: #fff2dc; font: 400 46px/1 var(--script); }
.ar-seal__yr { fill: rgba(255, 242, 220, .85); font: 400 20px/1 var(--cond); letter-spacing: .2em; }
@keyframes ar-spin { to { transform: rotate(360deg); } }

/* ---------- Redes, navegación y número ---------- */
.ar-soc { position: absolute; z-index: 7; right: clamp(20px, 4.4vw, 70px); top: clamp(22px, 5vh, 52px); display: flex; align-items: center; gap: 14px; color: #fff; }
.ar-soc a { display: grid; place-items: center; width: 34px; height: 34px; color: inherit; transition: transform .25s, color .25s; }
.ar-soc a:hover { transform: translateY(-3px); color: #ffe7c2; }
.ar-soc svg { width: 22px; height: 22px; }
.ar-soc i, .ar-nav i { font-style: normal; color: color-mix(in srgb, var(--jam) 80%, #fff 20%); opacity: .9; }
.ar-nav { position: absolute; z-index: 7; right: clamp(20px, 4.4vw, 70px); bottom: clamp(96px, 15vh, 140px); display: flex; align-items: center; gap: 16px; }
.ar-nav__b:focus { outline: none; }
.ar-nav__b:hover, .ar-nav__b:focus, .ar-nav__b:active { background: none; color: #fff; box-shadow: none; }
.ar-nav__b { position: relative; padding: 4px 0; font: 400 clamp(28px, 2.6vw, 42px)/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; color: #fff; background: none; border: 0; cursor: pointer; }
.ar-nav__b::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.ar-nav__b:hover::after { transform: scaleX(1); transform-origin: left; }
.ar-big-n { position: absolute; z-index: 4; right: clamp(16px, 3.4vw, 56px); top: 50%; margin: 0; transform: translateY(-50%); font-family: var(--cond); line-height: .8; color: rgba(255, 255, 255, .14); pointer-events: none; }
.ar-big-n__i { display: block; font-weight: 400; font-size: clamp(120px, 15vw, 250px); -webkit-text-stroke: 2px rgba(255, 255, 255, .45); color: transparent; }
.ar-big-n span { display: block; text-align: right; font-size: clamp(26px, 2.4vw, 40px); letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.ar-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero (igual en todas las plantillas) ---------- */
.ar-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: #0a0a0a;
	border-top: 3px solid var(--accent);
}
.ar-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); }
.ar-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.ar-ctrl { display: flex; align-items: center; gap: 10px; }
.ar-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.ar-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); }

/* pantallas bajas: menos aire */
@media (max-height: 820px) and (min-width: 1001px) {
	.ar-desc { min-height: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	.ar-cta { margin-top: 12px; }
	.ar-rail { display: none; }
	.ar-title { font-size: clamp(56px, min(7.4vw, 11.6vh), 120px); }
}
@media (max-height: 700px) and (min-width: 1001px) {
	.ar-desc { -webkit-line-clamp: 3; }
}
@media (max-width: 1180px) {
	.ar-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.ar-foot .ak-actions { grid-column: 1 / -1; }
	.ar-big-n { display: none; }
}

/* ---------- Tablet y móvil: tarjeta arriba, frasco abajo ---------- */
@media (max-width: 1000px) {
	.ar-hero { height: auto; min-height: 0; }
	.ar-stage { flex: none; height: calc(100svh - 68px); min-height: 640px; }
	.ar-card { left: 12px; right: 12px; top: 12px; bottom: auto; width: auto; padding: 24px 24px 26px; }
	.ar-brand { margin-bottom: 14px; }
	.ar-title { font-size: clamp(54px, 13vw, 96px); }
	.ar-desc { max-width: 36ch; min-height: 0; margin-top: 12px; font-size: 15px; }
	.ar-cta { margin-top: 16px; font-size: 21px; }
	.ar-rail, .ar-note { display: none; }
	.ar-jarwrap { --jw: clamp(170px, 40vw, 300px); left: calc(50% - var(--jw) * .5); top: auto; bottom: 64px; margin-top: 0; }
	.ar-seal { --jw: clamp(170px, 40vw, 300px); left: calc(50% - var(--jw) * .5 - 50px); top: auto; bottom: 90px; width: 92px; }
	.ar-soc { display: none; }
	.ar-nav { left: 0; right: 0; bottom: 16px; justify-content: space-between; padding: 0 18px; }
	.ar-nav i { display: none; }
	.ar-nav__b { font-size: 26px; }
}
@media (max-width: 700px) {
	.ar-hero { padding-top: 60px; }
	.ar-stage { height: calc(100svh - 60px); min-height: 620px; }
	.ar-card { padding: 20px 20px 22px; }
	.ar-brand__txt b { font-size: 32px; }
	.ar-desc { font-size: 14px; line-height: 1.42; }
	.ar-jarwrap { --jw: clamp(150px, 44vw, 210px); bottom: 58px; }
	.ar-seal { --jw: clamp(150px, 44vw, 210px); width: 78px; bottom: 80px; left: calc(50% - var(--jw) * .5 - 40px); }
	.ar-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.ar-ctrl { order: -1; }
	.ar-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.ar-seal svg { animation: none; }
	.ar-bg video { transform: none; }
}
