/* ═══════════════════════════════════════════════════════════════
   Marziotto Salon & Spa — estilos comunes
   Cargado por todas las páginas. Va DESPUÉS de Tailwind en la cascada.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
	font-family: 'CaslonCP';
	src: url('../fonts/woff2/casloncp.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
/* Champagne — reservada solo para el descriptor de marca "Salon & Spa" */
@font-face {
	font-family: 'Champagne';
	src: url('../fonts/woff2/champagne-limousines.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Champagne';
	src: url('../fonts/woff2/champagne-limousines-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ── Custom Properties ── */
:root {
	--z-sticky: 40;
	--z-mobile-menu: 80;
	--z-overlay: 60;
	--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ── */
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
/* El header mide 64px y es fijo: sin este margen tapa el título de la sección
   a la que se salta. Sustituye al handler JS que compensaba el offset a mano,
   que solo actuaba en clics dentro de la página — al llegar desde otra página
   con hash (precios.html → index.html#cita) el destino quedaba oculto. */
:target,
section[id],
footer[id] {
	scroll-margin-top: 5.5rem;
}
body {
	background: #f2f2f2;
	color: #163531;
	font-family: 'Jost', system-ui, sans-serif;
	overflow-x: hidden;
}
::selection {
	background: rgba(22, 53, 49, 0.1);
	color: #163531;
}

/* ── Editorial Headings ── */
.font-serif {
	letter-spacing: -0.01em;
	line-height: 1.1;
}

/* ── Hero Wordmark ── */
.hero-wordmark {
	font-size: clamp(5rem, 16vw, 16rem);
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
	color: transparent;
	letter-spacing: -0.04em;
	line-height: 0.85;
	user-select: none;
	pointer-events: none;
}
/* En móvil/tablet el wordmark se ajusta al ancho para verse completo
   (en escritorio conserva el sangrado intencional a los bordes). */
@media (max-width: 1023px) {
	.hero-wordmark {
		font-size: 14vw;
		letter-spacing: -0.02em;
	}
}

/* ── Glass ── */
.glass {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(22, 53, 49, 0.05);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}
.glass-dark {
	background: rgba(14, 31, 29, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

/* ── Buttons ── */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	background: #163531;
	color: #f2f2f2;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border-radius: 6px;
	transition: all 0.3s var(--ease-out-quart);
}
.btn-primary:hover {
	background: #0a1816;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(22, 53, 49, 0.15);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border: 1px solid rgba(22, 53, 49, 0.2);
	color: #163531;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border-radius: 6px;
	transition: all 0.3s var(--ease-out-quart);
}
.btn-outline:hover {
	background: rgba(22, 53, 49, 0.03);
	border-color: #163531;
	transform: translateY(-2px);
}

.btn-primary-light {
	background: #75f5e1;
	color: #060d0c;
}
.btn-primary-light:hover {
	background: #4dd9c4;
}

/* ── Nav link underline ── */
.nav-link {
	position: relative;
}
.nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background: #163531;
	transition: width 0.3s var(--ease-out-quart);
}
.nav-link:hover::after {
	width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu {
	position: fixed;
	inset: 0;
	z-index: var(--z-mobile-menu);
	background: radial-gradient(120% 85% at 50% 0%, rgba(31, 74, 69, 0.38), transparent 62%),
		linear-gradient(180deg, #0a1614 0%, #070f0e 55%, #060d0c 100%);
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.03);
	transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s var(--ease-out-expo),
		transform 0.5s var(--ease-out-expo);
}
#mobile-menu.open {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}
/* Reveal escalonado de los enlaces al abrir */
#mobile-menu .m-item,
#mobile-menu .m-foot {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
#mobile-menu.open .m-item,
#mobile-menu.open .m-foot {
	opacity: 1;
	transform: translateY(0);
}
#mobile-menu.open .m-item:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .m-item:nth-child(2) { transition-delay: 0.16s; }
#mobile-menu.open .m-item:nth-child(3) { transition-delay: 0.22s; }
#mobile-menu.open .m-item:nth-child(4) { transition-delay: 0.28s; }
#mobile-menu.open .m-foot { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
	#mobile-menu,
	#mobile-menu .m-item,
	#mobile-menu .m-foot {
		transition-duration: 0.001s;
		transform: none;
	}
}

/* ── Bento Services Grid ── */
.bento-services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 240px;
	gap: 12px;
}
.bento-services > :first-child {
	grid-row: span 2;
}

@media (max-width: 1024px) {
	.bento-services {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 220px;
	}
	.bento-services > :first-child {
		grid-row: span 1;
	}
}
@media (max-width: 640px) {
	.bento-services {
		grid-template-columns: 1fr;
		grid-auto-rows: 280px;
	}
}

/* ── Service Card ── */
.service-card {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	cursor: pointer;
	display: block;
}
.service-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease-out-quart);
}
.service-card:hover img {
	transform: scale(1.08);
}
.service-card .card-info {
	transition: transform 0.4s var(--ease-out-quart);
	z-index: 2;
}
.service-card:hover .card-info {
	transform: translateY(-6px);
}
.service-card .card-desc {
	opacity: 0;
	transform: translateY(8px);
	transition: all 0.4s var(--ease-out-quart);
}
.service-card:hover .card-desc {
	opacity: 1;
	transform: translateY(0);
}

