/*
	Khör — hoja base.
	Prefijo `kh-` para todo lo propio (equivalente al `kb-` de los portales).
	Los valores salen del Figma "Khör (Copia)", diseñado a 1440 px con márgenes de 100 px y
	un contenedor de 1240 px.
*/

/* ---------- Tipografía ---------- */
/* Inter variable autoalojada (OFL, ver /fonts/Inter-OFL.txt). Un solo archivo cubre de 300 a 900. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	/* Color */
	--kh-oscuro: #212121;       /* texto principal, footer, botones sobre claro */
	--kh-claro: #efefef;        /* texto sobre foto, fondo de botones */
	--kh-crema: #f8f7f4;        /* fondo de las secciones claras, texto del footer */
	--kh-arena: #f0eee9;        /* fondo de Atributos */
	--kh-gris: #707070;         /* líneas divisorias, párrafos y etiquetas de campos */
	--kh-gris-tenue: rgba(112, 112, 112, 0.5); /* flecha deshabilitada */
	--kh-gris-sobre-oscuro: #8a8a8a; /* texto gris sobre #212121: 4.7:1 (el #707070 del Figma da 3.3:1, bajo el mínimo de accesibilidad) */
	--kh-punto: #d9d9d9;        /* puntos del hero */

	/* Tipografía: Inter en 300 / 400 / 600 / 700 / 900 */
	--kh-fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--kh-peso-ligero: 300;
	--kh-peso-normal: 400;
	--kh-peso-seminegrita: 600;
	--kh-peso-negrita: 700;
	--kh-peso-black: 900;

	/* Escala tipográfica (desktop → móvil con clamp) */
	--kh-texto-etiqueta: 0.75rem;                          /* 12 px, mayúsculas espaciadas */
	--kh-texto-base: 1rem;                                 /* 16 px / 24 px */
	--kh-texto-titulo: clamp(2rem, 1.4rem + 2.6vw, 3rem);  /* 48 px en desktop */
	--kh-texto-hero: clamp(1.75rem, 0.9rem + 5vw, 4rem);   /* 64 px en desktop; "ULTRACOMPACTO" cabe en 320 px */

	/* Espaciado */
	--kh-margen: clamp(1.25rem, 6.94vw, 6.25rem);          /* 100 px a 1440 */
	--kh-ancho-max: 77.5rem;                               /* 1240 px */
	--kh-seccion-y: clamp(4rem, 8vw, 9.5rem);
	--kh-sep-etiqueta: clamp(2rem, 4.65vw, 4.1875rem);     /* 67 px: etiqueta → título */
	--kh-sep-titulo: clamp(2rem, 4.7vw, 4.25rem);          /* 68 px: título → contenido */

	/* Movimiento */
	--kh-transicion: 200ms ease;
}

/* ---------- Reinicio mínimo ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--kh-fuente);
	font-size: var(--kh-texto-base);
	font-weight: var(--kh-peso-normal);
	line-height: 1.5;
	color: var(--kh-oscuro);
	background: var(--kh-crema);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
	margin: 0;
}

h1, h2, h3 {
	font-weight: var(--kh-peso-seminegrita);
	line-height: 1.2;
}

img, svg, video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ---------- Utilidades ---------- */
.kh-contenedor {
	width: 100%;
	max-width: calc(var(--kh-ancho-max) + 2 * var(--kh-margen));
	margin-inline: auto;
	padding-inline: var(--kh-margen);
}

.kh-seccion {
	padding-block: var(--kh-seccion-y);
}

.kh-solo-lectores {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kh-saltar {
	position: absolute;
	left: 1rem;
	top: -100%;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--kh-oscuro);
	color: var(--kh-claro);
}

.kh-saltar:focus {
	top: 1rem;
}

/* ---------- Componentes compartidos ---------- */

/* Etiqueta de sección: línea de 32 px + texto ligero en mayúsculas con 6 px de tracking
   ("KHÖR", "¿QUÉ ES KHÖR?", "ATRIBUTOS KHÖR", "BELLEZA", "CERCA DE TI"). */
.kh-etiqueta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--kh-texto-etiqueta);
	font-weight: var(--kh-peso-ligero);
	line-height: 1.25;                   /* 15 px, como en el Figma */
	letter-spacing: 0.375rem;
	text-transform: uppercase;
}

.kh-etiqueta::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 1px;
	background: currentColor;
}

