/* =========================================================================
   HospediaPro — Dashboard de Cliente
   Mobile first · Moderna · Profesional
   ========================================================================= */

/* ── Variables ─────────────────────────────────────────────────── */
.hp-dash {
	--hp-dash-radius   : 14px;
	--hp-dash-border   : #e2e8f0;
	--hp-dash-bg       : #f8faff;
	--hp-dash-card     : #fff;
	--hp-dash-text     : #0f172a;
	--hp-dash-muted    : #64748b;
	--hp-dash-accent   : #3b82f6;
	--hp-dash-green    : #10b981;
	--hp-dash-shadow   : 0 2px 12px rgba(0,0,0,.06);

	max-width: 820px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Cabecera ───────────────────────────────────────────────────── */
.hp-dash__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
	box-shadow: var(--hp-dash-shadow);
}

.hp-dash__user {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.hp-dash__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0ea5e9, #6366f1);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hp-dash__name {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--hp-dash-text);
	margin: 0 0 2px;
}

.hp-dash__email {
	font-size: .8rem;
	color: var(--hp-dash-muted);
}

.hp-dash__logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .8rem;
	font-weight: 600;
	color: var(--hp-dash-muted);
	text-decoration: none;
	padding: .4rem .85rem;
	border: 1px solid var(--hp-dash-border);
	border-radius: 99px;
	transition: color .2s, border-color .2s;
	white-space: nowrap;
}

.hp-dash__logout:hover { color: #ef4444; border-color: #fca5a5; text-decoration: none; }

/* ── Stats ──────────────────────────────────────────────────────── */
.hp-dash__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .75rem;
	margin-bottom: 1rem;
}

.hp-dash__stat {
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: 1rem;
	text-align: center;
	box-shadow: var(--hp-dash-shadow);
}

.hp-dash__stat-num {
	display: block;
	font-size: 1.75rem;
	font-weight: 900;
	color: var(--hp-dash-text);
	letter-spacing: -.03em;
	line-height: 1;
	margin-bottom: 4px;
}

.hp-dash__stat-label {
	font-size: .7rem;
	font-weight: 600;
	color: var(--hp-dash-muted);
	text-transform: uppercase;
	letter-spacing: .07em;
}

/* ── Navegación tabs ────────────────────────────────────────────── */
.hp-dash__nav {
	display: flex;
	gap: .25rem;
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: .35rem;
	margin-bottom: 1rem;
	box-shadow: var(--hp-dash-shadow);
}

.hp-dash__tab {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex: 1;
	justify-content: center;
	padding: .6rem .75rem;
	border-radius: 10px;
	font-size: .8rem;
	font-weight: 600;
	color: var(--hp-dash-muted);
	text-decoration: none;
	transition: background .15s, color .15s;
	white-space: nowrap;
}

.hp-dash__tab:hover { background: var(--hp-dash-bg); color: var(--hp-dash-text); text-decoration: none; }

.hp-dash__tab--active {
	background: var(--hp-dash-accent);
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(59,130,246,.3);
}