/* ── Gallery Grid ── */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: 10px;
}
.gallery-grid > :nth-child(1) {
	grid-row: span 2;
}
.gallery-grid > :nth-child(3) {
	grid-column: span 2;
}
.gallery-grid > :nth-child(5) {
	grid-column: span 2;
}

@media (max-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 200px;
	}
	.gallery-grid > :nth-child(1) {
		grid-row: span 1;
	}
	.gallery-grid > :nth-child(3),
	.gallery-grid > :nth-child(5) {
		grid-column: span 1;
	}
}
@media (max-width: 640px) {
	.gallery-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 260px;
	}
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease-out-quart);
}
.gallery-item:hover img {
	transform: scale(1.06);
}
.gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(22, 53, 49, 0.4);
	opacity: 0;
	transition: opacity 0.4s var(--ease-out-quart);
}
.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

/* ── Team ── */
.team-card {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #e0e0e0;
}
.team-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease-out-quart);
}
.team-card:hover img {
	transform: scale(1.05);
}
.team-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(to top, rgba(22, 53, 49, 0.9) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.4s var(--ease-out-quart);
}
.team-card:hover .team-overlay {
	opacity: 1;
}

/* ── Form Inputs ── */
.input-dark {
	width: 100%;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f2f2f2;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s;
}
.input-dark:focus {
	outline: none;
	border-color: rgba(117, 245, 225, 0.3);
}
/* Opciones legibles al abrir el desplegable (fondo del menú nativo es claro) */
.input-dark option {
	color: #163531;
	background: #ffffff;
}
/* Icono del selector de fecha visible sobre fondo oscuro */
.input-dark[type='date']::-webkit-calendar-picker-indicator {
	filter: invert(1);
	opacity: 0.6;
	cursor: pointer;
}

.input-light {
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid rgba(22, 53, 49, 0.1);
	color: #163531;
	border-radius: 6px;
	font-size: 14px;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
	animation: pulse-scroll 2s ease-in-out infinite;
}
@keyframes pulse-scroll {
	0%,
	100% {
		opacity: 0.4;
		transform: translateY(0);
	}
	50% {
		opacity: 1;
		transform: translateY(6px);
	}
}

/* ── Scroll Reveal ─────────────────────────────────────────────
   Contrato: .reveal (estado inicial) + .visible (estado final), que añade
   js/motion.js. El body solo recibe .reveal-ready si vamos a animar, así que
   sin JS —o con reduced-motion— nada se oculta.

   Las variantes se piden con [data-anim]. La idea es que el movimiento
   jerarquice: un título no debe entrar igual que una tarjeta, ni una foto
   igual que un párrafo. Sin data-anim se conserva el comportamiento antiguo,
   para que el marcado existente siga funcionando durante la migración. */
.reveal-ready .reveal {
	opacity: 0;
	transform: translateY(var(--rv-y, 32px));
	transition:
		opacity var(--rv-dur, 0.7s) var(--ease-out-expo) var(--rv-delay, 0s),
		transform var(--rv-dur, 0.7s) var(--ease-out-expo) var(--rv-delay, 0s),
		clip-path var(--rv-dur, 0.7s) var(--ease-out-expo) var(--rv-delay, 0s);
}
.reveal-ready .reveal.visible {
	opacity: 1;
	transform: none;
}

