/* Ground Instructors — estilos frontend (formulario, CTA y directorio) */
/* Estas vistas son pantallas de la aplicación, no entradas con barra lateral. */
body.ground-centros-layout #page.grid-container,
body.ground-centros-layout .site-content {
	max-width: none;
	width: 100%;
}

body.ground-centros-layout .site-content {
	display: block;
	padding: 0;
	background: #09191e;
}

body.ground-centros-layout .content-area {
	float: none;
	width: 100%;
}

body.ground-centros-layout .widget-area {
	display: none !important;
}

body.ground-centros-layout .site-main {
	margin: 0 !important;
}

body.ground-centros-layout .inside-article {
	padding: 34px clamp(16px, 4vw, 64px) 64px !important;
	background: #09191e;
}

body.ground-centros-layout .entry-content {
	margin-top: 0;
}

/* The plugin views render their own contextual heading. */
body.ground-centros-layout .entry-header,
body.ground-centros-layout .entry-title,
body.ground-centros-layout .page-title {
	display: none !important;
}

body.ground-centros-layout .ground-trainers-map-shell,
body.ground-centros-layout .ground-centros,
body.ground-centros-layout .ground-profile-page {
	max-width: 1480px;
	margin-right: auto;
	margin-left: auto;
}

.ground-instructors-notice,
.ground-instructors-existing,
.ground-instructors-cta,
.ground-instructors-form,
.ground-profile-page,
.ground-trainers-map-shell {
	--gr-bg: #09191e;
	--gr-surface: #0d222c;
	--gr-surface-2: #253841;
	--gr-line: rgba(255, 255, 255, 0.10);
	--gr-text: #ffffff;
	--gr-muted: #b6bdc0;
	--gr-muted-2: #6e7a80;
	--gr-orange: #f24b00;
	--gr-orange-ink: #0a0a0a;
	--gr-blue: #d1e4ef;
	--gr-yellow: #f3b700;
	--gr-font-title: "Red Hat Display", "Satoshi", system-ui, -apple-system, Sans-serif;
	--gr-font-body: "Satoshi", "Lexend", system-ui, -apple-system, Sans-serif;
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--gr-line);
	background: var(--gr-surface);
	color: var(--gr-text);
	font-family: var(--gr-font-body);
}

body:has(.ground-instructors-apply) .entry-header,
body:has(.ground-instructors-apply) .entry-title,
body:has(.ground-instructors-apply) .page-title,
body:has(.ground-instructors-notice) .entry-header,
body:has(.ground-instructors-notice) .entry-title,
body:has(.ground-instructors-notice) .page-title,
body:has(.ground-instructors-cta) .entry-header,
body:has(.ground-instructors-cta) .entry-title,
body:has(.ground-instructors-cta) .page-title,
body:has(.ground-trainers-map-shell) .entry-header,
body:has(.ground-trainers-map-shell) .entry-title,
body:has(.ground-trainers-map-shell) .page-title {
	display: none !important;
}

.ground-instructors-notice,
.ground-instructors-existing {
	padding: 22px;
	border-radius: 16px;
}

.ground-instructors-notice p,
.ground-instructors-existing p {
	margin: 0 0 14px;
	color: var(--gr-muted);
}

.ground-instructors-form {
	padding: 28px;
	border-radius: 18px;
	overflow: hidden;
}

.ground-instructors-form h3,
.ground-instructors-existing h3 {
	margin: 0 0 8px;
	font-family: var(--gr-font-title);
	font-size: 24px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--gr-text);
}

.ground-instructors-form-hero {
	margin: -28px -28px 26px;
	padding: 30px 28px 34px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(242, 75, 0, 0.28), transparent 46%),
		linear-gradient(145deg, #0d222c 0%, #09191e 60%, #050d10 100%);
	color: #fff;
}

.ground-instructors-form-hero p {
	margin: 0 0 10px;
	color: var(--gr-orange);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ground-instructors-form-hero h3 {
	max-width: 760px;
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--gr-font-title);
	font-size: clamp(34px, 4.2vw, 54px);
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.0;
}

