/* ==========================================================================
   wikiYOKO — Mobile-first webapp UX (iOS HIG) + Desktop original
   Mobile (<600px): top bar fija + content scroll + bottom tab bar fija
   Desktop (>=600px): hero pesado + nav pills sticky (diseno original)
   ========================================================================== */

/* ---------- Reset defensivo del theme ---------------------------- */
body.wikiyoko-standalone-page {
	background: #fffaf4 !important;
	color: #1c1814 !important;
	color-scheme: light;
	margin: 0 !important;
	min-height: 100vh;
	padding: 0 !important;
	overflow-x: hidden;
}

body.wikiyoko-standalone-page #page,
body.wikiyoko-standalone-page .site,
body.wikiyoko-standalone-page .site-content,
body.wikiyoko-standalone-page .site-main,
body.wikiyoko-standalone-page .entry-content,
body.wikiyoko-standalone-page .elementor,
body.wikiyoko-standalone-page .elementor-page,
body.wikiyoko-standalone-page main {
	background: transparent !important;
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

/* ---------- Visibility helpers (mobile vs desktop) -------------- */
.wy-mobile-only { display: block; }
.wy-desktop-only { display: none; }

@media (min-width: 600px) {
	.wy-mobile-only { display: none !important; }
	.wy-desktop-only { display: block; }
}

/* ---------- Tokens y base ----------------------------------------- */
.wikiyoko-app {
	--wy-ink: #1c1814;
	--wy-ink-soft: #2b2520;
	--wy-clay: #c49a78;
	--wy-clay-soft: #e6c8aa;
	--wy-clay-dark: #8f6345;
	--wy-paper: #fffaf4;
	--wy-paper-deep: #f4eadf;
	--wy-paper-warm: #fdf6ec;
	--wy-line: rgba(28, 24, 20, 0.1);
	--wy-line-soft: rgba(28, 24, 20, 0.06);
	--wy-muted: #6d625a;
	--wy-muted-2: #9a8f86;
	--wy-success: #5a7a4f;
	--wy-error: #b65a4f;

	--wy-pad: 16px;
	--wy-topbar-h: 56px;
	--wy-tabbar-h: 64px;
	--wy-safe-bottom: env(safe-area-inset-bottom, 0px);

	--wy-r-sm: 10px;
	--wy-r-md: 14px;
	--wy-r-lg: 18px;
	--wy-r-xl: 24px;

	--wy-sh-1: 0 1px 2px rgba(28, 24, 20, 0.04),
		0 2px 6px rgba(28, 24, 20, 0.06);
	--wy-sh-2: 0 4px 14px rgba(28, 24, 20, 0.08);
	--wy-sh-3: 0 12px 28px rgba(28, 24, 20, 0.14);

	background: var(--wy-paper);
	color: var(--wy-ink);
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"SF Pro Text",
		"Segoe UI",
		Inter,
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	font-size: 17px;
	line-height: 1.5;
	margin: 0 auto;
	max-width: none;
	min-height: 100vh;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.wikiyoko-app a {
	color: inherit;
	text-decoration: none;
}

.wikiyoko-app a:focus-visible,
.wikiyoko-app button:focus-visible,
.wikiyoko-app input:focus-visible,
.wikiyoko-app textarea:focus-visible,
.wikiyoko-app select:focus-visible {
	outline: 3px solid var(--wy-clay);
	outline-offset: 2px;
}

.wikiyoko-app img {
	height: auto;
	max-width: 100%;
}

/* ============================================================
   MOBILE WEBAPP (default <600px)
   ============================================================ */

/* ---------- Top App Bar (fixed) -------------------------------- */
.wikiyoko-topbar {
	background: rgba(255, 250, 244, 0.88);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--wy-line);
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--wy-topbar-h);
	left: 0;
	padding: 0 var(--wy-pad);
	position: sticky;
	right: 0;
	top: 0;
	z-index: 30;
}

.admin-bar .wikiyoko-topbar {
	top: 46px;
}

.wikiyoko-topbar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.wikiyoko-topbar__logo {
	border-radius: 50%;
	display: block;
	flex: 0 0 auto;
	height: 38px;
	overflow: hidden;
	width: 38px;
}

