/* Tipografía de la marca (self-hosted en el tema). */
@font-face {
	font-family: "Geist";
	src: url("../fonts/Geist-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Geist Mono";
	src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

/* =========================================================================
   Andez — Brief Web (brief de proyecto web)
   Experiencia de una pregunta por pantalla. Independiente de main.css.
   ========================================================================= */

:root {
	--b-bg: #0B0B0A;
	--b-surface: rgb(255 255 255 / 0.04);
	--b-surface-hover: rgb(255 255 255 / 0.07);
	--b-line: rgb(255 255 255 / 0.12);
	--b-line-strong: rgb(255 255 255 / 0.28);
	--b-text: #f2f1ec;
	--b-muted: #9aa19c;
	--b-accent: #14f195;          /* Verde de marca Andez */
	--b-accent-deep: #067a4b;
	--b-accent-soft: rgb(20 241 149 / 0.1);
	--b-error: #ff8a7a;
	--b-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--b-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--b-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--b-gutter: clamp(1.25rem, 4vw, 3rem);
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body.brief {
	margin: 0;
	background: var(--b-bg);
	color: var(--b-text);
	font-family: var(--b-font);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overflow: hidden;
	overscroll-behavior: none;
}

/* Textos que cambian según el recorrido (informativa / ecommerce). */
.brief-form:not([data-branch="ecommerce"]) [data-v="ecommerce"],
.brief-form[data-branch="ecommerce"] [data-v="info"] {
	display: none;
}

body.admin-bar .brief-top {
	top: 32px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

:focus-visible {
	outline: 2px solid var(--b-accent);
	outline-offset: 3px;
}

/* ---------- Fondo: rejilla técnica + halo que sigue el cursor ---------- */
.brief-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background-image:
		linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}

.brief-bg__glow {
	position: absolute;
	left: var(--gx, 70%);
	top: var(--gy, 30%);
	width: 60vmax;
	height: 60vmax;
	translate: -50% -50%;
	background: radial-gradient(circle, rgb(6 122 75 / 0.55), rgb(20 241 149 / 0.06) 40%, transparent 65%);
	transition: left 1.2s var(--b-ease), top 1.2s var(--b-ease);
	filter: blur(10px);
}

/* ---------- Barra superior ---------- */
.brief-top {
	position: fixed;
	inset: 0 0 auto;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem var(--b-gutter);
	background: linear-gradient(var(--b-bg) 55%, transparent);
}

:root .brief-top__brand,
:root .btn-go {
	text-decoration: none; /* Anula el subrayado de los estilos globales de WP. */
}

.brief-top__brand {
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.03em;
	color: var(--b-text);
}

.brief-top__brand {
	display: inline-flex;
	align-items: center;
}

.brief-top__brand sup {
	font-size: 0.55em;
}

/* Logo del sitio en blanco para el fondo oscuro. */
.brief-top__logo {
	display: block;
	width: auto;
	height: 28px;
	max-width: 140px;
	object-fit: contain;
}

.brief-top__help {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--b-line);
	border-radius: 50%;
	color: var(--b-muted);
	transition: color 0.2s, border-color 0.2s;
}

.brief-top__help:hover {
	color: var(--b-accent);
	border-color: var(--b-accent);
}

.brief-top__section {
	margin: 0;
	flex: 1;
	font-family: var(--b-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--b-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brief-top__count {
	margin: 0;
	font-family: var(--b-mono);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.brief-top__total {
	color: var(--b-muted);
}

.brief-progress {
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	background: var(--b-line);
}

.brief-progress span {
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, var(--b-accent-deep), var(--b-accent));
	box-shadow: 0 0 12px var(--b-accent);
	transform-origin: left;
	transform: scaleX(var(--p, 0));
	transition: transform 0.6s var(--b-ease);
}

/* ---------- Pasos ---------- */
.brief-form {
	position: relative;
	height: 100vh;
	height: 100dvh;
	height: var(--vvh, 100dvh); /* Altura visible real con el teclado abierto. */
}

.brief-hp {
	position: absolute;
	left: -9999px;
}

.step {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	justify-content: safe center; /* Si no cabe, arranca arriba en vez de recortarse. */
	width: min(100%, 46rem);
	margin-inline: auto;
	padding: 6.5rem var(--b-gutter) 6rem;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(40px);
	transition: opacity 0.45s var(--b-ease), transform 0.6s var(--b-ease), visibility 0s 0.6s;
	scrollbar-width: thin;
}

.step.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.5s var(--b-ease) 0.1s, transform 0.7s var(--b-ease) 0.1s, visibility 0s;
}

.step.is-before {
	transform: translateY(-40px);
}

.step > * {
	flex-shrink: 0;
}

/* En pantallas bajas y en el resumen, el contenido empieza arriba y hace scroll. */
.step--summary {
	justify-content: flex-start;
}

@media (max-height: 640px) {
	.step {
		justify-content: flex-start;
	}
}

.step__eyebrow,
.step__num {
	margin: 0 0 1rem;
	font-family: var(--b-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	color: var(--b-accent);
}

.step__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--b-accent);
	box-shadow: 0 0 0 0 var(--b-accent);
	animation: pulse 2.2s infinite;
}

@keyframes pulse {
	70% { box-shadow: 0 0 0 9px rgb(20 241 149 / 0); }
	100% { box-shadow: 0 0 0 0 rgb(20 241 149 / 0); }
}

.step__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-weight: 600;
	text-wrap: balance;
}

.step__q {
	margin: 0 0 0.5rem;
	font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
	font-weight: 500;
	text-wrap: balance;
}

.step__q label {
	cursor: text;
}

.req {
	color: var(--b-accent);
}

.step__lead,
.step__help {
	color: var(--b-muted);
	max-width: 52ch;
	margin: 0 0 1.5rem;
}

.step__lead {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.step__help {
	font-size: 0.975rem;
}

.step__q + .step__field {
	margin-top: 1.25rem;
}

.step__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	font-family: var(--b-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--b-muted);
}

.step__meta li {
	padding: 0.4em 0.8em;
	border: 1px solid var(--b-line);
	border-radius: 99px;
}

.step__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.75rem;
}