.ground-instructors-form-hero span {
	display: block;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.ground-instructor-shared-profile {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--gr-line);
	border-radius: 14px;
	background: var(--gr-surface-2);
}

.ground-instructor-shared-profile.has-photo {
	grid-template-columns: 84px minmax(0, 1fr);
}

.ground-instructor-shared-profile > img {
	display: block;
	width: 84px;
	height: 84px;
	border-radius: 12px;
	object-fit: cover;
}

.ground-instructor-shared-profile span,
.ground-instructor-shared-profile strong {
	display: block;
}

.ground-instructor-shared-profile span {
	margin-bottom: 4px;
	color: var(--gr-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ground-instructor-shared-profile strong {
	color: var(--gr-text);
	font-size: 18px;
}

.ground-instructor-shared-profile p {
	margin: 5px 0;
	color: var(--gr-muted);
	font-size: 14px;
}

.ground-instructor-shared-profile a {
	display: inline-block;
	margin-top: 6px;
	color: var(--gr-orange);
	font-size: 13px;
	font-weight: 800;
}

.ground-instructors-form-section {
	padding: 22px 0;
	border-top: 1px solid var(--gr-line);
}

.ground-instructors-form-section:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.ground-instructors-section-head {
	max-width: 720px;
	margin: 0 0 16px;
}

.ground-instructors-section-head span {
	display: inline-flex;
	margin: 0 0 8px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(242, 75, 0, 0.14);
	color: var(--gr-orange);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ground-instructors-section-head h4 {
	margin: 0 0 5px;
	color: var(--gr-text);
	font-family: var(--gr-font-title);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.1;
}

.ground-instructors-section-head p {
	margin: 0;
	color: var(--gr-muted);
	font-size: 14px;
	line-height: 1.45;
}

.ground-instructors-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ground-instructors-form label,
.ground-instructors-form fieldset {
	display: block;
	margin: 0;
}

.ground-instructors-form span,
.ground-instructors-form legend {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
	font-size: 13px;
	color: var(--gr-muted);
}

.ground-instructors-form .ground-instructors-section-head span {
	display: inline-flex;
	width: auto;
	max-width: max-content;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 800;
	color: var(--gr-orange);
}

.ground-instructors-form input,
.ground-instructors-form textarea,
.ground-trainers-map-toolbar input,
.ground-trainers-map-toolbar select {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--gr-line);
	border-radius: 8px;
	background: var(--gr-bg);
	color: var(--gr-text);
	font-family: var(--gr-font-body);
	box-sizing: border-box;
}

.ground-instructors-form input,
.ground-instructors-form textarea {
	padding: 11px 13px;
}

.ground-instructors-form input::placeholder,
.ground-instructors-form textarea::placeholder,
.ground-trainers-map-toolbar input::placeholder {
	color: var(--gr-muted-2);
}

.ground-instructors-form input:focus,
.ground-instructors-form textarea:focus,
.ground-trainers-map-toolbar input:focus,
.ground-trainers-map-toolbar select:focus {
	outline: none;
	border-color: var(--gr-orange);
	box-shadow: 0 0 0 3px rgba(242, 75, 0, 0.22);
}

.ground-instructors-form textarea {
	resize: vertical;
}

.ground-instructors-form-wide {
	grid-column: 1 / -1;
}

.ground-instructors-form fieldset {
	border: 1px solid var(--gr-line);
	border-radius: 8px;
	padding: 14px;
}

.ground-instructors-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin-right: 18px !important;
	font-weight: 700;
	color: var(--gr-text);
}

.ground-instructors-checkbox input {
	width: auto;
	min-height: 0;
	accent-color: var(--gr-orange);
}

.ground-instructors-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 20px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--gr-orange);
	color: var(--gr-orange-ink) !important;
	font-family: var(--gr-font-body);
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 140ms ease, filter 140ms ease;
}

.ground-instructors-button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.ground-instructors-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 20px;
	border-top: 1px solid var(--gr-line);
}

