/* ==================================================
   Flickr Gallery — estilos propios de la plantilla (hero: cuarto oscuro)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   ================================================== */

.fl-hero {
	--safe: #ff2a1a;   /* luz roja de seguridad */
	--paper: #f3efe6;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 720px;
	padding-top: 68px;
	overflow: hidden;
	color: #f5ece8;
	background: #0d0606;
}

/* ---------- La sala: penumbra roja y la lámpara de seguridad ---------- */
.fl-room {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 60% 70% at 88% 4%, rgba(255, 42, 26, .32), rgba(255, 42, 26, 0) 70%),
		radial-gradient(ellipse 80% 60% at 30% 110%, rgba(150, 20, 10, .28), rgba(150, 20, 10, 0) 70%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, rgba(255, 255, 255, 0) 2px 120px),
		#0d0606;
	animation: fl-flicker 7s steps(1) infinite;
	pointer-events: none;
}
.fl-lamp { position: absolute; right: 7%; top: 10px; display: block; width: 46px; height: 18px; border-radius: 0 0 46px 46px; background: radial-gradient(ellipse at 50% 0, #ff6a50, #c4150b 70%); box-shadow: 0 0 40px 14px rgba(255, 42, 26, .45), 0 0 140px 40px rgba(255, 42, 26, .2); }
.fl-lamp::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 80px; background: #2a1a18; }
@keyframes fl-flicker {
	0%, 100% { filter: brightness(1); }
	41% { filter: brightness(.9); }
	42% { filter: brightness(1.05); }
	77% { filter: brightness(.95); }
}

/* ---------- Cordel con las fotos secándose ---------- */
.fl-line { position: relative; z-index: 4; flex: 0 0 auto; height: clamp(120px, 19vh, 176px); }
.fl-line__rope { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.fl-line__rope path { fill: none; stroke: #c9b8a8; stroke-width: 1.5; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); }
.ak-page .fl-print {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: clamp(92px, 9vw, 138px);
	min-height: 0;
	margin: 0;
	padding: 6px 6px 16px;
	background: var(--paper);
	border: 0;
	border-radius: 0;
	box-shadow: 0 10px 18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .15);
	transform-origin: 50% -8px;
	cursor: pointer;
	will-change: transform;
}
.fl-print img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.fl-print::before { content: ''; position: absolute; left: 50%; top: -14px; width: 10px; height: 26px; margin-left: -5px; background: linear-gradient(90deg, #b38a5a, #d9b384 50%, #a07648); border-radius: 2px; box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.fl-print::after { content: ''; position: absolute; left: 50%; top: -6px; width: 14px; height: 3px; margin-left: -7px; background: #6d5236; }
.ak-page .fl-print:hover, .ak-page .fl-print:focus-visible { background: #fff; box-shadow: 0 14px 26px rgba(0, 0, 0, .65), 0 0 0 2px var(--accent); }
.fl-fly { position: fixed; z-index: 50; left: 0; top: 0; display: block; padding: 6px 6px 16px; background: var(--paper); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); pointer-events: none; transform-origin: 50% 0; }
.fl-fly img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contenido: texto a la izquierda, bandeja a la derecha ---------- */
.fl-main { position: relative; z-index: 3; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: minmax(0, 1fr); gap: clamp(20px, 3vw, 50px); padding: 4px calc(var(--gutter) + 6px) 34px var(--gutter); }
.fl-copy { align-self: center; }
.fl-kicker { margin: 0 0 12px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ff8a73; }
.fl-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.fl-mask > span { display: inline-block; }
.fl-page .fl-title { margin: 0 0 22px; font-family: 'Raleway', var(--mb-display); font-size: clamp(38px, 4.4vw, 74px); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-align: left; text-transform: none; color: #fff; }
.fl-title__2 { font-weight: 300; font-style: italic; color: #ffb3a3; }
.fl-cap { position: relative; max-width: 420px; margin: 0 0 24px; padding: 14px 18px 14px 20px; background: rgba(20, 8, 7, .7); border: 1px solid rgba(255, 138, 115, .22); border-left: 3px solid var(--safe); }
.fl-cap p { margin: 0; }
.fl-cap__n { font-family: var(--mb-mono); font-size: 12px; color: rgba(245, 236, 232, .6); }
.fl-cap__i { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.fl-cap__t { margin: 4px 0 4px !important; font-family: 'Raleway', sans-serif; font-size: clamp(19px, 1.6vw, 25px); font-weight: 800; line-height: 1.15; color: #fff; }
.fl-cap__d { font-family: var(--mb-mono); font-size: 12px; letter-spacing: .04em; color: rgba(245, 236, 232, .7); }
.fl-cap__state { color: #ff8a73; }
.fl-cap.is-done .fl-cap__state { color: #7ee2a8; }
.ak-page .fl-cap__link { display: inline-flex; gap: 6px; margin-top: 10px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #ffb3a3; border-bottom: 1px solid rgba(255, 179, 163, .4); }
.ak-page .fl-cap__link:hover, .ak-page .fl-cap__link:focus-visible { color: #fff; border-color: #fff; }
.fl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ak-page .fl-next {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: auto;
	min-height: 54px;
	margin: 0;
	padding: 0 26px;
	font-family: 'Raleway', sans-serif;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #170806;
	background: var(--paper);
	border: 0;
	border-radius: 0;
	box-shadow: 5px 5px 0 var(--safe);
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s linear;
}
.ak-page .fl-next:hover, .ak-page .fl-next:focus-visible { color: #170806; background: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--safe); }
.fl-hint { margin: 0; font-family: var(--mb-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(245, 236, 232, .55); }
.fl-hint--touch { display: none; }
@media (hover: none) {
	.fl-hint--mouse { display: none; }
	.fl-hint--touch { display: inline; }
}

/* La bandeja: plástico oscuro con borde, vista un poco en perspectiva */
/* En escritorio ocupa toda la altura disponible (fl.js la angosta si quedara más ancha que 2:1) */
.fl-tray { position: relative; align-self: stretch; justify-self: end; width: 100%; height: 100%; perspective: 1400px; }
.fl-tray__in {
	position: absolute;
	inset: 0;
	padding: clamp(10px, 1.2vw, 18px);
	border-radius: 14px;
	background: linear-gradient(160deg, #3a1d18, #1a0b09 60%, #120706);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -10px 22px rgba(0, 0, 0, .7), 0 40px 70px -20px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(255, 42, 26, .5);
	transform: rotateX(16deg);
	transform-origin: 50% 100%;
}
.fl-cv { display: block; width: 100%; height: 100%; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); cursor: crosshair; touch-action: pan-y; }
.fl-tray__label { position: absolute; left: 14px; bottom: -28px; font-family: var(--mb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 236, 232, .5); }
.fl-timer { position: absolute; right: 8px; bottom: -32px; padding: 3px 9px; font-family: var(--mb-mono); font-size: 13px; color: #ff6a50; background: #120606; border: 1px solid rgba(255, 106, 80, .35); text-shadow: 0 0 8px rgba(255, 42, 26, .8); }

/* ---------- Tira de negativos ---------- */
.fl-strip { position: relative; z-index: 4; flex: 0 0 auto; margin: clamp(26px, 4vh, 40px) 0 0; padding: 14px 0; background: #1a120d; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
/* Perforaciones arriba y abajo */
.fl-strip::before, .fl-strip::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, transparent 0 8px, #3a2a20 8px 16px, transparent 16px 24px); pointer-events: none; }
.fl-strip::before { top: 3px; }
.fl-strip::after { bottom: 3px; }
.fl-strip__in { display: flex; gap: 8px; padding: 0 var(--gutter); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.fl-strip__in::-webkit-scrollbar { display: none; }
.ak-page .fl-neg { position: relative; flex: 0 0 auto; display: block; width: 96px; min-height: 0; margin: 0; padding: 0; overflow: hidden; background: #2a1c12; border: 2px solid transparent; border-radius: 0; cursor: pointer; transition: border-color .2s linear, transform .2s var(--ease); }
.fl-neg img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: invert(1) sepia(.65) saturate(2.4) hue-rotate(-12deg) brightness(.85); transition: filter .35s linear; }
.fl-neg b { position: absolute; left: 3px; top: 1px; font-family: var(--mb-mono); font-size: 9px; font-weight: 700; color: #ffb36b; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.ak-page .fl-neg:hover img, .ak-page .fl-neg:focus-visible img, .fl-neg.is-on img { filter: none; }
.ak-page .fl-neg:hover { background: #2a1c12; transform: translateY(-3px); }
.ak-page .fl-neg.is-on { background: #2a1c12; border-color: var(--accent); }
.fl-neg.is-seen::after { content: ''; position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #7ee2a8; }
.fl-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.fl-foot {
	position: relative;
	z-index: 6;
	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: #0a0505;
	border-top: 3px solid var(--accent);
}
.fl-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); }
.fl-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.fl-ctrl { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1180px) {
	.fl-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.fl-foot .ak-actions { grid-column: 1 / -1; }
}
/* Pantallas bajas: menos cordel y negativos más chicos */
@media (max-height: 860px) and (min-width: 1001px) {
	.fl-line { height: 122px; }
	.ak-page .fl-print { width: 84px; padding: 5px 5px 13px; }
	.fl-page .fl-title { font-size: clamp(34px, 3.6vw, 58px); margin-bottom: 14px; }
	.fl-cap { margin-bottom: 16px; padding: 10px 14px; }
	.ak-page .fl-neg { width: 78px; }
	.fl-strip { margin-top: 30px; padding: 12px 0; }
	.fl-hint { display: none; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.fl-hero { height: auto; min-height: 0; }
	.fl-main { grid-template-columns: 1fr; grid-template-rows: auto; padding: 0 var(--gutter); }
	.fl-tray { order: -1; height: auto; aspect-ratio: 3 / 2; margin-bottom: 34px; }
	.fl-copy { padding-bottom: 6px; }
	.fl-line { height: 130px; }
}
@media (max-width: 700px) {
	.fl-hero { padding-top: 60px; }
	.fl-line { height: 112px; }
	.ak-page .fl-print { width: 84px; padding: 4px 4px 12px; }
	.fl-tray__in { transform: none; padding: 8px; }
	.fl-page .fl-title { font-size: clamp(34px, 10vw, 50px); }
	.ak-page .fl-neg { width: 72px; }
	.fl-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.fl-ctrl { order: -1; }
	.fl-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.fl-room { animation: none; }
	.fl-neg img, .ak-page .fl-neg { transition: none; }
}