.wikiyoko-topbar__logo svg,
.wikiyoko-topbar__logo img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wikiyoko-topbar__title {
	color: var(--wy-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wikiyoko-topbar__back {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--wy-ink);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 44px;
	justify-content: center;
	margin-left: -10px;
	width: 44px;
	transition: background 140ms ease;
}

.wikiyoko-topbar__back:hover {
	background: var(--wy-line-soft);
}

.wikiyoko-topbar__back:active {
	transform: scale(0.94);
}

.wikiyoko-topbar__spacer {
	flex: 0 0 auto;
	width: 44px;
}

.wikiyoko-topbar:has(.wikiyoko-topbar__back) {
	justify-content: space-between;
}

.wikiyoko-topbar:has(.wikiyoko-topbar__back) .wikiyoko-topbar__title {
	flex: 1 1 auto;
	text-align: center;
}

/* ---------- Bottom Tab Bar (fixed) ----------------------------- */
.wikiyoko-tabbar {
	background: rgba(255, 250, 244, 0.94);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-top: 1px solid var(--wy-line);
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	height: calc(var(--wy-tabbar-h) + var(--wy-safe-bottom));
	left: 0;
	padding-bottom: var(--wy-safe-bottom);
	position: fixed;
	right: 0;
	z-index: 30;
}

.wikiyoko-tabbar__item {
	align-items: center;
	color: var(--wy-muted-2);
	display: flex;
	flex-direction: column;
	font-size: 0.74rem;
	font-weight: 600;
	gap: 4px;
	justify-content: center;
	letter-spacing: 0.005em;
	padding: 8px 4px;
	text-decoration: none;
	transition: color 140ms ease;
}

.wikiyoko-tabbar__item:hover { color: var(--wy-clay-dark); }
.wikiyoko-tabbar__item.is-active { color: var(--wy-clay-dark); }
.wikiyoko-tabbar__item.is-active .wikiyoko-tabbar__icon { color: var(--wy-clay-dark); }

.wikiyoko-tabbar__icon {
	display: inline-flex;
	height: 26px;
	width: 26px;
}

.wikiyoko-tabbar__icon svg {
	height: 100%;
	width: 100%;
}

.wikiyoko-tabbar__item.is-active .wikiyoko-tabbar__icon svg {
	stroke-width: 2.4;
}

.wikiyoko-tabbar__item:active { transform: scale(0.96); }

/* ---------- Content (scroll area mobile) ----------------------- */
.wikiyoko-content {
	padding-bottom: calc(
		var(--wy-tabbar-h) + var(--wy-safe-bottom) + 24px
	);
	padding-top: 0;
}

/* ---------- Hero card mobile (solo home) ----------------------- */
.wikiyoko-hero-card {
	background: linear-gradient(140deg, var(--wy-ink) 0%, var(--wy-ink) 58%,
			var(--wy-clay) 58%, var(--wy-clay) 100%);
	border-radius: var(--wy-r-xl);
	box-shadow: var(--wy-sh-2);
	color: #fff;
	margin: 16px var(--wy-pad) 8px;
	padding: 24px 22px;
	overflow: hidden;
	position: relative;
}

.wikiyoko-hero-card__kicker {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.wikiyoko-hero-card h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.85rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.1;
	margin: 0 0 10px;
	max-width: 90%;
}

.wikiyoko-hero-card p {
	color: rgba(255, 255, 255, 0.94);
	font-size: 1.02rem;
	line-height: 1.45;
	margin: 0;
	max-width: 90%;
}

/* ---------- Kicker --------------------------------------------- */
.wikiyoko-kicker {
	color: var(--wy-clay-dark);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.wikiyoko-kicker--light { color: var(--wy-clay); }
.wikiyoko-hero .wikiyoko-kicker { color: rgba(255, 255, 255, 0.92); }

/* ---------- Layout containers --------------------------------- */
.wikiyoko-notice,
.wikiyoko-section,
.wikiyoko-dashboard,
.wikiyoko-grid-block,
.wikiyoko-form-panel,
.wikiyoko-login,
.wikiyoko-profile,
.wikiyoko-single,
.wikiyoko-message-list,
.wikiyoko-guestbook,
.wikiyoko-orla-grid,
.wikiyoko-users,
.wikiyoko-credentials,
.wikiyoko-app > .wikiyoko-card-grid,
.wikiyoko-content > .wikiyoko-card-grid {
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
	padding-left: var(--wy-pad);
	padding-right: var(--wy-pad);
	width: 100%;
}

/* ---------- Notice -------------------------------------------- */
.wikiyoko-notice {
	background: #fff;
	border: 1px solid var(--wy-line);
	border-left: 4px solid var(--wy-clay);
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-1);
	font-size: 1rem;
	margin-top: 16px;
	padding: 14px 16px;
}

.wikiyoko-notice.is-success { border-left-color: var(--wy-success); }
.wikiyoko-notice.is-error { border-left-color: var(--wy-error); }
.wikiyoko-notice.is-info { border-left-color: var(--wy-clay); }

/* ---------- Section heading ---------------------------------- */
.wikiyoko-section {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	padding-top: 24px;
	padding-bottom: 14px;
}

.wikiyoko-section h2,
.wikiyoko-block-heading h2,
.wikiyoko-form-panel h2,
.wikiyoko-profile h2,
.wikiyoko-single h2 {
	color: var(--wy-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.85rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0;
}

.wikiyoko-section p:not(.wikiyoko-kicker) {
	color: var(--wy-muted);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
}

/* ---------- Dashboard (stats tiles iOS) ---------------------- */
.wikiyoko-dashboard {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding-top: 18px;
}

.wikiyoko-app .wikiyoko-stat {
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--wy-line);
	border-radius: var(--wy-r-lg);
	box-shadow: var(--wy-sh-1);
	color: var(--wy-ink);
	display: flex;
	flex-direction: column;
	font-size: 1.05rem;
	font-weight: 600;
	gap: 6px;
	padding: 18px 16px;
	text-decoration: none;
	transition:
		border-color 160ms ease,
		transform 160ms ease,
		box-shadow 160ms ease;
}

.wikiyoko-app .wikiyoko-stat:hover {
	border-color: var(--wy-clay);
	transform: translateY(-2px);
	box-shadow: var(--wy-sh-2);
}

.wikiyoko-app .wikiyoko-stat:active { transform: translateY(0); }

.wikiyoko-app .wikiyoko-stat span {
	color: var(--wy-clay-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.6rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
}

/* ---------- Grid block (section + cards) -------------------- */
.wikiyoko-grid-block {
	padding-top: 26px;
}

.wikiyoko-block-heading {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.wikiyoko-block-heading h2 {
	font-size: 1.5rem;
}

.wikiyoko-block-heading a {
	color: var(--wy-clay-dark);
	font-size: 1rem;
	font-weight: 600;
}

.wikiyoko-block-heading a:hover { text-decoration: underline; }

/* ---------- Card grid (3 cols mobile rectangular) ----------- */
.wikiyoko-card-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wikiyoko-app .wikiyoko-card {
	background: #fff;
	border: 1px solid var(--wy-line-soft);
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease;
}

.wikiyoko-app .wikiyoko-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--wy-sh-2);
}

.wikiyoko-app .wikiyoko-card:active { transform: scale(0.98); }

.wikiyoko-app .wikiyoko-card__image {
	align-items: center;
	aspect-ratio: 3 / 4;
	background:
		radial-gradient(
			circle at 30% 25%,
			rgba(255, 255, 255, 0.22),
			transparent 55%
		),
		var(--wy-clay);
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.wikiyoko-app .wikiyoko-card__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
	width: 100%;
}

.wikiyoko-app .wikiyoko-card:hover .wikiyoko-card__image img {
	transform: scale(1.04);
}

.wikiyoko-app .wikiyoko-card__image span {
	background: rgba(28, 24, 20, 0.78);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 5px 10px;
}

.wikiyoko-app .wikiyoko-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 4px;
	justify-content: center;
	padding: 12px 10px 14px;
	text-align: center;
}

