/*! HospediaPro — pl-payments.css */

/* =========================================================================
   BOTONES DE PASARELA — Gumroad · Crypto · Local
   ========================================================================= */

/* Estructura con sublabel */
.hp-pl-btn__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.hp-pl-btn__label {
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.hp-pl-btn__sub {
	font-size: .72rem;
	font-weight: 500;
	opacity: .75;
	letter-spacing: .02em;
}

/* ── Gumroad — Tarjetas / PayPal (enlace directo) ─────────────── */
.hp-pl-btn--gumroad {
	display: inline-flex;
	align-items: center;
	gap: .875rem;
	background: #0f172a;
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: .85rem 1.25rem .85rem 1.1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
	box-shadow: 0 4px 16px rgba(15,23,42,.25);
	min-width: 240px;
	font-family: inherit;
}

.hp-pl-btn--gumroad:hover {
	background: #1e293b;
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(15,23,42,.4);
	color: #fff;
	text-decoration: none;
}

.hp-pl-btn__gumroad-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(255,255,255,.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .2s;
}

.hp-pl-btn--gumroad:hover .hp-pl-btn__gumroad-icon {
	background: rgba(255,255,255,.18);
}

.hp-pl-btn__arrow {
	margin-left: auto;
	opacity: .45;
	transition: opacity .2s, transform .2s;
	flex-shrink: 0;
}

.hp-pl-btn--gumroad:hover .hp-pl-btn__arrow {
	opacity: 1;
	transform: translateX(3px);
}

/* ── Crypto — USDC / USDT ─────────────────────────────────────── */
.hp-pl-btn--crypto {
	display: inline-flex;
	align-items: center;
	gap: .85rem;
	background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: .85rem 1.5rem;
	cursor: pointer;
	transition: opacity .2s, transform .15s, box-shadow .2s;
	box-shadow: 0 4px 20px rgba(99,102,241,.35);
	min-width: 240px;
	font-family: inherit;
	position: relative;
	overflow: hidden;
}

/* Brillo animado */
.hp-pl-btn--crypto::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
	transition: left .5s;
}

.hp-pl-btn--crypto:hover::before { left: 150%; }

.hp-pl-btn--crypto:hover {
	opacity: .92;
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(99,102,241,.45);
}

.hp-pl-btn--crypto svg { flex-shrink: 0; }

/* Precio dentro del botón crypto */
.hp-pl-btn__crypto-price {
	background: rgba(255,255,255,.2);
	border-radius: 6px;
	padding: .1rem .45rem;
	font-size: .85rem;
	font-weight: 800;
}

.hp-pl-btn__crypto-price .hp-price {
	color: #fff;
	font-size: inherit;
	font-weight: inherit;
}

/* Ahorro */
.hp-pl-btn__savings {
	font-size: .72rem;
	font-weight: 600;
	color: rgba(255,255,255,.85);
	background: rgba(0,0,0,.15);
	border-radius: 99px;
	padding: .15rem .65rem;
	display: inline-block;
	width: fit-content;
}

/* ── Pago local ───────────────────────────────────────────────── */
.hp-pl-btn--local {
	display: inline-flex;
	align-items: center;
	gap: .85rem;
	background: #fff;
	color: #0f172a;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	padding: .75rem 1.35rem;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
	min-width: 240px;
	font-family: inherit;
}

.hp-pl-btn--local:hover {
	border-color: #3b82f6;
	background: #f0f7ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(59,130,246,.15);
	color: #0f172a;
	text-decoration: none;
}

