/* Polígono Club — app frontend (mobile-first, Figma) */

:root {
	--pg-navy: #001d3d;
	--pg-red: #610507;
	--pg-green: #05610a;
	--pg-muted: #949497;
	--pg-text: #1d1617;
	--pg-black: #000;
	--pg-bg: #fff;
	--pg-soft: #fafafe;
	--pg-field: rgba(34, 43, 27, 0.1);
	--pg-guest-bg: #e9eae9;
	--pg-radius: 5px;
	--pg-max: 430px;
	--pg-font: "Montserrat", system-ui, sans-serif;
}

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

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #e8e8ec;
	font-family: var(--pg-font);
	color: var(--pg-black);
	-webkit-font-smoothing: antialiased;
}

.poligono-app {
	min-height: 100dvh;
}

.poligono-shell {
	max-width: var(--pg-max);
	min-height: 100dvh;
	margin: 0 auto;
	padding: 0 10px 32px;
	background: var(--pg-bg);
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.poligono-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 0 0;
	min-height: 44px;
}

.poligono-top__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	flex: 1;
	line-height: 1.2;
}

.poligono-top__code {
	color: var(--pg-navy);
	font-size: 16px;
	font-weight: 600;
	min-width: 40px;
	text-align: right;
	flex-shrink: 0;
}

.poligono-top__spacer {
	width: 22px;
	flex-shrink: 0;
}

.poligono-top__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 6px;
	text-decoration: none;
}

.poligono-top__download:hover {
	background: #f0f2f5;
}


.poligono-back {
	display: inline-flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.poligono-divider {
	height: 0;
	border: none;
	border-top: 2px solid #dcdcdc;
	margin: 5px 0;
}

.poligono-login {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.poligono-login__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 18px 8px 8px;
}

.poligono-brand {
	display: none; /* legacy; post-login usa .poligono-mark en la barra */
}

.poligono-mark {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 4px;
}

.poligono-logo-wrap {
	display: flex;
	justify-content: center;
	padding: 0;
}

.poligono-logo {
	display: block;
	width: 110px;
	height: auto;
	object-fit: contain;
	border-radius: 0;
	background: transparent;
}

.poligono-login__primer {
	margin: 0;
	max-width: 340px;
	padding: 0 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	color: var(--pg-navy);
}

.poligono-hint--forgot {
	margin-top: 4px;
}

.poligono-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 0 10px;
}

.poligono-field {
	display: flex;
	align-items: center;
	gap: 5px;
	min-height: 54px;
	padding: 15px 10px;
	background: var(--pg-field);
	border-radius: 4px;
}

.poligono-field input {
	flex: 1;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-black);
	outline: none;
	width: 100%;
}

.poligono-field input::placeholder {
	color: var(--pg-muted);
}

.poligono-field__icon {
	display: flex;
	flex-shrink: 0;
}

.poligono-field--guest {
	background: var(--pg-guest-bg);
	border-radius: 2px;
	min-height: 40px;
	padding: 10px;
}

.poligono-guest-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.poligono-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 55px;
	margin: 8px 0 0;
	padding: 19px 16px;
	border: 0;
	border-radius: 5px;
	background: var(--pg-navy);
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 18px;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}

.poligono-btn--permit {
	background: var(--pg-green);
	margin-top: 18px;
}

.poligono-vig__headline {
	margin: 8px 0 4px;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	color: #404040;
}

.poligono-vig .poligono-btn--secondary {
	margin-top: 10px;
	background: #fff;
	color: var(--pg-navy);
	border: 2px solid var(--pg-navy);
}

.poligono-vig .poligono-btn--secondary:active,
.poligono-vig .poligono-btn--secondary:hover {
	background: #f3f6fa;
}

.poligono-vig-scan {
	margin-top: 16px;
	width: 100%;
}

.poligono-vig-scan__frame {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #001d3d;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 3 / 4;
	/* Evitar max-height: con aspect-ratio reduce el ancho en móvil. */
}

.poligono-vig-scan__frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.poligono-vig-scan__hint {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	color: #404040;
}

.poligono-vig-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 8px 0 14px;
}

.poligono-vig-tab {
	min-height: 56px;
	border: 2px solid var(--pg-navy);
	border-radius: 6px;
	background: #fff;
	color: var(--pg-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.poligono-vig-tab.is-active {
	background: var(--pg-navy);
	color: #fff;
}

.poligono-vig__note {
	margin-top: 20px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--pg-navy);
}

.poligono-vig__access {
	margin: 4px 0 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-navy);
}

.poligono-vig__access.is-denied {
	color: var(--pg-red);
	font-weight: 600;
}

.poligono-vig-self-ingreso {
	display: grid;
	grid-template-columns: 1fr 112px;
	gap: 10px;
	align-items: center;
	margin: 4px 0 12px;
	padding: 10px 12px;
	background: #f3f5f8;
	border-radius: 6px;
}

.poligono-vig-self-ingreso__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--pg-navy);
}

.poligono-vig-family {
	display: grid;
	grid-template-columns: 40px 1fr 0.9fr 112px;
	gap: 5px;
	align-items: center;
	margin-bottom: 0;
	padding: 8px 0;
	border-bottom: 1px solid #e2e4e8;
}

