/* ==========================================================================
   VeY Talent — sistema visual
   Marca: Vida en Yates (paleta y tipografía de vidaenyates.com, logo oficial).
   Índice: 1 fuentes · 2 tokens · 3 base · 4 layout · 5 componentes · 6 tarjeta de embarque
           7 pantallas · 8 utilidades
   ========================================================================== */

/* 1. Fuentes ------------------------------------------------------------- */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-md: 1rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5625rem;
	--fs-2xl: 1.953rem;
	--fs-3xl: 2.441rem;
	--fs-4xl: 3.052rem;
	--r-xs: 8px;
	--r-sm: 12px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;
	--sidebar: 248px;
	--content: 1120px;
	--topbar: 64px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	/* Claro */
	color-scheme: light;
	--bg: #f3f5f9;
	--surface: #ffffff;
	--surface-2: #f8f9fc;
	--surface-3: #eef1f7;
	--ink: #180f37;
	--ink-2: #3a3f5c;
	--muted: #59617a;
	--faint: #8a90a6;
	--line: #e1e6ef;
	--line-strong: #cbd3e1;
	--accent: #2f6bff;
	--accent-hover: #1f58ea;
	--accent-ink: #ffffff;
	--accent-text: #1f4fd6;
	--accent-soft: rgba(47, 107, 255, 0.1);
	--brass: #8f6f33;
	--brass-soft: rgba(154, 122, 62, 0.1);
	--brass-line: rgba(154, 122, 62, 0.42);
	--ok: #0e8a5f;
	--ok-soft: rgba(14, 138, 95, 0.1);
	--warn: #9a5800;
	--warn-soft: rgba(232, 162, 58, 0.16);
	--info: #1f4fd6;
	--info-soft: rgba(47, 107, 255, 0.1);
	--off: #6b7288;
	--off-soft: rgba(107, 114, 136, 0.12);
	--danger: #c4314b;
	--shadow: 0 1px 2px rgba(24, 15, 55, 0.05), 0 10px 30px rgba(24, 15, 55, 0.06);
	--shadow-lift: 0 2px 4px rgba(24, 15, 55, 0.06), 0 18px 40px rgba(24, 15, 55, 0.1);
	--focus: 0 0 0 3px rgba(47, 107, 255, 0.4);
	--pass-bg: #ffffff;
	--pass-stub: #f7f9fd;
	--notch: var(--bg);
	--glass: rgba(243, 245, 249, 0.82);
}

[data-theme="dark"] {
	color-scheme: dark;
	--bg: #070b16;
	--surface: #0b1326;
	--surface-2: #0e1830;
	--surface-3: #142142;
	--ink: #eef1f8;
	--ink-2: #c4cce0;
	--muted: #8a98ba;
	--faint: #5c677f;
	--line: rgba(150, 175, 225, 0.13);
	--line-strong: rgba(150, 175, 225, 0.24);
	--accent: #2f6bff;
	--accent-hover: #4a7fff;
	--accent-ink: #ffffff;
	--accent-text: #86a9ff;
	--accent-soft: rgba(47, 107, 255, 0.16);
	--brass: #d2b47a;
	--brass-soft: rgba(201, 168, 106, 0.1);
	--brass-line: rgba(201, 168, 106, 0.42);
	--ok: #3ccf98;
	--ok-soft: rgba(60, 207, 152, 0.12);
	--warn: #f0b04f;
	--warn-soft: rgba(232, 162, 58, 0.14);
	--info: #86a9ff;
	--info-soft: rgba(47, 107, 255, 0.16);
	--off: #8a98ba;
	--off-soft: rgba(138, 152, 186, 0.12);
	--danger: #ff7a8e;
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 34px rgba(0, 0, 0, 0.38);
	--shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 48px rgba(0, 0, 0, 0.5);
	--focus: 0 0 0 3px rgba(91, 140, 255, 0.55);
	--pass-bg: #0e1830;
	--pass-stub: #0b1326;
	--glass: rgba(7, 11, 22, 0.8);
}

/* Sin JavaScript: se respeta la preferencia del sistema. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		color-scheme: dark;
		--bg: #070b16;
		--surface: #0b1326;
		--surface-2: #0e1830;
		--surface-3: #142142;
		--ink: #eef1f8;
		--ink-2: #c4cce0;
		--muted: #8a98ba;
		--faint: #5c677f;
		--line: rgba(150, 175, 225, 0.13);
		--line-strong: rgba(150, 175, 225, 0.24);
		--accent-text: #86a9ff;
		--accent-soft: rgba(47, 107, 255, 0.16);
		--brass: #d2b47a;
		--brass-soft: rgba(201, 168, 106, 0.1);
		--brass-line: rgba(201, 168, 106, 0.42);
		--ok: #3ccf98;
		--ok-soft: rgba(60, 207, 152, 0.12);
		--warn: #f0b04f;
		--off: #8a98ba;
		--pass-bg: #0e1830;
		--pass-stub: #0b1326;
		--glass: rgba(7, 11, 22, 0.8);
	}
}

/* 3. Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-md);
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01" 0;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink);
}

p {
	margin: 0;
}

a {
	color: var(--accent-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 6px;
}

::selection {
	background: var(--accent);
	color: #fff;
}

.tabular {
	font-variant-numeric: tabular-nums;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--r-sm);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* 4. Layout -------------------------------------------------------------- */

/* App: barra lateral + contenido */
.app {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.sidebar {
	display: none;
}

.app-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--topbar);
	padding: 10px 16px;
	background: var(--glass);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--line);
}

.topbar__brand {
	display: flex;
	align-items: center;
	color: var(--ink);
	text-decoration: none;
}

.topbar__brand .vey-logo-svg {
	width: 46px;
	height: auto;
}

.topbar__title {
	font-size: var(--fs-md);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	text-decoration: none;
	font-size: var(--fs-sm);
	font-weight: 500;
}

.topbar__back:hover {
	color: var(--ink);
}

.topbar__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.page {
	width: 100%;
	max-width: calc(var(--content) + 96px);
	padding: 24px 16px calc(104px + env(safe-area-inset-bottom));
}

.page__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.page__title {
	font-size: var(--fs-2xl);
}

.page__lead {
	margin-top: 8px;
	color: var(--muted);
	max-width: 62ch;
}

/* Barra de pestañas inferior (móvil) */
.tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	background: var(--glass);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-top: 1px solid var(--line);
}

.tabbar__link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 2px;
	border-radius: var(--r-sm);
	color: var(--muted);
	text-decoration: none;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.tabbar__link .icon {
	width: 22px;
	height: 22px;
}

.tabbar__link[aria-current="page"] {
	color: var(--ink);
}

.tabbar__link[aria-current="page"] .icon {
	color: var(--accent);
}

@media (min-width: 1024px) {
	.app {
		grid-template-columns: var(--sidebar) minmax(0, 1fr);
	}

	.sidebar {
		position: sticky;
		top: 0;
		height: 100vh;
		height: 100dvh;
		display: flex;
		flex-direction: column;
		gap: 24px;
		padding: 24px 14px 18px;
		background: var(--surface);
		border-right: 1px solid var(--line);
	}

	.tabbar,
	.topbar__brand {
		display: none;
	}

	.topbar {
		padding: 12px 40px;
	}

	.page {
		padding: 40px 40px 72px;
	}
}

.sidebar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 10px 0;
	color: var(--ink);
	text-decoration: none;
}

.sidebar__brand .vey-logo-svg {
	width: 112px;
	height: auto;
}

.product-tag {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--muted);
	padding: 2px 8px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-pill);
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav__label {
	padding: 0 12px 6px;
	font-size: var(--fs-xs);
	color: var(--faint);
	font-weight: 500;
}

.nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--r-sm);
	color: var(--ink-2);
	text-decoration: none;
	font-size: var(--fs-sm);
	font-weight: 550;
}

.nav__link .icon {
	color: var(--muted);
}

.nav__link:hover {
	background: var(--surface-3);
	color: var(--ink);
}

.nav__link[aria-current="page"] {
	background: var(--accent-soft);
	color: var(--ink);
}

.nav__link[aria-current="page"] .icon {
	color: var(--accent-text);
}

.nav__count {
	margin-left: auto;
	min-width: 20px;
	padding: 0 6px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: #fff;
	font-size: 0.6875rem;
	line-height: 20px;
	text-align: center;
	font-weight: 700;
}

.tabbar__link .nav__count {
	position: absolute;
	top: 2px;
	left: calc(50% + 6px);
	min-width: 18px;
	line-height: 18px;
}

.sidebar__foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	text-decoration: none;
	color: inherit;
}