.wikiyoko-app .wikiyoko-card__meta {
	color: var(--wy-clay-dark);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.wikiyoko-app .wikiyoko-card h3 {
	color: var(--wy-ink);
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.25;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wikiyoko-app .wikiyoko-card h3 a:hover { color: var(--wy-clay-dark); }

.wikiyoko-empty {
	color: var(--wy-muted);
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
	padding: 14px 0;
}

/* ---------- Forms ------------------------------------------ */
.wikiyoko-form-panel,
.wikiyoko-login {
	background: var(--wy-ink);
	border-radius: var(--wy-r-xl);
	color: #fff;
	margin-top: 28px;
	padding: 24px var(--wy-pad) 26px;
}

.wikiyoko-form-panel h2 {
	color: #fff;
	margin-top: 4px;
}

.wikiyoko-form-panel form {
	display: grid;
	gap: 14px;
	margin-top: 14px;
}

.wikiyoko-honey {
	height: 1px !important;
	left: -9999px !important;
	opacity: 0 !important;
	position: absolute !important;
	width: 1px !important;
}

.wikiyoko-form-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.wikiyoko-form-panel label {
	color: #fff;
	display: grid;
	font-size: 0.92rem;
	font-weight: 600;
	gap: 6px;
}

.wikiyoko-form-panel input,
.wikiyoko-form-panel textarea,
.wikiyoko-form-panel select {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wy-r-sm);
	color: var(--wy-ink);
	color-scheme: light;
	font: inherit;
	font-size: 17px;
	font-weight: 500;
	min-height: 48px;
	padding: 14px;
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
}

.wikiyoko-form-panel select {
	-webkit-appearance: menulist;
	appearance: menulist;
}

.wikiyoko-form-panel input[type="file"] {
	background: rgba(255, 255, 255, 0.08);
	border-style: dashed;
	color: #fff;
	padding: 12px 14px;
}

.wikiyoko-form-panel textarea {
	min-height: 100px;
	resize: vertical;
}

.wikiyoko-form-panel input::placeholder,
.wikiyoko-form-panel textarea::placeholder {
	color: #999;
	opacity: 1;
}

.wikiyoko-form-helper {
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.92rem;
	font-weight: 500;
	margin: 0;
}

.wikiyoko-app .wikiyoko-button {
	align-items: center;
	background: var(--wy-clay);
	border: 0;
	border-radius: 999px;
	color: var(--wy-ink);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.01em;
	min-height: 52px;
	padding: 14px 24px;
	text-decoration: none;
	transition:
		background 140ms ease,
		transform 140ms ease,
		box-shadow 140ms ease;
	width: 100%;
}

.wikiyoko-app .wikiyoko-button:hover {
	background: #d4aa86;
	box-shadow: 0 6px 18px rgba(196, 154, 120, 0.32);
}

.wikiyoko-app .wikiyoko-button:active { transform: scale(0.98); }
.wikiyoko-app .wikiyoko-button:disabled { cursor: progress; opacity: 0.7; }

.wikiyoko-login p { color: rgba(255, 255, 255, 0.74); }

/* ---------- Profile ---------------------------------------- */
.wikiyoko-profile__card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--wy-line-soft);
	border-radius: var(--wy-r-lg);
	box-shadow: var(--wy-sh-1);
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
	padding: 22px 18px;
	text-align: center;
}