/* TÍTULOS — cortina que sube: el bloque recorta y su contenido entra desde
   abajo. Se mueven los hijos en vez de recortar el propio elemento con
   clip-path, porque IntersectionObserver aplica los clips al calcular la
   intersección: un `clip-path: inset(0 0 108% 0)` deja el rectángulo en 0px de
   alto, el observer no lo da nunca por visible y el título no se revela jamás.
   Con overflow la caja observada conserva su tamaño real.
   Mover los hijos por separado, además, escalona el eyebrow y el titular. */
.reveal-ready .reveal[data-anim='head'] {
	--rv-y: 0px;
	--rv-dur: 0.95s;
	opacity: 1;
	overflow: clip;
	/* Aire para que no se decapiten las descendentes ni la itálica de CaslonCP,
	   que sobresale del cuadro de línea. */
	overflow-clip-margin: 0.4em;
}
.reveal-ready .reveal[data-anim='head'] > * {
	transform: translateY(110%);
	transition: transform var(--rv-dur, 0.95s) var(--ease-out-expo) var(--rv-delay, 0s);
}
.reveal-ready .reveal[data-anim='head'].visible > * {
	transform: none;
}

/* TEXTO — recorrido corto y rápido, para que no compita con el título */
.reveal-ready .reveal[data-anim='text'] {
	--rv-y: 14px;
	--rv-dur: 0.55s;
}

/* IMÁGENES — la foto se asienta desde 1.12 mientras el bloque aparece. Sin
   clip-path, por el mismo motivo que los títulos (ver arriba).
   El scale se declara con :not(.visible) en lugar de devolverlo a scale(1) al
   terminar: así, una vez revelada, el <img> recupera su propio transform y los
   hover:scale-105 de Tailwind siguen funcionando. */
.reveal-ready .reveal[data-anim='img'] {
	--rv-y: 18px;
	--rv-dur: 1.1s;
}
.reveal-ready .reveal[data-anim='img'] img {
	transition: transform 1.4s var(--ease-out-expo);
}
.reveal-ready .reveal[data-anim='img']:not(.visible) img {
	transform: scale(1.12);
}

/* TARJETAS — entran con algo de peso: suben y escalan mínimamente */
.reveal-ready .reveal[data-anim='card'] {
	--rv-dur: 0.75s;
	transform: translateY(26px) scale(0.97);
}

/* ESCALONADO — el contenedor marca el paso, cada hijo hereda su índice */
.reveal-ready [data-stagger] > .reveal {
	--rv-delay: calc(var(--i, 0) * var(--rv-step, 90ms));
}
.reveal-ready [data-stagger] > :nth-child(1) { --i: 0; }
.reveal-ready [data-stagger] > :nth-child(2) { --i: 1; }
.reveal-ready [data-stagger] > :nth-child(3) { --i: 2; }
.reveal-ready [data-stagger] > :nth-child(4) { --i: 3; }
.reveal-ready [data-stagger] > :nth-child(5) { --i: 4; }
.reveal-ready [data-stagger] > :nth-child(6) { --i: 5; }
.reveal-ready [data-stagger] > :nth-child(7) { --i: 6; }
.reveal-ready [data-stagger] > :nth-child(8) { --i: 7; }

/* Retardos manuales heredados, aún usados en varias secciones */
.reveal-ready .reveal-delay-1 {
	--rv-delay: 0.1s;
}
.reveal-ready .reveal-delay-2 {
	--rv-delay: 0.2s;
}
.reveal-ready .reveal-delay-3 {
	--rv-delay: 0.3s;
}

/* ── Section Divider ── */
.section-divider {
	width: 48px;
	height: 1px;
	background: linear-gradient(90deg, transparent, #163531, transparent);
}

/* ── Stat Number ── */
.stat-number {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 700;
	color: #75f5e1;
	line-height: 1;
	font-family: 'Jost', system-ui, sans-serif;
	/* Los dos siguientes evitan CLS mientras el contador sube: sin ancho fijo
	   y sin cifras de ancho uniforme, el número reflowaría en cada frame —y
	   está sobre el pliegue, así que sería CLS medible. */
	font-variant-numeric: tabular-nums;
	display: inline-block;
	min-width: 3.2ch;
}
/* El "+" ya ocupa su sitio desde el principio (por eso no desplaza al número);
   solo se le revela la opacidad cuando la cuenta llega a su destino. */
.cnt-sufijo {
	opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.cnt-sufijo {
		transition: opacity 0.5s var(--ease-out-quart);
	}
}
.stat-number.is-contado .cnt-sufijo {
	opacity: 1;
}

/* ══ FAB reserva flotante ══ */
#floating-booking {
	opacity: 0;
	visibility: hidden;
	transform: translateY(1.25rem) scale(0.9);
	transition:
		opacity 0.4s var(--ease-out-quart),
		transform 0.4s var(--ease-out-expo),
		visibility 0.4s;
}
#floating-booking.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}
/* Ocultar el FAB mientras el menú móvil está abierto (evita solaparse
   con el pie del menú, que ya tiene su propio botón de reserva). */