.poligono-vig-family:last-of-type {
	border-bottom: none;
}

.poligono-vig-family__letter,
.poligono-vig-family__name,
.poligono-vig-family__ced {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 10px;
	background: #e9eae9;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-navy);
}

.poligono-vig-family__letter {
	justify-content: center;
	font-weight: 600;
}

.poligono-vig-guest-head,
.poligono-vig-guest-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr 112px;
	gap: 5px;
	align-items: center;
	margin-bottom: 0;
	padding: 8px 0;
}

.poligono-vig-guest-row {
	border-bottom: 1px solid #e2e4e8;
}

.poligono-vig-guest-row:last-of-type {
	border-bottom: none;
}

.poligono-vig-guest-head span {
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 200;
	color: var(--pg-navy);
}

.poligono-vig-guest-row > span {
	padding: 8px 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-navy);
}

.poligono-vig-guest-row__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.poligono-vig-guest-row__name {
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-navy);
	line-height: 1.25;
}

.poligono-vig-guest-row__by {
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--pg-muted, #6b7280);
}

/* Figma: líneas finas entre bloques (perfil / status / secciones). */
.poligono-vig--result .poligono-profile {
	padding-bottom: 14px;
	margin-bottom: 2px;
	border-bottom: 1px dashed #9aa3b0;
}

.poligono-vig--result .poligono-modules {
	gap: 0;
	padding-top: 0;
}

.poligono-vig--result .poligono-row {
	margin: 0;
	padding: 12px 4px;
	min-height: 44px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	border: none;
	border-bottom: 1px solid #c8ced6;
}

.poligono-vig--result .poligono-row--saldo {
	border-top: 1px solid #c8ced6;
	margin-top: 0;
}

.poligono-vig--result .poligono-row--guest-section {
	border-bottom: none;
	padding-bottom: 4px;
}

.poligono-vig--result .poligono-row--guest-section .poligono-row__label {
	font-size: 18px;
	font-weight: 700;
	color: var(--pg-navy);
}

.poligono-vig--result .poligono-vig__access {
	margin: 8px 0 12px;
	padding: 0 4px;
}

.poligono-vig--result .poligono-vig-self-ingreso {
	margin: 8px 0 12px;
}

.poligono-vig--result .poligono-vig-host-line {
	margin: 10px 0;
	padding: 10px 4px;
	border-bottom: 1px solid #c8ced6;
}

.poligono-vig--result .poligono-vig-guest-card {
	margin-top: 8px;
}

.poligono-vig--result .poligono-btn--permit {
	margin-top: 16px;
}

.poligono-vig--result .poligono-guest-history__empty {
	padding: 8px 4px 12px;
	border-bottom: 1px solid #e2e4e8;
}

/* Toggle Figma: pastilla blanca con texto que se desliza L→R. */
.poligono-vig-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-self: stretch;
	width: 100%;
	margin: 0;
	cursor: pointer;
	user-select: none;
}

.poligono-vig-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.poligono-vig-switch__track {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 108px;
	height: 36px;
	padding: 3px;
	border-radius: 8px;
	background: #c5c6c8;
	box-sizing: border-box;
	transition: background 0.2s ease;
}

.poligono-vig-switch__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56%;
	height: 100%;
	margin-right: auto;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
	box-sizing: border-box;
	transition: margin 0.2s ease, width 0.2s ease;
}

.poligono-vig-switch__text {
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--pg-navy);
	white-space: nowrap;
	pointer-events: none;
}

.poligono-vig-switch__text--on {
	display: none;
}

.poligono-vig-switch input:checked + .poligono-vig-switch__track,
.poligono-vig-switch--done .poligono-vig-switch__track {
	background: var(--pg-navy);
}

.poligono-vig-switch input:checked + .poligono-vig-switch__track .poligono-vig-switch__thumb,
.poligono-vig-switch--done .poligono-vig-switch__thumb {
	width: 62%;
	margin-right: 0;
	margin-left: auto;
}

.poligono-vig-switch input:checked + .poligono-vig-switch__track .poligono-vig-switch__text--off {
	display: none;
}

.poligono-vig-switch input:checked + .poligono-vig-switch__track .poligono-vig-switch__text--on,
.poligono-vig-switch--done .poligono-vig-switch__text--on {
	display: inline;
}

.poligono-vig-switch--blocked .poligono-vig-switch__track {
	background: #c5c6c8;
}

.poligono-vig-switch--blocked .poligono-vig-switch__thumb {
	margin-left: 0;
	margin-right: auto;
	width: 56%;
}

.poligono-vig-switch input:focus-visible + .poligono-vig-switch__track {
	outline: 2px solid var(--pg-navy);
	outline-offset: 2px;
}

.poligono-vig-switch--done {
	cursor: default;
	pointer-events: none;
}

.poligono-vig-ingreso {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	border-radius: 7px;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
}

.poligono-vig-ingreso--pendiente {
	background: #949497;
	color: #111;
}