.user-chip__name {
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-chip__role {
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* Pantallas públicas */
.site {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.site-header {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 20px;
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}

.site-header__brand .vey-logo-svg {
	width: 108px;
	height: auto;
}

.site-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-main {
	flex: 1;
}

.site-footer {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 20px 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	color: var(--muted);
	font-size: var(--fs-sm);
	border-top: 1px solid var(--line);
}

.site-footer .vey-logo-svg {
	width: 40px;
	height: auto;
	color: var(--muted);
}

/* 5. Componentes --------------------------------------------------------- */

/* Botones */
.btn {
	--btn-bg: var(--surface);
	--btn-ink: var(--ink);
	--btn-line: var(--line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--r-sm);
	border: 1px solid var(--btn-line);
	background: var(--btn-bg);
	color: var(--btn-ink);
	font-size: var(--fs-sm);
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:hover {
	--btn-bg: var(--surface-3);
	text-decoration: none;
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	--btn-bg: var(--accent);
	--btn-ink: var(--accent-ink);
	--btn-line: var(--accent);
}

.btn--primary:hover {
	--btn-bg: var(--accent-hover);
	--btn-line: var(--accent-hover);
}

.btn--quiet {
	--btn-bg: transparent;
	--btn-line: transparent;
	--btn-ink: var(--ink-2);
}

.btn--quiet:hover {
	--btn-bg: var(--surface-3);
}

.btn--lg {
	min-height: 52px;
	padding: 14px 24px;
	font-size: var(--fs-md);
	border-radius: var(--r-md);
}

.btn--sm {
	min-height: 36px;
	padding: 6px 12px;
	font-size: var(--fs-xs);
}

.btn--block {
	width: 100%;
}

.btn--icon {
	width: 40px;
	min-height: 40px;
	padding: 0;
	border-radius: var(--r-sm);
}

.btn[disabled],
.btn[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.5;
	transform: none;
}

/* Formularios */
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field + .field {
	margin-top: 16px;
}

.field__label {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-2);
}

.field__hint {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.input,
.select,
.textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
	font-size: var(--fs-md);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.textarea {
	min-height: 120px;
	resize: vertical;
}

.select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A98BA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.input::placeholder,
.textarea::placeholder {
	color: var(--faint);
}

.input:focus,
.select:focus,
.textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--focus);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
	background: var(--surface-2);
	color: var(--muted);
	cursor: not-allowed;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--fs-sm);
	color: var(--ink-2);
	cursor: pointer;
}

.check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--accent);
}

/* Segmentado (apariencia, filtros) */
.segmented {
	display: inline-grid;
	grid-auto-flow: column;
	gap: 4px;
	padding: 4px;
	border-radius: var(--r-md);
	background: var(--surface-3);
	border: 1px solid var(--line);
}

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

.segmented label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
}

.segmented input:checked + label {
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
}

.segmented input:focus-visible + label {
	box-shadow: var(--focus);
}

/* Interruptor */
.switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-sm);
}

.switch:last-child {
	border-bottom: 0;
}

.switch input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	position: relative;
	width: 44px;
	height: 26px;
	border-radius: var(--r-pill);
	background: var(--line-strong);
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}

.switch input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s var(--ease);
}

.switch input:checked {
	background: var(--accent);
}

.switch input:checked::after {
	transform: translateX(18px);
}

.switch input[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Paneles y secciones */
.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 20px;
}

@media (min-width: 720px) {
	.panel {
		padding: 24px;
	}
}

.panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.panel__title {
	font-size: var(--fs-lg);
}

.panel__link {
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.section {
	margin-top: 40px;
}

.section__title {
	font-size: var(--fs-lg);
	margin-bottom: 16px;
}

.rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rows > li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.rows > li:last-child {
	border-bottom: 0;
}

/* Avatar */
.avatar {
	--size: 44px;
	--hue: 214;
	flex: none;
	display: inline-grid;
	place-items: center;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: linear-gradient(145deg, hsl(var(--hue) 70% 62%), hsl(calc(var(--hue) + 28) 62% 38%));
	color: #fff;
	font-size: calc(var(--size) * 0.36);
	font-weight: 700;
	letter-spacing: 0.02em;
	overflow: hidden;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Insignias */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	font-size: var(--fs-xs);
	font-weight: 650;
	line-height: 1.3;
	white-space: nowrap;
	background: var(--off-soft);
	color: var(--off);
}

.badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.badge--now {
	background: var(--ok-soft);
	color: var(--ok);
}

.badge--from {
	background: var(--warn-soft);
	color: var(--warn);
}

.badge--onboard {
	background: var(--info-soft);
	color: var(--info);
}

.badge--review {
	background: var(--warn-soft);
	color: var(--warn);
}

.badge--line {
	background: transparent;
	border: 1px solid var(--line-strong);
	color: var(--ink-2);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chip {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 3px 9px;
	border-radius: var(--r-xs);
	background: var(--surface-3);
	font-size: var(--fs-xs);
	font-weight: 650;
	color: var(--ink-2);
}

.chip small {
	font-size: inherit;
	font-weight: 500;
	color: var(--muted);
}

/* Sello «Ready to Board — Verified by Vida en Yates» */
.seal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--brass);
	font-size: var(--fs-xs);
	font-weight: 700;
	line-height: 1.25;
}

.seal .icon {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.seal--lg {
	gap: 12px;
	padding: 10px 14px 10px 12px;
	border: 1px solid var(--brass-line);
	border-radius: var(--r-md);
	background: var(--brass-soft);
}

.seal--lg .icon {
	width: 26px;
	height: 26px;
}

.seal__name {
	display: block;
	font-size: var(--fs-sm);
	letter-spacing: 0.01em;
}

.seal__by {
	display: block;
	font-weight: 500;
	color: var(--muted);
}

/* Avisos */
.note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: var(--r-md);
	background: var(--info-soft);
	color: var(--ink-2);
	font-size: var(--fs-sm);
}

.note .icon {
	color: var(--info);
	margin-top: 2px;
}

.note--demo {
	background: var(--warn-soft);
}

.note--demo .icon {
	color: var(--warn);
}

.note strong {
	color: var(--ink);
}

.soon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* Estado vacío */
.empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 28px 0 8px;
}

.empty .icon {
	width: 28px;
	height: 28px;
	color: var(--faint);
}

.empty__title {
	font-size: var(--fs-md);
	font-weight: 650;
}

.empty__text {
	color: var(--muted);
	font-size: var(--fs-sm);
	max-width: 46ch;
}

/* Si el estado vacío es la propia tarjeta, conserva el margen interior de la tarjeta. */
.panel.empty {
	padding: 28px 20px 20px;
}

@media (min-width: 720px) {
	.panel.empty {
		padding: 32px 28px 28px;
	}
}

/* Menú desplegable */
.menu {
	position: relative;
}

.menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 50;
	min-width: 240px;
	padding: 8px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
}

.menu__panel[hidden] {
	display: none;
}

.menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--ink-2);
	font-size: var(--fs-sm);
	font-weight: 550;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
}

.menu__item:hover {
	background: var(--surface-3);
	color: var(--ink);
}

.menu__sep {
	height: 1px;
	margin: 6px 4px;
	background: var(--line);
}

/* Barras de entorno */
.envbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	padding: 8px 16px;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--ink);
	background: var(--warn-soft);
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.envbar a {
	font-weight: 700;
}

.env-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: var(--r-pill);
	border: 1px dashed var(--warn);
	color: var(--warn);
	font-size: 0.6875rem;
	font-weight: 700;
}

/* Anillo de progreso */
.ring {
	--value: 70;
	--size: 96px;
	position: relative;
	flex: none;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: conic-gradient(var(--accent) calc(var(--value) * 1%), var(--surface-3) 0);
	display: grid;
	place-items: center;
}

.ring::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: var(--surface);
}

.ring__value {
	position: relative;
	font-size: var(--fs-xl);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Pasos (secuencia real) */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	display: grid;
	gap: 0;
}

.steps li {
	position: relative;
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 12px;
	padding-bottom: 18px;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--muted);
	background: var(--surface);
	position: relative;
	z-index: 1;
}

.steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 15.5px;
	top: 32px;
	bottom: 0;
	width: 1px;
	background: var(--line-strong);
}

.steps li[data-state="done"]::before {
	content: "✓";
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.steps li[data-state="current"]::before {
	border-color: var(--accent);
	color: var(--accent-text);
	box-shadow: var(--focus);
}

.steps__title {
	font-weight: 650;
	font-size: var(--fs-sm);
	line-height: 32px;
}

.steps__text {
	grid-column: 2;
	margin-top: -6px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

/* 6. Tarjeta de embarque (elemento firma) -------------------------------- */
.pass {
	--notch-size: 22px;
	position: relative;
	container-type: inline-size;
	border-radius: var(--r-lg);
}

.pass__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
	height: 100%;
	background: var(--pass-bg);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

a.pass__link {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: var(--r-lg);
}

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

.pass:has(a.pass__link:hover) .pass__inner {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lift);
}

.pass__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
}

.pass__who {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.pass__name {
	font-size: var(--fs-lg);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.pass__position {
	margin-top: 2px;
	color: var(--ink-2);
	font-weight: 600;
	font-size: var(--fs-sm);
}

.pass__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--muted);
	font-size: var(--fs-xs);
	font-weight: 500;
}

.pass__meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pass__meta .icon {
	width: 15px;
	height: 15px;
}

.pass__stub {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: var(--pass-stub);
	border-left: 2px dashed var(--line-strong);
	border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

/* Muescas del troquel */
.pass__stub::before,
.pass__stub::after {
	content: "";
	position: absolute;
	left: calc(var(--notch-size) / -2 - 1px);
	width: var(--notch-size);
	height: var(--notch-size);
	border-radius: 50%;
	background: var(--notch);
	border: 1px solid var(--line);
}

.pass__stub::before {
	top: calc(var(--notch-size) / -2 - 1px);
	clip-path: inset(50% 0 0 0);
}

.pass__stub::after {
	bottom: calc(var(--notch-size) / -2 - 1px);
	clip-path: inset(0 0 50% 0);
}

.pass__field {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.pass__label {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--muted);
}

.pass__dept {
	font-size: var(--fs-xl);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--ink);
}