.ground-instructors-form-actions p {
	max-width: 480px;
	margin: 0;
	color: var(--gr-muted);
	font-size: 13px;
	line-height: 1.45;
}

.ground-instructors-form-actions .ground-instructors-button {
	margin-top: 0;
	white-space: nowrap;
}

.ground-instructors-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 20px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: #fff !important;
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	transition: border-color 140ms ease, background 140ms ease;
}

.ground-instructors-link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.ground-instructors-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
	gap: 24px;
	align-items: center;
	padding: 30px;
	border: 1px solid var(--gr-line);
	border-radius: 20px;
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(242, 75, 0, 0.26), transparent 44%),
		linear-gradient(145deg, #0d222c 0%, #09191e 58%, #050d10 100%);
	color: #fff;
	overflow: hidden;
}

.ground-instructors-cta-kicker {
	margin: 0 0 10px !important;
	color: var(--gr-orange) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	line-height: 1.2 !important;
	text-transform: uppercase;
}

.ground-instructors-cta h3 {
	max-width: 760px;
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--gr-font-title);
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.02;
}

.ground-instructors-cta p {
	max-width: 720px;
	margin: 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.ground-instructors-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 20px;
}

.ground-instructors-cta-actions .ground-instructors-button,
.ground-instructors-cta-actions .ground-instructors-link {
	margin-top: 0;
}

.ground-instructors-cta-status {
	display: grid;
	gap: 9px;
	justify-items: start;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
}

.ground-instructors-cta-status span {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.10);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ground-instructors-cta-ready .ground-instructors-cta-status span,
.ground-instructors-cta-published .ground-instructors-cta-status span {
	background: rgba(242, 75, 0, 0.20);
	color: #ffd0bb;
}

.ground-instructors-cta-pending .ground-instructors-cta-status span {
	background: rgba(243, 183, 0, 0.18);
	color: #ffe27a;
}

.ground-instructors-cta-status small {
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.ground-instructors-message {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid var(--gr-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--gr-text);
}

.ground-instructors-message-success {
	border-color: rgba(242, 75, 0, 0.5);
	background: rgba(242, 75, 0, 0.12);
}

.ground-instructors-message-error {
	border-color: rgba(248, 113, 113, 0.5);
	background: rgba(248, 113, 113, 0.12);
}

.ground-trainers-map-shell {
	padding: 24px;
	border-radius: 20px;
}

.ground-trainers-map-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.ground-trainers-map-head p {
	margin: 0 0 6px;
	color: var(--gr-orange);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ground-trainers-map-head h2 {
	margin: 0;
	font-family: var(--gr-font-title);
	font-size: clamp(30px, 3.6vw, 50px);
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.0;
	color: var(--gr-text);
}

.ground-trainers-map-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1.7fr) minmax(210px, 0.9fr) minmax(150px, 0.65fr) auto;
	gap: 12px;
	margin-bottom: 10px;
}

.ground-trainers-map-clear-wrap {
	display: flex;
	align-items: flex-end;
}

.ground-trainers-map-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--gr-line);
	border-radius: 8px;
	background: transparent;
	color: var(--gr-muted);
	font-family: var(--gr-font-body);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.ground-trainers-map-clear:hover {
	border-color: var(--gr-orange);
	color: var(--gr-orange);
	background: rgba(242, 75, 0, 0.08);
}

.ground-trainers-map-toolbar span {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gr-muted);
}

.ground-trainers-map-toolbar input,
.ground-trainers-map-toolbar select {
	padding: 9px 12px;
	min-height: 44px;
	font-family: var(--gr-font-body);
	font-weight: 500;
}

.ground-trainers-map-toolbar .ground-trainers-postal-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px;
	margin: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.ground-trainers-postal-control button,
.ground-trainers-location,
.ground-trainers-proximity-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gr-orange);
	border-radius: 8px;
	background: var(--gr-orange);
	color: var(--gr-orange-ink);
	font-family: var(--gr-font-body);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.ground-trainers-postal-control button:hover,
.ground-trainers-location:hover {
	filter: brightness(1.08);
}