.wikiyoko-profile__avatar img,
.wikiyoko-byline img,
.wikiyoko-guestbook__footer img {
	border-radius: 50%;
	display: block;
	object-fit: cover;
}

.wikiyoko-profile__avatar img { height: 96px; width: 96px; }

/* ---------- Pieza destacada ------------------------------- */
.wikiyoko-best-piece {
	background: #fff;
	border: 1px solid var(--wy-line-soft);
	border-radius: var(--wy-r-lg);
	box-shadow: var(--wy-sh-1);
	color: inherit;
	display: grid;
	gap: 0;
	grid-template-columns: 1fr;
	overflow: hidden;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease;
}

.wikiyoko-best-piece:hover {
	transform: translateY(-2px);
	box-shadow: var(--wy-sh-2);
}

.wikiyoko-best-piece__image {
	aspect-ratio: 4 / 3;
	background: var(--wy-clay);
	overflow: hidden;
}

.wikiyoko-best-piece__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wikiyoko-best-piece__caption { padding: 18px; }

.wikiyoko-best-piece__caption h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
	font-weight: 500;
	margin: 0;
}

/* ---------- Single item ----------------------------------- */
.wikiyoko-single {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	padding-top: 22px;
}

.wikiyoko-single__media {
	aspect-ratio: 4 / 5;
	background: #ede6dd;
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-1);
	display: flex;
	justify-content: center;
	max-height: 65vh;
	overflow: hidden;
	position: relative;
}

.wikiyoko-single__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wikiyoko-single__media span {
	align-self: center;
	color: var(--wy-muted);
	font-weight: 800;
}

.wikiyoko-facts {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	margin: 16px 0 18px;
}

.wikiyoko-facts p,
.wikiyoko-pill {
	background: #fff;
	border: 1px solid var(--wy-line);
	border-radius: var(--wy-r-sm);
	margin: 0;
	padding: 12px 14px;
}