#mobile-menu.open ~ #floating-booking {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	#floating-booking {
		transition:
			opacity 0.2s linear,
			visibility 0.2s;
		transform: none;
	}
	#floating-booking.is-visible {
		transform: none;
	}
}

/* ══ Booking Modal ══ */
.bk-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(6, 13, 12, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.3s var(--ease-out-quart);
}
/* Oculta el modal cuando está cerrado. Especificidad (0,2,0) para
   ganarle al display:flex de .bk-overlay sin depender del orden de
   carga del CSS (el atributo [hidden] por sí solo empataba y en el
   build compilado perdía, dejando el overlay tapando la página). */
.bk-overlay[hidden] {
	display: none;
}
.bk-overlay.is-open {
	opacity: 1;
}
.bk-card {
	position: relative;
	width: 100%;
	max-width: 30rem;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(6, 13, 12, 0.35);
	overflow: hidden;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.35s var(--ease-out-expo);
}
.bk-overlay.is-open .bk-card {
	transform: translateY(0) scale(1);
}
.bk-header {
	padding: 22px 24px 16px;
	border-bottom: 1px solid rgba(22, 53, 49, 0.07);
}
.bk-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #163531;
	background: rgba(22, 53, 49, 0.05);
	transition: background 0.2s ease;
}
.bk-close:hover {
	background: rgba(22, 53, 49, 0.12);
}
.bk-progress {
	display: flex;
	gap: 6px;
	margin-top: 14px;
}
.bk-progress span {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: rgba(22, 53, 49, 0.1);
	transition: background 0.3s ease;
}
.bk-progress span.is-done {
	background: #163531;
}
.bk-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 16px 24px 0;
	padding: 9px 14px;
	background: #f2f2f2;
	border: 1px solid rgba(22, 53, 49, 0.08);
	border-radius: 10px;
	color: #163531;
	font-size: 13px;
	font-weight: 600;
}
.bk-summary i {
	color: #2a6059;
}
.bk-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px 8px;
}
.bk-step-label {
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #163531;
	margin-bottom: 16px;
}
/* Calendario */
.bk-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.bk-cal-title {
	font-weight: 600;
	color: #163531;
	text-transform: capitalize;
	font-size: 15px;
}
.bk-cal-nav {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: #163531;
	background: #f2f2f2;
	transition: background 0.2s ease;
}
.bk-cal-nav:hover:not(:disabled) {
	background: #e0e0e0;
}
.bk-cal-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.bk-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.bk-dow {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(22, 53, 49, 0.45);
	padding: 4px 0;
}
.bk-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 500;
	color: #163531;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}