.ground-trainers-postal-control button:disabled,
.ground-trainers-location:disabled {
	opacity: 0.62;
	cursor: wait;
}

.ground-trainers-map-proximity {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.ground-trainers-location {
	border-color: var(--gr-line);
	background: var(--gr-surface-2);
	color: var(--gr-text);
}

.ground-trainers-location::before {
	content: '';
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.ground-trainers-proximity-clear {
	min-height: 36px;
	border-color: var(--gr-line);
	background: transparent;
	color: var(--gr-muted);
}

.ground-trainers-map-proximity [data-ground-map-proximity-status] {
	flex: 1 1 280px;
	color: var(--gr-muted-2);
	font-size: 12px;
	line-height: 1.4;
}

.ground-trainers-map-proximity.is-active [data-ground-map-proximity-status] {
	color: var(--gr-text);
}

.ground-trainers-map-proximity.is-error [data-ground-map-proximity-status] {
	color: #ff9b95;
}

/* Mapa arriba + tarjeta de detalle a la derecha */
.ground-trainers-map-top {
	display: grid;
	grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
	gap: 18px;
	min-height: var(--ground-map-height);
	margin-bottom: 16px;
}

.ground-trainers-map-canvas {
	position: relative;
	z-index: 0;
	min-height: var(--ground-map-height);
	border-radius: 16px;
	overflow: hidden;
	background: var(--gr-bg);
	border: 1px solid var(--gr-line);
}

.ground-trainers-map-detail {
	align-self: start;
	position: sticky;
	top: 16px;
	z-index: 2;
}

.ground-trainers-map-detail-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	padding: 24px;
	border: 1px dashed var(--gr-line);
	border-radius: 16px;
	background: var(--gr-surface);
	color: var(--gr-muted-2);
	font-size: 13px;
	text-align: center;
}

.ground-trainers-map-detail .ground-trainer-card {
	cursor: default;
	overflow: visible;
}

/* Rejilla de centros debajo del mapa (fluye con la página) */
.ground-trainers-map-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 6px;
}

@media (max-width: 1080px) {
	.ground-trainers-map-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Tarjeta vertical estilo Ground: foto arriba, esquina inferior-izquierda a 30px */
.ground-trainer-card {
	display: flex;
	flex-direction: column;
	padding: 0 0 12px;
	border: 1px solid var(--gr-line);
	border-radius: 0 0 0 30px;
	background: var(--gr-surface);
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ground-trainer-card:hover,
.ground-trainer-card.is-active {
	border-color: var(--gr-orange);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
	transform: translateY(-2px);
}

.ground-trainer-card-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--gr-surface-2);
	overflow: hidden;
}

.ground-trainer-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.ground-trainer-card-photo-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #253841, #0d222c);
}

.ground-trainer-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 12px 14px 0;
}

.ground-trainer-card-name {
	margin: 0;
	font-family: var(--gr-font-title);
	font-size: 18px;
	line-height: 1.12;
	font-weight: 900;
	color: var(--gr-text);
}

.ground-trainer-card-ig {
	margin: 2px 0 0;
	font-family: var(--gr-font-body);
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--gr-orange);
}

.ground-trainer-card-city {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--gr-muted);
}

.ground-trainer-card-distance {
	display: inline-flex;
	align-self: flex-start;
	margin: 5px 0 0;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(242, 75, 0, 0.14);
	color: #ffb18d;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.ground-trainer-card-role {
	margin: 10px 0 0;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gr-muted-2);
}

.ground-trainer-card-instructor {
	margin: 1px 0 0;
	font-family: var(--gr-font-title);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--gr-text);
}

/* Medallas de logros en la card (solo icono + tooltip al pasar el ratón) */
.ground-trainer-card-medals {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.ground-trainer-card-medal {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--gr-muted);
	cursor: default;
	transition: color 140ms ease, transform 140ms ease;
}

.ground-trainer-card-medal svg {
	width: 26px;
	height: 26px;
}

.ground-trainer-card-medal:hover,
.ground-trainer-card-medal:focus-visible {
	color: var(--gr-orange);
	transform: translateY(-1px);
	outline: none;
}

