/* KATA Guides — page-scoped. Heredada del design system. */

.kata-guides {
	background: var(--c-white);
	color: var(--c-dark);
}

/* ── Section base ──────────────────────────────────────────────────────── */
.guides-section {
	padding: var(--section-py) var(--gutter); /* audit #6 H4 */
}
.guides-section--dark {
	background: var(--c-dark);
	color: var(--c-white);
}
.guides-section--cream {
	background: var(--c-cream);
	color: var(--c-dark);
}
.guides-section__inner {
	max-width: var(--maxw);
	margin: 0 auto;
}

/* ── Eyebrow + headline shared ────────────────────────────────────────── */
/* v5.21.x Orne: eyebrow normalised to canonical Home `.eyebrow` style. Same
 * approach as About — literal "—" character hidden via text-indent so the
 * dash span paints as a clean line. */
.guides-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ff-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: inherit;
	opacity: 1;
	margin: 0 0 1.5rem;
}
.guides-eyebrow__index {
	font-family: var(--ff-display);
	font-size: 20px;
	font-weight: 400;
	color: var(--c-gold);
	letter-spacing: 0.02em;
	line-height: 1;
	opacity: 1;
}
.guides-eyebrow__dash {
	display: inline-block;
	width: 38px;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
	margin: 0;
	overflow: hidden;
	text-indent: -9999px;
	vertical-align: middle;
}
.guides-h2 {
	font-family: var(--ff-display);
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 2rem;
}

/* ── §01 Hero ──────────────────────────────────────────────────────────── */
.guides-hero {
	position: relative;
	min-height: 50vh;
	/* Bruno 2026-05-13 cierre 3: row-flex with a single in-flow child (.inner)
	 * shrink-wrapped the inner to content width, so on wide viewports it
	 * misaligned vs §02–§07. Same fix as About §01: column-flex keeps the
	 * vertical centering but lets the inner stretch to width:100% then
	 * cap to var(--maxw) like every other section. Ref memory
	 * feedback_flex_row_single_child_shrinkwrap. */
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 7rem var(--gutter) 4rem;
	overflow: hidden;
}
.guides-hero__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	z-index: 0;
}
.guides-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.78) 100%);
	z-index: 1;
}
.guides-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
}
.guides-hero__breadcrumb {
	font-size: 0.875rem;
	opacity: 0.7;
	margin-bottom: 2rem;
}
.guides-hero__breadcrumb a { color: inherit; text-decoration: none; }
.guides-hero__breadcrumb a:hover { color: var(--c-gold); }
.guides-hero__title {
	font-family: var(--ff-display);
	font-size: clamp(2.75rem, 8vw, 6rem);
	line-height: 0.92;
	letter-spacing: 0.01em;
	margin: 0 0 1.5rem;
	text-transform: uppercase;
}
.guides-hero__lede {
	font-size: 1.05rem;
	line-height: 1.65;
	opacity: 0.9;
	max-width: 60ch;
	margin: 0 0 2rem;
}
.guides-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.guides-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-gold);
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
	transition: background 200ms ease, color 200ms ease;
}
.guides-chip:hover {
	background: var(--c-gold);
	color: var(--c-dark);
}