/* Botón rectangular claro: CONOCE MÁS, ENVIAR. */
.kh-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;                 /* 44 px: también es el mínimo táctil */
	padding: 0 3.3rem;
	line-height: 1.25;
	border: 1px solid var(--kh-claro);
	background: var(--kh-claro);
	color: var(--kh-oscuro);
	font-size: var(--kh-texto-etiqueta);
	font-weight: var(--kh-peso-seminegrita);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--kh-transicion), color var(--kh-transicion);
}

.kh-boton:hover {
	background: transparent;
	color: var(--kh-claro);
}

/* Sobre fondo claro la etiqueta va en gris; sobre foto o fondo oscuro toma el color del texto. */
.kh-que-es .kh-etiqueta,
.kh-atributos .kh-etiqueta,
.kh-belleza .kh-etiqueta {
	color: var(--kh-gris);
}

/* Textos compartidos de las secciones */
.kh-titulo {
	font-size: var(--kh-texto-titulo);
	font-weight: var(--kh-peso-seminegrita);
	line-height: 1.21;
}

.kh-etiqueta + .kh-titulo {
	margin-top: var(--kh-sep-etiqueta);
}

.kh-parrafo {
	color: var(--kh-gris);
	line-height: 1.5;
}

.kh-black {
	font-weight: var(--kh-peso-black);
}

.kh-icono {
	width: 1em;
	height: 1em;
	flex: none;
	fill: currentColor;
}

/* Controles que sólo funcionan con JavaScript: sin él, no se muestran. */
html:not(.js) .kh-flechas,
html:not(.js) .kh-hero-puntos,
html:not(.js) .kh-video-play {
	display: none;
}

/* ================================================================
   1. Hero — 1440 × 796
   ================================================================ */
.kh-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: clamp(35rem, 55.28vw, 56.25rem);
	color: var(--kh-claro);
	background: var(--kh-oscuro);
	overflow: hidden;
	isolation: isolate;
}

.kh-hero-fondos,
.kh-hero-slide {
	position: absolute;
	inset: 0;
}

.kh-hero-fondos {
	z-index: -1;
}

/* Degradado del Figma: transparente arriba → #212121 al 75 % abajo, en multiplicar. */
.kh-hero-fondos::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(33, 33, 33, 0), rgba(33, 33, 33, 0.75));
	mix-blend-mode: multiply;
	pointer-events: none;
}

.kh-hero-slide {
	opacity: 0;
	transition: opacity 900ms ease;
}

.kh-hero-slide.es-activa {
	opacity: 1;
}

.kh-hero-imagen,
.kh-hero-imagen img,
.kh-banda-imagen,
.kh-banda-imagen img {
	width: 100%;
	height: 100%;
}

.kh-hero-imagen img,
.kh-banda-imagen img {
	object-fit: cover;
}

.kh-hero-logo {
	position: absolute;
	top: clamp(1.5rem, 3.05vw, 2.75rem);                   /* 44 px */
	left: var(--kh-margen);
	color: var(--kh-claro);
	line-height: 0;
}

.kh-hero-logo .kh-icono {
	width: clamp(6.5rem, 10.6vw, 9.5625rem);               /* 153 px */
	height: auto;
	aspect-ratio: 153 / 60;
}

.kh-hero-contenido {
	padding-bottom: clamp(5rem, 5.55vw, 5rem);             /* 80 px hasta el borde */
}

/* Sobre la parte clara de la foto el texto pierde contraste: una sombra suave lo separa del
   fondo sin que se note como efecto. */