.step__error {
	min-height: 1.4em;
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: var(--b-error);
}

.step__error:empty {
	min-height: 0;
	margin: 0;
}

.step.is-invalid .step__field {
	animation: shake 0.4s;
}

@keyframes shake {
	25% { transform: translateX(-6px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(-3px); }
}

.step__draft {
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
	color: var(--b-muted);
}

.pipe:empty::before {
	content: "…";
}

/* ---------- Botones ---------- */
.btn-go,
.btn-ok {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.2s var(--b-ease), box-shadow 0.3s, background 0.2s;
}

.btn-go {
	padding: 0.95em 1.7em;
	background: var(--b-accent);
	color: #04120b;
	box-shadow: 0 0 0 0 rgb(20 241 149 / 0.4), 0 10px 30px -10px rgb(20 241 149 / 0.6);
}

.btn-ok {
	padding: 0.7em 1.3em;
	background: var(--b-text);
	color: var(--b-bg);
}

.btn-go:hover,
.btn-ok:hover {
	transform: translateY(-2px);
}

.btn-go:active,
.btn-ok:active {
	transform: translateY(0) scale(0.98);
}

.btn-go:disabled {
	cursor: progress;
}

.btn-go__label {
	position: relative;
	z-index: 1;
}

.btn-go__progress {
	position: absolute;
	inset: 0;
	background: rgb(255 255 255 / 0.45);
	transform-origin: left;
	transform: scaleX(var(--up, 0));
	transition: transform 0.2s linear;
}

.link {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--b-text);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--b-line-strong);
	cursor: pointer;
}

.link:hover {
	text-decoration-color: var(--b-accent);
}

.kbd-hint {
	font-size: 0.8125rem;
	color: var(--b-muted);
}

kbd {
	font-family: var(--b-mono);
	font-size: 0.75rem;
	padding: 0.15em 0.45em;
	border: 1px solid var(--b-line-strong);
	border-bottom-width: 2px;
	border-radius: 5px;
	color: var(--b-text);
}

@media (hover: none) {
	.kbd-hint {
		display: none;
	}
}

/* ---------- Campos de texto ---------- */
.input {
	width: 100%;
	padding: 0.4em 0 0.5em;
	border: 0;
	border-bottom: 1px solid var(--b-line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--b-text);
	font: inherit;
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
	letter-spacing: -0.01em;
	caret-color: var(--b-accent);
	transition: border-color 0.25s;
}

.input::placeholder {
	color: rgb(255 255 255 / 0.25);
}