.hp-pl-btn--local svg { color: #3b82f6; flex-shrink: 0; }

.hp-pl-btn--local .hp-pl-btn__label { color: #0f172a; }
.hp-pl-btn--local .hp-pl-btn__sub   { color: #64748b; }

/* Badge pago local en hero */
.hp-pl-hero__local-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .75rem;
	font-weight: 600;
	color: #16a34a;
	background: rgba(22,163,74,.08);
	border: 1px solid rgba(22,163,74,.2);
	border-radius: 99px;
	padding: .3rem .85rem;
	margin-top: .5rem;
}

/* ── Ocultar logo Gumroad del botón ───────────────────────────── */
.hp-pl-btn--gumroad .logo-full,
.hp-pl-btn--gumroad .logo-full-white,
.hp-pl-btn--gumroad [class*="gumroad-logo"],
.hp-pl-btn--gumroad img[src*="gumroad"] {
	display: none !important;
}

/* ── Precio referencial local — mejorado ──────────────────────── */
.hp-pl-hero__price-local {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: rgba(255,255,255,.75);
	backdrop-filter: blur(8px);
	border: 1.5px solid rgba(59,130,246,.15);
	border-radius: 99px;
	padding: .4rem .9rem .4rem .6rem;
	margin-top: .5rem;
	margin-bottom: 1rem;
	width: fit-content;
}

.hp-pl-hero__price-local-flag {
	font-size: 1.1rem;
	line-height: 1;
	flex-shrink: 0;
}

.hp-pl-hero__price-local-amount {
	font-size: .9rem;
	font-weight: 700;
	color: #1e293b;
}

.hp-pl-hero__price-local-amount .hp-price {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.hp-pl-hero__price-local-note {
	font-size: .72rem;
	color: #94a3b8;
	font-weight: 500;
	border-left: 1px solid #e2e8f0;
	padding-left: .5rem;
	margin-left: .1rem;
}

/* ── Stats mejorados con iconos ───────────────────────────────── */
.hp-pl-hero__stats {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	margin-top: .25rem;
}

.hp-pl-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	padding: .85rem 1.1rem;
	flex: 1;
	border-right: 1px solid #f1f5f9;
	position: relative;
	transition: background .2s;
}

.hp-pl-hero__stat:last-child { border-right: none; }
.hp-pl-hero__stat:hover { background: #f8faff; }

.hp-pl-hero__stat-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: .1rem;
}

.hp-pl-hero__stat-icon--downloads { background: rgba(59,130,246,.1);  color: #3b82f6; }
.hp-pl-hero__stat-icon--rating    { background: rgba(245,158,11,.1);  color: #f59e0b; }
.hp-pl-hero__stat-icon--version   { background: rgba(139,92,246,.1);  color: #8b5cf6; }
.hp-pl-hero__stat-icon--updated   { background: rgba(16,185,129,.1);  color: #10b981; }

.hp-pl-hero__stat-value {
	font-family: var(--hp-font-heading);
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -.02em;
	line-height: 1;
}

.hp-pl-hero__stat-value--rating { color: #f59e0b; }

.hp-pl-hero__stat-label {
	font-size: .65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #94a3b8;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.hp-pl-hero__stats  { flex-wrap: wrap; }
	.hp-pl-hero__stat   { flex: 1 1 45%; border-bottom: 1px solid #f1f5f9; }
}

/* ── Precio Gumroad dentro del botón ──────────────────────────── */
.hp-pl-btn__gumroad-price {
	background: rgba(255,255,255,.15);
	border-radius: 6px;
	padding: .1rem .5rem;
	font-size: .85rem;
	font-weight: 800;
	margin-left: .4rem;
	letter-spacing: -.01em;
}


/* =========================================================================
   MODAL DESCARGA GRATUITA
   ========================================================================= */

#hp-free-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,18,32,.65);
	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-free-modal-overlay.hp-free-modal--active {
	opacity: 1;
	pointer-events: all;
}

.hp-free-modal {
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 24px 80px rgba(0,0,0,.2);
	overflow: hidden;
	transform: translateY(16px);
	transition: transform .25s;
}

#hp-free-modal-overlay.hp-free-modal--active .hp-free-modal {
	transform: translateY(0);
}

/* Header */
.hp-free-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, #f0fdf4, #ecfdf5);
}

.hp-free-modal__title {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.hp-free-modal__icon {
	font-size: 1.5rem;
	width: 42px;
	height: 42px;
	background: #dcfce7;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hp-free-modal__title strong {
	display: block;
	font-size: .95rem;
	font-weight: 800;
	color: #065f46;
}

.hp-free-modal__title span {
	font-size: .78rem;
	color: #6b7280;
	display: block;
	margin-top: 1px;
}

.hp-free-modal__close {
	background: rgba(0,0,0,.06);
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	font-size: .9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	transition: background .15s;
	flex-shrink: 0;
}

.hp-free-modal__close:hover { background: rgba(0,0,0,.12); }

/* Body */
.hp-free-modal__body { padding: 1.5rem; }

.hp-free-modal__desc {
	font-size: .875rem;
	color: #475569;
	line-height: 1.6;
	margin: 0 0 1.25rem;
}

/* Fields */
.hp-free-modal__field {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.hp-free-modal__field label {
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
	display: flex;
	align-items: center;
	gap: .4rem;
}

.hp-free-modal__optional { color: #94a3b8; font-weight: 500; }
.hp-free-modal__required { color: #ef4444; }

.hp-free-modal__field input {
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: .7rem .9rem;
	font-size: .9rem;
	font-family: inherit;
	color: #0f172a;
	transition: border-color .2s, box-shadow .2s;
	width: 100%;
	box-sizing: border-box;
}

.hp-free-modal__field input:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16,185,129,.1);
	outline: none;
}

/* Error */
.hp-free-modal__error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: .65rem .9rem;
	font-size: .82rem;
	color: #dc2626;
	margin-bottom: 1rem;
}

/* Submit */
.hp-free-modal__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: .95rem;
	background: linear-gradient(135deg, #10b981, #059669);
	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 14px rgba(16,185,129,.35);
	margin-bottom: .75rem;
}

.hp-free-modal__submit:hover { opacity: .92; transform: translateY(-1px); }
.hp-free-modal__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Privacy note */
.hp-free-modal__privacy {
	font-size: .72rem;
	color: #94a3b8;
	text-align: center;
	margin: 0;
	line-height: 1.5;
}

/* Success state */
.hp-free-modal__success {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .5rem;
	padding: 1rem 0;
}

.hp-free-modal__success-icon { font-size: 2.5rem; }

.hp-free-modal__success h3 {
	font-size: 1.1rem;
	font-weight: 800;
	color: #065f46;
	margin: 0;
}

.hp-free-modal__success p {
	font-size: .875rem;
	color: #475569;
	margin: 0 0 .75rem;
}

.hp-free-modal__direct-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff !important;
	text-decoration: none;
	padding: .85rem 1.75rem;
	border-radius: 12px;
	font-size: .95rem;
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(16,185,129,.35);
	transition: opacity .2s, transform .15s;
}

.hp-free-modal__direct-btn:hover {
	opacity: .92;
	transform: translateY(-1px);
	text-decoration: none;
}

/* =========================================================================
   TRIAL DIVIDER
   ========================================================================= */

.hp-pl-trial-divider {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: .25rem 0;
}

.hp-pl-trial-divider::before,
.hp-pl-trial-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.hp-pl-trial-divider span {
	font-size: .75rem;
	font-weight: 700;
	color: #10b981;
	white-space: nowrap;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 99px;
	padding: .2rem .75rem;
}

.hp-pl-trial-divider--or span {
	color: #64748b;
	background: #f8faff;
	border-color: #e2e8f0;
	font-weight: 600;
}