/*
 * Ventana «Solicitar demo gratis» (plugin tucine-demo). Misma paleta que el
 * resto de la web. Todo con `.tcdm` delante y !important en campos y botones:
 * el tema y Elementor ponen bordes, radios y colores a todos los inputs y
 * botones de la página.
 */

html.tcdm-abierta {
	overflow: hidden;
}

.tcdm {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #b4b4b4;
	font-size: 15px;
	line-height: 1.55;
}

.tcdm[hidden] {
	display: none;
}

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

.tcdm .tcdm-fondo {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .72);
	backdrop-filter: blur(3px);
}

.tcdm .tcdm-caja {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	/* dvh: la altura que de verdad se ve. En el iPhone 100vh incluye lo que
	   tapan las barras de Safari y la parte de arriba (con la ✕) quedaba
	   fuera de alcance (13/10/2026, JC con un iPhone 15). */
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 32px 30px 28px;
	border: 1px solid #2c2c2c;
	border-radius: 20px;
	background: #1a1a1a;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.tcdm .tcdm-cerrar {
	/* Pegada arriba aunque se desplace la lista de equipos (sticky + float:
	   no ocupa un renglón y el título fluye a su lado). */
	position: sticky;
	top: 0;
	z-index: 3;
	float: right;
	margin: -18px -16px 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border: 1px solid #2c2c2c !important;
	border-radius: 50% !important;
	background: #232323 !important;
	color: #fff !important;
	cursor: pointer;
}

.tcdm .tcdm-cerrar:hover {
	border-color: #ff5a19 !important;
}

.tcdm .tcdm-antetitulo {
	margin: 0 0 6px;
	color: #ff5a19;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tcdm h2.tcdm-titulo {
	margin: 0 0 18px;
	padding-right: 36px;
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
}

/* ── Los pasos ────────────────────────────────────────────────────────── */

.tcdm .tcdm-pasos {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.tcdm .tcdm-pasos li {
	display: flex;
	gap: 12px;
	margin: 0 0 12px;
}

.tcdm .tcdm-pasos li > span {
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 36px;
	margin-top: 1px;
	border-radius: 50%;
	background: #ff5a19;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.tcdm .tcdm-pasos p {
	margin: 0;
	color: #cfcfcf;
	font-size: 15px;
}

.tcdm .tcdm-pasos strong {
	color: #fff;
}

/* ── El aviso (errores que se corrigen en el formulario) ──────────────── */

.tcdm .tcdm-aviso {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 90, 25, .5);
	border-radius: 12px;
	background: rgba(255, 90, 25, .1);
	color: #f0d6cc;
	font-size: 14px;
}

.tcdm .tcdm-aviso[hidden] {
	display: none;
}

.tcdm .tcdm-aviso strong {
	color: #fff;
}

/* ── El formulario ────────────────────────────────────────────────────── */

.tcdm .tcdm-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.tcdm .tcdm-campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.tcdm .tcdm-campo--codigo {
	grid-column: 1 / -1;
}

.tcdm .tcdm-campo input {
	width: 100%;
	height: 46px;
	padding: 0 14px !important;
	border: 1.5px solid #2c2c2c !important;
	border-radius: 12px !important;
	background: #111 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 16px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tcdm .tcdm-campo input:focus {
	border-color: #ff5a19 !important;
	box-shadow: 0 0 0 4px rgba(255, 90, 25, .15) !important;
}

/* El código, grande y espaciado: es lo que se copia mirando la tele. */
.tcdm .tcdm-campo--codigo input {
	height: 60px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .5em;
	text-align: center;
	text-transform: uppercase;
}