.input:focus {
	outline: none;
	border-bottom-color: var(--b-accent);
	box-shadow: 0 1px 0 var(--b-accent);
}

.input--area {
	resize: none;
	min-height: 3.2em;
	max-height: 40vh;
	line-height: 1.4;
	field-sizing: content;
}

.input--sm {
	font-size: 1.0625rem;
}

.step.is-invalid .input {
	border-bottom-color: var(--b-error);
}

/* ---------- Opciones (tipo Typeform) ---------- */
.options {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.options--cards {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--b-line);
	border-radius: 12px;
	background: var(--b-surface);
	cursor: pointer;
	user-select: none;
	transition: border-color 0.2s, background 0.2s, transform 0.2s var(--b-ease);
}

.options--cards .option {
	align-items: flex-start;
	padding: 1rem 1.1rem;
}

.option:hover {
	background: var(--b-surface-hover);
	border-color: var(--b-line-strong);
}

.option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.option__key {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border: 1px solid var(--b-line-strong);
	border-radius: 6px;
	font-family: var(--b-mono);
	font-size: 0.75rem;
	color: var(--b-muted);
	transition: all 0.2s;
}

.option__text {
	flex: 1;
	display: grid;
	gap: 0.15rem;
}

.option__title {
	font-weight: 500;
}

.option__desc {
	font-size: 0.875rem;
	color: var(--b-muted);
}

.option__check {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	opacity: 0;
	transform: scale(0.5);
	background: var(--b-accent);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: all 0.25s var(--b-ease);
}

.option:has(input:checked) {
	border-color: var(--b-accent);
	background: var(--b-accent-soft);
}

.option:has(input:checked) .option__key {
	background: var(--b-accent);
	border-color: var(--b-accent);
	color: #04120b;
}

.option:has(input:checked) .option__check {
	opacity: 1;
	transform: none;
}

.option:has(input:focus-visible) {
	outline: 2px solid var(--b-accent);
	outline-offset: 2px;
}

.option.is-blink {
	animation: blink 0.35s 2;
}

@keyframes blink {
	50% { background: rgb(20 241 149 / 0.3); }
}

.input--other {
	grid-column: 1 / -1;
	font-size: 1.125rem;
	margin-top: 0.25rem;
}

.options.is-maxed .option:not(:has(input:checked)):not(.option--other) {
	opacity: 0.4;
}

/* ---------- Carga de archivos ---------- */
.dropzone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.dropzone__area {
	display: grid;
	justify-items: center;
	gap: 0.3rem;
	padding: 2rem 1.25rem;
	border: 1.5px dashed var(--b-line-strong);
	border-radius: 16px;
	background: var(--b-surface);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.2s var(--b-ease);
}

.dropzone__area:hover,
.dropzone.is-over .dropzone__area {
	border-color: var(--b-accent);
	background: var(--b-accent-soft);
}

.dropzone.is-over .dropzone__area {
	transform: scale(1.015);
}

.dropzone__input:focus-visible + .dropzone__area {
	outline: 2px solid var(--b-accent);
	outline-offset: 3px;
}

.dropzone__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 0.4rem;
	border-radius: 50%;
	background: var(--b-accent-soft);
	color: var(--b-accent);
}

.dropzone__title {
	font-weight: 600;
}

.dropzone__sub {
	font-size: 0.875rem;
	color: var(--b-muted);
}

.files {
	display: grid;
	gap: 0.5rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
}

.file {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.6rem 0.5rem 0.5rem;
	border: 1px solid var(--b-line);
	border-radius: 10px;
	background: var(--b-surface);
	animation: pop 0.35s var(--b-ease);
}

@keyframes pop {
	from { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* Estado de subida en segundo plano. */
.file {
	position: relative;
	overflow: hidden;
}

.file::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: calc(var(--p, 0) * 100%);
	background: var(--b-accent);
	box-shadow: 0 0 8px var(--b-accent);
	transition: width 0.2s linear;
}

.file.is-done::after,
.file.is-error::after {
	display: none;
}

.file.is-uploading .file__thumb {
	animation: breathe 1.2s ease-in-out infinite;
}

@keyframes breathe {
	50% { opacity: 0.45; }
}

.file.is-done .file__size {
	color: var(--b-accent);
}

.file.is-error {
	border-color: var(--b-error);
}

.file.is-error .file__size {
	color: var(--b-error);
	font-family: var(--b-font);
}

.file__retry {
	font-size: 0.75rem;
	color: var(--b-text);
}

.file__thumb {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 6px;
	background: rgb(255 255 255 / 0.06) center / cover no-repeat;
	font-family: var(--b-mono);
	font-size: 0.625rem;
	text-transform: uppercase;
	color: var(--b-accent);
}

.file__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9375rem;
}

