/* ==================================================
   Fitness — estilos propios de la plantilla (hero: pulso)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   --or: naranja del original · --heat: calor del pulso (0 reposo, 1 zona máxima), lo actualiza fi.js
   ================================================== */

.fi-hero {
	--or: #ff9000;
	--heat: 0;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 700px;
	padding-top: 68px;
	overflow: hidden;
	color: #fff;
	background: #0c0c0c;
	touch-action: pan-y;
}

/* ---------- Videos / imágenes de cada rutina ---------- */
.fi-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fi-media > * { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.fi-media > .is-on { opacity: 1; }
/* Los que alimentan el portal se reproducen invisibles (para poder dibujarlos) */
.fi-media > .is-feed { opacity: .001; }
.fi-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(12, 12, 12, .85) 0%, rgba(12, 12, 12, .45) 40%, rgba(12, 12, 12, .25) 65%, rgba(12, 12, 12, .7) 100%),
		linear-gradient(to bottom, rgba(12, 12, 12, .5) 0%, rgba(12, 12, 12, 0) 30%, rgba(12, 12, 12, 0) 60%, rgba(12, 12, 12, .85) 100%),
		radial-gradient(ellipse at 50% 120%, rgba(255, 144, 0, calc(.12 + var(--heat) * .3)), rgba(255, 144, 0, 0) 60%);
	pointer-events: none;
}
.fi-ecg { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
.fi-portal { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%; pointer-events: none; }
.fi-next { position: absolute; z-index: 4; left: 50%; top: calc(68px + 4vh); margin: 0; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .78); transform: translateX(-50%); pointer-events: none; }
.fi-next b { color: var(--or); }
.fi-next i { font-style: normal; color: var(--or); }