.kh-hero .kh-etiqueta {
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

/* Frases del slide (la primera es el H1): todas en la misma celda, se cruzan con un fundido
   junto con la foto. La celda toma el alto de la más larga, así el botón no brinca; cada frase
   se alinea abajo para quedar siempre a la misma distancia del botón. */
.kh-hero-frases {
	display: grid;
}

.kh-hero-frase {
	grid-area: 1 / 1;
	align-self: end;
	padding-top: clamp(2.5rem, 10vw, 9rem);                /* 144 px: etiqueta → frase */
	max-width: 44.6875rem;                                 /* 715 px */
	font-size: var(--kh-texto-hero);
	font-weight: var(--kh-peso-seminegrita);
	line-height: 1.21;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 900ms ease;
}

.kh-hero-frase.es-activa {
	opacity: 1;
}
.kh-hero-boton {
	margin-top: clamp(2rem, 4.4vw, 3.9375rem);             /* 63 px */
	min-width: 13.375rem;                                  /* 214 px */
}

.kh-hero-puntos {
	position: absolute;
	left: 50%;
	bottom: 1.0625rem;
	display: flex;
	transform: translateX(-50%);
}

/* Botón de 22 px (área táctil) con el punto de 10 px del Figma al centro. */
.kh-hero-punto {
	display: grid;
	place-items: center;
	width: 1.375rem;
	height: 1.375rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.kh-hero-punto::before {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--kh-punto);
	opacity: 0.5;
	transition: opacity var(--kh-transicion);
}

.kh-hero-punto[aria-pressed="true"]::before,
.kh-hero-punto:hover::before {
	opacity: 1;
}

/* ================================================================
   2. ¿Qué es Khör? — texto 505 px · hueco 125 px · video 610 × 343
   ================================================================ */
.kh-que-es {
	padding-block: clamp(4rem, 7.43vw, 6.6875rem) clamp(4rem, 10.5vw, 9.4375rem); /* 107 / 151 px */
}

.kh-que-es-rejilla {
	display: grid;
	gap: 2.5rem;
}

.kh-que-es-etiqueta {
	color: var(--kh-gris);
}

.kh-marca {
	font-size: var(--kh-texto-hero);
	font-weight: var(--kh-peso-negrita);
	line-height: 1.515;                  /* caja de 97 px del Figma */
}

.kh-marca span {
	font-size: var(--kh-texto-titulo);
	font-weight: var(--kh-peso-seminegrita);
}

.kh-que-es-texto .kh-parrafo {
	margin-top: 1.625rem;                                  /* 26 px */
	max-width: 31.5625rem;                                 /* 505 px */
}

.kh-video {
	position: relative;
	aspect-ratio: 610 / 343;
	background: var(--kh-oscuro);
}

.kh-video-medio {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Portada del Figma: video oscurecido al 50 % y botón de play de 104 px. */
.kh-video-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	color: var(--kh-crema);
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.kh-video-play .kh-icono {
	width: clamp(4rem, 7.2vw, 6.5rem);
	height: auto;
	aspect-ratio: 1;
	transition: transform var(--kh-transicion);
}

.kh-video-play:hover .kh-icono {
	transform: scale(1.08);
}

.kh-video.esta-reproduciendo .kh-video-play {
	display: none;
}

/* ================================================================
   3. Filosofía y 6. Descanso — bandas de foto a todo lo ancho
   ================================================================ */
.kh-banda {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
}

.kh-banda-imagen {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.kh-banda::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.3);
}

.kh-filosofia {
	height: clamp(20rem, 37.92vw, 37.5rem);                /* 546 px */
}

/* El Figma muestra la franja superior de la foto (desplazada 2.5 % de 175 %). */
.kh-filosofia .kh-banda-imagen img {
	object-position: 50% 3%;
}

.kh-filosofia-frase {
	margin: 0;
	padding-inline: var(--kh-margen);
	max-width: calc(61.75rem + 2 * var(--kh-margen));      /* 988 px */
	color: var(--kh-crema);
	font-size: clamp(1.5rem, 1rem + 2.1vw, 2.5rem);        /* 40 px */
	line-height: 1.21;
	text-align: center;
}

.kh-descanso {
	height: clamp(15rem, 30.83vw, 30rem);                  /* 444 px */
}

/* El Figma recorta la foto por la parte baja (desplazada 51 % de 182 %). */
.kh-descanso .kh-banda-imagen img {
	object-position: 50% 62%;
}

/* ================================================================
   4. Atributos — rejilla 2 × 2 de 620 × 472
   ================================================================ */
.kh-atributos {
	padding-block: clamp(4rem, 10.35vw, 9.3125rem) clamp(4rem, 10.2vw, 9.1875rem); /* 149 / 147 px */
	background: var(--kh-arena);
}

.kh-atributos-rejilla {
	display: grid;
	grid-auto-rows: 1fr;                 /* las cuatro celdas a la misma altura, como en el Figma */
	margin: var(--kh-sep-titulo) 0 0;
	padding: 0;
	list-style: none;
}

.kh-atributo {
	padding: clamp(1rem, 1.74vw, 1.5625rem);               /* 25 px */
	border: 1px solid var(--kh-gris);
}

.kh-atributo-imagen {
	position: relative;
	aspect-ratio: 564 / 329;
	overflow: hidden;
}

.kh-atributo-imagen picture,
.kh-atributo-imagen picture img {
	width: 100%;
	height: 100%;
}

.kh-atributo-imagen picture img {
	object-fit: cover;
}

/* Sombra superior para que "Khör" y "Piedras" se lean sobre cualquier foto. */
.kh-atributo-imagen::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0) 49.85%, rgba(0, 0, 0, 0.3));
	pointer-events: none;
}