.file__size {
	font-family: var(--b-mono);
	font-size: 0.75rem;
	color: var(--b-muted);
}

.file__remove {
	flex: none;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--b-muted);
	font-size: 1.1rem;
	cursor: pointer;
}

.file__remove:hover {
	background: rgb(255 255 255 / 0.08);
	color: var(--b-text);
}

/* ---------- Colores ---------- */
.colors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.colors__list {
	display: contents;
	list-style: none;
}

.swatch {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.4rem;
	animation: pop 0.35s var(--b-ease);
}

.swatch__chip {
	position: relative;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 16px;
	border: 1px solid var(--b-line-strong);
	overflow: hidden;
	cursor: pointer;
}

.swatch__chip input {
	position: absolute;
	inset: -10px;
	width: calc(100% + 20px);
	height: calc(100% + 20px);
	border: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.swatch__hex {
	font-family: var(--b-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--b-muted);
}

.swatch__remove {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	width: 1.5rem;
	height: 1.5rem;
	border: 1px solid var(--b-line-strong);
	border-radius: 50%;
	background: var(--b-bg);
	color: var(--b-text);
	font-size: 0.8rem;
	line-height: 1;
	cursor: pointer;
}

.colors__add {
	position: relative;
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	margin-bottom: 1.5rem;
	border: 1.5px dashed var(--b-line-strong);
	border-radius: 16px;
	font-size: 1.6rem;
	color: var(--b-muted);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.colors__add:hover,
.colors__add:focus-within {
	border-color: var(--b-accent);
	color: var(--b-accent);
}

.colors__add input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.colors.is-full .colors__add {
	display: none;
}

/* ---------- Referentes ---------- */
.refs {
	display: grid;
	gap: 1.25rem;
}

.ref {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1rem;
	animation: pop 0.35s var(--b-ease);
}

.ref[hidden] {
	display: none;
}

.ref__n {
	grid-row: span 2;
	padding-top: 0.55rem;
	font-family: var(--b-mono);
	font-size: 0.8125rem;
	color: var(--b-accent);
}

.input--note {
	font-size: 0.975rem;
	color: var(--b-muted);
	border-bottom-style: dashed;
}

.link--add {
	justify-self: start;
	font-size: 0.9375rem;
}

/* ---------- Resumen ---------- */
.summary {
	display: grid;
	margin: 0 0 1.5rem;
	border-top: 1px solid var(--b-line);
}

.summary__row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 1rem;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--b-line);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.summary__row:hover,
.summary__row:focus-visible {
	background: var(--b-surface-hover);
}

.summary dt {
	font-size: 0.875rem;
	color: var(--b-muted);
}

.summary dd {
	margin: 0;
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.summary__empty {
	color: rgb(255 255 255 / 0.3);
}

@media (max-width: 560px) {
	.summary__row {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}

.consent {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.9375rem;
	color: var(--b-muted);
	cursor: pointer;
}

.consent input {
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.15rem;
	accent-color: var(--b-accent);
}

.consent a {
	color: var(--b-text);
}

/* ---------- Gracias ---------- */
.step--thanks {
	text-align: center;
	align-items: center;
}

.step--thanks .step__lead {
	margin-inline: auto;
}

.step--thanks .step__actions {
	justify-content: center;
}

.thanks__badge {
	margin-bottom: 1.5rem;
	color: var(--b-accent);
}

.thanks__badge circle {
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
}

.thanks__badge path {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
}

.step--thanks.is-active circle {
	animation: draw 0.8s var(--b-ease) 0.3s forwards;
}

.step--thanks.is-active path {
	animation: draw 0.5s var(--b-ease) 0.9s forwards;
}

@keyframes draw {
	to { stroke-dashoffset: 0; }
}

.confetti {
	position: fixed;
	top: -12px;
	z-index: 20;
	width: 8px;
	height: 14px;
	border-radius: 2px;
	pointer-events: none;
	animation: fall var(--d, 2.4s) cubic-bezier(0.25, 0.6, 0.5, 1) forwards;
}

@keyframes fall {
	to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 540deg)); opacity: 0.2; }
}

