/* Mini-widgets de seguimiento (header / home / footer) — marca Phone Master.
   Independiente del CSS principal: se carga en cualquier página del sitio. */

@font-face {
	font-family: 'Eurostile MN';
	src: url('../fonts/eurostile-mn.woff2') format('woff2'),
	     url('../fonts/eurostile-mn.ttf') format('truetype');
	font-weight: 400 700;
	font-display: swap;
}

.pm-mini {
	--pm-violet: #7544ff;
	--pm-violet-ink: #5B2FD6;
	--pm-ink: #281449;
	--pm-line: #ECEBF5;
	--pm-muted: #9A94AE;
	--pm-display: 'Eurostile MN', Inter, -apple-system, sans-serif;
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	box-sizing: border-box;
}
.pm-mini *, .pm-mini *::before, .pm-mini *::after { box-sizing: border-box; }

.pm-mini__input {
	border: 1.5px solid var(--pm-line);
	border-radius: 999px;
	background: #fff;
	padding: 9px 16px;
	font-family: inherit;
	font-size: 14px;
	color: var(--pm-ink);
	min-width: 0;
}
.pm-mini__input::placeholder { color: #B4AFC4; }
.pm-mini__input:focus {
	outline: none;
	border-color: var(--pm-violet);
	box-shadow: 0 0 0 4px rgba(117, 68, 255, 0.15);
}

.pm-mini__btn {
	border: 0;
	border-radius: 999px;
	background: var(--pm-violet);
	color: #fff;
	font-family: var(--pm-display);
	font-weight: 700;
	font-size: 14px;
	padding: 10px 20px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
}
.pm-mini__btn:hover { background: var(--pm-violet-ink); }

/* ── Header: campo compacto en línea ── */

.pm-mini--header {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.pm-mini--header .pm-mini__input { width: 140px; }
.pm-mini--header-email .pm-mini__input[type="email"] { width: 190px; }

/* ── Header estilo "fusion": campo con flecha integrada (sin botón aparte) ── */

.pm-mini--fusion {
	position: relative;
	display: inline-block;
}
.pm-mini__input--fusion {
	width: 200px;
	padding-right: 46px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pm-mini__btn-in {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: var(--pm-violet);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}
.pm-mini__btn-in:hover { background: var(--pm-violet-ink); }

/* ── Header estilo "expandible": texto que se despliega en el campo ── */

.pm-mini--expand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.pm-mini__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* Inter en negrita, explícito para que el tema del sitio no lo pise. */
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 700;
	font-size: 16px; /* mismo tamaño que los ítems del menú del sitio */
	color: var(--pm-ink);
	cursor: pointer;
	white-space: nowrap;
	transition: color .15s;
}
.pm-mini__trigger:hover { color: var(--pm-violet-ink); }
.pm-mini__trigger-ico { flex: 0 0 auto; }
.pm-mini__expand-field {
	position: relative;
	display: inline-block;
	width: 0;
	overflow: hidden;
	transition: width .25s ease;
}
/* Abierto con foco — o si el campo ya tiene algo escrito (no se cierra
   al perder el foco con contenido, gracias a :placeholder-shown). */
.pm-mini--expand:focus-within .pm-mini__expand-field,
.pm-mini--expand:has(.pm-mini__input:not(:placeholder-shown)) .pm-mini__expand-field { width: 185px; }
.pm-mini__expand-field .pm-mini__input { width: 185px; padding-right: 44px; }

/* Variante "reemplazo": al abrirse, el texto disparador se oculta y el
   campo ocupa su lugar — el header no se alarga. */
.pm-mini--swap:focus-within .pm-mini__trigger,
.pm-mini--swap:has(.pm-mini__input:not(:placeholder-shown)) .pm-mini__trigger { display: none; }

/* ── Home: sección destacada ── */

.pm-mini--home {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #281449 0%, #3A1D6B 58%, #5B2FD6 100%) #281449;
	border-radius: 24px;
	padding: 52px 24px;
	text-align: center;
}
.pm-mini__deco { position: absolute; inset: 0; pointer-events: none; }
.pm-mini__deco::before, .pm-mini__deco::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 24px solid rgba(117, 68, 255, 0.14);
	box-shadow: 0 0 0 42px rgba(117, 68, 255, 0.05);
}
.pm-mini__deco::before { width: 300px; height: 300px; top: -150px; right: -100px; }
.pm-mini__deco::after { width: 230px; height: 230px; bottom: -130px; left: -100px; }
.pm-mini__home-inner { position: relative; max-width: 560px; margin: 0 auto; }

.pm-mini__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #cfe4f5;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.pm-mini__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #66E3B0; }

.pm-mini__title {
	margin: 16px 0 10px;
	font-family: var(--pm-display);
	font-weight: 700;
	font-size: clamp(24px, 4.4vw, 36px);
	line-height: 1.15;
	color: #fff;
}
.pm-mini__sub { margin: 0 0 22px; color: #C9BFE4; font-size: 15.5px; }

.pm-mini__row {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.pm-mini__input--lg {
	flex: 1 1 200px;
	max-width: 300px;
	padding: 14px 18px;
	font-size: 16px;
	border-color: transparent;
}
.pm-mini__btn--lg { padding: 14px 26px; font-size: 16px; }

.pm-mini__hint { margin: 14px 0 0; color: rgba(201, 191, 228, 0.75); font-size: 12.5px; }

/* ── Footer: recuadro oscuro compacto ── */

.pm-mini--footer {
	background: var(--pm-ink);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 20px;
	max-width: 340px;
}
.pm-mini__footer-title {
	margin: 0 0 4px;
	font-family: var(--pm-display);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}
.pm-mini__footer-sub { margin: 0 0 14px; color: #C9BFE4; font-size: 13px; }
.pm-mini--footer .pm-mini__row { justify-content: flex-start; flex-wrap: nowrap; }

/* ── Footer estilo "banda": ancho completo, texto + formulario en fila ── */

.pm-mini--banda {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 36px;
	width: 100%;
}
.pm-mini__banda-text { flex: 1 1 260px; min-width: 240px; }
.pm-mini__banda-title {
	margin: 0 0 5px;
	font-family: var(--pm-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--pm-ink);
}
.pm-mini__banda-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pm-muted); }
.pm-mini__banda-form {
	flex: 1 1 320px;
	justify-content: flex-end;
}
.pm-mini__banda-form .pm-mini__input { flex: 1 1 150px; max-width: 240px; padding: 12px 16px; }
.pm-mini__banda-form .pm-mini__btn { padding: 12px 22px; }
@media (max-width: 560px) {
	.pm-mini__banda-form { justify-content: stretch; flex-direction: column; align-items: stretch; }
	.pm-mini__banda-form .pm-mini__input { max-width: none; }
}

/* Tema oscuro de la banda (para footers con fondo oscuro) */
.pm-mini--banda-oscuro .pm-mini__banda-title { color: #fff; }
.pm-mini--banda-oscuro .pm-mini__banda-sub { color: #C9BFE4; }

/* ── Footer estilo "transparente": SIN caja, hereda el fondo y se adapta
   al ancho del contenedor — angosto: apilado; ancho: en línea. ── */

.pm-mini--footer-trans { width: 100%; }
.pm-mini__trans-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.pm-mini__trans-row .pm-mini__input { flex: 1 1 200px; }
.pm-mini__trans-row .pm-mini__btn { flex: 0 0 auto; }
.pm-mini--footer-trans .pm-mini__footer-title { color: var(--pm-ink); }
.pm-mini--footer-trans .pm-mini__footer-sub { color: var(--pm-muted); }
.pm-mini--trans-oscuro .pm-mini__footer-title { color: #fff; }
.pm-mini--trans-oscuro .pm-mini__footer-sub { color: #C9BFE4; }
.pm-mini__row--stack { flex-direction: column; align-items: stretch; }
.pm-mini__row--stack .pm-mini__btn { width: 100%; }
.pm-mini__input--dark {
	flex: 1 1 auto;
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}
.pm-mini__input--dark::placeholder { color: rgba(201, 191, 228, 0.6); }

/* ── Blindaje de hovers contra el hover global del tema ── */
.pm-mini .pm-mini__btn:hover,
.pm-mini .pm-mini__btn-in:hover { background: var(--pm-violet-ink) !important; color: #fff !important; }
.pm-mini .pm-mini__trigger:hover { color: var(--pm-violet-ink) !important; }
.pm-mini .pm-mini__input:hover { border-color: var(--pm-violet); }

/* Blindaje del foco en los mini-widgets (mismo criterio) */
.pm-mini button:focus, .pm-mini button:focus-visible, .pm-mini button:active {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(117, 68, 255, 0.22) !important;
	background: var(--pm-violet) !important;
	color: #fff !important;
}


/* ── Blindaje del input contra los estilos de campos del tema:
   pill real (como el botón Agendar), borde y tipografía propios. ── */
.pm-mini .pm-mini__input {
	border-radius: 999px !important;
	border: 1.5px solid var(--pm-line) !important;
	background: #fff !important;
	color: var(--pm-ink) !important;
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
	box-shadow: none !important;
}
.pm-mini .pm-mini__input:focus {
	border-color: var(--pm-violet) !important;
	box-shadow: 0 0 0 4px rgba(117, 68, 255, 0.15) !important;
	outline: none !important;
}
.pm-mini .pm-mini__input--dark {
	background: rgba(255, 255, 255, 0.07) !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
	color: #fff !important;
}

/* ── Opción caja="transparente": el campo hereda el fondo del header ── */
.pm-mini--caja-trans .pm-mini__input {
	background: transparent !important;
	border-color: rgba(40, 20, 73, 0.30) !important;
}
.pm-mini--caja-trans .pm-mini__input:focus {
	background: transparent !important;
	border-color: var(--pm-violet) !important;
}
.pm-mini--caja-trans .pm-mini__input::placeholder { color: rgba(40, 20, 73, 0.45); }