.kh-atributo-marca {
	position: absolute;
	z-index: 1;
	top: 1.25rem;
	left: 1.25rem;
	color: var(--kh-crema);
	font-size: 1.25rem;
	font-weight: var(--kh-peso-seminegrita);
	line-height: 1.21;
}

.kh-atributo-marca--derecha {
	left: auto;
	right: 1.25rem;
}

.kh-atributo-insignia {
	position: absolute;
	z-index: 1;
	right: 5.3%;
	bottom: 9.1%;
	width: 24.8%;                                          /* 140 de 564 px */
	height: auto;
}

.kh-atributo .kh-parrafo {
	margin-top: 1.3125rem;                                 /* 21 px */
	max-width: 30.25rem;
	color: #666;                         /* sobre --kh-arena el #707070 da 4.27:1; #666 da 4.95:1 */
}

/* ================================================================
   5. Belleza y elegancia — tres carruseles de 400 × 474
   ================================================================ */
.kh-belleza {
	padding-block: clamp(4rem, 7.43vw, 6.6875rem);         /* 107 px */
}

.kh-belleza-rejilla {
	display: grid;
	gap: 3.5rem;
	margin-top: clamp(2rem, 3.6vw, 3.25rem);               /* 52 px: título → flechas */
}

.kh-carrusel {
	display: grid;
	min-width: 0;
}

.kh-flechas {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.kh-flecha {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--kh-oscuro);
	background: transparent;
	cursor: pointer;
	transition: color var(--kh-transicion), background-color var(--kh-transicion);
}

.kh-flecha .kh-icono {
	width: 100%;
	height: 100%;
}

.kh-flecha--anterior .kh-icono {
	transform: scaleX(-1);
}

.kh-flecha:hover:not(:disabled) {
	color: var(--kh-crema);
	background: var(--kh-oscuro);
}

.kh-flecha:disabled {
	color: var(--kh-gris-tenue);
	cursor: default;
}

.kh-carrusel-pista {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.kh-carrusel-pista::-webkit-scrollbar {
	display: none;
}

.kh-carrusel-pieza {
	scroll-snap-align: start;
	aspect-ratio: 400 / 474;
}

.kh-carrusel-pieza picture,
.kh-carrusel-pieza img {
	width: 100%;
	height: 100%;
}

.kh-carrusel-pieza img {
	object-fit: cover;
}

.kh-carrusel-texto {
	margin-top: 2rem;                                      /* 32 px */
}

/* ================================================================
   7. Contacto (pie) — columnas de 580 y 586 px con divisor al centro
   ================================================================ */
.kh-contacto {
	padding-top: 2.3125rem;                                /* 37 px: inicio del divisor */
	padding-bottom: 2.625rem;                              /* 42 px */
	color: var(--kh-crema);
	background: var(--kh-oscuro);
}

.kh-contacto .kh-etiqueta {
	margin-top: clamp(2rem, 7.8vw, 7rem);                  /* 112 px */
}

.kh-contacto-rejilla {
	position: relative;
	display: grid;
	gap: 4rem;
	padding-bottom: 1.6875rem;                             /* 27 px */
}

.kh-contacto .kh-titulo {
	margin-top: var(--kh-sep-etiqueta);
}

.kh-ubicacion {
	padding-block: 1.5rem 2.0625rem;                       /* 24 / 33 px */
}

.kh-ubicacion:first-of-type {
	padding-top: clamp(2.5rem, 5.1vw, 4.625rem);           /* 74 px */
}

.kh-ubicacion + .kh-ubicacion {
	border-top: 2px solid var(--kh-gris);
	padding-bottom: 0;
}

.kh-ubicacion-nombre {
	font-weight: var(--kh-peso-negrita);
}

.kh-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 1.3125rem 0 0;                                 /* 21 px */
	padding: 0;
	list-style: none;
}

.kh-acciones:empty {
	display: none;
}

.kh-accion {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 1.5rem;
	color: var(--kh-claro);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.3em;
	transition: color var(--kh-transicion), text-decoration-color var(--kh-transicion);
}

.kh-accion .kh-icono {
	width: 1.375rem;                                       /* 22 px */
	height: 1.375rem;
}