.poligono-vig-ingreso--completado {
	background: var(--pg-navy);
	color: #fff;
}

.poligono-vig-host {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	margin-bottom: 8px;
	border-radius: 6px;
	background: #f3f5f8;
	font-size: 13px;
	color: var(--pg-text);
}

.poligono-vig-host-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 6px;
	margin: 4px 0 10px;
	padding: 8px 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--pg-text);
}

.poligono-vig-host-line__label {
	font-weight: 500;
	color: var(--pg-muted, #6b7280);
}

.poligono-vig-host-line__sep {
	color: var(--pg-muted, #6b7280);
}

.poligono-vig-host-line strong {
	font-weight: 700;
}

.poligono-vig-host-line__meta {
	color: var(--pg-muted, #6b7280);
	font-weight: 400;
}

.poligono-vig-guest-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 14px;
	margin: 4px 0 14px;
	border-radius: 8px;
	background: #f3f5f8;
	border: 1px solid #e2e6ec;
}

.poligono-vig-guest-card__avatar {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	flex-shrink: 0;
	background: #cfd3d8;
}

.poligono-vig-guest-card__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 15px;
	line-height: 1.35;
	color: var(--pg-text);
}

.poligono-vig-guest-card__info strong {
	font-size: 18px;
	font-weight: 700;
	color: var(--pg-text);
}

.poligono-vig-guest-card__status {
	font-size: 14px;
	font-weight: 700;
	color: var(--pg-navy, #0b2c4a);
}

@media (min-width: 768px) {
	.poligono-shell:has(.poligono-vig) {
		min-height: auto;
		padding: 28px 40px 40px;
		align-self: flex-start;
		margin-top: 28px;
		margin-bottom: 28px;
	}

	body.poligono-app:has(.poligono-vig) {
		align-items: flex-start;
	}

	.poligono-vig-tab {
		min-height: 64px;
		font-size: 18px;
	}

	.poligono-vig-scan__frame {
		aspect-ratio: 4 / 3;
	}
}

.poligono-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.poligono-link-muted {
	color: var(--pg-red);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.poligono-forgot {
	margin: 16px 0 8px;
}

.poligono-hint {
	margin: 0;
	padding: 0 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pg-muted);
	text-align: center;
	line-height: 1.4;
}

.poligono-lead {
	margin: 12px 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--pg-text);
}

.poligono-lead-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.poligono-lead-row .poligono-lead {
	margin: 12px 0;
	flex: 1;
}

.poligono-info-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-top: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 29, 61, 0.08);
	cursor: pointer;
	flex-shrink: 0;
}

.poligono-info-btn.is-active {
	background: rgba(0, 29, 61, 0.18);
}

.poligono-status-legend {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #f3f5f8;
	border: 1px solid #e2e6ec;
}

.poligono-status-legend[hidden] {
	display: none !important;
}

.poligono-status-legend__intro {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pg-navy);
}

.poligono-status-legend__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.poligono-status-legend__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--pg-text);
}

.poligono-status-legend__list .poligono-guest-status {
	min-width: 72px;
	text-align: center;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.poligono-note {
	margin: 8px 0;
	color: var(--pg-navy);
	font-size: 14px;
	font-weight: 400;
}

.poligono-alert {
	margin: 0;
	padding: 10px 12px;
	border-radius: 4px;
	background: #fde8e8;
	color: var(--pg-red);
	font-size: 13px;
	font-weight: 500;
}

.poligono-alert.is-visible,
.poligono-alert:not([hidden]) {
	display: block;
}

.poligono-link-btn {
	border: 0;
	background: none;
	color: var(--pg-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	padding: 12px;
	align-self: center;
}

.poligono-profile {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 15px 10px;
	min-height: 94px;
	border-radius: 6px;
	background: conic-gradient(from 174deg at 50% 50%, #fff 35%, #fafafe 61%, #fff 100%);
	box-shadow:
		0 6px 15px rgba(229, 229, 242, 1),
		0 -6px 15px rgba(255, 255, 255, 1);
	border: 3px solid #fff;
}

.poligono-profile__avatar {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 5px;
	background: #cfd3d8 center / cover no-repeat;
}

.poligono-profile__bar {
	width: 4px;
	align-self: stretch;
	background: #000;
	border-radius: 1px;
}

.poligono-profile__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 12px;
	font-weight: 500;
}

.poligono-profile__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--pg-text);
}

.poligono-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 5px 10px;
	border: 0;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-soft);
	cursor: pointer;
	white-space: nowrap;
	align-self: flex-start;
	text-decoration: none;
}

.poligono-chip--navy {
	background: var(--pg-navy);
}

.poligono-chip--green {
	background: var(--pg-green);
}

.poligono-chip--red {
	background: var(--pg-red);
}

/* Status Actual (Figma): pastilla solo con icono check / menos. */
.poligono-chip--status {
	padding: 6px 16px;
	min-width: 52px;
	border-radius: 6px;
	cursor: default;
	gap: 0;
}

.poligono-chip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fafafe;
	color: inherit;
}

.poligono-chip--green .poligono-chip__badge {
	color: var(--pg-green);
}