.ground-trainer-card-medal-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--gr-surface-2);
	color: var(--gr-text);
	border: 1px solid var(--gr-line);
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	padding: 6px 10px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	z-index: 1000;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
	transition: opacity 140ms ease, transform 140ms ease;
}

.ground-trainer-card-medal:first-child .ground-trainer-card-medal-tip {
	left: 0;
	transform: translateY(4px);
}

.ground-trainer-card-medal:first-child:hover .ground-trainer-card-medal-tip,
.ground-trainer-card-medal:first-child:focus-visible .ground-trainer-card-medal-tip {
	transform: translateY(0);
}

/* In the selected card the label opens sideways, inside the detail column. */
.ground-trainers-map-detail .ground-trainer-card-medal-tip,
.ground-trainers-map-detail .ground-trainer-card-medal:first-child .ground-trainer-card-medal-tip {
	top: 50%;
	bottom: auto;
	left: calc(100% + 8px);
	transform: translateX(-4px) translateY(-50%);
}

.ground-trainers-map-detail .ground-trainer-card-medal:hover .ground-trainer-card-medal-tip,
.ground-trainers-map-detail .ground-trainer-card-medal:focus-visible .ground-trainer-card-medal-tip {
	transform: translateX(0) translateY(-50%);
}

/* Perfil del instructor: una ficha pública común con revisión editorial. */
.ground-profile-page {
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px);
	border-radius: 20px;
}

.ground-profile-head {
	margin-bottom: 24px;
}

.ground-profile-head > p {
	margin: 0 0 8px;
	color: var(--gr-orange);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ground-profile-head h2 {
	margin: 0 0 10px;
	color: var(--gr-text);
	font-family: var(--gr-font-title);
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1;
}

.ground-profile-head > span,
.ground-profile-form small,
.ground-profile-achievements p {
	color: var(--gr-muted);
}

.ground-profile-state {
	display: grid;
	gap: 5px;
	margin-bottom: 22px;
	padding: 14px 16px;
	border: 1px solid var(--gr-line);
	border-radius: 12px;
	background: rgba(255,255,255,.03);
}

.ground-profile-state-pending { border-color: rgba(243,183,0,.45); }
.ground-profile-state-denied { border-color: rgba(255,90,82,.55); }
.ground-profile-state-approved { border-color: rgba(66,185,112,.45); }

.ground-profile-form {
	display: grid;
	gap: 20px;
}

.ground-profile-form > label {
	display: grid;
	gap: 8px;
}

.ground-profile-form > label > span,
.ground-profile-achievements > span {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ground-profile-form input[type="text"],
.ground-profile-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--gr-line);
	border-radius: 10px;
	background: rgba(0,0,0,.18);
	color: var(--gr-text);
	padding: 13px 14px;
}

.ground-profile-photo {
	display: grid;
	grid-template-columns: 132px minmax(0,1fr);
	gap: 20px;
	align-items: center;
}

.ground-profile-photo > img,
.ground-profile-photo > span:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 132px;
	height: 132px;
	border: 1px solid var(--gr-line);
	border-radius: 14px;
	object-fit: cover;
	background: rgba(0,0,0,.18);
	color: var(--gr-muted);
}

.ground-profile-photo > div {
	display: grid;
	gap: 9px;
}

.ground-profile-achievements {
	padding: 16px;
	border: 1px solid var(--gr-line);
	border-radius: 12px;
}

.ground-profile-achievements ul {
	margin: 10px 0 0 20px;
}

.ground-profile-page .ground-instructors-button {
	justify-self: start;
}

.ground-trainer-card-medal:hover .ground-trainer-card-medal-tip,
.ground-trainer-card-medal:focus-visible .ground-trainer-card-medal-tip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.ground-trainer-card-bio {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ground-trainer-card-contact {
	display: grid;
	gap: 5px;
	margin-top: 10px;
}

.ground-trainer-card-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: var(--gr-muted);
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	transition: color 140ms ease;
}

.ground-trainer-card-line svg {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	color: var(--gr-orange);
}