.kh-accion .kh-icono--mapa {
	width: 1.0625rem;                                      /* 17 × 24 px */
	height: 1.5rem;
}

/* Sin cambio de grosor: en una fila de botones haría saltar a los vecinos. */
.kh-accion:hover {
	color: #fff;
	text-decoration-color: currentColor;
}

/* Formulario */
.kh-formulario {
	margin-top: clamp(2.5rem, 5.1vw, 4.625rem);            /* 74 px */
}

.kh-campos {
	display: grid;
	gap: 1.5625rem 2.75rem;                                /* 25 / 44 px */
}

.kh-campo {
	position: relative;
}

.kh-campo--ancho {
	grid-column: 1 / -1;
}

.kh-campo input,
.kh-campo textarea {
	display: block;
	width: 100%;
	height: 2.75rem;                                       /* 44 px: texto 24 + 18 + línea 2 */
	padding: 0 0 1.125rem;
	border: 0;
	border-bottom: 2px solid var(--kh-gris);
	border-radius: 0;
	color: var(--kh-claro);
	background: transparent;
	line-height: 1.5;
	transition: border-color var(--kh-transicion);
}

/* Mismo trazo que los demás campos; crece hacia abajo si el visitante necesita más espacio. */
.kh-campo textarea {
	height: auto;
	min-height: 6.25rem;                                   /* ~3 líneas */
	padding-bottom: 0.75rem;
	resize: vertical;
}

.kh-campo input:focus,
.kh-campo textarea:focus {
	outline: none;
	border-bottom-color: var(--kh-claro);
}

.kh-campo input:focus-visible,
.kh-campo textarea:focus-visible {
	outline: none;
}

/* La etiqueta se ve como el placeholder del Figma y sube al escribir: así nunca se pierde
   qué campo es (un placeholder real desaparece al teclear). */
.kh-campo label {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--kh-gris-sobre-oscuro);
	line-height: 1.5;
	pointer-events: none;
	transform-origin: left top;
	transition: transform var(--kh-transicion), color var(--kh-transicion);
}

.kh-campo input:focus + label,
.kh-campo input:not(:placeholder-shown) + label,
.kh-campo textarea:focus + label,
.kh-campo textarea:not(:placeholder-shown) + label {
	transform: translateY(-1.25rem) scale(0.75);
	color: var(--kh-claro);
}

.kh-campo input[aria-invalid="true"] {
	border-bottom-color: #ff8a80;
}

/* El error cae en el hueco de 25 px entre filas: no empuja el formulario al aparecer. */
.kh-campo-error {
	position: absolute;
	top: calc(100% + 0.25rem);
	left: 0;
	color: #ff8a80;
	font-size: var(--kh-texto-etiqueta);
	line-height: 1.25;
}

.kh-turnstile:not(:empty) {
	margin-top: 1.5rem;
}

.kh-formulario-mensaje {
	margin-top: 1rem;
	color: var(--kh-claro);
	font-size: 0.875rem;
}

.kh-formulario-mensaje:empty {
	display: none;
}

.kh-formulario-mensaje.es-error {
	color: #ff8a80;
}

.kh-formulario.esta-enviando .kh-boton {
	opacity: 0.7;
	cursor: progress;
}

.kh-formulario-gracias {
	margin-top: clamp(2.5rem, 5.1vw, 4.625rem);
	padding: 2rem;
	border: 1px solid var(--kh-gris);
	color: var(--kh-claro);
}

.kh-formulario-gracias:focus {
	outline: none;
}

.kh-titulo-gracias {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	font-weight: var(--kh-peso-seminegrita);
}

.kh-trampa {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kh-formulario-pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-top: 2rem;                                      /* 32 px */
}

.kh-aviso {
	flex: 1 1 14rem;
	color: var(--kh-gris-sobre-oscuro);
	font-size: var(--kh-texto-etiqueta);
}

.kh-aviso a {
	color: var(--kh-claro);
}

.kh-formulario .kh-boton {
	min-width: 9.9375rem;                                  /* 159 px */
}

/* Pie: línea de 1 px, © + Privacidad a la izquierda y logo de Kober a la derecha. */
.kh-pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 2.1875rem;                                 /* 35 px */
	padding-top: 2.25rem;                                  /* 36 px */
	border-top: 1px solid var(--kh-gris);
	color: var(--kh-claro);
}

.kh-pie a {
	text-decoration: none;
}

.kh-pie a:hover {
	text-decoration: underline;
}

.kh-pie-logo {
	margin-left: auto;
	line-height: 0;
}