.bk-day.is-empty {
	visibility: hidden;
}
.bk-day.is-disabled {
	color: rgba(22, 53, 49, 0.25);
	cursor: not-allowed;
}
.bk-day.is-available:hover {
	background: rgba(42, 96, 89, 0.14);
}
.bk-day.is-today:not(.is-selected) {
	box-shadow: inset 0 0 0 1.5px #2a6059;
}
.bk-day.is-selected {
	background: #163531;
	color: #fff;
	font-weight: 700;
}
/* Horas */
.bk-hours-title {
	font-size: 13px;
	font-weight: 600;
	color: #163531;
	margin: 20px 0 10px;
}
.bk-hours {
	display: grid;
	/* 3 columnas, no 4: las franjas se muestran en 12h ("11:30 AM") y en cuatro
	   columnas el texto se salía del botón en pantallas estrechas. */
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.bk-hour {
	padding: 9px 4px;
	border-radius: 8px;
	border: 1px solid rgba(22, 53, 49, 0.12);
	background: #fff;
	color: #163531;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.15s ease;
}
.bk-hour:hover {
	border-color: #2a6059;
}
.bk-hour.is-active {
	background: #163531;
	border-color: #163531;
	color: #fff;
}
/* Formulario */
.bk-field-label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(22, 53, 49, 0.55);
	margin-bottom: 6px;
}
.bk-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
/* Pago */
.bk-pay-amount {
	text-align: center;
	font-size: 15px;
	color: #163531;
	margin-bottom: 16px;
}
.bk-qr {
	width: 200px;
	max-width: 60%;
	aspect-ratio: 1;
	object-fit: contain;
	display: block;
	margin: 0 auto 16px;
	border-radius: 12px;
	border: 1px solid rgba(22, 53, 49, 0.1);
	background: #f2f2f2;
}
.bk-pay-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f2f2f2;
	border: 1px solid rgba(22, 53, 49, 0.1);
	border-radius: 10px;
	padding: 10px 14px;
}
.bk-pay-num {
	font-weight: 700;
	font-size: 15px;
	color: #163531;
	letter-spacing: 0.02em;
}
.bk-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #163531;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	transition: background 0.2s ease;
	white-space: nowrap;
}
.bk-copy:hover {
	background: #0a1816;
}
.bk-copy.is-copied {
	background: #2a6059;
}
.bk-note {
	font-size: 12px;
	color: rgba(22, 53, 49, 0.6);
	line-height: 1.5;
	margin-top: 14px;
}
/* Confirmación */
.bk-review {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	background: #f2f2f2;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 18px;
}
.bk-review .k {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(22, 53, 49, 0.5);
	margin-bottom: 2px;
}
.bk-review .v {
	font-weight: 600;
	color: #163531;
	font-size: 14px;
}
/* Éxito */
.bk-success {
	text-align: center;
	padding: 24px 8px 12px;
}
.bk-check {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(42, 96, 89, 0.12);
	color: #2a6059;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	margin-bottom: 18px;
	animation: bk-pop 0.4s var(--ease-out-expo) both;
}
@keyframes bk-pop {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
/* Footer */
.bk-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px 22px;
	border-top: 1px solid rgba(22, 53, 49, 0.07);
}
.bk-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 8px;
	background: #f2f2f2;
	color: #163531;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background 0.2s ease;
}
.bk-back:hover {
	background: #e0e0e0;
}
.bk-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.bk-next:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.bk-no-hours {
	font-size: 13px;
	color: rgba(22, 53, 49, 0.5);
	text-align: center;
	padding: 14px 0;
}
@media (prefers-reduced-motion: reduce) {
	.bk-overlay,
	.bk-card,
	.bk-check {
		transition: none;
		animation: none;
	}
}

/* ── Puente de tarifas (home → precios.html) ──
   Resumen por categoría que sustituye al listado completo de 54 servicios,
   que ahora vive en precios.html. */
.pb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media (max-width: 900px) {
	.pb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.pb-grid {
		grid-template-columns: 1fr;
	}
}

.pb-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: 24px 22px;
	border: 1px solid rgba(22, 53, 49, 0.1);
	border-radius: 14px;
	background: #fff;
	transition:
		border-color 0.35s var(--ease-out-quart),
		background 0.35s var(--ease-out-quart),
		transform 0.35s var(--ease-out-quart);
}
@media (hover: hover) {
	.pb-card:hover {
		border-color: rgba(22, 53, 49, 0.28);
		background: #fbfbfa;
		transform: translateY(-3px);
	}
}
.pb-card:focus-visible {
	outline: 2px solid #2a6059;
	outline-offset: 3px;
}
.pb-card-ico {
	font-size: 17px;
	color: #2a6059;
	margin-bottom: 11px;
	transition: transform 0.35s var(--ease-out-quart);
}
@media (hover: hover) {
	.pb-card:hover .pb-card-ico {
		transform: translateY(-2px);
	}
}
.pb-card-name {
	font-family: 'CaslonCP', Georgia, serif;
	font-size: 19px;
	line-height: 1.2;
	color: #163531;
}
.pb-card-from {
	font-size: 13px;
	color: rgba(22, 53, 49, 0.6);
	margin-top: 4px;
}
.pb-card-from strong {
	color: #163531;
	font-weight: 700;
}
.pb-card-n {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(22, 53, 49, 0.35);
	margin-top: 9px;
}