.ground-trainer-card-line span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ground-trainer-card-line:hover {
	color: var(--gr-text);
}

.ground-trainer-card-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.ground-trainer-card-ig-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 1px solid var(--gr-line);
	border-radius: 999px;
	color: var(--gr-text);
	text-decoration: none;
	transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.ground-trainer-card-ig-btn svg {
	width: 16px;
	height: 16px;
}

.ground-trainer-card-ig-btn:hover {
	border-color: var(--gr-orange);
	background: var(--gr-orange);
	color: var(--gr-orange-ink);
}

.ground-trainer-card-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--gr-orange);
	color: var(--gr-orange-ink);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: filter 140ms ease;
}

.ground-trainer-card-view:hover {
	filter: brightness(1.08);
	color: var(--gr-orange-ink);
}

.ground-trainer-card-details {
	display: grid;
	gap: 5px;
	margin-top: 10px;
}

.ground-trainer-detail {
	display: grid;
	gap: 1px;
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--gr-muted);
}

.ground-trainer-detail span {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gr-muted-2);
}

.ground-trainer-detail strong {
	font-weight: 600;
	color: var(--gr-text);
}

.ground-trainer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.ground-trainer-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 11px;
	border: 1px solid var(--gr-line);
	border-radius: 999px;
	color: var(--gr-text);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.ground-trainer-actions a:hover {
	border-color: var(--gr-orange);
	background: var(--gr-orange);
	color: var(--gr-orange-ink);
}

.ground-trainers-map-note {
	margin: 13px 0 0;
	color: var(--gr-muted);
	font-size: 13px;
}

.ground-trainers-map-note strong {
	color: var(--gr-orange);
	font-weight: 800;
}

.ground-map-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 3px solid #fff;
	border-radius: 999px;
	background: var(--gr-orange);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.ground-map-marker:after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #fff;
}

.ground-map-origin-wrap {
	background: transparent;
	border: 0;
}

.ground-map-origin {
	display: block;
	width: 20px;
	height: 20px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #2f9df4;
	box-shadow: 0 0 0 7px rgba(47, 157, 244, 0.24), 0 8px 22px rgba(0, 0, 0, 0.42);
}

.ground-trainers-list-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--gr-line);
	border-radius: 14px;
	color: var(--gr-muted);
	text-align: center;
}

.ground-map-popup {
	font-family: var(--gr-font-body);
	min-width: 220px;
}

.ground-map-popup h3 {
	margin: 0 0 8px;
	font-family: var(--gr-font-title);
	font-size: 18px;
	line-height: 1.2;
	font-weight: 800;
	color: #111827;
}

.ground-map-popup .ground-trainer-detail {
	color: #475569;
	margin-bottom: 8px;
}

.ground-map-popup .ground-trainer-detail span {
	font-size: 10px;
	color: #94a3b8;
}

.ground-map-popup .ground-trainer-detail strong {
	font-size: 13px;
	color: #0f172a;
}


.ground-map-popup .ground-trainer-actions {
	margin-top: 12px;
}

.ground-map-popup .ground-trainer-actions a {
	border-color: #cbd5e1;
	color: #0f172a;
}

.ground-map-popup .ground-trainer-actions a:hover {
	border-color: var(--gr-orange);
	background: var(--gr-orange);
	color: var(--gr-orange-ink);
}

.ground-trainers-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--ground-map-height);
	padding: 24px;
	color: var(--gr-muted);
	text-align: center;
}

@media (max-width: 900px) {
	.ground-instructors-form-grid,
	.ground-instructors-cta,
	.ground-trainers-map-toolbar,
	.ground-trainers-map-top {
		grid-template-columns: 1fr;
	}

	.ground-instructors-form-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ground-instructors-form-actions .ground-instructors-button {
		width: 100%;
	}

	.ground-trainers-map-detail {
		position: static;
	}

	.ground-trainers-map-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ground-trainers-map-head {
		display: block;
	}
}