.pass__date {
	font-size: var(--fs-md);
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.pass__date[data-key="now"] {
	color: var(--ok);
}

.pass__date[data-key="from"] {
	color: var(--warn);
}

.pass__date[data-key="onboard"] {
	color: var(--info);
}

.pass__date[data-key="unavailable"] {
	color: var(--off);
}

.pass__seal {
	margin-top: auto;
}

/* Tarjeta estrecha: el talón pasa abajo y el troquel es horizontal */
@container (max-width: 470px) {
	.pass__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.pass__stub {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: end;
		gap: 12px 16px;
		border-left: 0;
		border-top: 2px dashed var(--line-strong);
		border-radius: 0 0 var(--r-lg) var(--r-lg);
	}

	.pass__stub::before,
	.pass__stub::after {
		top: calc(var(--notch-size) / -2 - 1px);
		bottom: auto;
	}

	.pass__stub::before {
		left: calc(var(--notch-size) / -2 - 1px);
		clip-path: inset(0 0 0 50%);
	}

	.pass__stub::after {
		left: auto;
		right: calc(var(--notch-size) / -2 - 1px);
		clip-path: inset(0 50% 0 0);
	}

	.pass__seal {
		grid-column: 1 / -1;
		margin-top: 0;
	}
}

/* Variante grande (ficha y portada) */
.pass--hero .pass__main {
	padding: 28px;
	gap: 18px;
}

.pass--hero .pass__stub {
	padding: 28px 24px;
}

.pass--hero .pass__name {
	font-size: var(--fs-2xl);
}

.pass--hero .pass__position {
	font-size: var(--fs-md);
}

.pass--hero .pass__dept {
	font-size: var(--fs-2xl);
}

.pass--hero .avatar {
	--size: 72px;
}

@container (min-width: 720px) {
	.pass--hero .avatar {
		--size: 96px;
	}
}

.pass-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 1180px) {
	.pass-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 7. Pantallas ----------------------------------------------------------- */

/* Rejillas de una columna: nunca más anchas que la pantalla aunque haya textos largos.
   Las variantes de varias columnas se declaran después, en sus media queries. */
.hero,
.how,
.split,
.form-grid,
.inbox,
.settings,
.setting,
.edit__sections,
.stack,
.profile__main {
	grid-template-columns: minmax(0, 1fr);
}

/* Portada */
.hero {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	display: grid;
	gap: 48px;
	align-items: center;
}

@media (min-width: 1024px) {
	.hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		padding: 72px 20px 112px;
	}
}

.hero__title {
	font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.04;
	max-width: 15ch;
}

.hero__lead {
	margin-top: 20px;
	font-size: var(--fs-lg);
	color: var(--ink-2);
	max-width: 46ch;
	line-height: 1.55;
}

.hero__actions {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__visual {
	position: relative;
	padding: 28px 0 28px;
}

.hero__visual .pass--ghost {
	position: absolute;
	inset: 0 0 auto 8%;
	transform: translateY(-14px) scale(0.94);
	opacity: 0.45;
	pointer-events: none;
}

.hero__visual .pass:not(.pass--ghost) {
	position: relative;
	z-index: 1;
}

.hero__caption {
	margin-top: 14px;
	font-size: var(--fs-xs);
	color: var(--muted);
	text-align: right;
}

.band {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 20px;
	border-top: 1px solid var(--line);
}

.band__title {
	font-size: var(--fs-2xl);
	max-width: 26ch;
}

.band__lead {
	margin-top: 12px;
	color: var(--muted);
	max-width: 60ch;
}

.how {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	gap: 28px;
	counter-reset: how;
}

@media (min-width: 900px) {
	.how {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
}

.how > li {
	counter-increment: how;
	padding-top: 20px;
	border-top: 2px solid var(--ink);
}

.how > li::before {
	content: counter(how);
	display: block;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--accent-text);
	margin-bottom: 10px;
	font-variant-numeric: tabular-nums;
}

.how h3 {
	font-size: var(--fs-lg);
}

.how p {
	margin-top: 8px;
	color: var(--muted);
}

.split {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 64px;
	}
}

/* Acceso (login y solicitudes) */
.auth {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.auth__aside {
	display: none;
}

.auth__main {
	display: flex;
	flex-direction: column;
	padding: 20px;
}

.auth__top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.auth__top .vey-logo-svg {
	width: 101px;
	height: auto;
	color: var(--ink);
}

.auth__form-wrap {
	width: 100%;
	max-width: 420px;
	margin: 24px auto 0;
	padding: 40px 0;
}

@media (min-width: 1024px) {
	.auth__form-wrap {
		margin: auto;
	}
}

.auth__form-wrap--wide {
	max-width: 640px;
}

.auth__title {
	font-size: var(--fs-2xl);
}

.auth__lead {
	margin-top: 8px;
	color: var(--muted);
}

.auth__form {
	margin-top: 28px;
}

.auth__links {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: var(--fs-sm);
}

@media (min-width: 1024px) {
	.auth {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.auth__aside {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 40px;
		padding: 40px 48px;
		background: #070b16;
		color: #eef1f8;
		overflow: hidden;
		--ink: #eef1f8;
		--ink-2: #c4cce0;
		--muted: #8a98ba;
		--line: rgba(150, 175, 225, 0.13);
		--line-strong: rgba(150, 175, 225, 0.24);
		--surface-3: #142142;
		--pass-bg: #0e1830;
		--pass-stub: #0b1326;
		--notch: #070b16;
		--brass: #d2b47a;
		--brass-soft: rgba(201, 168, 106, 0.1);
		--brass-line: rgba(201, 168, 106, 0.42);
		--ok: #3ccf98;
		--warn: #f0b04f;
		--shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
	}

	.auth__aside .vey-logo-svg {
		width: 125px;
		height: auto;
		color: #eef1f8;
	}

	.auth__aside-title {
		font-size: var(--fs-3xl);
		font-weight: 700;
		letter-spacing: -0.03em;
		line-height: 1.08;
		max-width: 14ch;
		color: #eef1f8;
	}

	.auth__aside-text {
		margin-top: 16px;
		color: #8a98ba;
		max-width: 40ch;
	}

	.auth__main {
		padding: 32px 48px;
	}

	.auth__top--mobile-logo .vey-logo-svg {
		display: none;
	}
}

/* Formulario de WordPress dentro de /login */
.auth__form #loginform p {
	margin: 0 0 16px;
}

.auth__form #loginform label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-2);
}

.auth__form #loginform input[type="text"],
.auth__form #loginform input[type="password"],
.auth__form #loginform input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
	font-size: var(--fs-md);
}

.auth__form #loginform input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--focus);
}

.auth__form #loginform .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.auth__form #loginform .login-remember input {
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
}

.auth__form #loginform .login-submit {
	margin-top: 24px;
}

.auth__form #loginform #wp-submit {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--accent);
	color: #fff;
	font-size: var(--fs-md);
	font-weight: 650;
	cursor: pointer;
}

.auth__form #loginform #wp-submit:hover {
	background: var(--accent-hover);
}

.form-grid {
	display: grid;
	gap: 16px;
}

.form-grid .field + .field {
	margin-top: 0;
}

@media (min-width: 640px) {
	.form-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.form-grid .field--full {
		grid-column: 1 / -1;
	}
}

/* Selector de idioma */
.lang {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line);
}

.lang a {
	padding: 4px 10px;
	border-radius: var(--r-pill);
	color: var(--muted);
	text-decoration: none;
	font-size: var(--fs-xs);
	font-weight: 700;
}

.lang a[aria-current="true"] {
	background: var(--surface-3);
	color: var(--ink);
}

/* Panel (dashboard) */
.dash {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 1100px) {
	.dash--2 {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
	}
}

.greet {
	margin-bottom: 28px;
}

.greet__title {
	font-size: var(--fs-2xl);
}

.greet__text {
	margin-top: 6px;
	color: var(--muted);
}

.status {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
}

.status__body {
	flex: 1;
	min-width: 220px;
}

.checklist {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: var(--fs-sm);
}

.checklist li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-2);
}

.checklist li .icon {
	width: 18px;
	height: 18px;
}

.checklist li[data-done="1"] {
	color: var(--muted);
}

.checklist li[data-done="1"] .icon {
	color: var(--ok);
}

.checklist li[data-done="0"] .icon {
	color: var(--warn);
}