.wikiyoko-facts span {
	color: var(--wy-clay-dark);
	display: block;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.wikiyoko-recipe {
	background: #fff;
	border: 1px solid var(--wy-line);
	border-radius: var(--wy-r-md);
	margin: 18px 0;
	padding: 18px;
}

.wikiyoko-recipe h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	margin: 0 0 10px;
}

.wikiyoko-recipe pre {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
	overflow-x: auto;
	white-space: pre-wrap;
}

.wikiyoko-prose {
	color: var(--wy-muted);
	font-size: 1.02rem;
	line-height: 1.65;
}

.wikiyoko-byline {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 12px 0;
}

.wikiyoko-byline img { height: 32px; width: 32px; }

.wikiyoko-pill { display: inline-block; font-size: 0.95rem; }

/* ---------- Libro de visitas ----------------------------- */
.wikiyoko-guestbook {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
	padding-top: 20px;
}

.wikiyoko-guestbook__card {
	background: var(--wy-paper-warm);
	border: 1px solid var(--wy-line-soft);
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-1);
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 18px 18px;
	position: relative;
}

.wikiyoko-guestbook__quote {
	color: var(--wy-clay);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.8rem;
	left: 14px;
	line-height: 0.6;
	position: absolute;
	top: 18px;
}

.wikiyoko-guestbook__body {
	color: var(--wy-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
	font-style: italic;
	line-height: 1.6;
	padding-left: 32px;
}

.wikiyoko-guestbook__body p:first-child { margin-top: 0; }
.wikiyoko-guestbook__body p:last-child { margin-bottom: 0; }

.wikiyoko-guestbook__footer {
	align-items: center;
	border-top: 1px dashed var(--wy-line-soft);
	display: flex;
	gap: 12px;
	padding-top: 14px;
}

.wikiyoko-guestbook__footer img { height: 40px; width: 40px; }

.wikiyoko-guestbook__byline {
	display: flex;
	flex-direction: column;
	font-size: 0.95rem;
	line-height: 1.3;
}

.wikiyoko-guestbook__byline a { color: var(--wy-ink); font-weight: 700; }

.wikiyoko-guestbook__byline time {
	color: var(--wy-muted);
	font-size: 0.82rem;
}

.wikiyoko-form-panel--thanks {
	background: linear-gradient(160deg, #2b231d, #1c1814);
}

/* ---------- Orla ----------------------------------------- */
.wikiyoko-orla-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding-top: 20px;
}

.wikiyoko-orla-card {
	background: #fff;
	border: 1px solid var(--wy-line-soft);
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-1);
	color: inherit;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease;
}

.wikiyoko-orla-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--wy-sh-2);
}

.wikiyoko-orla-card__photo {
	align-items: center;
	aspect-ratio: 1;
	background: var(--wy-paper-deep);
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.wikiyoko-orla-card__piece {
	display: block;
	height: 100%;
	object-fit: cover;
	opacity: 0.65;
	width: 100%;
}

.wikiyoko-orla-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	inset: 0;
	position: absolute;
}

.wikiyoko-orla-card__photo.has-piece .wikiyoko-orla-card__avatar {
	bottom: 12px;
	inset: auto;
	left: 50%;
	transform: translateX(-50%);
}

.wikiyoko-orla-card__avatar img,
.wikiyoko-orla-card__avatar .avatar {
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(28, 24, 20, 0.18);
	height: 80px;
	object-fit: cover;
	width: 80px;
}

.wikiyoko-orla-card__photo.has-piece .wikiyoko-orla-card__avatar img,
.wikiyoko-orla-card__photo.has-piece .wikiyoko-orla-card__avatar .avatar {
	height: 64px;
	width: 64px;
}

.wikiyoko-orla-card__body { padding: 14px; text-align: center; }

.wikiyoko-orla-card__body h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.1rem;
	margin: 0 0 4px;
}

.wikiyoko-orla-card__body p {
	color: var(--wy-muted);
	font-size: 0.85rem;
	line-height: 1.4;
	margin: 0;
}

/* ============================================================
   DESKTOP RESTORATION (>= 600px) - Diseno original con hero pesado y nav pills
   ============================================================ */
