/* ==================================================
   Guitarro — estilos propios de la plantilla (hero: la cuerda que compara)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   gt.js recorta .gt-after con la forma de la cuerda (clip-path), mueve la púa y las etiquetas,
   y dibuja la cuerda en .gt-cv
   ================================================== */

.gt-hero {
	--orange: #ff6600;
	--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: #161616;
	touch-action: pan-y;
}
.gt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* ---------- Escenario: cada escena tiene su lado "antes" y su lado "después" ---------- */
.gt-stage { position: absolute; left: 0; right: 0; top: 68px; bottom: var(--foot-h); z-index: 0; overflow: hidden; cursor: ew-resize; }
.gt-slide { position: absolute; inset: 0; visibility: hidden; }
.gt-slide.is-on, .gt-slide.is-next { visibility: visible; }
.gt-slide.is-next { z-index: 2; }
.gt-side { position: absolute; inset: 0; overflow: hidden; }
.gt-after { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
.ak-page .gt-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.gt-band { position: absolute; left: 0; right: 0; bottom: 0; height: 33.4%; }
.ak-page .gt-cut { position: absolute; left: 50%; top: 45%; width: auto; height: 74%; max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }

/* Textos de cada escena (iguales en los dos lados, cambian donde pasa la cuerda) */
.gt-txt { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.gt-txt p { margin: 0; }
.gt-script { font-family: 'Great Vibes', cursive; font-size: clamp(44px, 5.2vw, 76px); line-height: 1; color: var(--orange); text-shadow: 0 5px 15px rgba(0, 0, 0, .55); }
.gt-big { font-size: clamp(54px, 7.4vw, 108px); line-height: .9; text-transform: uppercase; text-shadow: 0 5px 15px rgba(0, 0, 0, .45); }
.gt-big--abril { font-family: 'Abril Fatface', serif; letter-spacing: .01em; }
.gt-big--poppins { font-family: 'Poppins', sans-serif; font-weight: 900; letter-spacing: -.01em; }
.gt-big--bebas { font-family: 'Bebas Neue', sans-serif; font-weight: 400; text-transform: none; }
.gt-big--black { font-family: 'Archivo Black', 'Archivo', sans-serif; font-size: clamp(44px, 6vw, 92px); line-height: .95; }
.gt-txt--s1 { bottom: 5%; }
.gt-txt--s2 { top: 9%; bottom: 10%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.gt-txt--s2 .gt-big { font-size: clamp(48px, 5.6vw, 80px); line-height: .95; }
.gt-pill { display: inline-block; padding: 6px 24px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; }
.gt-pill--dark { background: rgba(12, 12, 12, .45); border-color: transparent; }
.gt-txt--s3 { bottom: 8%; }
.gt-script--lic { font-family: 'Licorice', cursive; color: #fff; font-size: clamp(42px, 4.8vw, 70px); }
.gt-txt--s4 { top: 50%; transform: translateY(-50%); }
.gt-box { display: inline-block; padding: 18px 26px; font-size: clamp(42px, 4.8vw, 70px); line-height: .95; text-transform: uppercase; background: rgba(12, 12, 12, .5); }
.gt-before .gt-txt--s4 { text-align: left; padding-left: 6%; }
.gt-after .gt-txt--s4 { text-align: right; padding-right: 6%; }

.gt-cv { position: absolute; left: 0; right: 0; top: 68px; bottom: var(--foot-h); z-index: 3; width: 100%; height: calc(100% - 68px - var(--foot-h)); pointer-events: none; }

/* ---------- Etiquetas que acompañan a la cuerda ---------- */
.gt-tag { position: absolute; z-index: 4; left: 0; top: calc(68px + 24px); margin: 0; padding: 7px 12px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #fff; background: rgba(10, 10, 10, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.gt-tag span { color: var(--orange); }

/* ---------- La púa ---------- */
.gt-pick {
	position: absolute;
	z-index: 5;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 56px;
	height: 64px;
	padding-bottom: 8px;
	font-family: var(--mb-display);
	font-size: 22px;
	font-weight: 900;
	color: #fff;
	background: linear-gradient(160deg, #ff8a3d, var(--orange) 45%, #c24400);
	clip-path: path('M28 64 C13 52 0 36 0 19 C0 6 13 0 28 0 C43 0 56 6 56 19 C56 36 43 52 28 64 Z');
	cursor: grab;
	touch-action: none;
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5));
}
.gt-pick.is-drag { cursor: grabbing; }
.gt-pick:focus-visible { outline: none; background: linear-gradient(160deg, #ffe000, #ffb000); color: #161616; }

/* ---------- Afinador ---------- */
.gt-tuner { position: absolute; z-index: 5; right: var(--gutter); top: calc(68px + 20px); width: 212px; padding: 12px 14px 12px; font-family: var(--mb-mono); color: #fff; background: rgba(10, 10, 10, .62); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gt-tuner__note { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.gt-tuner__n { font-family: var(--mb-display); font-size: 40px; font-weight: 900; line-height: 1; color: var(--orange); }
.gt-tuner__hz { font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.gt-tuner__meter { position: relative; height: 26px; margin-bottom: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 9px) center bottom / 100% 8px no-repeat; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.gt-tuner__meter::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 2px; height: 14px; margin-left: -1px; background: #4ce06c; }
.gt-tuner__needle { position: absolute; left: 50%; bottom: 0; width: 2px; height: 24px; margin-left: -1px; background: var(--orange); transform-origin: 50% 100%; }
.gt-tuner__osc { display: block; width: 100%; height: 40px; margin-bottom: 8px; }
.ak-page .gt-sound { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 0; margin: 0; padding: 7px 10px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; }
.ak-page .gt-sound:hover { border-color: var(--orange); }
.gt-sound__ico { width: 14px; height: 14px; flex: 0 0 auto; background: currentColor; clip-path: polygon(0 32%, 30% 32%, 62% 0, 62% 100%, 30% 68%, 0 68%); }
.gt-sound[aria-pressed="true"] { color: #161616; background: var(--orange); border-color: var(--orange); }
.gt-sound__on, .gt-sound[aria-pressed="true"] .gt-sound__off { display: none; }
.gt-sound[aria-pressed="true"] .gt-sound__on { display: inline; }

/* ---------- Escenas (miniaturas partidas en antes / después) ---------- */
.gt-nav { position: absolute; z-index: 5; left: var(--gutter); bottom: calc(var(--foot-h) + 22px); display: flex; align-items: center; gap: 8px; }
.ak-page .gt-dot {
	position: relative;
	display: flex;
	align-items: center;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 4px;
	font-family: var(--mb-mono);
	color: #fff;
	background: rgba(10, 10, 10, .62);
	border: 1px solid rgba(255, 255, 255, .2);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: border-color .2s linear, background-color .2s linear;
}
.gt-dot span { display: block; width: 34px; height: 46px; background-size: auto 92%, cover; background-position: center, center; background-repeat: no-repeat; filter: saturate(.7) brightness(.8); transition: filter .2s linear; }
.gt-dot span + span { box-shadow: -1px 0 0 var(--orange); }
.gt-dot b { position: absolute; left: 8px; top: 6px; font-size: 10px; text-shadow: 0 0 6px #000; }
.gt-dot__t { display: none; padding: 0 12px 0 12px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.gt-dot i { position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.ak-page .gt-dot:hover { border-color: rgba(255, 102, 0, .6); }
.gt-dot:hover span, .gt-dot.is-on span { filter: none; }
.ak-page .gt-dot.is-on { border-color: var(--orange); background: rgba(255, 102, 0, .14); }
.gt-dot.is-on .gt-dot__t { display: inline; }
.gt-dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.gt-hint { position: absolute; z-index: 4; right: var(--gutter); top: calc(68px + 20px + 196px); width: 212px; margin: 0; font-family: var(--mb-mono); font-size: 11px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px #000; pointer-events: none; }
.gt-hint--touch { display: none; }
@media (hover: none) {
	.gt-hint--mouse { display: none; }
	.gt-hint--touch { display: inline; }
}
.gt-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.gt-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;
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: rgba(10, 10, 10, .94);
	border-top: 3px solid var(--accent);
}
.gt-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); }
.gt-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.gt-ctrl { display: flex; align-items: center; gap: 10px; }
.gt-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.gt-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) {
	.gt-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.gt-foot .ak-actions { grid-column: 1 / -1; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.gt-tuner { padding: 8px 12px; }
	.gt-tuner__n { font-size: 32px; }
	.gt-hint { display: none; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.gt-hero { height: auto; min-height: 0; }
	.gt-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 560px; max-height: 960px; }
	.gt-tuner { top: auto; bottom: calc(var(--foot-h) + 84px); width: 168px; padding: 8px 10px; }
	.gt-tuner__osc { height: 30px; }
	.gt-hint { display: none; }
	.gt-tag { top: calc(60px + 14px); font-size: 10px; padding: 5px 8px; }
	.gt-txt--s1 { bottom: 4%; }
}
@media (max-width: 700px) {
	.gt-hero { padding-top: 60px; }
	.gt-stage, .gt-cv { top: 60px; }
	.gt-cv { height: calc(100% - 60px - var(--foot-h)); }
	.gt-hero::before { height: min(calc(100svh - 70px), 720px); }
	.ak-page .gt-cut { height: 52%; top: 40%; }
	.gt-txt--s1 { bottom: 16%; }
	.gt-txt--s3 { bottom: 18%; }
	.gt-txt--s2 { bottom: 20%; }
	.gt-box { padding: 10px 14px; font-size: 30px; }
	.gt-before .gt-txt--s4 { padding-left: 4%; }
	.gt-after .gt-txt--s4 { padding-right: 4%; }
	/* Afinador compacto: nota + botón de sonido, arriba a la derecha */
	.gt-tuner { top: calc(60px + 52px); bottom: auto; right: 10px; width: auto; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; }
	.gt-tuner__note { margin: 0; }
	.gt-tuner__hz, .gt-tuner__meter, .gt-tuner__osc { display: none; }
	.gt-tuner__n { font-size: 24px; }
	.ak-page .gt-sound { width: auto; margin: 0; padding: 7px; }
	.gt-sound__off, .gt-sound[aria-pressed="true"] .gt-sound__on { display: none; }
	.gt-nav { left: 10px; right: 10px; bottom: calc(var(--foot-h) + 12px); }
	.ak-page .gt-dot { flex: 1 1 0; justify-content: center; }
	.gt-dot span { width: 50%; height: 40px; }
	.gt-dot.is-on .gt-dot__t { display: none; }
	.gt-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.gt-ctrl { order: -1; }
	.gt-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.gt-dot span { transition: none; }
}