/* ── §02 Measure ──────────────────────────────────────────────────────── */
.guides-measure__lede {
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 60ch;
	margin: -1rem 0 3rem;
	opacity: 0.85;
}
.guides-measure__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 900px) {
	.guides-measure__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.guides-card {
	background: var(--c-white);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 250ms ease, box-shadow 250ms ease;
}
.guides-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.guides-card__video {
	margin: 0;
	aspect-ratio: 16 / 9;
	background: var(--c-dark);
}
/* Install (§03) videos are portrait 9:16; measure (§02) stay 16:9. */
.guides-card--install .guides-card__video {
	aspect-ratio: 9 / 16;
}
.guides-card__video video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.guides-card__body { padding: 1.5rem; }
.guides-card__title {
	font-family: var(--ff-display);
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}
.guides-card__desc {
	font-size: 0.95rem;
	line-height: 1.55;
	opacity: 0.75;
	margin: 0;
}
.guides-measure__cta {
	text-align: center;
	margin: 3rem 0 0;
	font-size: 1rem;
}
.guides-measure__cta a {
	color: var(--c-dark);
	font-weight: 600;
	text-decoration: underline;
	margin-left: 0.5em;
}
.guides-measure__cta a:hover { color: var(--c-gold); }

/* ── §03 Install ──────────────────────────────────────────────────────── */
.guides-install__lede {
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 60ch;
	margin: -1rem 0 3rem;
	opacity: 0.9;
}
.guides-install__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 900px) {
	.guides-install__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.guides-card--install {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.guides-card--install .guides-card__desc { opacity: 0.65; }
.guides-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}
.guides-install__crosslink {
	text-align: center;
	margin: 3rem 0 0;
	font-size: 1rem;
	opacity: 0.85;
}
.guides-install__crosslink a {
	color: var(--c-gold);
	font-weight: 600;
	text-decoration: underline;
	margin-left: 0.5em;
}

/* audit #6 H2 — .guides-btn family retired. Templates now use canonical
 * .btn .btn--primary / .btn--ghost from main.css. */

/* ── §04 Process (cream) — ported from former /installation/ §02 ──────── */
.guides-process__inner { max-width: var(--maxw); }
.guides-process .guides-h2 {
	max-width: 14ch;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.guides-process__steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.6rem, 2.4vw, 2rem);
}
.guides-process__step {
	position: relative;
	background: var(--c-white);
	border-radius: 4px;
	padding: clamp(1.6rem, 2.4vw, 2.2rem) clamp(1.4rem, 2vw, 1.8rem);
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	border-top: 3px solid var(--c-gold-secondary, #fbb715);
	box-shadow: 0 1px 0 rgba(28,28,28,0.04), 0 12px 32px -16px rgba(28,28,28,0.08);
	transition: transform 250ms ease, box-shadow 250ms ease;
}
.guides-process__step:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 0 rgba(28,28,28,0.04), 0 18px 40px -16px rgba(28,28,28,0.16);
}
.guides-process__num {
	font-family: var(--ff-display);
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--c-gold-secondary, #fbb715);
}
.guides-process__step-title {
	font-family: var(--ff-display);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0;
	color: var(--c-dark);
}
.guides-process__step-body {
	font-size: 0.98rem;
	line-height: 1.6;
	opacity: 0.78;
	margin: 0;
}
@media (min-width: 720px) {
	.guides-process__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
	.guides-process__steps { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
}

/* ── §05 Resources ────────────────────────────────────────────────────── */
.guides-resources__lede {
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 60ch;
	margin: -1rem 0 3rem;
	opacity: 0.85;
}
.guides-resources__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 900px) {
	.guides-resources__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
.guides-resource {
	position: relative;
	padding: 2.25rem 1.75rem 2rem;
	background: var(--c-white);
	border-radius: 4px;
	border-top: 3px solid var(--c-gold);
	transition: transform 250ms ease, box-shadow 250ms ease;
	display: flex;
	flex-direction: column;
}
.guides-resource:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.guides-resource__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1.25rem;
	color: var(--c-gold);
	background: rgba(254, 197, 62, 0.12);
	border-radius: var(--radius-pill);
	transition: background 250ms ease, color 250ms ease;
}
.guides-resource__icon svg { width: 22px; height: 22px; }
.guides-resource:hover .guides-resource__icon {
	background: var(--c-gold);
	color: var(--c-dark);
}
.guides-resource__title {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}
.guides-resource__desc {
	font-size: 0.95rem;
	line-height: 1.6;
	opacity: 0.75;
	margin: 0 0 1.5rem;
	flex: 1;
}
.guides-resource__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 1.5rem;
	color: var(--c-gold);
	font-family: var(--ff-display);
	font-size: 1.5rem;
	text-decoration: none;
	transition: color 200ms ease;
}
.guides-resource:hover .guides-resource__link { color: var(--c-dark); }
.guides-resource__link:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Resources cards on dark bg (flipped v5.19.0 to keep alternation rhythm) */
.guides-section--dark.guides-resources .guides-resource { background: var(--c-white); color: var(--c-dark); }
.guides-section--dark.guides-resources .guides-resource__title { color: var(--c-dark); }
.guides-section--dark.guides-resources .guides-resource__desc { color: var(--c-dark); opacity: 0.7; }

/* ── §06 Warranty (cream) — ported from former /installation/ §06 ─────── */
.guides-warranty__inner { max-width: var(--maxw); }
.guides-warranty .guides-h2 {
	max-width: 18ch;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.guides-warranty__list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 860px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid rgba(28,28,28,0.12);
}
.guides-warranty__item {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: clamp(1.2rem, 2vw, 1.6rem) 0 clamp(1.2rem, 2vw, 1.6rem) 1.8rem;
	border-bottom: 1px solid rgba(28,28,28,0.12);
	position: relative;
}
.guides-warranty__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: clamp(1.6rem, 2.4vw, 2rem);
	width: 10px;
	height: 10px;
	background: var(--c-gold-secondary, #fbb715);
	border-radius: 50%;
}
.guides-warranty__lead {
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--c-dark);
}
.guides-warranty__body {
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--c-dark);
	opacity: 0.72;
}

/* ── §07 Stuck CTA ────────────────────────────────────────────────────── */
.guides-cta {
	position: relative;
	padding: 7rem var(--gutter);
	overflow: hidden;
	text-align: center;
}
.guides-cta__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	z-index: 0;
}
.guides-cta__overlay {
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 1;
}
.guides-cta__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.guides-cta__title { margin-bottom: 1rem; }
.guides-cta__lede { font-size: 1.1rem; opacity: 0.9; margin: 0 0 2.5rem; }
.guides-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}
.guides-cta__sub {
	font-size: 0.9rem;
	opacity: 0.75;
	line-height: 1.8;
	margin: 0;
}
.guides-cta__sub a { color: var(--c-gold); text-decoration: none; }
.guides-cta__sub a:hover { text-decoration: underline; }

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.kata-guides *, .kata-guides *::before, .kata-guides *::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}