.poligono-chip--red .poligono-chip__badge {
	color: var(--pg-red);
}

.poligono-modules {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px 0 0;
}

.poligono-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--pg-black);
	background: conic-gradient(from 174deg at 50% 50%, #fff 35%, #fafafe 61%, #fff 100%);
	box-shadow:
		0 6px 15px rgba(229, 229, 242, 1),
		0 -6px 15px rgba(255, 255, 255, 1);
	border: 4px solid #fff;
}

.poligono-row__icon {
	width: 21px;
	display: flex;
	justify-content: center;
	color: inherit;
}

.poligono-row__label {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.poligono-row__value {
	font-size: 20px;
	font-weight: 500;
	margin-right: 4px;
}

.poligono-row__chevron {
	display: flex;
	color: #222b1b;
}

.poligono-row.is-disabled {
	color: var(--pg-muted);
	pointer-events: none;
	cursor: default;
}

.poligono-row.is-disabled .poligono-row__chevron {
	color: var(--pg-muted);
}

.poligono-row--saldo {
	cursor: default;
}

.poligono-logout-wrap {
	margin-top: auto;
	padding-top: 24px;
	text-align: center;
}

.poligono-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	max-width: calc(var(--pg-max) - 32px);
	padding: 12px 16px;
	border-radius: 6px;
	background: var(--pg-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	z-index: 50;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.poligono-top__hist {
	display: inline-flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-decoration: none;
}

.poligono-guest-history {
	margin-top: 22px;
	padding-top: 8px;
	border-top: 2px solid #dcdcdc;
}

.poligono-guest-history__title {
	margin: 12px 0 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--pg-navy);
}

.poligono-guest-day {
	margin-top: 10px;
	border-radius: 6px;
	background: #f7f7fa;
	overflow: hidden;
}

.poligono-guest-day__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	color: var(--pg-navy);
}

.poligono-guest-day__title {
	flex: 1;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: capitalize;
}

.poligono-guest-day__count {
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(0, 29, 61, 0.1);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.poligono-guest-day__chevron {
	display: inline-flex;
	color: var(--pg-navy);
	transition: transform 0.2s ease;
}

.poligono-guest-day.is-open .poligono-guest-day__chevron {
	transform: rotate(180deg);
}

.poligono-guest-history__empty {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--pg-muted);
}

.poligono-guest-history__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.poligono-guest-day .poligono-guest-history__list {
	display: none;
	padding: 0 10px 10px;
}

.poligono-guest-day.is-open .poligono-guest-history__list {
	display: flex;
}

.poligono-guest-history__item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 6px;
	background: conic-gradient(from 174deg at 50% 50%, #fff 35%, #fafafe 61%, #fff 100%);
	box-shadow:
		0 6px 15px rgba(229, 229, 242, 1),
		0 -6px 15px rgba(255, 255, 255, 1);
	border: 3px solid #fff;
}

.poligono-guest-history__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.poligono-guest-history__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.poligono-guest-history__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--pg-text);
}

.poligono-guest-history__meta {
	font-size: 12px;
	font-weight: 500;
	color: var(--pg-muted);
}

.poligono-guest-status {
	flex-shrink: 0;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #fafafe;
}

.poligono-guest-status--pendiente {
	background: #1a5896;
}

.poligono-guest-status--ingreso {
	background: var(--pg-green);
}

.poligono-guest-status--caduco {
	background: var(--pg-muted);
}