/* ---------- Navegación flotante ---------- */
.brief-nav {
	position: fixed;
	right: var(--b-gutter);
	bottom: 1.25rem;
	z-index: 10;
	display: flex;
	border: 1px solid var(--b-line);
	border-radius: 10px;
	overflow: hidden;
	background: rgb(11 14 12 / 0.8);
	backdrop-filter: blur(10px);
}

.brief-nav button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.5rem;
	border: 0;
	background: none;
	color: var(--b-text);
	cursor: pointer;
}

.brief-nav button + button {
	border-left: 1px solid var(--b-line);
}

.brief-nav button:hover:not(:disabled) {
	background: var(--b-surface-hover);
}

.brief-nav button:disabled {
	opacity: 0.3;
	cursor: default;
}

.brief-nav[hidden] {
	display: none;
}

.brief-noscript {
	position: fixed;
	inset: auto 1rem 1rem;
	padding: 1rem;
	background: #222;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* =========================================================================
   Móvil: una mano, botón al alcance del pulgar
   ========================================================================= */
@media (max-width: 700px) {
	.brief-top {
		gap: 0.75rem;
		padding-block: 0.85rem;
	}

	.brief-top__logo {
		height: 22px;
	}

	.step {
		justify-content: flex-start;
		padding: 5.25rem 1.25rem 0;
	}

	/* Empuja el contenido al centro óptico sin recortarlo si no cabe. */
	.step > :first-child {
		margin-top: auto;
	}

	.step--summary > :first-child,
	.step--intro > :first-child {
		margin-top: 0;
	}

	.step--intro {
		justify-content: center;
		padding-bottom: 2rem;
	}

	.step__q {
		font-size: 1.45rem;
	}

	.step__title {
		font-size: 2.1rem;
	}

	/* Barra de acción fija abajo dentro de cada pregunta. */
	.step:not(.step--intro):not(.step--thanks) .step__actions {
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin: auto -1.25rem 0;
		padding: 1.5rem 7.5rem calc(1rem + env(safe-area-inset-bottom)) 1.25rem;
		background: linear-gradient(transparent, var(--b-bg) 35%);
	}

	.step__actions .btn-ok,
	.step__actions .btn-go {
		flex: 1;
		justify-content: center;
		min-height: 3.25rem;
	}

	.step--intro .step__actions .btn-go,
	.step--thanks .step__actions .btn-go {
		flex: 0 1 auto;
	}

	.brief-nav {
		bottom: calc(1rem + env(safe-area-inset-bottom));
		right: 1.25rem;
	}

	.brief-nav button {
		width: 3rem;
		height: 3.25rem;
	}

	.option {
		min-height: 3.25rem;
	}

	.options--cards .option {
		padding: 0.85rem 1rem;
	}

	.input {
		font-size: 1.3rem; /* ≥16px: iOS no hace zoom al enfocar. */
	}

	.input--sm,
	.input--note {
		font-size: 1rem;
	}

	.dropzone__area {
		padding: 1.5rem 1rem;
	}
}

/* Banner de cookies del sitio (inc/cookies.php): en el brief va arriba,
   bajo la cabecera, para no tapar el botón OK fijo del móvil. */
body.brief .andez-cc {
	top: 4.75rem;
	bottom: auto;
}

/* =========================================================================
   Sistema v4 (igual que el resto del sitio): fondo y tinta de main.css,
   una sola familia (Geist, sin mono), sin mayúsculas sostenidas ni
   numeración de preguntas. El progreso queda en la barra y el contador.
   ========================================================================= */
:root {
	--b-bg: #080807;
	--b-text: #FFFFFF;
	--b-muted: #A8A8A8;
	--b-mono: var(--b-font);
}
.brief-top__section,
.step__eyebrow,
.step__meta,
.file__thumb,
.summary dt {
	text-transform: none;
	letter-spacing: -0.005em;
	font-size: max(0.8125rem, 13px);
}
.step__eyebrow { font-size: 0.9375rem; font-weight: 500; }
.step__eyebrow .dot { display: none; }
.step__num { height: 0; margin-bottom: 0; overflow: hidden; visibility: hidden; } /* Oculto, pero conserva el margen que centra la pregunta en móvil. */
.brief-top__count { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.brief-top__logo--mark { width: 34px; height: auto; }
.btn-ok, .btn-go { border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; }