.tcdm .tcdm-trampa {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tcdm .tcdm-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1;
	height: 48px;
	padding: 0 22px !important;
	border: 1px solid #ff5a19 !important;
	border-radius: 12px !important;
	background: #ff5a19 !important;
	color: #fff !important;
	font-family: Heebo, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.tcdm .tcdm-boton:hover,
.tcdm .tcdm-boton:focus-visible {
	border-color: #e84d10 !important;
	background: #e84d10 !important;
}

.tcdm .tcdm-boton--sec {
	border-color: #3a3a3a !important;
	background: transparent !important;
}

.tcdm .tcdm-boton--sec:hover {
	border-color: #fff !important;
	background: transparent !important;
}

.tcdm .tcdm-nota {
	grid-column: 1 / -1;
	margin: 0;
	color: #8a8a8a;
	font-size: 12px;
	text-align: center;
}

/* ── Esperando y resultado ────────────────────────────────────────────── */

.tcdm .tcdm-espera,
.tcdm .tcdm-resultado {
	padding: 18px 0 4px;
	text-align: center;
}

.tcdm .tcdm-espera > i {
	margin-bottom: 14px;
	color: #ff5a19;
	font-size: 34px;
}

.tcdm .tcdm-espera p {
	margin: 0 0 4px;
}

.tcdm .tcdm-espera strong {
	color: #fff;
	font-size: 18px;
}

.tcdm .tcdm-icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 50%;
	font-size: 28px;
}

.tcdm .tcdm-icono.is-ok {
	background: rgba(34, 197, 94, .15);
	color: #22c55e;
}

.tcdm .tcdm-icono.is-aviso {
	background: rgba(255, 90, 25, .15);
	color: #ff5a19;
}

.tcdm .tcdm-resultado h2.tcdm-titulo {
	padding-right: 0;
}

.tcdm .tcdm-mensaje {
	margin: 0 0 22px;
	color: #cfcfcf;
}

.tcdm .tcdm-acciones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 520px) {
	.tcdm {
		align-items: flex-end;
		padding: 0;
	}

	.tcdm .tcdm-caja {
		max-height: 92vh;
		max-height: calc(100dvh - max(16px, env(safe-area-inset-top)));
		padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
		border-radius: 20px 20px 0 0;
	}

	.tcdm .tcdm-cerrar {
		margin: -14px -8px 0 12px;
		width: 40px;
		height: 40px;
	}

	.tcdm .tcdm-form,
	.tcdm .tcdm-acciones {
		grid-template-columns: 1fr;
	}

	.tcdm h2.tcdm-titulo {
		font-size: 22px;
	}
}

/* ── Elegir equipo (sept. 2026) ───────────────────────────────────────── */

.tcdm .tcdm-caja {
	max-width: 620px;
}

.tcdm .tcdm-intro {
	margin: -8px 0 18px;
	color: #b4b4b4;
}

.tcdm .tcdm-equipos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.tcdm button.tcdm-equipo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: auto;
	padding: 16px 8px 12px !important;
	border: 1px solid #2c2c2c !important;
	border-radius: 14px !important;
	background: #232323 !important;
	color: #b4b4b4 !important;
	font-family: inherit;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.tcdm button.tcdm-equipo:hover,
.tcdm button.tcdm-equipo:focus-visible {
	border-color: #ff5a19 !important;
	background: #2a2a2a !important;
}

.tcdm .tcdm-equipo-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 26px;
}

/* El tamaño de cada logo lo da tcdemo_equipos() (misma área para todos). */
.tcdm .tcdm-equipo-logo img {
	display: block;
	width: auto;
	max-width: 118px;
	height: 30px;
	max-height: 34px;
	object-fit: contain;
}

.tcdm .tcdm-equipo-version {
	font-size: 12px;
	line-height: 1.2;
}