/* ═══════════════════════════════════════════════════════════════
   MOVIMIENTO
   Todo lo de aquí es decorativo. Va dentro de
   `prefers-reduced-motion: no-preference` para que el default sea el estado
   quieto: si el usuario pide menos movimiento, estas reglas ni se declaran.
   ═══════════════════════════════════════════════════════════════ */

/* ── Entrada del hero ──
   No usa IntersectionObserver a propósito: el hero está sobre el pliegue y
   hacer depender su opacidad de un script al final del body retrasaría el
   pintado del texto. Con CSS puro la animación arranca en el primer frame. */
/* ⚠ Los elementos del hero animan con fill-mode `backwards`, NO `both`.
   Con `both` el estado final queda aplicado para siempre, el elemento se queda
   en una capa de composición y Chrome desactiva ahí el antialiasing de
   subpíxel. Eso adelgaza el filete de 1px del wordmark, que pasa a pintarse
   con un 39% de la densidad original (medido). Con `backwards` el elemento
   recupera su estilo natural al terminar, se libera la capa y el texto vuelve
   a renderizarse con subpíxel. Los keyframes solo declaran `from`, así que el
   estado final ya es el natural y no se pierde nada visualmente.
   Por el mismo motivo el hero no lleva parallax scroll-driven: esas
   animaciones no terminan nunca, así que su capa sería permanente. */
@media (prefers-reduced-motion: no-preference) {
	[data-hero-seq] > * {
		animation: hero-in 0.9s var(--ease-out-expo) backwards;
	}
	[data-hero-seq] > :nth-child(1) { animation-delay: 0.05s; }
	[data-hero-seq] > :nth-child(2) { animation-delay: 0.15s; }
	[data-hero-seq] > :nth-child(3) { animation-delay: 0.35s; }
	[data-hero-seq] > :nth-child(4) { animation-delay: 0.45s; }
	@keyframes hero-in {
		from {
			opacity: 0;
			transform: translateY(22px);
		}
	}

	.hero-wordmark {
		animation: wordmark-in 1.6s var(--ease-out-expo) backwards;
	}
	@keyframes wordmark-in {
		from {
			opacity: 0;
			transform: scale(0.985);
		}
	}

	[data-hero-stats] > * {
		animation: hero-in 0.9s var(--ease-out-expo) backwards;
	}
	[data-hero-stats] > :nth-child(1) { animation-delay: 0.55s; }
	[data-hero-stats] > :nth-child(2) { animation-delay: 0.65s; }
	[data-hero-stats] > :nth-child(3) { animation-delay: 0.75s; }
}

/* ── Header reactivo ──
   Antes era una barra glass blanca fija, también sobre el hero oscuro: tapaba
   la foto de portada, que es el activo visual principal. Ahora es transparente
   arriba, se vuelve sólida al bajar y se retrae al hacer scroll hacia abajo. */
.site-header {
	transition: transform 0.45s var(--ease-out-expo);
}
.site-header > .glass {
	transition:
		background-color 0.35s ease,
		backdrop-filter 0.35s ease,
		border-color 0.35s ease;
}
.site-header.is-hidden {
	transform: translateY(-100%);
}

/* Solo las páginas que arrancan con un hero oscuro declaran over-hero.
   biografia.html y precios.html empiezan sobre fondo claro: ahí un header
   transparente con texto mist sería ilegible. */
[data-header='over-hero'] .site-header:not(.is-scrolled) > .glass {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-color: transparent;
}
[data-header='over-hero'] .site-header:not(.is-scrolled) .brand-name,
[data-header='over-hero'] .site-header:not(.is-scrolled) .nav-link,
[data-header='over-hero'] .site-header:not(.is-scrolled) #menu-toggle {
	color: #f2f2f2;
}
[data-header='over-hero'] .site-header:not(.is-scrolled) .brand-tag {
	color: rgba(242, 242, 242, 0.65);
}
[data-header='over-hero'] .site-header:not(.is-scrolled) .nav-link::after {
	background: #75f5e1;
}
[data-header='over-hero'] .site-header:not(.is-scrolled) .btn-outline {
	color: #f2f2f2;
	border-color: rgba(242, 242, 242, 0.35);
}
[data-header='over-hero'] .site-header:not(.is-scrolled) .btn-outline:hover {
	background: rgba(242, 242, 242, 0.12);
	border-color: rgba(242, 242, 242, 0.6);
}