@media (min-width: 480px) {
	body {
		padding: 24px 0;
		background:
			radial-gradient(1200px 600px at 50% -10%, rgba(0, 29, 61, 0.12), transparent 60%),
			linear-gradient(180deg, #dfe3ea 0%, #e8e8ec 40%, #ececf0 100%);
	}

	.poligono-shell {
		min-height: auto;
		border-radius: 16px;
		box-shadow: 0 18px 48px rgba(0, 29, 61, 0.14);
	}
}

/* Desktop: ancho unificado (mismo que reserva-social) */
@media (min-width: 768px) {
	body.poligono-app {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 40px 24px;
		min-height: 100dvh;
	}

	.poligono-shell {
		--pg-max: 720px;
		width: 100%;
		max-width: 720px;
		min-height: auto;
		padding: 28px 40px 40px;
	}

	.poligono-shell:has(.poligono-login),
	.poligono-shell:has(.poligono-auth) {
		padding: 36px 44px 44px;
		gap: 14px;
	}

	.poligono-shell:has(.poligono-auth--verify) {
		padding: 40px 48px 48px;
	}

	.poligono-auth {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.poligono-auth__logo {
		padding: 16px 0 4px;
	}

	.poligono-auth__logo .poligono-logo {
		width: 100px;
	}

	.poligono-brand__logo {
		width: 88px;
	}

	.poligono-mark {
		width: 36px;
		height: 36px;
	}

	.poligono-auth .poligono-top__title {
		font-size: 24px;
	}

	.poligono-auth .poligono-lead {
		font-size: 16px;
		margin: 18px 0 8px;
	}

	.poligono-auth .poligono-form {
		gap: 16px;
		margin-top: 8px;
	}

	.poligono-auth .poligono-field {
		min-height: 58px;
	}

	.poligono-auth .poligono-btn {
		margin-top: 12px;
		min-height: 58px;
		font-size: 18px;
	}

	.poligono-auth .poligono-link-btn {
		margin-top: 8px;
		font-size: 15px;
	}

	.poligono-login__brand {
		padding: 12px 0 4px;
		gap: 18px;
	}

	.poligono-logo {
		width: 140px;
	}

	.poligono-login__primer {
		max-width: 400px;
		font-size: 17px;
		letter-spacing: -0.01em;
	}

	.poligono-login__form {
		gap: 14px;
		margin-top: 8px;
	}

	.poligono-field {
		min-height: 56px;
	}

	.poligono-forgot {
		margin-top: 20px;
	}

	/* Home socio */
	.poligono-shell:has(.poligono-home) {
		align-self: flex-start;
		margin-top: 28px;
		margin-bottom: 28px;
	}

	body.poligono-app:has(.poligono-home) {
		align-items: flex-start;
	}

	.poligono-home .poligono-top__title,
	.poligono-home .poligono-top__code {
		font-size: 22px;
	}

	.poligono-home .poligono-profile {
		padding: 18px 14px;
		min-height: 110px;
	}

	.poligono-home .poligono-profile__name {
		font-size: 16px;
	}

	.poligono-home .poligono-modules {
		gap: 12px;
	}

	.poligono-home .poligono-row {
		min-height: 48px;
		padding: 12px 20px;
	}

	.poligono-home .poligono-row__label {
		font-size: 15px;
	}

	.poligono-home .poligono-btn {
		min-height: 58px;
	}

	.poligono-shell:has(.poligono-guests) {
		align-self: flex-start;
		margin-top: 28px;
		margin-bottom: 28px;
	}

	body.poligono-app:has(.poligono-guests) {
		align-items: flex-start;
	}

	.poligono-guests .poligono-top__title {
		font-size: 22px;
	}

	.poligono-shell:has(.poligono-pay),
	.poligono-shell:has(.poligono-perfil),
	.poligono-shell:has(.poligono-nucleo),
	.poligono-shell:has(.poligono-terminos),
	.poligono-shell:has(.poligono-mi-qr),
	.poligono-shell:has(.poligono-soon) {
		align-self: flex-start;
		margin-top: 28px;
		margin-bottom: 28px;
	}

	body.poligono-app:has(.poligono-pay),
	body.poligono-app:has(.poligono-perfil),
	body.poligono-app:has(.poligono-nucleo),
	body.poligono-app:has(.poligono-terminos),
	body.poligono-app:has(.poligono-mi-qr),
	body.poligono-app:has(.poligono-soon) {
		align-items: flex-start;
	}
}

/* —— Reportar pago —— */
.poligono-pay__amount {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 18px 8px 10px;
	text-align: center;
}

.poligono-pay__amount-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-muted, #6b7280);
}

.poligono-pay__amount-value {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--pg-navy);
}

.poligono-pay__amount-hint {
	margin: 6px 0 0;
	max-width: 320px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--pg-muted, #6b7280);
}

.poligono-pay__section-title {
	margin: 14px 0 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--pg-navy);
}

.poligono-pay__bank {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.poligono-pay__bank li {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f3f5f8;
}

.poligono-pay__bank small {
	display: block;
	font-size: 11px;
	color: var(--pg-muted, #6b7280);
}

.poligono-pay__bank strong {
	font-size: 15px;
	color: var(--pg-navy);
}

.poligono-pay__bank-icon {
	color: var(--pg-navy);
	display: flex;
}

.poligono-pay__copy {
	border: 0;
	background: transparent;
	color: var(--pg-navy);
	padding: 4px;
	cursor: pointer;
}

.poligono-pay__report {
	margin-top: 8px;
}

.poligono-pay__voucher {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border-radius: 8px;
	background: #f7f8fa;
	border: 1px solid #e2e6ec;
}

.poligono-pay__remove {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 6px;
	background: #cfd3d8;
	color: #222;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.poligono-pay__proof {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.poligono-pay__preview {
	min-height: 72px;
	padding-right: 36px;
}

.poligono-pay__preview img {
	display: block;
	max-width: 100%;
	max-height: 140px;
	border-radius: 6px;
	object-fit: contain;
	background: #fff;
}

.poligono-pay__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.poligono-pay__field small {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pg-muted, #6b7280);
}

.poligono-pay__field input,
.poligono-pay__field select {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #d8dde5;
	border-radius: 6px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--pg-navy);
	background: #fff;
}

.poligono-pay__field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.poligono-btn--secondary {
	background: #fff;
	color: var(--pg-navy);
	border: 2px solid var(--pg-navy);
	box-shadow: none;
	min-height: 48px;
	font-size: 16px;
	padding: 12px 16px;
}

.poligono-btn--secondary:hover {
	background: #f3f5f8;
}

.poligono-pay__voucher .poligono-btn--secondary {
	width: 100%;
	margin-top: 0;
}

.poligono-btn--next.is-disabled,
.poligono-btn--next:disabled {
	background: #e8eaee;
	color: #9aa3b0;
	box-shadow: none;
	cursor: not-allowed;
}

.poligono-pay-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 36px 12px 24px;
	text-align: center;
}