@media (max-width: 560px) {
	.ground-profile-page {
		padding: 22px 18px;
	}

	.ground-profile-photo {
		grid-template-columns: 1fr;
	}

	.ground-instructors-form {
		padding: 20px;
		border-radius: 14px;
	}

	.ground-instructors-cta {
		padding: 22px;
		border-radius: 16px;
	}

	.ground-instructors-cta-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ground-instructors-cta-actions .ground-instructors-button,
	.ground-instructors-cta-actions .ground-instructors-link {
		width: 100%;
	}

	.ground-instructors-form-hero {
		margin: -20px -20px 22px;
		padding: 24px 20px 28px;
	}

	.ground-instructors-form-section {
		padding: 20px 0;
	}

	.ground-instructor-shared-profile.has-photo {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.ground-instructor-shared-profile > img {
		width: 64px;
		height: 64px;
	}

	.ground-trainers-map-shell {
		padding: 16px;
		border-radius: 16px;
	}

	.ground-trainers-map-grid {
		grid-template-columns: 1fr;
	}

	.ground-trainers-map-proximity {
		align-items: stretch;
		flex-direction: column;
	}

	.ground-trainers-map-proximity [data-ground-map-proximity-status] {
		flex-basis: auto;
	}
}

/* ---------------------------------------------------------------------
 * Mis Centros (página del perfil)
 * ------------------------------------------------------------------- */
.ground-centros {
	--gr-bg: #09191e;
	--gr-surface: #0d222c;
	--gr-surface-2: #253841;
	--gr-line: rgba(255, 255, 255, 0.10);
	--gr-text: #ffffff;
	--gr-muted: #b6bdc0;
	--gr-muted-2: #6e7a80;
	--gr-orange: #f24b00;
	--gr-orange-ink: #0a0a0a;
	--gr-yellow: #f3b700;
	--gr-red: #ff5a52;
	--gr-green: #35c26b;
	--gr-font-title: "Red Hat Display", "Satoshi", system-ui, -apple-system, Sans-serif;
	--gr-font-body: "Satoshi", "Lexend", system-ui, -apple-system, Sans-serif;
	color: var(--gr-text);
	font-family: var(--gr-font-body);
}

.ground-centros * {
	box-sizing: border-box;
}

.ground-centros-head {
	margin-bottom: 22px;
}

.ground-centros-kicker {
	margin: 0 0 8px;
	color: var(--gr-orange);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ground-centros-head h2 {
	margin: 0 0 8px;
	font-family: var(--gr-font-title);
	font-size: clamp(28px, 3.4vw, 46px);
	font-weight: 900;
	line-height: 1.0;
	color: var(--gr-text);
}

.ground-centros-sub {
	margin: 0;
	max-width: 640px;
	color: var(--gr-muted);
	font-size: 15px;
	line-height: 1.5;
}

.ground-centros-form {
	margin-bottom: 30px;
}

.ground-centros-add {
	margin: 24px 0 30px;
	border: 1px solid var(--gr-line);
	border-radius: 16px;
	background: var(--gr-surface);
}

.ground-centros-add > summary {
	padding: 20px 24px;
	color: var(--gr-text);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.ground-centros-add > summary:focus-visible {
	outline: 2px solid var(--gr-orange);
	outline-offset: 3px;
	border-radius: 16px;
}

.ground-centros-add[open] > summary {
	border-bottom: 1px solid var(--gr-line);
}

.ground-centros-add .ground-centros-form {
	margin: 0;
	border: 0;
}

.ground-centros-empty {
	margin: 0;
	padding: 22px;
	border: 1px dashed var(--gr-line);
	border-radius: 16px;
	color: var(--gr-muted);
	background: var(--gr-surface);
}

.ground-centros-group {
	margin-top: 30px;
}

.ground-centros-group-title {
	margin: 0 0 14px;
	font-family: var(--gr-font-title);
	font-size: 18px;
	font-weight: 800;
	color: var(--gr-text);
	display: flex;
	align-items: center;
	gap: 10px;
}

.ground-centros-group-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--gr-line);
}

/* Rejilla de 3 columnas */
.ground-centros-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ground-centro-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gr-line);
	border-radius: 0 0 0 30px;
	background: var(--gr-surface);
	overflow: hidden;
	padding: 0 0 14px;
}

