/*! HospediaPro — pl-crypto.css */

/* =========================================================================
   COINBASE COMMERCE — Modal de pago crypto
   ========================================================================= */

#hp-crypto-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,18,32,.7);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
}

#hp-crypto-overlay.hp-crypto-overlay--active {
	opacity: 1;
	pointer-events: all;
}

.hp-crypto-modal {
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 440px;
	box-shadow: 0 24px 80px rgba(0,0,0,.25);
	overflow: hidden;
	transform: translateY(20px);
	transition: transform .25s;
}

#hp-crypto-overlay.hp-crypto-overlay--active .hp-crypto-modal {
	transform: translateY(0);
}

/* Header */
.hp-crypto-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f1f5f9;
	background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.hp-crypto-modal__title {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-weight: 700;
	font-size: .95rem;
	color: #fff;
}

.hp-crypto-modal__close {
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	font-size: .9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.hp-crypto-modal__close:hover { background: rgba(255,255,255,.25); }

/* Body */
.hp-crypto-modal__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hp-crypto-modal__product {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8faff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: .85rem 1rem;
}

.hp-crypto-modal__product strong {
	font-size: .9rem;
	color: #0f172a;
}

.hp-crypto-modal__price {
	font-family: var(--hp-font-heading, inherit);
	font-size: 1.1rem;
	font-weight: 800;
	color: #3b82f6;
}

.hp-crypto-modal__label {
	display: block;
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
	margin-bottom: .35rem;
}

.hp-crypto-modal__input {
	width: 100%;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: .7rem .9rem;
	font-size: .9rem;
	font-family: inherit;
	color: #0f172a;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
}

.hp-crypto-modal__input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,.1);
	outline: none;
}

.hp-crypto-modal__error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: .65rem .9rem;
	font-size: .82rem;
	color: #dc2626;
}

.hp-crypto-modal__pay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: .95rem;
	background: linear-gradient(135deg, #0ea5e9, #6366f1);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: .95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: opacity .2s, transform .15s;
	box-shadow: 0 4px 16px rgba(99,102,241,.35);
}

.hp-crypto-modal__pay:hover { opacity: .92; transform: translateY(-1px); }
.hp-crypto-modal__pay:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hp-crypto-modal__note {
	font-size: .75rem;
	color: #94a3b8;
	text-align: center;
	margin: 0;
	line-height: 1.5;
}

/* =========================================================================
   MODAL CRYPTO — Wallet propio
   ========================================================================= */

/* Pasos */
.hp-cm-step { margin-bottom: 1rem; }

.hp-cm-step__label {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
	margin-bottom: .5rem;
}

.hp-cm-step__num {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0ea5e9, #6366f1);
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Selector de red */
.hp-cm-nets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.hp-cm-net {
	border: 1.5px solid #e2e8f0;
	background: #fff;
	border-radius: 10px;
	padding: .6rem .5rem;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-family: inherit;
}

.hp-cm-net:hover { border-color: #93c5fd; background: #eff6ff; }

.hp-cm-net--active {
	border-color: #3b82f6 !important;
	background: #eff6ff !important;
}

.hp-cm-net__icon    { font-size: 1.2rem; line-height: 1; }
.hp-cm-net__label   { font-size: .72rem; font-weight: 700; color: #0f172a; }
.hp-cm-net__network { font-size: .65rem; font-weight: 600; color: #64748b; }
.hp-cm-net__fee     { font-size: .62rem; color: #94a3b8; }

/* Bloque de pago con QR */
.hp-cm-pay-block {
	display: flex;
	gap: .875rem;
	align-items: flex-start;
	margin-bottom: .75rem;
}

.hp-cm-qr {
	width: 112px;
	height: 112px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f8faff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-cm-qr img { display: block; width: 100%; height: 100%; }

.hp-cm-pay-info { flex: 1; min-width: 0; }
.hp-cm-pay-net  { font-size: .72rem; color: #64748b; margin-bottom: 4px; font-weight: 600; }
.hp-cm-pay-label{ font-size: .75rem; color: #374151; font-weight: 600; margin-bottom: 4px; }

.hp-cm-pay-amount {
	font-size: 1.35rem;
	font-weight: 800;
	color: #3b82f6;
	letter-spacing: -.02em;
	line-height: 1.1;
}

/* Dirección */
.hp-cm-addr-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8faff;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: .55rem .75rem;
	margin-bottom: .75rem;
}

.hp-cm-addr {
	font-family: monospace;
	font-size: .72rem;
	color: #475569;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hp-cm-copy-btn {
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 3px 8px;
	cursor: pointer;
	font-size: .72rem;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	font-family: inherit;
	transition: color .15s, border-color .15s;
	flex-shrink: 0;
}

.hp-cm-copy-btn:hover { border-color: #93c5fd; color: #3b82f6; }

/* Timer */
.hp-cm-timer-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: .78rem;
	color: #64748b;
	margin-bottom: .75rem;
}

.hp-cm-timer {
	font-weight: 700;
	color: #f59e0b;
	font-variant-numeric: tabular-nums;
}

/* Chips */
.hp-cm-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 1rem;
}

.hp-cm-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .68rem;
	font-weight: 600;
	border-radius: 99px;
	padding: .25rem .65rem;
	border: 1px solid transparent;
}

.hp-cm-chip--green { background: rgba(16,185,129,.08); color: #10b981; border-color: rgba(16,185,129,.2); }
.hp-cm-chip--blue  { background: rgba(59,130,246,.08);  color: #3b82f6; border-color: rgba(59,130,246,.2); }
.hp-cm-chip--yellow{ background: rgba(245,158,11,.08);  color: #f59e0b; border-color: rgba(245,158,11,.2); }

/* Estado del pago */
.hp-cm-status {
	border-radius: 10px;
	padding: .875rem 1rem;
	font-size: .875rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: .75rem;
}

.hp-cm-status--confirmed {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	color: #16a34a;
}

.hp-cm-status--expired {
	background: #fef2f2;
	border: 1.5px solid #fca5a5;
	color: #dc2626;
}

/* Botón outline */
.hp-crypto-modal__pay--outline {
	background: transparent !important;
	border: 1.5px solid rgba(99,102,241,.3) !important;
	color: #6366f1 !important;
	box-shadow: none !important;
}

.hp-crypto-modal__pay--outline:hover {
	background: rgba(99,102,241,.06) !important;
	border-color: #6366f1 !important;
}

/* Responsive */
@media (max-width: 400px) {
	.hp-cm-nets { grid-template-columns: 1fr 1fr; }
	.hp-cm-pay-block { flex-direction: column; align-items: center; }
	.hp-cm-qr { width: 140px; height: 140px; }
}