.search-hero {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.search-hero .input {
	flex: 1;
	min-width: 220px;
	min-height: 52px;
	padding-left: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A98BA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.stat__value {
	font-size: var(--fs-3xl);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.stat__label {
	margin-top: 8px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

/* Conversaciones */
.convo {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.convo__body {
	min-width: 0;
	flex: 1;
}

.convo__top {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.convo__name {
	font-weight: 650;
	font-size: var(--fs-sm);
}

.convo__time {
	margin-left: auto;
	font-size: var(--fs-xs);
	color: var(--muted);
	white-space: nowrap;
}

.convo__org {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.convo__preview {
	margin-top: 2px;
	font-size: var(--fs-sm);
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.convo[data-unread="1"] .convo__preview {
	color: var(--ink);
	font-weight: 550;
}

.unread-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

/* Mensajes */
.inbox {
	display: grid;
	gap: 0;
	min-height: 560px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	overflow: hidden;
}

@media (min-width: 900px) {
	.inbox {
		grid-template-columns: 340px minmax(0, 1fr);
	}
}

.inbox__list {
	border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
	.inbox__list {
		border-bottom: 0;
		border-right: 1px solid var(--line);
	}
}

.inbox__list .rows > li {
	padding: 14px 16px;
}

.inbox__list .rows > li[aria-current="true"] {
	background: var(--accent-soft);
}

.thread {
	display: flex;
	flex-direction: column;
	min-height: 480px;
}

.thread__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}

.thread__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	background: var(--surface-2);
}

.bubble {
	max-width: min(78%, 520px);
	padding: 10px 14px;
	border-radius: 16px 16px 16px 4px;
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: var(--fs-sm);
}

.bubble[data-from="me"] {
	align-self: flex-end;
	border-radius: 16px 16px 4px 16px;
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.bubble__time {
	display: block;
	margin-top: 4px;
	font-size: 0.6875rem;
	opacity: 0.7;
	text-align: right;
}

.thread__safety {
	align-self: center;
	max-width: 520px;
	margin-bottom: 6px;
}

.composer {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	border-top: 1px solid var(--line);
}

/* Ficha del candidato */
.profile {
	display: grid;
	gap: 24px;
	margin-top: 24px;
}

@media (min-width: 1100px) {
	.profile {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}

	.profile__aside {
		position: sticky;
		top: calc(var(--topbar) + 24px);
		display: grid;
		gap: 20px;
	}
}

.profile__main {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-md);
	overflow: hidden;
	background:
		radial-gradient(120% 80% at 80% 0%, rgba(47, 107, 255, 0.35), transparent 60%),
		linear-gradient(160deg, #0e1830, #070b16);
	color: #eef1f8;
	display: grid;
	place-items: center;
}

.video__play {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.video__play .icon {
	width: 28px;
	height: 28px;
	margin-left: 4px;
}

.video__caption {
	position: absolute;
	left: 16px;
	bottom: 14px;
	right: 16px;
	font-size: var(--fs-xs);
	color: rgba(238, 241, 248, 0.75);
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.timeline li {
	display: grid;
	grid-template-columns: 12px 1fr;
	gap: 14px;
}

.timeline li::before {
	content: "";
	width: 10px;
	height: 10px;
	margin-top: 7px;
	border-radius: 50%;
	border: 2px solid var(--accent);
}

.timeline__role {
	font-weight: 650;
}

.timeline__where,
.timeline__when {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.certs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.certs li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-sm);
	font-weight: 550;
}

.certs li:last-child {
	border-bottom: 0;
}

.certs li .badge {
	margin-left: auto;
}

.cert-validated {
	background: var(--brass-soft);
	color: var(--brass);
}

.langs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.langs li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 12px;
	font-size: var(--fs-sm);
}

.langs__bar {
	grid-column: 1 / -1;
	height: 6px;
	border-radius: var(--r-pill);
	background: var(--surface-3);
	overflow: hidden;
}

.langs__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--accent);
}

.facts {
	margin: 0;
	display: grid;
	gap: 12px;
	font-size: var(--fs-sm);
}

.facts div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px;
}

.facts dt {
	color: var(--muted);
}

.facts dd {
	margin: 0;
	font-weight: 550;
}

.cta-card {
	display: grid;
	gap: 10px;
}

/* Directorio */
.directory {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

@media (min-width: 1100px) {
	.directory {
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: start;
	}

	.filters {
		position: sticky;
		top: calc(var(--topbar) + 24px);
	}
}

.filters__toggle {
	list-style: none;
}

.filters__toggle::-webkit-details-marker {
	display: none;
}

.filters__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 650;
}

@media (min-width: 1100px) {
	.filters__toggle {
		pointer-events: none;
	}

	.filters__toggle .icon:last-child {
		display: none;
	}
}

.filters form {
	margin-top: 16px;
	display: grid;
	gap: 16px;
}

.filters .field + .field {
	margin-top: 0;
}

.results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

/* Ajustes */
.settings {
	display: grid;
	gap: 0;
	max-width: 880px;
}

.setting {
	display: grid;
	gap: 14px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.setting:first-child {
	padding-top: 0;
}

@media (min-width: 900px) {
	.setting {
		grid-template-columns: 280px minmax(0, 1fr);
		gap: 40px;
	}
}

.setting__title {
	font-size: var(--fs-md);
}

.setting__text {
	margin-top: 4px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.radio-list {
	display: grid;
	gap: 8px;
}

.radio-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	cursor: pointer;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.radio-card input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--accent);
}

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

.toast {
	position: fixed;
	left: 50%;
	bottom: calc(88px + env(safe-area-inset-bottom));
	z-index: 60;
	transform: translate(-50%, 12px);
	opacity: 0;
	padding: 10px 16px;
	border-radius: var(--r-md);
	background: var(--ink);
	color: var(--bg);
	font-size: var(--fs-sm);
	font-weight: 600;
	box-shadow: var(--shadow-lift);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
	pointer-events: none;
}

.toast[data-show="1"] {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (min-width: 1024px) {
	.toast {
		bottom: 32px;
	}
}

/* Edición de perfil */
.edit {
	display: grid;
	gap: 24px;
}

@media (min-width: 1100px) {
	.edit {
		grid-template-columns: 220px minmax(0, 1fr);
		align-items: start;
	}

	.edit__nav {
		position: sticky;
		top: calc(var(--topbar) + 24px);
	}
}

.edit__nav ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
	overflow-x: auto;
}

@media (min-width: 1100px) {
	.edit__nav ol {
		flex-direction: column;
		overflow: visible;
	}
}

.edit__nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--ink-2);
	text-decoration: none;
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
}

.edit__nav a:hover {
	background: var(--surface-3);
}

.edit__sections {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.dropzone {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1.5px dashed var(--line-strong);
	border-radius: var(--r-md);
	color: var(--muted);
	font-size: var(--fs-sm);
}

.dropzone .icon {
	width: 26px;
	height: 26px;
	color: var(--faint);
}

/* 404 */
.lost {
	max-width: 560px;
	margin: 12vh auto;
	padding: 0 20px;
}

/* 8. Utilidades ---------------------------------------------------------- */
.muted {
	color: var(--muted);
}

.stack {
	display: grid;
	gap: 16px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.mt-0 {
	margin-top: 0;
}

.mt-8 {
	margin-top: 8px;
}

.mt-16 {
	margin-top: 16px;
}

.mt-24 {
	margin-top: 24px;
}

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

/* Iconos del conmutador de tema y elementos solo móvil */
[data-theme="dark"] [data-show-in="light"],
[data-theme="light"] [data-show-in="dark"] {
	display: none;
}

@media (min-width: 1024px) {
	[data-mobile-only] {
		display: none !important;
	}
}

/* 9. Ajustes tras la revisión en staging -------------------------------- */

/* La columna lateral se pinta en todo el alto, también en páginas largas. */
@media (min-width: 1024px) {
	.app {
		background: linear-gradient(
			to right,
			var(--surface) 0,
			var(--surface) calc(var(--sidebar) - 1px),
			var(--line) calc(var(--sidebar) - 1px),
			var(--line) var(--sidebar),
			transparent var(--sidebar)
		);
	}

	.sidebar {
		background: transparent;
		border-right: 0;
	}
}

/* Controles desactivados: que no parezcan disponibles. */
.btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	transform: none;
	box-shadow: none;
}

.input:disabled,
.select:disabled,
.textarea:disabled {
	cursor: not-allowed;
}

.segmented input:disabled + label {
	cursor: not-allowed;
}

.segmented input:disabled:not(:checked) + label {
	opacity: 0.6;
}

.video__play {
	opacity: 0.55;
}

/* Segmentado con muchas opciones: dos columnas en móvil. */
.segmented {
	max-width: 100%;
}

@media (max-width: 599px) {
	.segmented--wrap {
		display: grid;
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.segmented--wrap label {
		justify-content: center;
		text-align: center;
	}
}

/* Idiomas: el código no lleva subrayado de abreviatura. */
.chip abbr {
	text-decoration: none;
	border-bottom: 0;
	cursor: inherit;
}

/* Cabecera pública: en móvil solo el símbolo, y los botones no se parten. */
.site-header__actions .btn {
	white-space: nowrap;
}

.site-header__brand .brand-mark {
	display: none;
}

.site-header__brand .brand-mark .vey-logo-svg {
	width: 44px;
	height: auto;
}

@media (max-width: 429px) {
	.site-header {
		padding: 16px;
	}

	.site-header__brand .brand-full {
		display: none;
	}

	.site-header__brand .brand-mark {
		display: block;
	}
}

/* Portada: la tarjeta de detrás es solo una silueta. */
.hero__visual .pass--ghost .pass__main > *,
.hero__visual .pass--ghost .pass__stub > * {
	visibility: hidden;
}

/* Tarjeta grande en anchura media: sello compacto para que no se parta en cinco líneas. */
@container (min-width: 471px) and (max-width: 640px) {
	.pass--hero .seal--lg {
		gap: 8px;
		padding: 0;
		border: 0;
		background: none;
	}

	.pass--hero .seal--lg .icon {
		width: 20px;
		height: 20px;
	}

	.pass--hero .seal__by {
		display: none;
	}
}

/* Filtros del directorio: flecha del desplegable en pantallas estrechas. */
.filters__chevron {
	margin-left: auto;
	transition: transform 0.2s var(--ease);
}

.filters details[open] .filters__chevron {
	transform: rotate(180deg);
}

/* Ficha del candidato en móvil: las acciones van justo después de la tarjeta. */
@media (max-width: 1099px) {
	.profile {
		display: flex;
		flex-direction: column;
	}

	.profile__main,
	.profile__aside {
		display: contents;
	}

	.profile .cta-card {
		order: -1;
	}
}

/* Edición de perfil en móvil: la barra de secciones se desplaza, no ensancha la página. */
.edit {
	grid-template-columns: minmax(0, 1fr);
}

.edit__nav {
	min-width: 0;
}

@media (min-width: 1100px) {
	.edit {
		grid-template-columns: 220px minmax(0, 1fr);
	}
}

/* Buscador de mensajes */
.inbox__search {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}

.input--search {
	min-height: 44px;
	padding-left: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A98BA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 13px center;
}

.inbox__results {
	transition: opacity 0.15s var(--ease);
}

.inbox__results[aria-busy="true"] {
	opacity: 0.55;
}

.inbox__count {
	padding: 12px 16px 2px;
	font-size: var(--fs-xs);
	color: var(--muted);
}

.inbox__list .empty {
	padding: 28px 16px;
}

.convo__preview {
	display: block;
}

.convo__preview--match {
	display: flex;
	align-items: center;
	gap: 6px;
}

.convo__preview--match .icon {
	flex: none;
	width: 14px;
	height: 14px;
	color: var(--muted);
}

.convo__preview--match > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.convo mark {
	padding: 0 1px;
	border-radius: 3px;
	background: var(--accent-soft);
	background: color-mix(in srgb, var(--accent) 26%, transparent);
	color: inherit;
}

/* 10. Fase 3 · Bloque 1: formularios reales, panel del equipo ------------ */

.mt-32 {
	margin-top: 32px;
}

/* Campo trampa antispam: fuera de la vista y del orden de tabulación. */
.hp-field {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.note--ok {
	background: var(--ok-soft);
}

.note--ok .icon {
	color: var(--ok);
}

.note--error {
	background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.note--error .icon {
	color: var(--danger);
}

.field__error {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--danger);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
	border-color: var(--danger);
}

.check input[aria-invalid="true"] {
	outline: 2px solid var(--danger);
	outline-offset: 2px;
}

.field__static {
	margin: 0;
	padding: 11px 14px;
	border-radius: var(--r-sm);
	background: var(--surface-3);
	font-weight: 600;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.btn--danger {
	--btn-bg: var(--danger);
	--btn-ink: #fff;
	--btn-line: var(--danger);
}

.btn--danger:hover {
	--btn-bg: color-mix(in srgb, var(--danger) 86%, #000);
	--btn-line: color-mix(in srgb, var(--danger) 86%, #000);
}

.badge--danger {
	background: color-mix(in srgb, var(--danger) 14%, transparent);
	color: var(--danger);
}

.icon--inline {
	width: 14px;
	height: 14px;
	margin-left: 4px;
	vertical-align: -2px;
}

/* Pestañas de estado (solicitudes, invitaciones) */
.tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: var(--r-md);
	background: var(--surface-3);
	border: 1px solid var(--line);
	overflow-x: auto;
	scrollbar-width: none;
}

.tabs__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}

.tabs__link:hover {
	color: var(--ink);
	text-decoration: none;
}

.tabs__link[aria-current="page"] {
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
}

.tabs__count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: var(--r-pill);
	background: var(--line);
	font-size: var(--fs-xs);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.tabs__link[aria-current="page"] .tabs__count {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Tarjeta de solicitud */
.request-list {
	display: grid;
	gap: 16px;
}

.request__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.request__who {
	flex: 1;
	min-width: 0;
}

.request__name {
	margin: 0;
	font-size: var(--fs-lg);
	font-weight: 650;
	letter-spacing: -0.01em;
}

.request__role {
	margin: 2px 0 0;
	color: var(--ink-2);
}

.request__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px 20px;
	margin: 20px 0 0;
}

.request__facts dt {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.request__facts dd {
	margin: 2px 0 0;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.request__about {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	max-width: 72ch;
}

.request__about p {
	margin: 0;
}

.request__label {
	margin-bottom: 4px !important;
	font-size: var(--fs-xs);
	color: var(--muted);
}

.request__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
}

.request__reject > summary {
	list-style: none;
}

.request__reject > summary::-webkit-details-marker {
	display: none;
}

.request__reject[open] > summary {
	color: var(--danger);
}

.request__reject-form {
	display: grid;
	gap: 8px;
	width: min(520px, 100%);
	margin-top: 10px;
	padding: 16px;
	border-radius: var(--r-md);
	border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
	background: color-mix(in srgb, var(--danger) 5%, var(--surface));
}

.request__reject-form .btn {
	justify-self: start;
}

/* Filas genéricas (invitaciones, usuarios de prueba) */
.row-item__main {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	gap: 2px;
}

.row-item__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-weight: 650;
	color: var(--ink);
}

.row-item__meta {
	font-size: var(--fs-xs);
	color: var(--muted);
	overflow-wrap: anywhere;
}

.row-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

@media (max-width: 599px) {
	.rows > li.invite {
		flex-wrap: wrap;
	}

	.rows > li.invite .row-item__actions {
		width: 100%;
		justify-content: flex-start;
		padding-left: 54px;
	}
}

/* Tarjetas de cifras con enlace (Inicio del equipo) */
.stat-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

a.stat-card:hover {
	border-color: var(--accent);
	text-decoration: none;
}

.stat-card__link {
	margin-top: 14px;
	font-size: var(--fs-sm);
	font-weight: 650;
	color: var(--accent);
}

.stat-card__note {
	margin-top: 12px;
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* Registro de emails (solo staging) */
.mail-log {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mail-log > li {
	border-bottom: 1px solid var(--line);
}

.mail-log > li:last-child {
	border-bottom: 0;
}

.mail-log summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	cursor: pointer;
	list-style: none;
}

.mail-log summary::-webkit-details-marker {
	display: none;
}

.mail-log__subject {
	font-weight: 650;
	color: var(--ink);
}

.mail-log__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: var(--fs-xs);
	color: var(--muted);
}

.mail-log__status[data-status="sent"] {
	color: var(--ok);
}

.mail-log__status[data-status="test"] {
	color: var(--warn);
}

.mail-log__status[data-status="failed"] {
	color: var(--danger);
}

.mail-log__body {
	margin: 0 0 14px;
	padding: 14px;
	border-radius: var(--r-sm);
	background: var(--surface-3);
	font-size: var(--fs-sm);
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

/* Barra de «entrar como» usuario de prueba */
.envbar--switch {
	background: var(--info-soft);
}

/* Ajustes tras revisar el bloque 1 */
fieldset.field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

fieldset.field > legend {
	margin-bottom: 6px;
	padding: 0;
}

[data-form-alert]:focus {
	outline: none;
}

.request__facts {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.request__facts dd a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.request__facts dd a .icon--inline {
	margin-left: 0;
}

@media (max-width: 599px) {
	.tabs {
		flex-wrap: wrap;
	}

	.tabs__link {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* Aviso de envío de email fallido y enlace para copiar */
.note--warn {
	background: var(--warn-soft);
}

.note--warn .icon {
	color: var(--warn);
}

.note__body {
	flex: 1;
	min-width: 0;
}

.note__body p {
	margin: 0;
}

.copy-field {
	display: flex;
	gap: 8px;
}

.copy-field .input {
	flex: 1;
	min-width: 0;
	font-size: var(--fs-sm);
}

.copy-field .btn {
	flex: none;
}

@media (max-width: 599px) {
	.copy-field {
		flex-direction: column;
	}
}

/* 11. Fase 3 · Bloque 2: perfil real del alumno y revisión del equipo ---- */

.fieldset-reset {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.fieldset-reset[disabled] {
	opacity: 0.7;
}

.prose-text {
	max-width: 68ch;
	white-space: normal;
}

.field--narrow {
	max-width: 360px;
}

/* Avatar con foto: sin degradado detrás para que no asome por el borde. */
.avatar--photo {
	background: var(--surface-3);
}

/* Secciones del editor: marca de completado en el índice. */
.edit__nav a {
	display: flex;
	align-items: center;
	gap: 8px;
}

.edit__nav .icon {
	width: 16px;
	height: 16px;
	flex: none;
}

.edit__nav .icon.is-done {
	color: var(--ok);
}

.edit__nav .icon.is-todo {
	color: var(--warn);
}

.edit__nav .icon.is-optional {
	color: var(--faint);
}

.edit__sections > section,
#ed-send {
	scroll-margin-top: calc(var(--topbar) + 16px);
}

/* Foto */
.photo-edit {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.photo-edit__body {
	flex: 1;
	min-width: 0;
}

@media (max-width: 559px) {
	.photo-edit {
		flex-direction: column;
	}
}

/* Selector de archivo nativo con el estilo de la plataforma. */
.file-input {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 8px;
	border: 1.5px dashed var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--muted);
	font: inherit;
	font-size: var(--fs-sm);
}

.file-input::file-selector-button {
	margin-right: 12px;
	padding: 8px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.file-input:focus-visible {
	outline: none;
	box-shadow: var(--focus);
}

.file-input[aria-invalid="true"] {
	border-color: var(--danger);
}

/* Filas repetibles (idiomas, trabajos) */
.repeat {
	display: grid;
	gap: 8px;
}

.repeat__head,
.repeat__row {
	display: grid;
	gap: 8px;
	align-items: center;
}

.repeat__head {
	font-size: var(--fs-xs);
	font-weight: 650;
	color: var(--muted);
}

.repeat__head--lang,
.repeat__row--lang {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px;
}

.repeat__head--job,
.repeat__row--job {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.9fr) 40px;
}

@media (max-width: 719px) {
	.repeat__head--job {
		display: none;
	}

	.repeat__row--job {
		grid-template-columns: minmax(0, 1fr) 40px;
		padding: 12px;
		border: 1px solid var(--line);
		border-radius: var(--r-md);
	}

	.repeat__row--job > .input {
		grid-column: 1;
	}

	.repeat__row--job > [data-remove-row] {
		grid-column: 2;
		grid-row: 1;
	}
}

/* Bloque secundario dentro de un panel (añadir certificado) */
.subform {
	padding: 18px;
	border-radius: var(--r-md);
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.subform__title {
	padding: 0;
	font-weight: 700;
	color: var(--ink);
}

.cert-list > li .icon:first-child {
	color: var(--faint);
}

.row-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.row-item__meta .is-expired {
	color: var(--danger);
	font-weight: 650;
}

/* Archivo guardado (CV) */
.file-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface-2);
}

.file-row > .icon {
	color: var(--faint);
}

.file-row__name {
	flex: 1;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.file-row__name small {
	font-weight: 500;
	color: var(--muted);
}

.video-soon {
	display: flex;
	gap: 14px;
	padding: 16px;
	border-radius: var(--r-md);
	border: 1.5px dashed var(--line-strong);
}

.video-soon > .icon {
	width: 24px;
	height: 24px;
	flex: none;
	color: var(--faint);
}

/* Disponibilidad */
.avail-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}

.avail-form__date {
	min-width: 220px;
}

.avail-form__date[hidden] {
	display: none;
}

.checklist li[data-done="soon"] {
	color: var(--muted);
}

.checklist li[data-done="soon"] .icon {
	color: var(--faint);
}

/* Estado del perfil del alumno */
.state-card {
	border-left: 3px solid var(--line-strong);
}

.state-card[data-status="in_review"] {
	border-left-color: var(--warn);
}

.state-card[data-status="changes"] {
	border-left-color: var(--danger);
}

.state-card[data-status="published"] {
	border-left-color: var(--ok);
}

.state-card .row .field__hint {
	flex: 1 1 220px;
}

.badge--status[data-status="draft"] {
	background: var(--off-soft);
	color: var(--off);
}

.badge--status[data-status="in_review"] {
	background: var(--warn-soft);
	color: var(--warn);
}

.badge--status[data-status="changes"] {
	background: color-mix(in srgb, var(--danger) 14%, transparent);
	color: var(--danger);
}

.badge--status[data-status="published"] {
	background: var(--ok-soft);
	color: var(--ok);
}

.badge--status[data-status="hidden"] {
	background: var(--off-soft);
	color: var(--ink-2);
}

/* Comentario del equipo, citado tal cual */
.review-note {
	margin-left: 0;
	margin-right: 0;
	padding: 12px 16px;
	border-left: 3px solid var(--danger);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	background: var(--surface-2);
	color: var(--ink);
	max-width: 68ch;
	overflow-wrap: anywhere;
}

/* Revisión (equipo) */
.review-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.review-bar__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	overflow-wrap: anywhere;
}

.review-bar__meta .icon {
	width: 16px;
	height: 16px;
}

.review {
	display: grid;
	gap: 20px;
}

@media (min-width: 1100px) {
	.review {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

.review .check {
	padding: 14px;
	border-radius: var(--r-md);
	background: var(--brass-soft);
	border: 1px solid var(--brass-line);
}

.review .check strong {
	display: block;
	color: var(--ink);
}

.hints {
	list-style: none;
	margin: 0;
	padding: 0 0 0 4px;
	display: grid;
	gap: 6px;
	font-size: var(--fs-sm);
}

.hints li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-2);
}

.hints .icon {
	width: 16px;
	height: 16px;
	flex: none;
}

.hints li[data-ok="1"] .icon {
	color: var(--ok);
}

.hints li[data-ok="0"] .icon {
	color: var(--warn);
}

.hints li[data-ok="check"] .icon,
.hints li[data-ok="na"] .icon {
	color: var(--faint);
}

.hints li[data-ok="na"] {
	color: var(--muted);
}

.hints__state {
	margin-left: auto;
	font-size: var(--fs-xs);
	color: var(--muted);
	white-space: nowrap;
}

/* Lista de perfiles (equipo) */
.profile-row__link {
	color: var(--ink);
	text-decoration: none;
}

.profile-row__link:hover {
	color: var(--accent-text);
	text-decoration: underline;
}

.profile-row__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

@media (max-width: 599px) {
	.rows > li.profile-row {
		flex-wrap: wrap;
	}

	.profile-row__badges {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		padding-left: 58px;
	}
}

/* Certificados en la ficha */
.certs__name {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.certs__meta {
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* 12. Fase 3 · Bloque 3: directorio real y favoritos -------------------- */

.pass__fresh {
	display: block;
	margin-top: 4px;
	font-size: var(--fs-xs);
	color: var(--muted);
}

.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.pager__info {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.fav-list {
	display: grid;
	gap: 16px;
	margin-top: 12px;
}

@media (min-width: 900px) {
	.fav-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fav-item {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.fav-item__remove {
	justify-self: end;
}

.btn.is-on {
	--btn-line: var(--accent);
	color: var(--accent-text);
}

.btn.is-on .icon {
	fill: currentColor;
}

/* 13. Fase 3 · Bloque 4: chat real y denuncias -------------------------- */

.bubble__text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.thread__body {
	overflow-y: auto;
	max-height: min(62vh, 620px);
	overscroll-behavior: contain;
}

.thread__body--readonly {
	max-height: 70vh;
	border-radius: var(--r-md);
}

.thread__who {
	min-width: 0;
	flex: 1;
}

.thread__name {
	display: block;
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.thread__name:hover {
	text-decoration: underline;
}

.thread__back {
	display: none;
}

.thread--empty {
	display: grid;
	place-items: center;
	padding: 24px;
}

.composer {
	align-items: flex-end;
}

.composer__input {
	flex: 1;
	min-height: 44px;
	max-height: 160px;
	resize: none;
	line-height: 1.45;
}

.composer__error {
	padding: 0 16px;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--danger);
}

.composer__error:empty {
	display: none;
}

.composer--off {
	margin: 0;
	align-items: center;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.thread__report {
	border-top: 1px solid var(--line);
	padding: 10px 16px 14px;
	font-size: var(--fs-sm);
}

.thread__report > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--muted);
	font-weight: 600;
}

.thread__report > summary .icon {
	width: 16px;
	height: 16px;
}

.thread__report-form {
	display: grid;
	gap: 6px;
	max-width: 520px;
	margin-top: 12px;
}

.thread__report-form .btn {
	justify-self: start;
	margin-top: 6px;
}

/* En móvil la bandeja y la conversación son pantallas distintas. */
@media (max-width: 899px) {
	.inbox[data-view="thread"] .inbox__list,
	.inbox[data-view="list"] .thread--empty {
		display: none;
	}

	.inbox[data-view="thread"] {
		min-height: 0;
	}

	.inbox[data-view="thread"] .thread__back {
		display: inline-flex;
		margin-left: -8px;
	}

	.inbox[data-view="thread"] .thread__body {
		max-height: none;
		height: calc(100dvh - 300px);
		min-height: 320px;
	}

	.thread__report-link span {
		display: none;
	}
}

/* Primer contacto desde la ficha */
.contact > summary {
	list-style: none;
}

.contact > summary::-webkit-details-marker {
	display: none;
}

.contact[open] > summary {
	display: none;
}

.contact__form {
	display: grid;
	gap: 8px;
}

/* ---------------------------------------------------------------------------
 * 14. Bloque 5: privacidad (descargar mis datos y borrar la cuenta)
 * ------------------------------------------------------------------------- */

.privacy-export {
	display: grid;
	gap: 6px;
	justify-items: start;
}

.danger-zone {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 12px 16px;
}

.danger-zone > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 600;
	color: var(--danger);
}

.danger-zone > summary .icon {
	width: 18px;
	height: 18px;
}

.danger-zone[open] {
	border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}

.danger-zone__form {
	display: grid;
	gap: 12px;
	max-width: 560px;
	margin-top: 12px;
	font-size: var(--fs-sm);
}

.danger-zone__form p {
	margin: 0;
}

.danger-zone__form .btn {
	justify-self: start;
}

/* ---------------------------------------------------------------------------
 * 15. Bloque 6: cifras clave, colocaciones y listas del equipo
 * ------------------------------------------------------------------------- */

/* Cifras: una sola pieza con divisiones finas (no tarjetas sueltas). */
.figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 1px;
	margin: 0;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
}

.figures > div {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 18px 20px;
	background: var(--surface);
}

.figures dt {
	color: var(--muted);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.figures dd {
	margin: 0;
	font-size: var(--fs-2xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.figures__note {
	color: var(--muted);
	font-size: var(--fs-xs);
}

/* «He contratado a…» en la ficha (reclutador) */
.hire > summary {
	list-style: none;
}

.hire > summary::-webkit-details-marker {
	display: none;
}

.hire[open] > summary {
	display: none;
}

.hire__form {
	display: grid;
	gap: 8px;
}

.hire__form .field__label {
	margin-top: 4px;
}

.hire__done {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.hire__done .icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--brass);
}

/* Requisitos al invitar: solo para alumnos (el equipo no los necesita). */
.invite-reqs {
	margin-inline: 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
}

.invite-form:has(#inv-r-staff:checked) .invite-reqs {
	display: none;
}

.hire-form .btn {
	justify-self: start;
}

/* Vídeo (Bunny): estado de la conexión en Ajustes */
.video-status {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	color: var(--ok);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.video-status .icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

.setting form.stack > .btn {
	justify-self: start;
}

/* ---------------------------------------------------------------------------
 * 16. Vídeo de presentación (Bunny Stream)
 * ------------------------------------------------------------------------- */

.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-md);
	overflow: hidden;
	background: #070b16;
}

.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-edit {
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.video-edit__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-md);
}

.video-edit__title .icon {
	width: 20px;
	height: 20px;
	color: var(--muted);
}

.video-edit__status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	color: var(--ink-2);
	font-size: var(--fs-sm);
}

.video-edit__progress {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	font-size: var(--fs-sm);
}

.video-edit__progress progress {
	flex: 1 1 200px;
	height: 8px;
	appearance: none;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--surface-3);
	overflow: hidden;
}

.video-edit__progress progress::-webkit-progress-bar {
	background: var(--surface-3);
}

.video-edit__progress progress::-webkit-progress-value {
	background: var(--accent);
	border-radius: var(--r-pill);
}

.video-edit__progress progress::-moz-progress-bar {
	background: var(--accent);
	border-radius: var(--r-pill);
}

.spinner {
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--line-strong);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: vey-spin 0.9s linear infinite;
}

@keyframes vey-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.spinner {
		animation-duration: 3s;
	}
}

.video-edit [hidden] {
	display: none;
}

/* Antispam (Cloudflare Turnstile): ocupa el ancho del formulario y no salta al cargar */
.turnstile {
	min-height: 65px;
}

.auth__form .turnstile {
	margin-top: 16px;
}

/* 17. Textos legales ----------------------------------------------------- */

.legal {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 48px 20px 64px;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
	.legal {
		grid-template-columns: 220px minmax(0, 1fr);
		grid-template-areas: "nav doc";
		column-gap: 64px;
	}

	.legal__doc {
		grid-area: doc;
	}

	.legal__nav {
		grid-area: nav;
		align-self: start;
		position: sticky;
		top: 24px;
	}
}

.legal__doc {
	max-width: 72ch;
	min-width: 0;
}

.legal__title {
	font-size: var(--fs-3xl);
	line-height: 1.15;
}

.legal__updated {
	margin-top: 10px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.legal__body {
	margin-top: 32px;
	color: var(--ink-2);
	line-height: 1.7;
}

.legal__body > * + * {
	margin-top: 14px;
}

.legal__body h2 {
	margin-top: 40px;
	font-size: var(--fs-lg);
	color: var(--ink);
	line-height: 1.3;
}

.legal__body h3 {
	margin-top: 24px;
	font-size: var(--fs-md);
	color: var(--ink);
}

.legal__body ul {
	padding-left: 1.25em;
}

.legal__body li + li,
.legal__body li > ul {
	margin-top: 6px;
}

.legal__body strong {
	color: var(--ink);
}

.legal__body a {
	color: var(--accent-text);
	overflow-wrap: anywhere;
}

.legal__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
	line-height: 1.5;
	display: block;
	overflow-x: auto;
}

.legal__body th,
.legal__body td {
	text-align: left;
	vertical-align: top;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	min-width: 140px;
}

.legal__body th {
	color: var(--ink);
	font-weight: 600;
	border-bottom-color: var(--line-strong);
}

.legal-pending {
	background: var(--warn-soft);
	color: var(--warn);
	padding: 0 4px;
	border-radius: 4px;
}

.legal__nav-title {
	font-weight: 600;
	color: var(--ink);
}

.legal__nav ul {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border-left: 1px solid var(--line);
}

.legal__nav a {
	display: block;
	padding: 8px 0 8px 16px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--muted);
	text-decoration: none;
	font-size: var(--fs-sm);
}

.legal__nav a:hover {
	color: var(--ink);
}

.legal__nav a[aria-current="page"] {
	color: var(--ink);
	border-left-color: var(--accent);
	font-weight: 600;
}

/* Enlaces legales del pie y de las pantallas de acceso */
.legal-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.legal-links a {
	color: var(--muted);
	font-size: var(--fs-sm);
}

.legal-links a:hover {
	color: var(--ink);
}

.site-footer .legal-links {
	margin-left: auto;
}

.auth__legal {
	padding-top: 16px;
	display: flex;
	justify-content: center;
}

.check a {
	color: var(--accent-text);
}

/* 18. Seguridad del acceso: código por email y solicitudes con email personal */

.input--code {
	font-size: var(--fs-xl);
	letter-spacing: 0.3em;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent-text);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.link-button:hover {
	color: var(--ink);
}

.free-email {
	margin-left: 8px;
	vertical-align: middle;
}

.bounces__list {
	margin: 8px 0 0;
	padding-left: 1.1em;
	font-size: var(--fs-sm);
	overflow-wrap: anywhere;
}

.bounces__list li + li {
	margin-top: 4px;
}

.auth__aside-caption {
	margin-top: 12px;
	font-size: var(--fs-xs);
	color: var(--muted);
	text-align: right;
}

/* 19. Portada con imagen: escenas del producto, documento del sello y mar grabado -------- */

/* Pasos: la escena va arriba; la línea y el número, sobre el texto. */
.how > li {
	display: flex;
	flex-direction: column;
	padding-top: 0;
	border-top: 0;
}

.how > li::before {
	content: none;
}

.how__body {
	padding-top: 20px;
	border-top: 2px solid var(--ink);
}

.how__body::before {
	content: counter(how);
	display: block;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--accent-text);
	margin-bottom: 10px;
	font-variant-numeric: tabular-nums;
}

/* Fondo de carta náutica: retícula fina y un brillo de color de la marca. */
.how__visual {
	position: relative;
	height: 236px;
	margin-bottom: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	background-color: var(--surface-2);
	background-image:
		radial-gradient(110% 90% at 88% 0%, var(--accent-soft), transparent 62%),
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: auto, 28px 28px, 28px 28px;
	background-position: 0 0, -1px -1px, -1px -1px;
	font-size: var(--fs-xs);
	color: var(--ink);
	user-select: none;
}

.vg-card {
	position: absolute;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
}

.vg-card strong,
.vg-card small {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vg-card strong {
	font-size: var(--fs-sm);
	font-weight: 650;
}

.vg-card small {
	color: var(--muted);
	font-size: var(--fs-xs);
}

.vg-person,
.vg-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.vg-person > span,
.vg-row > span {
	min-width: 0;
}

/* 1 · Revisión: certificados, CV y vídeo comprobados. La tarjeta sigue por debajo del borde. */
.how__visual--review .vg-card {
	top: 24px;
	left: 24px;
	right: 24px;
}

.vg-checks {
	list-style: none;
	margin: 12px 0 12px;
	padding: 0;
}

.vg-checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid var(--line);
	font-weight: 550;
}

.vg-checks .icon {
	width: 16px;
	height: 16px;
	color: var(--muted);
}

.vg-tick {
	margin-left: auto;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ok-soft);
}

.vg-checks .vg-tick .icon {
	width: 12px;
	height: 12px;
	color: var(--ok);
	stroke-width: 3;
}

/* 2 · Búsqueda: filtros y resultados; la tarjeta sale por la derecha. */
.how__visual--search .vg-card {
	top: 30px;
	left: 24px;
	right: -40px;
	padding-right: 56px;
}

.vg-filters {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 12px;
}

.vg-filters .icon {
	width: 16px;
	height: 16px;
	color: var(--muted);
}

.vg-row {
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.vg-row > .icon {
	margin-left: auto;
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--faint);
}

.vg-row.is-saved > .icon {
	color: var(--accent);
	fill: currentColor;
}

/* 3 · Conversación: dos mensajes, como en el chat de la plataforma. */
.vg-chat {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.how__visual .vg-msg {
	max-width: 86%;
	margin: 0;
	color: var(--ink);
	padding: 10px 14px;
	font-size: var(--fs-sm);
	line-height: 1.4;
	box-shadow: var(--shadow);
}

.how__visual .vg-msg--out {
	align-self: flex-end;
	border-radius: 16px 16px 4px 16px;
	background: var(--accent);
	color: #fff;
}

.vg-reply {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.how__visual .vg-msg--in {
	border: 1px solid var(--line);
	border-radius: 16px 16px 16px 4px;
	background: var(--surface);
}

/* Sello: los certificados como un documento, con una roseta de grabado en latón. */
.seal-doc {
	position: relative;
	overflow: hidden;
	padding: 24px 20px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}

@media (min-width: 720px) {
	.seal-doc {
		padding: 28px 32px 16px;
	}
}

.seal-doc .rosette {
	position: absolute;
	top: -170px;
	right: -170px;
	width: 340px;
	height: 340px;
	color: var(--brass);
	opacity: 0.32;
	pointer-events: none;
}

.seal-doc > .stack {
	position: relative;
}

.seal-doc .certs li:last-child {
	border-bottom: 0;
}

/* Alumnos: franja de noche con el mar grabado y el yate de la marca en el horizonte.
   Siempre oscura, también en modo claro. */
.sea {
	position: relative;
	overflow: hidden;
	color: #eef1f8;
	background: linear-gradient(180deg, #070b16 0%, #0b1326 100%);
	--ink: #eef1f8;
	--ink-2: #c4cce0;
	--muted: #95a3c4;
	--line: rgba(150, 175, 225, 0.13);
	--line-strong: rgba(150, 175, 225, 0.24);
	--surface: #0b1326;
	--surface-3: #142142;
	--focus: 0 0 0 3px rgba(91, 140, 255, 0.55);
}

.sea__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 72px 20px 0;
}

.sea .btn {
	--btn-bg: #eef1f8;
	--btn-ink: #180f37;
	--btn-line: #eef1f8;
}

.sea .btn:hover {
	--btn-bg: #ffffff;
	--btn-line: #ffffff;
}

.sea__scene {
	position: relative;
	height: 190px;
	margin-top: 64px;
	background: linear-gradient(180deg, rgba(20, 33, 66, 0.55), rgba(7, 11, 22, 0));
}

/* Brillo sobre el horizonte, detrás del yate. */
.sea__scene::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -150px;
	height: 300px;
	background: radial-gradient(34% 50% at 72% 50%, rgba(91, 140, 255, 0.26), transparent 72%);
	pointer-events: none;
}

/* Línea del horizonte. */
.sea__scene::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(238, 241, 248, 0.08), rgba(238, 241, 248, 0.5) 72%, rgba(238, 241, 248, 0.12));
}

.sea__lines {
	position: absolute;
	left: 0;
	top: 8px;
	width: 100%;
	height: calc(100% - 8px);
	color: #5b8cff;
}

.sea__line {
	animation: sea-drift var(--d) linear infinite;
}

@keyframes sea-drift {
	to {
		transform: translateX(calc(var(--p) * -1px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.sea__line {
		animation: none;
	}
}

.sea__yacht {
	position: absolute;
	z-index: 1;
	left: 72%;
	bottom: calc(100% - 7px);
	width: 92px;
	color: #eef1f8;
	transform: translateX(-50%);
}

.sea__yacht .vey-logo-svg {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 1024px) {
	.sea__inner {
		padding-top: 104px;
	}

	.sea__scene {
		height: 230px;
		margin-top: 88px;
	}

	.sea__yacht {
		width: 128px;
	}
}

.vey-home .site-footer {
	border-top: 0;
}

/* 20. Panel de acceso: escena de la plataforma que flota ---------------------------- */
@media (min-width: 1024px) {
	/* El panel acompaña al formulario aunque este sea largo (solicitud de reclutador). */
	.auth__aside {
		display: block;
		padding: 0;
		overflow: clip;
		--surface: #0e1830;
		--surface-2: #0b1326;
		--faint: #5c677f;
		--ok-soft: rgba(60, 207, 152, 0.12);
		--accent-text: #86a9ff;
		--shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 48px rgba(0, 0, 0, 0.5);
	}

	.auth__aside-inner {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding: 40px 48px 32px;
	}

	.auth-scene {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 0;
	}
}

/* Cascada: conversación arriba, tarjeta del candidato y certificados abajo; cada pieza pisa
   un poco la siguiente (márgenes negativos), así nada importante queda tapado aunque el texto ocupe más. */
.auth-scene__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 8px 0 28px;
}

/* Fondo: brillo de la marca y retícula de carta náutica que se desvanece. */
.auth-scene__stage::before,
.auth-scene__stage::after {
	content: "";
	position: absolute;
	inset: -40px -80px;
	pointer-events: none;
}

.auth-scene__stage::before {
	background: radial-gradient(55% 50% at 50% 52%, rgba(47, 107, 255, 0.22), transparent 72%);
}

.auth-scene__stage::after {
	background-image:
		linear-gradient(rgba(150, 175, 225, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 175, 225, 0.09) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000 30%, transparent 75%);
	mask-image: radial-gradient(60% 55% at 50% 50%, #000 30%, transparent 75%);
}

/* Cada captura sube y baja despacio; su sombra se encoge y aclara cuando sube. */
.float {
	position: relative;
	z-index: 1;
}

.float__card {
	position: relative;
	z-index: 1;
	animation: vey-float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
	will-change: transform;
}

.float__shadow {
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: -26px;
	height: 18px;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--float-shadow, rgba(0, 0, 0, 0.75)), transparent);
	filter: blur(5px);
	animation: vey-float-shadow var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes vey-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-12px);
	}
}

@keyframes vey-float-shadow {
	0%,
	100% {
		transform: scaleX(1);
		opacity: 0.9;
	}

	50% {
		transform: scaleX(0.82);
		opacity: 0.45;
	}
}

@media (prefers-reduced-motion: reduce) {
	.float__card,
	.float__shadow {
		animation: none;
	}
}

.float--pass .pass {
	box-shadow: var(--shadow-lift);
}

.float--chat,
.float--certs {
	z-index: 2;
}

.float--chat {
	order: -1;
	align-self: flex-end;
	width: min(340px, 82%);
	margin: 0 -14px -16px 0;
}

.float--certs {
	width: min(300px, 72%);
	margin: -18px 0 0 -14px;
}

/* Pantallas bajas o estrechas: solo conversación y tarjeta, para que todo quepa. */
@media (max-width: 1279px), (max-height: 840px) {
	.float--certs {
		display: none;
	}
}

.scene-card {
	padding: 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-md);
	background: rgba(14, 24, 48, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: var(--shadow-lift);
	font-size: var(--fs-xs);
}

.scene-msg {
	margin: 0;
	max-width: 88%;
	padding: 9px 12px;
	font-size: var(--fs-xs);
	line-height: 1.4;
}

.scene-msg--out {
	margin-left: auto;
	border-radius: 14px 14px 4px 14px;
	background: var(--accent);
	color: #fff;
}

.scene-reply {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-top: 8px;
}

.scene-msg--in {
	border: 1px solid var(--line);
	border-radius: 14px 14px 14px 4px;
	background: var(--surface-2);
	color: var(--ink);
}

.scene-certs {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.scene-certs li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-weight: 550;
}

.scene-certs li > span:first-of-type {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.scene-certs .icon {
	width: 15px;
	height: 15px;
	flex: none;
	color: var(--muted);
}

.scene-certs .badge {
	margin-left: auto;
}

.auth-scene .auth__aside-caption {
	margin-top: 8px;
}

/* 21. Portada: la tarjeta del candidato flota y queda centrada con el título, el texto y los botones */
:root {
	--float-shadow: rgba(24, 15, 55, 0.32);
}

[data-theme="dark"],
.auth__aside {
	--float-shadow: rgba(0, 0, 0, 0.75);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--float-shadow: rgba(0, 0, 0, 0.75);
	}
}

/* Más aire arriba (la tarjeta de detrás asoma por encima) y el pie de foto fuera del cálculo,
   así el centro de la tarjeta coincide con el centro del bloque de texto. */
.hero__visual {
	padding: 48px 0 24px;
}

.hero__visual .float--ghost {
	position: absolute;
	z-index: 0;
	top: 20px;
	left: 8%;
	right: 0;
}

.hero__visual .float--ghost .pass--ghost {
	position: static;
	inset: auto;
}

.hero__visual .float--hero {
	z-index: 1;
}

.hero__caption {
	position: absolute;
	right: 0;
	bottom: -34px;
	margin: 0;
}

/* 22. Equipo: todas las conversaciones (solo lectura) -------------------------------- */
.team-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 640px;
}

.team-search .input {
	flex: 1 1 260px;
	min-width: 0;
}

.tconv__count {
	margin-bottom: 8px;
}

.tconv {
	align-items: flex-start;
}

/* Reclutador y alumno, un avatar sobre otro. */
.tconv__avatars {
	display: flex;
	flex: none;
	padding-top: 2px;
}

.tconv__avatars .avatar + .avatar {
	margin-left: -12px;
	box-shadow: 0 0 0 2px var(--surface);
}

.tconv__preview {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--ink-2);
}

.tconv__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex: none;
	text-align: right;
}

@media (max-width: 559px) {
	.tconv {
		flex-wrap: wrap;
	}

	.tconv__side {
		flex-direction: row;
		align-items: center;
		width: 100%;
		padding-left: 62px;
		gap: 10px;
	}
}