.poligono-pay-thanks h2 {
	margin: 0;
	font-size: 22px;
	color: var(--pg-navy);
}

.poligono-pay-thanks p {
	margin: 0;
	max-width: 340px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--pg-muted, #6b7280);
}

.poligono-pay-history {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.poligono-pay-history__item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid #e2e6ec;
	background: #fff;
}

.poligono-pay-history__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: #e9eae9;
}

.poligono-pay-history__date {
	font-size: 14px;
	font-weight: 600;
	color: var(--pg-navy);
}

.poligono-pay-history__amount {
	font-size: 15px;
	font-weight: 700;
	color: var(--pg-navy);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.poligono-pay-history__grid {
	margin: 0;
	padding: 6px 14px 10px;
}

.poligono-pay-history__row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #eef0f3;
}

.poligono-pay-history__row:last-child {
	border-bottom: 0;
}

.poligono-pay-history__row dt {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--pg-muted, #6b7280);
}

.poligono-pay-history__row dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pg-navy);
	text-align: right;
}

.poligono-pay-history__note {
	margin: 0;
	padding: 0 14px 12px;
	font-size: 12px;
	line-height: 1.4;
	color: #8a2424;
}

.poligono-pay-history__link,
.poligono-pay-history .poligono-lightbox {
	font-size: 14px;
	font-weight: 700;
	color: #2271b1;
	text-decoration: none;
	cursor: pointer;
}

.poligono-pay-history__link:hover,
.poligono-pay-history .poligono-lightbox:hover {
	text-decoration: underline;
}

@media (min-width: 720px) {
	.poligono-pay-history__row {
		grid-template-columns: 140px minmax(0, 1fr);
	}
}

/* Lightbox comprobante */
.poligono-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.72);
	box-sizing: border-box;
}

.poligono-lightbox-overlay[hidden] {
	display: none !important;
}

.poligono-lightbox-overlay__inner {
	position: relative;
	max-width: min(920px, 100%);
	max-height: min(90vh, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.poligono-lightbox-overlay__img {
	display: block;
	max-width: 100%;
	max-height: calc(90vh - 48px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.poligono-lightbox-overlay__close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.poligono-lightbox-overlay__close:hover {
	background: #f0f0f1;
}

.poligono-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #f0f0f1;
	color: #50575e;
}

.poligono-badge--pendiente {
	background: #e7eef8;
	color: #1d4f91;
}

.poligono-badge--validado {
	background: #d5f5e0;
	color: #007017;
}

.poligono-badge--rechazado {
	background: #facfd2;
	color: #8a2424;
}

/* Núcleo familiar (solo lectura) */
.poligono-nucleo__list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.poligono-nucleo__row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 6px;
	align-items: stretch;
}

.poligono-nucleo__letter,
.poligono-nucleo__name,
.poligono-nucleo__ced {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 12px;
	background: #e9eae9;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-navy);
}

.poligono-nucleo__letter {
	justify-content: center;
	font-weight: 700;
}

.poligono-nucleo__name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.poligono-nucleo__ced {
	justify-content: flex-start;
	font-variant-numeric: tabular-nums;
}

.poligono-nucleo__note {
	margin: 18px 4px 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--pg-muted, #6b7280);
}

.poligono-nucleo__empty {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--pg-muted, #6b7280);
}

.poligono-terminos__heading {
	margin: 4px 0 0;
	padding: 12px 10px;
	border: 4px solid #fff;
	border-radius: 5px;
	box-shadow: 0 -6px 15px #fff, 0 6px 15px #e5e5f2;
	background: #fff;
}

.poligono-terminos__subtitle {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d1617;
	line-height: 1.35;
}

.poligono-terminos__body {
	margin: 8px 2px 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.55;
	color: #404040;
	text-align: justify;
}

.poligono-terminos__body p {
	margin: 0 0 0.85em;
}

.poligono-terminos__body p:last-child {
	margin-bottom: 0;
}

.poligono-terminos__empty {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--pg-muted, #6b7280);
	text-align: left;
}

.poligono-mi-qr__hint {
	margin: 12px 4px 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #404040;
	text-align: center;
}

.poligono-mi-qr__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 18px 4px 8px;
	padding: 22px 16px 20px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 29, 61, 0.08);
}

.poligono-mi-qr__img {
	display: block;
	width: min(280px, 72vw);
	height: auto;
	aspect-ratio: 1;
	border-radius: 8px;
	background: #fff;
}

.poligono-mi-qr__name {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--pg-navy);
	text-align: center;
	line-height: 1.3;
}

.poligono-mi-qr__ced {
	font-size: 14px;
	font-weight: 500;
	color: #404040;
}