/* ── Contenido ──────────────────────────────────────────────────── */
.hp-dash__content {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

/* ── Product card ───────────────────────────────────────────────── */
.hp-dash__product-card {
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: 1.25rem;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	box-shadow: var(--hp-dash-shadow);
	transition: border-color .2s;
}

.hp-dash__product-card:hover { border-color: #bfdbfe; }

.hp-dash__product-thumb {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.hp-dash__product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-dash__product-placeholder { font-size: 1.5rem; }

.hp-dash__product-info { flex: 1; min-width: 0; }

.hp-dash__product-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .75rem;
}

.hp-dash__product-name {
	font-size: .95rem;
	font-weight: 700;
	color: var(--hp-dash-text);
	margin: 0 0 .35rem;
}

.hp-dash__product-name a { color: inherit; text-decoration: none; }
.hp-dash__product-name a:hover { color: var(--hp-dash-accent); }

.hp-dash__product-meta {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
}

.hp-dash__badge {
	font-size: .65rem;
	font-weight: 700;
	border-radius: 99px;
	padding: .2rem .6rem;
	letter-spacing: .04em;
}

.hp-dash__badge--version  { background: rgba(99,102,241,.1);  color: #6366f1; }
.hp-dash__badge--free     { background: rgba(16,185,129,.1);  color: #10b981; }
.hp-dash__badge--paid     { background: rgba(59,130,246,.1);  color: #3b82f6; }

.hp-dash__product-date { font-size: .72rem; color: var(--hp-dash-muted); }
.hp-dash__product-price { font-size: 1.05rem; font-weight: 800; color: var(--hp-dash-text); white-space: nowrap; }

.hp-dash__product-actions {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}

/* ── Botones ────────────────────────────────────────────────────── */
.hp-dash__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	font-weight: 700;
	border-radius: 8px;
	padding: .45rem .9rem;
	text-decoration: none;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: all .15s;
	white-space: nowrap;
}

.hp-dash__btn--primary {
	background: var(--hp-dash-accent);
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(59,130,246,.3);
}

.hp-dash__btn--primary:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	text-decoration: none;
}

.hp-dash__btn--upgrade {
	background: linear-gradient(135deg, #f59e0b, #ef4444);
	color: #fff !important;
}

.hp-dash__btn--upgrade:hover { opacity: .9; text-decoration: none; }

.hp-dash__btn--ghost {
	background: transparent;
	color: var(--hp-dash-muted) !important;
	border: 1px solid var(--hp-dash-border);
}

.hp-dash__btn--ghost:hover { border-color: #93c5fd; color: var(--hp-dash-accent) !important; text-decoration: none; }

.hp-dash__btn--disabled {
	background: #f1f5f9;
	color: var(--hp-dash-muted) !important;
	cursor: not-allowed;
}

/* ── Licencias ──────────────────────────────────────────────────── */
.hp-dash__license-card {
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: 1.25rem;
	box-shadow: var(--hp-dash-shadow);
}

.hp-dash__license-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .75rem;
}

.hp-dash__license-product {
	font-size: .95rem;
	font-weight: 700;
	color: var(--hp-dash-text);
	margin: 0;
}

.hp-dash__license-status {
	font-size: .72rem;
	font-weight: 700;
	border-radius: 99px;
	padding: .25rem .7rem;
	white-space: nowrap;
}

.hp-dash__license-status--active  { background: rgba(16,185,129,.1);  color: #10b981; }
.hp-dash__license-status--pending { background: rgba(245,158,11,.1);  color: #f59e0b; }

.hp-dash__license-key-wrap {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: #f8faff;
	border: 1px dashed var(--hp-dash-border);
	border-radius: 8px;
	padding: .6rem .85rem;
	margin-bottom: .6rem;
}

.hp-dash__license-key {
	font-family: monospace;
	font-size: .85rem;
	font-weight: 700;
	color: var(--hp-dash-accent);
	flex: 1;
	word-break: break-all;
}

.hp-dash__license-copy {
	background: none;
	border: 1px solid var(--hp-dash-border);
	border-radius: 6px;
	padding: .25rem .65rem;
	font-size: .72rem;
	color: var(--hp-dash-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: inherit;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
}

.hp-dash__license-copy:hover { color: var(--hp-dash-accent); border-color: #93c5fd; }

.hp-dash__license-meta {
	display: flex;
	gap: 1rem;
	font-size: .72rem;
	color: var(--hp-dash-muted);
}

/* ── Perfil ─────────────────────────────────────────────────────── */
.hp-dash__profile-form,
.hp-dash__login-form {
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: 1.5rem;
	box-shadow: var(--hp-dash-shadow);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hp-dash__profile-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.hp-dash__profile-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.hp-dash__profile-field label {
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
}

.hp-dash__profile-field input {
	border: 1.5px solid var(--hp-dash-border);
	border-radius: 8px;
	padding: .65rem .9rem;
	font-size: .875rem;
	font-family: inherit;
	color: var(--hp-dash-text);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.hp-dash__profile-field input:focus {
	border-color: var(--hp-dash-accent);
	box-shadow: 0 0 0 3px rgba(59,130,246,.1);
	outline: none;
}

.hp-dash__profile-field small { font-size: .72rem; color: var(--hp-dash-muted); }

/* ── Login ──────────────────────────────────────────────────────── */
.hp-dash--login {
	max-width: 440px;
}

.hp-dash__login-card {
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0,0,0,.09);
	padding: 2.25rem 2rem 1.75rem;
}

/* Logo / nombre del sitio */
.hp-dash__login-brand {
	text-align: center;
	margin-bottom: 1.75rem;
}

.hp-dash__login-sitename {
	font-size: 1.1rem;
	color: var(--hp-dash-text);
}

/* Título */
.hp-dash__login-title-wrap {
	text-align: center;
	margin-bottom: 1.75rem;
}

.hp-dash__login-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--hp-dash-text);
	margin: 0 0 .35rem;
	letter-spacing: -.02em;
}

.hp-dash__login-subtitle {
	font-size: .85rem;
	color: var(--hp-dash-muted);
}

/* Label con ícono */
.hp-dash__profile-field label {
	display: flex;
	align-items: center;
	gap: .4rem;
}

/* Olvidé contraseña */
.hp-dash__login-forgot {
	font-size: .75rem;
	color: var(--hp-dash-accent);
	text-decoration: none;
	font-weight: 600;
}

.hp-dash__login-forgot:hover { text-decoration: underline; }

/* Botón submit */
.hp-dash__login-submit {
	width: 100%;
	justify-content: center;
	padding: .875rem;
	font-size: .95rem;
	border-radius: 10px;
	gap: .5rem;
}

/* Form sin borde propio */
.hp-dash__login-form {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-bottom: 1.25rem;
}

/* Footer del login */
.hp-dash__login-footer {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	background: #f8faff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: .85rem 1rem;
	font-size: .78rem;
	color: var(--hp-dash-muted);
	line-height: 1.5;
}

.hp-dash__login-footer svg { flex-shrink: 0; margin-top: 1px; color: var(--hp-dash-accent); }

/* ── Notices ────────────────────────────────────────────────────── */
.hp-dash__notice {
	border-radius: 10px;
	padding: .875rem 1rem;
	font-size: .875rem;
	font-weight: 600;
}

.hp-dash__notice--success { background: #f0fdf4; border: 1.5px solid #86efac; color: #16a34a; }
.hp-dash__notice--error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #dc2626; }

/* ── Empty state ────────────────────────────────────────────────── */
.hp-dash__empty {
	background: var(--hp-dash-card);
	border: 1px solid var(--hp-dash-border);
	border-radius: var(--hp-dash-radius);
	padding: 3rem 2rem;
	text-align: center;
	box-shadow: var(--hp-dash-shadow);
}

.hp-dash__empty-icon { font-size: 3rem; margin-bottom: .75rem; display: block; }
.hp-dash__empty h3   { font-size: 1.1rem; font-weight: 700; color: var(--hp-dash-text); margin: 0 0 .5rem; }
.hp-dash__empty p    { font-size: .875rem; color: var(--hp-dash-muted); margin: 0 0 1.25rem; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.hp-dash { padding: 1rem .75rem; }
	.hp-dash__stats { grid-template-columns: repeat(2, 1fr); }
	.hp-dash__tab span { display: none; }
	.hp-dash__profile-row { grid-template-columns: 1fr; }
	.hp-dash__product-card { flex-direction: column; }
	.hp-dash__product-thumb { width: 48px; height: 48px; }
	.hp-dash__product-top { flex-direction: column; gap: .4rem; }
	.hp-dash__header { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

@media (max-width: 380px) {
	.hp-dash__stats { grid-template-columns: repeat(2, 1fr); }
	.hp-dash__nav { overflow-x: auto; }
}