/* ---------- Monitor de pulso (arriba del panel de anillos) ---------- */
.fi-bpm { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fi-heart { grid-row: span 2; position: relative; display: block; width: 34px; height: 30px; }
.fi-heart::before, .fi-heart::after { content: ''; position: absolute; top: 0; width: 18px; height: 28px; background: var(--or); border-radius: 18px 18px 0 0; }
.fi-heart::before { left: 17px; transform: rotate(-45deg); transform-origin: 0 100%; }
.fi-heart::after { left: -1px; transform: rotate(45deg); transform-origin: 100% 100%; }
.fi-bpm__v { margin: 0; font-family: 'Poppins', sans-serif; line-height: 1; }
.fi-bpm__v b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fi-bpm__v span { font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }
.fi-bpm__zone { margin: 0; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.fi-bpm__bar { grid-column: 1 / -1; position: relative; display: block; height: 6px; margin-top: 8px; background: rgba(255, 255, 255, .14); }
.fi-bpm__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #ffb347, var(--or), #ff3d00); transform: scaleX(var(--heat)); transform-origin: 0 50%; }
.fi-bpm__hint { grid-column: 1 / -1; margin: 6px 0 0; font-family: var(--mb-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.fi-hint--touch { display: none; }
@media (hover: none) {
	.fi-hint--mouse { display: none; }
	.fi-hint--touch { display: inline; }
}
.fi-hero.is-max .fi-bpm__zone { color: #ff3d00; text-shadow: 0 0 12px rgba(255, 61, 0, .8); }

/* ---------- Contenido: título abajo a la izquierda, anillos abajo a la derecha ---------- */
.fi-main { position: relative; z-index: 5; flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 calc(var(--gutter) + 70px) clamp(18px, 4vh, 40px) var(--gutter); pointer-events: none; }
.fi-main button, .fi-main a { pointer-events: auto; }
.fi-copy { max-width: 560px; }
.fi-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.fi-logo { display: block; width: 26px; height: 26px; background: var(--or); -webkit-mask: url(../../wp-content/uploads/revslider/fitness-gym-website-slider/logo-fitness.svg) center / contain no-repeat; mask: url(../../wp-content/uploads/revslider/fitness-gym-website-slider/logo-fitness.svg) center / contain no-repeat; }
.fi-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.fi-mask > span { display: inline-block; }
.fi-page .fi-title { margin: 0 0 16px; font-family: 'Poppins', var(--mb-display); font-weight: 800; line-height: .92; letter-spacing: -.03em; text-align: left; text-transform: uppercase; color: #fff; }
.fi-l1 { font-size: clamp(20px, 2vw, 32px); font-weight: 300; letter-spacing: .02em; }
.fi-l2 { font-size: clamp(54px, 6.6vw, 112px); color: var(--or); }
.fi-l3 { font-size: clamp(40px, 4.6vw, 78px); }
.fi-sub { max-width: 40ch; margin: 0 0 22px; font-family: 'Poppins', sans-serif; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.ak-page .fi-book {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: auto;
	min-height: 56px;
	margin: 0;
	padding: 0 28px;
	overflow: hidden;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #0c0c0c;
	background: var(--or);
	border: 0;
	border-radius: 0;
	box-shadow: 0 16px 40px -12px rgba(255, 144, 0, .7);
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s linear;
}
.ak-page .fi-book:hover, .ak-page .fi-book:focus-visible { color: #0c0c0c; background: #fff; transform: translateY(-3px); box-shadow: 0 22px 46px -12px rgba(255, 144, 0, .8); }
.fi-toast { min-height: 1.4em; margin: 12px 0 0; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--or); }

/* Reloj deportivo: queda por encima del saludo del botón de WhatsApp */
.fi-rings { width: 360px; margin-bottom: 96px; padding: 16px 20px; background: rgba(12, 12, 12, .55); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fi-rings__row { display: flex; align-items: center; gap: 18px; }
.fi-rings svg { flex: 0 0 auto; display: block; width: 116px; height: 116px; transform: rotate(-90deg); }
.fi-ring__bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 10; }
.fi-ring { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.fi-ring--1 { stroke: var(--or); }
.fi-ring--2 { stroke: #ffc24d; }
.fi-ring--3 { stroke: #ff5a1f; }
.fi-stats { display: grid; gap: 8px; margin: 0; }
.fi-stats div { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; gap: 10px; }
.fi-stats dt { order: 2; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.fi-stats dd { order: 1; margin: 0; font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.fi-stats div:nth-child(1) dd { color: var(--or); }
.fi-stats div:nth-child(2) dd { color: #ffc24d; }
.fi-stats div:nth-child(3) dd { color: #ff5a1f; }

/* ---------- Contador y rutinas (a la derecha) ---------- */
.fi-nav { position: absolute; z-index: 5; right: var(--gutter); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateY(-60%); }
.fi-count { margin: 0 0 6px; font-family: 'Poppins', sans-serif; line-height: 1; text-align: center; }
.fi-count b { display: block; font-size: 34px; font-weight: 800; color: var(--or); }
.fi-count span { font-family: var(--mb-mono); font-size: 12px; color: rgba(255, 255, 255, .6); }
.ak-page .fi-dot { position: relative; display: block; width: 14px; height: 46px; min-height: 0; margin: 0; padding: 0; background: rgba(255, 255, 255, .18); border: 0; border-radius: 0; cursor: pointer; transition: background-color .2s linear; }
.fi-dot i { position: absolute; inset: 0; background: var(--or); transform: scaleY(var(--fill, 0)); transform-origin: 50% 0; }
.ak-page .fi-dot:hover { background: rgba(255, 255, 255, .4); }
.ak-page .fi-dot.is-on { background: rgba(255, 255, 255, .35); }
.fi-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.fi-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: rgba(12, 12, 12, .92);
	border-top: 3px solid var(--accent);
}
.fi-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); }
.fi-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.fi-ctrl { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1180px) {
	.fi-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.fi-foot .ak-actions { grid-column: 1 / -1; }
	.fi-rings svg { width: 92px; height: 92px; }
}
/* Pantallas bajas */
@media (max-height: 820px) and (min-width: 1001px) {
	.fi-l2 { font-size: clamp(48px, 5.4vw, 88px); }
	.fi-l3 { font-size: clamp(34px, 3.8vw, 62px); }
	.fi-sub { margin-bottom: 16px; }
	.fi-bpm__hint { display: none; }
	.fi-rings svg { width: 92px; height: 92px; }
	.fi-rings { padding: 12px 16px; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.fi-hero { height: auto; min-height: 100svh; }
	.fi-main { flex-direction: column; align-items: flex-start; padding: 52vh var(--gutter) 28px; }
	.fi-rings { margin-bottom: 0; }
	.fi-nav { top: calc(68px + 3vh); right: var(--gutter); flex-direction: row; transform: none; }
	.fi-count { margin: 0 8px 0 0; }
	.ak-page .fi-dot { width: 30px; height: 10px; }
	.fi-dot i { transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }
	.fi-next { top: auto; bottom: auto; }
}
@media (max-width: 700px) {
	.fi-hero { padding-top: 60px; }
	.fi-next { left: var(--gutter); top: calc(60px + 24px); transform: none; }
	.fi-nav { top: calc(60px + 18px); }
	.fi-count b { font-size: 24px; }
	.fi-main { padding-top: 46vh; }
	.fi-rings { width: 100%; }
	.fi-rings svg { width: 96px; height: 96px; }
	.fi-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.fi-ctrl { order: -1; }
	.fi-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ak-page .fi-book { transition: none; }
}