.tcdm button.tcdm-volver {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #ff5a19 !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* ── Pasos del tutorial ───────────────────────────────────────────────── */

.tcdm .tcdm-guia {
	margin: 0 0 18px;
}

.tcdm .tcdm-pasos li > div {
	min-width: 0;
}

.tcdm .tcdm-paso-titulo {
	display: block;
	margin-bottom: 2px;
	color: #fff;
}

.tcdm .tcdm-paso-texto,
.tcdm .tcdm-paso-texto p {
	margin: 0;
	color: #cfcfcf;
}

.tcdm .tcdm-paso-texto p + p {
	margin-top: 6px;
}

.tcdm .tcdm-paso-texto a {
	color: #ff5a19;
}

.tcdm .tcdm-paso-imagen {
	display: block;
	width: 100%;
	max-width: 420px;
	margin-top: 8px;
	border-radius: 10px;
}

.tcdm [data-tcdm-solo-codigo][hidden] {
	display: none;
}

/* ── Credenciales de la demo por correo ───────────────────────────────── */

.tcdm .tcdm-credenciales {
	margin: 0 0 20px;
	text-align: left;
}

.tcdm .tcdm-credenciales[hidden] {
	display: none;
}

.tcdm .tcdm-credencial {
	display: grid;
	grid-template-columns: 90px 1fr 36px;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid #2c2c2c;
	border-radius: 12px;
	background: #111;
}

.tcdm .tcdm-credencial span {
	color: #8a8a8a;
	font-size: 13px;
}

.tcdm .tcdm-credencial strong {
	overflow-wrap: anywhere;
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 15px;
}

.tcdm .tcdm-credencial button {
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border: 1px solid #2c2c2c !important;
	border-radius: 10px !important;
	background: #232323 !important;
	color: #fff !important;
	cursor: pointer;
}

.tcdm .tcdm-credencial button:hover {
	border-color: #ff5a19 !important;
}

@media (max-width: 520px) {
	.tcdm .tcdm-equipos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tcdm .tcdm-credencial {
		grid-template-columns: 1fr 36px;
	}

	.tcdm .tcdm-credencial span {
		grid-column: 1 / -1;
	}
}

/* Título de cada guía cuando son dos (instalar Plex, enlazar el equipo). */
.tcdm .tcdm-guia-titulo { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tcdm .tcdm-guia-titulo:first-child { margin-top: 0; }
.tcdm .tcdm-guia-titulo span { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 90, 25, .15); color: #ff5a19; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ── El celular con bandera (13/10/2026) ─────────────────────────────────── */
.tcdm .tcdm-campo--tel label { color: #fff; }
.tcdm .tcdm-tel { position: relative; display: flex; align-items: stretch; }
.tcdm button.tcdm-tel-pais {
	display: inline-flex; align-items: center; gap: 6px; flex: none; height: 46px; margin: 0; padding: 0 10px !important;
	border: 1.5px solid #2c2c2c !important; border-right: 0 !important; border-radius: 12px 0 0 12px !important;
	background: #1d1d1d !important; color: #fff !important; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: none !important;
}
.tcdm button.tcdm-tel-pais i { font-size: 10px; color: #8a8a8a; }
.tcdm .tcdm-tel-bandera { font-size: 18px; line-height: 1; }
.tcdm .tcdm-tel input[type="tel"] { flex: 1; min-width: 0; border-radius: 0 12px 12px 0 !important; }
.tcdm .tcdm-tel:focus-within button.tcdm-tel-pais { border-color: #ff5a19 !important; }
.tcdm .tcdm-tel-lista {
	position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; padding: 8px;
	border: 1px solid #2c2c2c; border-radius: 12px; background: #1d1d1d; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.tcdm .tcdm-tel-lista[hidden] { display: none; }
.tcdm .tcdm-tel-lista input.tcdm-tel-buscar { height: 40px; font-size: 15px; }
.tcdm .tcdm-tel-lista ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.tcdm .tcdm-tel-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.tcdm .tcdm-tel-lista li[aria-selected="true"], .tcdm .tcdm-tel-lista li.is-foco, .tcdm .tcdm-tel-lista li:hover { background: #2a2a2a; }
.tcdm .tcdm-tel-nombre { flex: 1; min-width: 0; }
.tcdm .tcdm-tel-dial { color: #8a8a8a; font-variant-numeric: tabular-nums; }
.tcdm .tcdm-tel-vacio { color: #8a8a8a !important; cursor: default !important; }

.tcdm h2.tcdm-titulo:focus { outline: none; }