.kh-pie-logo .kh-icono {
	width: 5.125rem;                                       /* 32 px de alto */
	height: auto;
	aspect-ratio: 153 / 60;
}

/* Botón flotante de WhatsApp: verde de la marca, que la gente reconoce al instante. */
.kh-whatsapp-flotante {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	color: #fff;
	background: #25d366;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform var(--kh-transicion);
}

.kh-whatsapp-flotante .kh-icono {
	width: 1.75rem;
	height: 1.75rem;
}

.kh-whatsapp-flotante:hover {
	transform: scale(1.06);
}

/* ================================================================
   Movimiento: aparición al hacer scroll y respuesta al cursor
   ================================================================ */

/* site.js pone .kh-aparece y luego .es-visible al entrar en pantalla. Sin JS, o con
   "reducir movimiento", nunca se pone la primera y todo se ve desde el inicio. */
.kh-aparece {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--kh-retraso, 0ms);
}

.kh-aparece.es-visible {
	opacity: 1;
	transform: none;
}

/* Las fotos de producto se acercan un poco al pasar el cursor: invita a mirar el detalle. */
.kh-atributo-imagen picture img,
.kh-carrusel-pieza img {
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.kh-carrusel-pieza {
	overflow: hidden;
}

@media (hover: hover) {
	.kh-atributo:hover .kh-atributo-imagen picture img,
	.kh-carrusel-pieza:hover img {
		transform: scale(1.04);
	}

	.kh-hero-logo,
	.kh-pie-logo {
		transition: opacity var(--kh-transicion);
	}

	.kh-hero-logo:hover,
	.kh-pie-logo:hover {
		opacity: 0.75;
	}

	.kh-atributo {
		transition: border-color var(--kh-transicion);
	}

	.kh-atributo:hover {
		border-color: var(--kh-oscuro);
	}
}

/* ================================================================
   Adaptación por ancho
   ================================================================ */

/* Móvil: hero a pantalla completa y carruseles con una pieza y un asomo de la siguiente. */
@media (max-width: 767.98px) {
	.kh-hero {
		height: max(35rem, 100svh);
	}

	/* En vertical se encuadra la cubierta (el producto), no los gabinetes de arriba. */
	.kh-hero-imagen img {
		object-position: 40% 65%;
	}

	.kh-carrusel-pista {
		grid-auto-columns: 80%;
	}

	.kh-formulario .kh-boton {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.kh-atributos-rejilla {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kh-campos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.kh-carrusel-pista {
		grid-auto-columns: 45%;
	}
}

/* Escritorio: el acomodo del Figma. */
@media (min-width: 1024px) {
	/* Texto y video en dos columnas alineadas por abajo, como en el Figma. */
	.kh-que-es-rejilla {
		grid-template-columns: minmax(0, 505fr) minmax(0, 610fr);
		column-gap: 10.08%;                                /* 125 de 1240 px */
		row-gap: 2.4375rem;                                /* 39 px */
		align-items: end;
	}

	.kh-que-es-etiqueta {
		grid-column: 1 / -1;
	}

	.kh-belleza-rejilla {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;                                      /* 20 px */
	}

	.kh-contacto-rejilla {
		grid-template-columns: minmax(0, 580fr) minmax(0, 586fr);
		column-gap: 4.625rem;                              /* 74 px: 40 + divisor 2 + 32 */
	}

	/* Divisor vertical de 2 px: desde arriba del pie hasta 27 px debajo del contenido. */
	.kh-contacto-rejilla::before {
		content: "";
		position: absolute;
		top: calc(-1 * (clamp(2rem, 7.8vw, 7rem) + 0.9375rem)); /* sube sobre la etiqueta */
		bottom: 0;
		left: calc((100% - 4.625rem) * 580 / 1166 + 2.5rem);
		width: 2px;
		background: var(--kh-gris);
	}
}

/* ---------- Página de error ---------- */
.kh-error {
	min-height: 70vh;
	display: grid;
	align-items: center;
}

.kh-error h1 {
	margin-block: 1.5rem 1rem;
	font-size: var(--kh-texto-titulo);
}

.kh-error p:not(.kh-etiqueta) {
	margin-bottom: 2rem;
}

.kh-error .kh-boton {
	border-color: var(--kh-oscuro);
	background: var(--kh-oscuro);
	color: var(--kh-claro);
}

.kh-error .kh-boton:hover {
	background: transparent;
	color: var(--kh-oscuro);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