.poligono-mi-qr__empty {
	margin: 24px 8px;
	font-size: 13px;
	color: var(--pg-muted, #6b7280);
	text-align: center;
}

@media (min-width: 720px) {
	.poligono-nucleo__row {
		grid-template-columns: 48px minmax(0, 1.6fr) minmax(0, 1fr);
		gap: 8px;
	}

	.poligono-nucleo__letter,
	.poligono-nucleo__name,
	.poligono-nucleo__ced {
		min-height: 48px;
		font-size: 15px;
	}

	.poligono-terminos__subtitle {
		font-size: 16px;
	}

	.poligono-terminos__body {
		font-size: 14px;
		line-height: 1.6;
	}
}

/* Editar perfil */
.poligono-perfil__form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-top: 8px;
}

.poligono-perfil__photo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.poligono-perfil__avatar {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	background: #e9eae9 center / cover no-repeat;
	border: 2px solid #d8dde5;
}

.poligono-perfil__photo .poligono-btn--secondary {
	width: auto;
	min-width: 160px;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	font-size: 15px;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
}

.poligono-perfil__hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--pg-muted, #6b7280);
	text-align: center;
}

.poligono-perfil__block .poligono-perfil__hint {
	text-align: left;
	margin-bottom: 10px;
}

.poligono-perfil__subtitle {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pg-navy);
}

.poligono-perfil__readonly,
.poligono-perfil__block {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.poligono-perfil__form .poligono-field {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	min-height: 0;
	margin: 0;
	padding: 12px 14px;
	border-radius: 6px;
	background: #f3f5f8;
}

.poligono-perfil__form .poligono-field small {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pg-muted, #6b7280);
}

.poligono-perfil__form .poligono-field input {
	font-size: 15px;
	font-weight: 600;
	color: var(--pg-navy);
}

.poligono-perfil__form .poligono-field input:disabled {
	opacity: 1;
	color: var(--pg-navy);
}

/* ——— Reservas ——— */
.poligono-res__month {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #222b1b;
	text-transform: capitalize;
}

.poligono-res__month input[type="month"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.poligono-res__weekhead,
.poligono-res__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	padding: 0 12px;
	text-align: center;
}

.poligono-res__weekhead {
	font-size: 12px;
	font-weight: 600;
	color: #222b1b;
	margin-bottom: 4px;
}

.poligono-res__day {
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 0;
	border-radius: 4px;
	cursor: pointer;
	color: #000;
}

.poligono-res__day.is-selected {
	background: var(--pg-navy);
	color: #fff;
}

.poligono-res__day.is-muted {
	opacity: 0.35;
	pointer-events: none;
}

.poligono-res__day.is-taken {
	background: #e9eae9;
	color: #949497;
	text-decoration: line-through;
	cursor: not-allowed;
}

.poligono-res__day-hint {
	margin: 0 16px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #4a5d73;
}

.poligono-res__resource {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0 4px;
	padding: 10px 16px;
	background: #e9eae9;
	border-radius: 7px;
}

.poligono-res__resource select {
	flex: 1;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pg-navy);
	text-transform: uppercase;
	outline: none;
	cursor: pointer;
}

.poligono-res__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	font-size: 10px;
	font-weight: 500;
	margin: 4px 0 8px;
}

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

.poligono-res__legend i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 10px;
	border-radius: 1px;
	vertical-align: middle;
	font-style: normal;
}

.poligono-res__legend i.is-free {
	background: #e9eae9;
}

.poligono-res__legend i.is-sel {
	background: #00a6fb;
}

.poligono-res__legend i.is-taken {
	width: auto;
	min-width: 34px;
	height: 14px;
	padding: 0 4px;
	background: #e9eae9;
	opacity: 0.55;
}

.poligono-res__legend i.is-taken b {
	font-size: 8px;
	font-weight: 600;
	color: #000;
	text-decoration: line-through;
	line-height: 1;
}

.poligono-res__slots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 4px 10px 16px;
}

.poligono-res__slot {
	border: 0;
	border-radius: 4px;
	background: #e9eae9;
	color: #000;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 6px;
	cursor: pointer;
	min-height: 37px;
}

.poligono-res__slot.is-selected {
	background: #00a6fb;
	color: #fff;
}

.poligono-res__slot.is-taken,
.poligono-res__slot:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
	background: #e9eae9;
	color: #000;
}

.poligono-res-history {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.poligono-res-history__item {
	background: #f6f7f8;
	border-radius: 8px;
	padding: 14px;
}

.poligono-res-history__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.poligono-res-history__head strong {
	font-size: 15px;
	color: var(--pg-navy);
}

.poligono-res-history__meta {
	margin: 0;
	display: grid;
	gap: 8px;
}

.poligono-res-history__meta > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.poligono-res-history__meta dt {
	margin: 0;
	color: var(--pg-muted);
	font-weight: 500;
}

.poligono-res-history__meta dd {
	margin: 0;
	font-weight: 600;
	color: var(--pg-navy);
	text-align: right;
}

.poligono-res-history__actions {
	display: flex;
	gap: 16px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
}

.poligono-res-history__actions a {
	font-size: 13px;
	font-weight: 600;
	color: var(--pg-navy);
	text-decoration: none;
}

.poligono-res-history__note {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--pg-red);
}