.ground-centro-card-photo {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--gr-surface-2);
	overflow: hidden;
}

.ground-centro-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ground-centro-card-photo-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #253841, #0d222c);
}

.ground-centro-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
}

.ground-centro-badge-approved {
	background: var(--gr-green);
	color: #052b16;
}

.ground-centro-badge-pending {
	background: var(--gr-yellow);
	color: #3a2c00;
}

.ground-centro-badge-denied {
	background: var(--gr-red);
	color: #3a0605;
}

.ground-centro-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 0;
	min-width: 0;
}

.ground-centro-card-body h4 {
	margin: 0;
	font-family: var(--gr-font-title);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--gr-text);
}

.ground-centro-card-city {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--gr-muted);
}

.ground-centro-card-addr {
	margin: 2px 0 0;
	font-size: 11px;
	color: var(--gr-muted-2);
	line-height: 1.35;
}

.ground-centro-note {
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1px solid rgba(255, 90, 82, 0.4);
	border-radius: 12px;
	background: rgba(255, 90, 82, 0.10);
	font-size: 12px;
	line-height: 1.4;
	color: #ffd9d6;
}

.ground-centro-note span {
	display: block;
	margin-bottom: 3px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gr-red);
}

.ground-centro-card-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: 12px;
	min-height: 34px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--gr-orange);
	color: var(--gr-orange-ink);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: filter 140ms ease;
}

/* Keep compact actions from inheriting the theme's oversized link type. */
.ground-centros .ground-centro-card-view,
.ground-centros .ground-centro-action-edit {
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.ground-centro-card-view:hover {
	filter: brightness(1.08);
	color: var(--gr-orange-ink);
}

.ground-centro-card-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.ground-centro-action-edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid var(--gr-line);
	border-radius: 999px;
	color: var(--gr-text);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: border-color 140ms ease, background 140ms ease;
}

.ground-centro-action-edit:hover {
	border-color: var(--gr-orange);
	background: rgba(242, 75, 0, 0.12);
	color: var(--gr-text);
}

.ground-centro-action-trash {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 1px solid var(--gr-line);
	border-radius: 999px;
	color: var(--gr-muted);
	text-decoration: none;
	transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.ground-centro-action-trash svg {
	width: 15px;
	height: 15px;
}

.ground-centro-action-trash:hover {
	border-color: var(--gr-red);
	background: rgba(255, 90, 82, 0.14);
	color: var(--gr-red);
}

/* Solicitudes en proceso: filas compactas sin imagen */
.ground-centros-rows {
	display: grid;
	gap: 10px;
}

.ground-centro-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--gr-line);
	border-radius: 14px;
	background: var(--gr-surface);
}

.ground-centro-row-main {
	min-width: 0;
}

.ground-centro-row-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ground-centro-row-head h4 {
	margin: 0;
	font-family: var(--gr-font-title);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--gr-text);
}

.ground-centro-row-city {
	font-size: 12px;
	color: var(--gr-muted-2);
}

.ground-centro-row .ground-centro-badge {
	position: static;
	top: auto;
	left: auto;
	backdrop-filter: none;
}

.ground-centro-row .ground-centro-note {
	margin-top: 10px;
}

.ground-centro-row-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.ground-centro-row-actions .ground-centro-action-edit {
	flex: 0 0 auto;
}

@media (max-width: 860px) {
	.ground-centros-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ground-centro-row {
		flex-direction: column;
	}

	.ground-centro-row-actions {
		width: 100%;
	}

	.ground-centro-row-actions .ground-centro-action-edit {
		flex: 1 1 auto;
	}
}

@media (max-width: 540px) {
	.ground-centros-grid {
		grid-template-columns: 1fr;
	}
}
/* Mantener las acciones al pie de las tarjetas del directorio. */.ground-trainers-map-grid .ground-trainer-card-body {flex:1;}.ground-trainers-map-grid .ground-trainer-card-foot {margin-top:auto;padding-top:12px;}