/* Velo bajo el header mientras es transparente. No es decorativo: el degradado
   del hero se aclara hacia la derecha, justo donde cae el botón "Reservar",
   y sin esto el contraste del nav no llega a AA sobre esa zona de la foto. */
.header-scrim {
	position: absolute;
	inset: 0 0 auto 0;
	height: 140px;
	pointer-events: none;
	/* La parada intermedia mantiene el velo casi pleno a lo largo de los 64px
	   del header y solo desvanece por debajo. Con un degradado lineal simple, a
	   la altura del texto del nav la opacidad ya había bajado lo suficiente como
	   para no llegar a AA sobre las zonas claras de la foto. */
	background: linear-gradient(
		to bottom,
		rgba(6, 13, 12, 0.72) 0%,
		rgba(6, 13, 12, 0.58) 46%,
		rgba(6, 13, 12, 0) 100%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
}
[data-header='over-hero'] .site-header:not(.is-scrolled) .header-scrim {
	opacity: 1;
}

/* Barra de progreso de lectura. Usa scroll-timeline: si el navegador no lo
   soporta (Firefox hoy), simplemente no aparece — no hay nada que reparar. */
.scroll-progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, #75f5e1, #c9a961);
	pointer-events: none;
}
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.scroll-progress {
			animation: scroll-progress linear both;
			animation-timeline: scroll(root block);
		}
		@keyframes scroll-progress {
			to {
				transform: scaleX(1);
			}
		}
	}
}

/* ── Parallax ──
   Con scroll-timeline las animaciones corren fuera del hilo principal: no hay
   listener de scroll ni riesgo de jank en gama media. El scale compensa el
   desplazamiento para que no asomen bordes. */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
	@supports (animation-timeline: view()) {
		/* El hero NO lleva parallax a propósito. Una animación con
		   `animation-timeline` está siempre viva, así que su capa de
		   composición es permanente y arrastra al wordmark que tiene encima,
		   dejándolo sin antialiasing de subpíxel. En una portada cuyo mayor
		   detalle es un filete de 1px, ese coste no compensa el efecto.
		   En #cita sí se usa: ahí no hay ningún trazo fino que preservar. */
		.cita-bg {
			animation: cita-parallax linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
		@keyframes cita-parallax {
			from {
				transform: translate3d(0, -5%, 0) scale(1.14);
			}
			to {
				transform: translate3d(0, 5%, 0) scale(1.14);
			}
		}
	}
}

/* ── Hover de las tarjetas de servicio ──
   Se añade un foco que sigue al puntero y un filo interior en champagne. El
   número sube ligeramente para reforzar la sensación de profundidad. */
.service-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s var(--ease-out-quart);
	background: radial-gradient(
		280px circle at var(--mx, 50%) var(--my, 50%),
		rgba(117, 245, 225, 0.15),
		transparent 62%
	);
}
.service-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0);
	transition: box-shadow 0.4s var(--ease-out-quart);
}
@media (hover: hover) {
	.service-card:hover::after {
		opacity: 1;
	}
	.service-card:hover::before {
		box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.45);
	}
	.service-card .card-num {
		transition: transform 0.4s var(--ease-out-quart);
	}
	.service-card:hover .card-num {
		transform: translateY(-4px);
	}
}

/* ── Filas de precio ──
   La fila entera reacciona, no solo el botón. focus-within da la misma pista
   a quien navega con teclado. El gate hover:hover evita que en táctil los 43
   botones "Ver referencias" queden permanentemente translúcidos. */
.price-item {
	margin-inline: -12px;
	padding-inline: 12px;
	border-radius: 8px;
	transition: background-color 0.3s var(--ease-out-quart);
}
.pi-price {
	transition: color 0.3s var(--ease-out-quart);
}
@media (hover: hover) {
	.price-item .pi-gallery-btn {
		opacity: 0.6;
	}
	.price-item:hover .pi-gallery-btn {
		opacity: 1;
	}
	.price-item:hover {
		background: rgba(22, 53, 49, 0.035);
	}
	.price-item:hover .pi-price {
		color: #2a6059;
	}
}
.price-item:focus-within {
	background: rgba(22, 53, 49, 0.035);
}
.price-item:focus-within .pi-gallery-btn {
	opacity: 1;
}