.poligono-res-history .poligono-badge--confirmada {
	background: #e7f6ea;
	color: #05610a;
}

.poligono-res-history .poligono-badge--pendiente_pago,
.poligono-res-history .poligono-badge--pendiente {
	background: #fff4d6;
	color: #8a6d00;
}

.poligono-res-history .poligono-badge--rechazada,
.poligono-res-history .poligono-badge--expirada,
.poligono-res-history .poligono-badge--cancelada {
	background: #fde8e8;
	color: #610507;
}

.poligono-res-confirm__card {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 10px;
	margin-bottom: 8px;
}

.poligono-res-confirm__avatar {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background: #e9eae9 center/cover no-repeat;
	flex-shrink: 0;
}

.poligono-res-confirm__who {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-left: 4px solid var(--pg-navy);
	padding-left: 10px;
	font-size: 12px;
	color: #333;
}

.poligono-res-confirm__who strong {
	font-size: 14px;
	color: var(--pg-navy);
}

.poligono-res-confirm__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.poligono-res-confirm__meta li {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px 16px;
	background: #f6f7f8;
	border-radius: 6px;
	font-size: 13px;
}

.poligono-res-confirm__check {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #05610a;
	color: #fff;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.poligono-res-confirm__meta strong {
	font-weight: 600;
	text-align: right;
}

.poligono-res-confirm__meta em {
	font-style: normal;
	color: var(--pg-muted);
	margin-right: 6px;
	font-weight: 500;
}

.poligono-res-pay .poligono-pay__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
}

.poligono-res-pay .poligono-pay__field small {
	font-size: 12px;
	color: var(--pg-muted);
}

.poligono-res-pay .poligono-pay__field input,
.poligono-res-pay .poligono-pay__field select {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
}

@media (min-width: 768px) {
	.poligono-res__slots {
		gap: 12px;
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Desktop: más aire que el mock móvil (~389px) — ancho ya unificado en .poligono-shell */
	.poligono-shell:has(.poligono-res),
	.poligono-shell:has(.poligono-res-pay),
	.poligono-shell:has(.poligono-res-confirm) {
		align-self: flex-start;
		margin-top: 28px;
		margin-bottom: 28px;
	}

	body.poligono-app:has(.poligono-res),
	body.poligono-app:has(.poligono-res-pay),
	body.poligono-app:has(.poligono-res-confirm) {
		align-items: flex-start;
	}

	.poligono-res .poligono-top__title {
		font-size: 22px;
	}

	.poligono-res__month {
		padding: 12px 8px 8px;
		font-size: 16px;
	}

	.poligono-res__weekhead {
		font-size: 13px;
		padding: 0 8px;
		margin-bottom: 8px;
	}

	.poligono-res__days {
		gap: 8px;
		padding: 0 8px 8px;
	}

	.poligono-res__day {
		font-size: 15px;
		padding: 12px 0;
		border-radius: 6px;
		min-height: 44px;
	}

	.poligono-res__resource {
		margin: 12px 0;
		padding: 14px 18px;
	}

	.poligono-res__resource select {
		font-size: 15px;
	}

	.poligono-res__legend {
		font-size: 12px;
		gap: 18px;
		margin: 8px 0 12px;
	}

	.poligono-res__slots {
		grid-template-columns: repeat(4, 1fr);
		gap: 14px;
		padding: 8px 4px 20px;
	}

	.poligono-res__slot {
		font-size: 15px;
		min-height: 48px;
		padding: 12px 8px;
	}

	.poligono-res-confirm__meta li {
		padding: 14px 18px;
		font-size: 14px;
	}

	.poligono-res-confirm__who {
		font-size: 13px;
	}

	.poligono-res-confirm__who strong {
		font-size: 16px;
	}
}

@media (min-width: 1024px) {
	.poligono-shell {
		--pg-max: 860px;
		max-width: 860px;
		padding: 32px 48px 48px;
	}

	.poligono-res__slots {
		grid-template-columns: repeat(5, 1fr);
	}
}

.poligono-invite-tickets {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.poligono-invite-ticket {
	padding: 14px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.poligono-invite-ticket__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.poligono-invite-ticket__who strong {
	font-size: 16px;
	color: var(--pg-navy);
}

.poligono-invite-ticket__who span {
	font-size: 13px;
	color: var(--pg-muted);
}

.poligono-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.poligono-share__native {
	flex: 1 1 auto;
	min-height: 44px;
	font-size: 14px;
	padding: 8px 12px;
}

.poligono-share__desktop {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 1 auto;
}

.poligono-share__desktop[hidden],
.poligono-share__native[hidden] {
	display: none !important;
}

.poligono-share__wa,
.poligono-share__mail,
.poligono-share__pdf {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}

.poligono-share__wa {
	background: #25d366;
	color: #fff;
}

.poligono-share__mail {
	background: #001d3d;
	color: #fff;
}

.poligono-share__pdf {
	background: #eef2f6;
	color: #001d3d;
}

.poligono-res-confirm__who small {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pg-muted);
}

@media (min-width: 720px) {
	.poligono-invite-ticket {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.poligono-share {
		justify-content: flex-end;
	}
}