@media (min-width: 600px) {
	.wikiyoko-app {
		--wy-pad: 28px;
		padding: 0 0 72px;
	}

	.wikiyoko-content {
		padding-bottom: 0;
	}

	/* Hero pesado original con diagonal terracota */
	.wikiyoko-hero {
		align-items: center;
		background:
			linear-gradient(115deg,
				rgba(8, 9, 10, 0.94) 0%,
				rgba(8, 9, 10, 0.94) 43%,
				rgba(196, 154, 120, 0.9) 43%,
				rgba(196, 154, 120, 0.9) 100%),
			var(--wy-ink);
		color: #fff;
		display: grid;
		gap: 36px;
		grid-template-columns: 180px minmax(0, 1fr);
		margin: 0;
		padding: 64px clamp(20px, 6vw, 80px) 42px;
	}

	.wikiyoko-hero__mark {
		aspect-ratio: 1;
		background: var(--wy-ink);
		border: 2px solid rgba(255, 255, 255, 0.88);
		border-radius: 50%;
		box-shadow: 0 18px 40px rgba(8, 9, 10, 0.28);
		color: #fff;
		display: grid;
		isolation: isolate;
		justify-items: center;
		overflow: hidden;
		position: relative;
		width: min(180px, 44vw);
	}

	.wikiyoko-hero__mark svg,
	.wikiyoko-hero__mark img {
		display: block;
		height: 100%;
		object-fit: cover;
		width: 100%;
	}

	.wikiyoko-hero__copy {
		max-width: 780px;
	}

	.wikiyoko-hero h1 {
		font-family: Georgia, "Times New Roman", serif;
		font-size: clamp(3.2rem, 7vw, 4.8rem);
		font-weight: 500;
		line-height: 0.95;
		margin: 0 0 16px;
	}

	.wikiyoko-hero p:not(.wikiyoko-kicker) {
		color: rgba(255, 255, 255, 0.86);
		font-size: 1.15rem;
		line-height: 1.55;
		margin: 0;
		max-width: 640px;
	}

	/* Nav pills sticky desktop */
	.wikiyoko-nav {
		background: var(--wy-ink);
		display: flex;
		gap: 6px;
		overflow-x: auto;
		padding: 12px clamp(20px, 6vw, 80px);
		position: sticky;
		top: 0;
		z-index: 10;
	}

	.admin-bar .wikiyoko-nav { top: 32px; }

	.wikiyoko-nav a {
		border: 1px solid rgba(255, 255, 255, 0.22);
		border-radius: 999px;
		color: #fff;
		flex: 0 0 auto;
		font-size: 0.95rem;
		font-weight: 700;
		padding: 11px 18px;
		text-decoration: none;
		display: inline-flex;
		align-items: center;
		min-height: 42px;
		transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
	}

	.wikiyoko-nav a.is-active,
	.wikiyoko-nav a:hover {
		background: var(--wy-clay);
		border-color: var(--wy-clay);
		color: var(--wy-ink);
	}

	/* Containers: padding lateral mayor */
	.wikiyoko-notice,
	.wikiyoko-section,
	.wikiyoko-dashboard,
	.wikiyoko-grid-block,
	.wikiyoko-form-panel,
	.wikiyoko-login,
	.wikiyoko-profile,
	.wikiyoko-single,
	.wikiyoko-message-list,
	.wikiyoko-guestbook,
	.wikiyoko-orla-grid,
	.wikiyoko-app > .wikiyoko-card-grid,
	.wikiyoko-content > .wikiyoko-card-grid {
		width: calc(100% - 56px);
		padding-left: 0;
		padding-right: 0;
	}

	.wikiyoko-section {
		align-items: end;
		gap: 24px;
		grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
		padding: 52px 0 24px;
		border-bottom: 1px solid var(--wy-line);
	}

	.wikiyoko-section h2,
	.wikiyoko-form-panel h2,
	.wikiyoko-profile h2,
	.wikiyoko-single h2 {
		font-size: clamp(2.4rem, 5vw, 3.2rem);
	}

	.wikiyoko-block-heading h2 {
		font-size: clamp(1.8rem, 3vw, 2.2rem);
	}

	.wikiyoko-dashboard {
		display: grid;
		gap: 14px;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		padding: 28px 0 8px;
	}

	.wikiyoko-app .wikiyoko-stat {
		min-height: 132px;
		padding: 20px;
	}

	.wikiyoko-app .wikiyoko-stat span {
		font-size: 3rem;
	}

	.wikiyoko-grid-block { padding-top: 42px; }

	.wikiyoko-block-heading {
		align-items: center;
		flex-direction: row;
		gap: 16px;
	}

	.wikiyoko-card-grid {
		gap: 16px;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}

	@media (min-width: 641px) {
		.wikiyoko-card-grid {
			grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		}
	}

	.wikiyoko-app .wikiyoko-card__body {
		padding: 16px 12px 18px;
	}

	.wikiyoko-app .wikiyoko-card h3 {
		font-size: 1.1rem;
		white-space: normal;
	}

	.wikiyoko-app .wikiyoko-card__meta {
		font-size: 0.7rem;
	}

	.wikiyoko-form-panel,
	.wikiyoko-login {
		padding: clamp(22px, 4vw, 36px);
	}

	.wikiyoko-form-grid {
		gap: 14px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wikiyoko-app .wikiyoko-button {
		width: fit-content;
	}

	.wikiyoko-profile__card {
		flex-direction: row;
		gap: 22px;
		padding: 24px;
		text-align: left;
	}

	.wikiyoko-profile__avatar img {
		height: 110px;
		width: 110px;
	}

	.wikiyoko-best-piece {
		grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
		align-items: center;
	}

	.wikiyoko-single {
		gap: 36px;
		grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
		padding-top: 52px;
	}

	.wikiyoko-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wikiyoko-guestbook {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wikiyoko-guestbook__card {
		transform: rotate(var(--wy-rotate, 0deg));
	}

	.wikiyoko-orla-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wikiyoko-credentials dl {
		grid-template-columns: 120px minmax(0, 1fr);
		align-items: center;
	}

	.wikiyoko-user-row {
		padding: 14px 18px;
		grid-template-columns: 56px minmax(0, 1fr) auto;
	}

	.wikiyoko-user-row__meta h3 {
		font-size: 1.08rem;
	}
}

/* ---------- Users (admin-only) --------------------------- */
.wikiyoko-users {
	margin-top: 12px;
	padding-top: 0 !important;
}

.wikiyoko-users__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wikiyoko-user-row {
	align-items: center;
	background: #fff;
	border: 1px solid var(--wy-line-soft);
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-1);
	display: grid;
	gap: 12px;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	padding: 12px 14px;
}

.wikiyoko-user-row__avatar img,
.wikiyoko-user-row__avatar .avatar {
	border-radius: 50%;
	display: block;
	height: 48px;
	object-fit: cover;
	width: 48px;
}

.wikiyoko-user-row__meta {
	min-width: 0;
}

.wikiyoko-user-row__meta h3 {
	color: var(--wy-ink);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.25;
	margin: 0 0 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wikiyoko-user-row__meta p {
	color: var(--wy-muted);
	font-size: 0.88rem;
	line-height: 1.3;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wikiyoko-user-row__meta small {
	color: var(--wy-muted-2);
	font-size: 0.74rem;
}

.wikiyoko-user-row__action {
	margin: 0;
}

.wikiyoko-user-row__delete {
	align-items: center;
	background: transparent;
	border: 1px solid var(--wy-line);
	border-radius: 999px;
	color: var(--wy-error);
	cursor: pointer;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	transition: background 140ms ease, border-color 140ms ease;
	width: 40px;
}

.wikiyoko-user-row__delete:hover {
	background: rgba(182, 90, 79, 0.08);
	border-color: var(--wy-error);
}

.wikiyoko-user-row__delete:active {
	transform: scale(0.95);
}

/* ---------- Credentials notice --------------------------- */
.wikiyoko-credentials {
	background: #fff;
	border: 1px solid var(--wy-clay);
	border-left: 5px solid var(--wy-clay);
	border-radius: var(--wy-r-md);
	box-shadow: var(--wy-sh-2);
	margin-top: 16px;
	padding: 18px 20px;
}

.wikiyoko-credentials h3 {
	color: var(--wy-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.3rem;
	font-weight: 500;
	margin: 0 0 12px;
}

.wikiyoko-credentials dl {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	margin: 0 0 12px;
}

.wikiyoko-credentials dt {
	color: var(--wy-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0;
	text-transform: uppercase;
}

.wikiyoko-credentials dd {
	color: var(--wy-ink);
	font-size: 1rem;
	margin: 0;
}

.wikiyoko-credentials code {
	background: var(--wy-paper-deep);
	border-radius: 6px;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 0.95rem;
	padding: 4px 8px;
	user-select: all;
}

.wikiyoko-credentials__hint {
	background: var(--wy-paper-warm);
	border-radius: 8px;
	color: var(--wy-muted);
	font-size: 0.88rem;
	line-height: 1.45;
	margin: 0;
	padding: 10px 12px;
}

/* ---------- Image editor modal (Cropper.js) -------------- */
.wikiyoko-no-scroll {
	overflow: hidden !important;
}

.wikiyoko-crop-modal {
	align-items: stretch;
	bottom: 0;
	display: flex;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"SF Pro Text",
		"Segoe UI",
		Inter,
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	justify-content: center;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1000;
}

.wikiyoko-crop-modal__backdrop {
	background: rgba(8, 9, 10, 0.7);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	inset: 0;
	position: absolute;
}

.wikiyoko-crop-modal__panel {
	background: #1c1814;
	color: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 720px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wikiyoko-crop-modal__header {
	align-items: center;
	background: #1c1814;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	padding: 14px 18px;
}

.wikiyoko-crop-modal__header h2 {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0;
}

.wikiyoko-crop-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	width: 40px;
	transition: background 140ms ease;
}

.wikiyoko-crop-modal__close:hover {
	background: rgba(255, 255, 255, 0.1);
}

.wikiyoko-crop-modal__body {
	background: #08090a;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.wikiyoko-crop-modal__stage {
	height: 100%;
	width: 100%;
}

.wikiyoko-crop-modal__stage img {
	display: block;
	max-width: 100%;
	width: 100%;
}

.wikiyoko-crop-modal__toolbar {
	background: #1c1814;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 12px 16px;
}

.wikiyoko-crop-tool {
	align-items: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
	transition:
		background 140ms ease,
		border-color 140ms ease,
		transform 100ms ease;
}

.wikiyoko-crop-tool:hover {
	background: rgba(196, 154, 120, 0.18);
	border-color: var(--wy-clay-soft, #e6c8aa);
}

.wikiyoko-crop-tool:active { transform: scale(0.94); }

.wikiyoko-crop-tool.is-active {
	background: var(--wy-clay, #c49a78);
	border-color: var(--wy-clay, #c49a78);
	color: #1c1814;
}

.wikiyoko-crop-modal__footer {
	background: #1c1814;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}

.wikiyoko-crop-modal__btn {
	align-items: center;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.01em;
	min-height: 48px;
	padding: 12px 16px;
	transition:
		background 140ms ease,
		transform 140ms ease,
		box-shadow 140ms ease;
}

.wikiyoko-crop-modal__btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.wikiyoko-crop-modal__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
}

.wikiyoko-crop-modal__btn--primary {
	background: var(--wy-clay, #c49a78);
	color: #1c1814;
}

.wikiyoko-crop-modal__btn--primary:hover {
	background: #d4aa86;
	box-shadow: 0 6px 18px rgba(196, 154, 120, 0.32);
}

.wikiyoko-crop-modal__btn:active { transform: scale(0.98); }

/* Hint visible bajo el input file cuando la imagen ya esta editada */
.wikiyoko-form-panel label .wikiyoko-file-hint {
	color: var(--wy-clay-soft, #e6c8aa);
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-top: 4px;
}

/* Tablet+ : modal centrado, no full-screen */
@media (min-width: 600px) {
	.wikiyoko-crop-modal {
		align-items: center;
		padding: 24px;
	}

	.wikiyoko-crop-modal__panel {
		border-radius: var(--wy-r-xl, 24px);
		height: auto;
		max-height: calc(100vh - 48px);
	}

	.wikiyoko-crop-modal__body {
		min-height: 360px;
	}
}

/* Cropper.js ajustes minimos */
.wikiyoko-crop-modal__stage .cropper-container {
	max-width: 100%;
}

/* ============================================================
   Pantallas muy pequenas (<= 360px) - mobile compactaba
   ============================================================ */
@media (max-width: 360px) {
	.wikiyoko-app { --wy-pad: 12px; }

	.wikiyoko-card-grid {
		gap: 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wikiyoko-tabbar__label { font-size: 0.68rem; }

	.wikiyoko-hero-card h2 { font-size: 1.7rem; }
}

/* ============================================================
   Desktop grande (>= 960px)
   ============================================================ */
@media (min-width: 960px) {
	.wikiyoko-orla-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
