/* ==========================================================================
   MOTOR: pie  (todas las páginas)
   1. Cintillo global de contacto (plantilla "Cintillo contacto Nextor", se inserta con su shortcode)
        nx-cintillo            sección (lleva también nx-seccion)
        nx-cintillo__texto     columna de texto
        nx-cintillo__lead      párrafo
        nx-cintillo__acciones  columna de botones
   2. Pie de página (plantilla de pie de UAE)
        nx-pie                 contenedor negro
        nx-pie__grid           columnas: marca + 4 listas
        nx-pie__col            cada columna (nx-pie__marca la del logo)
        nx-pie__logo           imagen del logo
        nx-pie__texto          descripción
        nx-pie__tel            teléfono
        nx-pie__redes          redes sociales
        nx-pie__titulo         título de columna
        nx-pie__links          lista de enlaces (widget Lista de íconos)
        nx-pie__legal          línea final
   ========================================================================== */

/* 1. Cintillo --------------------------------------------------------------- */
/* Fondo negro, tarjetas inclinadas a la izquierda, texto a la derecha y un brillo de marca abajo */
.e-con.nx-cintillo {
	position: relative;
	overflow: hidden;
	background-color: #000 !important;
	isolation: isolate;
}
.nx-cintillo::after {
	content: "";
	position: absolute; left: -5%; right: -5%; bottom: 0; height: 150px; z-index: -1;
	background: linear-gradient(90deg, #0058BD 0%, #0070EB 22%, #00B4FF 52%, #19C37D 78%, #1A9E4B 100%);
	-webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 22%, rgba(0,0,0,.12) 55%, transparent 100%);
	mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 22%, rgba(0,0,0,.12) 55%, transparent 100%);
	filter: saturate(115%);
	pointer-events: none;
}
.nx-cintillo .nx-antetitulo .elementor-heading-title { color: #6AA8FF; }
.nx-cintillo .nx-titulo-mixto .elementor-heading-title { font-size: clamp(30px, 3.6vw, 52px) !important; line-height: 1.04 !important; }
.nx-cintillo__lead,
.nx-cintillo__lead p { color: #C9CFD9; margin: 0; max-width: 46ch; }
/* softphone: se apoya sobre el brillo de abajo */
.e-con.nx-cintillo__visual { align-self: flex-end !important; align-items: center !important; margin-bottom: calc(var(--nx-espacio) * -1 + 28px) !important; }
.nx-sp {
	position: relative; width: 300px; margin: 0 auto; padding: 18px 20px 22px; border-radius: 38px; color: #fff;
	background: linear-gradient(160deg, rgba(40, 42, 48, .92) 0%, rgba(14, 15, 18, .96) 45%, rgba(6, 6, 8, .98) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .08),
		0 0 0 8px rgba(255, 255, 255, .03), 0 50px 90px -30px rgba(0, 0, 0, .95), 0 0 80px -20px rgba(0, 140, 255, .35);
	transform: rotate(-4deg); transition: transform .8s cubic-bezier(.2,.8,.2,1);
	font-family: Roboto, sans-serif;
}
.e-con.nx-cintillo:hover .nx-sp, .nx-sp:focus-within { transform: rotate(0deg) translateY(-6px); }
.nx-sp__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #A6AEBB; }
.nx-sp__marca { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; }
.nx-sp__marca svg { width: 16px; height: 16px; color: #6AA8FF; }
.nx-sp__estado { display: inline-flex; align-items: center; gap: 6px; }
.nx-sp__estado i { width: 7px; height: 7px; border-radius: 50%; background: #1A9E4B; box-shadow: 0 0 8px #1A9E4B; }
.nx-sp__pantalla { display: grid; gap: 4px; text-align: center; padding: 18px 0 12px; }
.nx-sp__lbl { font-size: 12.5px; color: #A6AEBB; }
.nx-sp__num {
	width: 100%; background: none !important; border: 0 !important; outline: 0; box-shadow: none !important; text-align: center;
	color: #fff !important; font: 300 32px/1.2 Roboto, sans-serif !important; letter-spacing: .04em; padding: 4px 0 !important; caret-color: #00B4FF;
}
.nx-sp__num::placeholder { color: rgba(255, 255, 255, .22); }
.nx-sp__ayuda { font-size: 11.5px; color: #6AA8FF; min-height: 1.2em; }
.nx-sp.is-completo .nx-sp__ayuda { color: #3DDC84; }
.nx-sp.is-lleno .nx-sp__pantalla { animation: nx-sp-tiembla .35s; }
@keyframes nx-sp-tiembla { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.nx-sp__teclado { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 12px 18px; }
.nx-sp__tecla {
	width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
	display: grid; place-content: center; gap: 1px; padding: 0;
	background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .06);
	transition: background .15s, transform .1s;
}
.nx-sp__tecla:hover { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .24), rgba(255, 255, 255, .1)); }
.nx-sp__tecla:active { transform: scale(.93); background: rgba(0, 140, 255, .45); }
.nx-sp__tecla b { font-size: 26px; font-weight: 300; line-height: 1; }
.nx-sp__tecla small { font-size: 9px; letter-spacing: .18em; color: #A6AEBB; }
.nx-sp__borrar { background: none !important; box-shadow: none !important; color: #A6AEBB; }
.nx-sp__borrar svg { width: 24px; height: 24px; }
.nx-sp__llamar {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; margin-top: 18px; padding: 15px; border: 0; border-radius: 999px; cursor: pointer;
	color: #fff; font: 500 15px/1 Roboto, sans-serif;
	background: linear-gradient(180deg, #2BC164, #1A9E4B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -12px rgba(26, 158, 75, .9);
	transition: opacity .3s, filter .3s;
}
.nx-sp__llamar svg { width: 18px; height: 18px; }
.nx-sp__llamar:disabled { opacity: .35; cursor: not-allowed; filter: grayscale(.4); }
.nx-sp.is-llamando .nx-sp__llamar::before, .nx-sp.is-llamando .nx-sp__llamar::after {
	content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid #2BC164; animation: nx-sp-onda 1.2s ease-out infinite;
}
.nx-sp.is-llamando .nx-sp__llamar::after { animation-delay: .6s; }
@keyframes nx-sp-onda { from { transform: scale(1); opacity: .8; } to { transform: scale(1.25, 1.6); opacity: 0; } }
.nx-sp__listo {
	position: absolute; inset: 0; border-radius: 38px; padding: 34px 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center;
	background: linear-gradient(160deg, rgba(10, 60, 140, .96), rgba(6, 8, 14, .98) 70%);
	animation: nx-entra .5s cubic-bezier(.2,.8,.2,1) both;
}
.nx-sp__listo[hidden] { display: none; }
.nx-sp__listo-tit { margin: 0; font-size: 26px; font-weight: 700; }
.nx-sp__listo-txt { margin: 0; color: #C9CFD9; font-size: 15px; line-height: 1.5; }
.nx-sp__listo-txt b { color: #fff; white-space: nowrap; }
.nx-sp__confirmar {
	display: block; padding: 14px; border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 500;
	background: linear-gradient(180deg, #2BC164, #1A9E4B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nx-sp__otro { background: none; border: 0; color: #A6AEBB; font-size: 13px; cursor: pointer; text-decoration: underline; }
/* Los botones del softphone no toman el estilo global de botones del sitio */
.nx-sp button.nx-sp__tecla {
	background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)) !important;
	color: #fff !important; border: 0 !important; border-radius: 50% !important; padding: 0 !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .06) !important;
	font-family: Roboto, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
}
.nx-sp button.nx-sp__tecla:hover { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .24), rgba(255, 255, 255, .1)) !important; }
.nx-sp button.nx-sp__tecla:active { background: rgba(0, 140, 255, .45) !important; }
.nx-sp button.nx-sp__borrar { background: none !important; box-shadow: none !important; color: #A6AEBB !important; }
.nx-sp button.nx-sp__llamar {
	background: linear-gradient(180deg, #2BC164, #1A9E4B) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	padding: 15px !important; font: 500 15px/1 Roboto, sans-serif !important; text-transform: none !important;
}
.nx-sp button.nx-sp__otro { background: none !important; border: 0 !important; color: #A6AEBB !important; padding: 4px !important; box-shadow: none !important; font: 400 13px/1.2 Roboto, sans-serif !important; text-transform: none !important; }
@keyframes nx-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-height: 760px) and (min-width: 1025px) {
	.nx-sp { padding: 14px 18px 18px; }
	.nx-sp__pantalla { padding: 10px 0 8px; }
	.nx-sp__num { font-size: 26px !important; }
	.nx-sp__teclado { grid-template-columns: repeat(3, 52px); gap: 8px 16px; }
	.nx-sp__tecla { width: 52px; height: 52px; }
	.nx-sp__tecla small { display: none; }
	.nx-sp button.nx-sp__llamar { margin-top: 12px; padding: 12px !important; }
}
/* píldora blanca con el teléfono y el botón */
.e-con.nx-cintillo__pildora {
	background: #fff;
	border-radius: 999px;
	padding: 6px 6px 6px 18px !important;
	width: min(100%, 520px) !important;
	flex-wrap: nowrap !important;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 24px 50px -24px rgba(0, 112, 235, .7);
}
.elementor-widget-button.nx-cintillo__tel:not(.nx-enlace) .elementor-button {
	background: none !important; background-image: none !important; box-shadow: none !important; border: 0 !important;
	color: #0B0B0D !important; padding: 10px 6px !important; font-size: 17px; font-weight: 500; letter-spacing: .02em;
}
.nx-cintillo__tel .elementor-button-icon { color: #0070EB; }
.nx-cintillo__cta .elementor-button { padding: 14px 24px !important; border-radius: 999px !important; font-size: 15px; white-space: nowrap; }
@media (max-width: 1024px) {
	.e-con.nx-cintillo__visual { order: 2; align-self: center !important; margin-bottom: 0 !important; }
}
@media (max-width: 767px) {
	.e-con.nx-cintillo__visual { display: none !important; }
	.e-con.nx-cintillo__pildora { flex-direction: column !important; flex-wrap: nowrap !important; align-items: flex-start !important; width: auto !important; max-width: 100%; border-radius: 22px; padding: 10px 10px 10px 14px !important; gap: 6px !important; }
	.nx-cintillo__pildora .elementor-widget-button { width: auto; }
	.nx-cintillo__pildora .elementor-button { width: auto; }
}

/* 2. Pie --------------------------------------------------------------------- */
.e-con.nx-pie {
	--padding-top: clamp(56px, 9vh, 96px);
	--padding-bottom: 32px;
	--padding-left: var(--nx-lado);
	--padding-right: var(--nx-lado);
	border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Columnas: marca más ancha + 4 listas */
.e-con.nx-pie__grid {
	display: grid !important;
	grid-template-columns: 1.5fr 1fr 1.1fr 1.15fr 1.15fr;
	gap: 40px 32px !important;
	align-items: start;
}
.nx-pie__grid > .e-con { --width: auto; width: auto; min-width: 0; }

.nx-pie__logo img { width: auto !important; height: 34px; }
.nx-pie__texto,
.nx-pie__texto p { color: #9CA3AF; font-size: 15px; font-weight: 300; line-height: 1.65; margin: 0; max-width: 36ch; }

.nx-pie__tel .elementor-button { color: #fff !important; fill: #fff !important; font-size: 17px !important; font-weight: 500; }
.nx-pie__tel .elementor-button-icon { color: #6AA8FF; fill: #6AA8FF; }

/* Redes */
.nx-pie__redes .elementor-social-icon {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, .22);
	transition: background-color .25s ease, border-color .25s ease;
}
.nx-pie__redes .elementor-social-icon i,
.nx-pie__redes .elementor-social-icon svg { color: #fff !important; fill: #fff !important; }
.nx-pie__redes .elementor-social-icon:hover {
	background: var(--e-global-color-primary) !important;
	border-color: var(--e-global-color-primary);
}

/* Títulos y enlaces */
.nx-pie__titulo .elementor-heading-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff !important;
}
.nx-pie__links .elementor-icon-list-icon { display: none; }
.nx-pie__links .elementor-icon-list-item > a { display: inline-flex; }
.nx-pie__links .elementor-icon-list-text {
	position: relative;
	color: #9CA3AF !important;
	font-size: 14.5px;
	font-weight: 300;
	padding-left: 0 !important;
	transition: color .2s ease, transform .3s var(--nx-ease);
}
.nx-pie__links a:hover .elementor-icon-list-text { color: #fff !important; transform: translateX(3px); }

/* Línea final */
.nx-pie__legal {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 24px !important;
}
.nx-pie__legal p { margin: 0; font-size: 12.5px; color: #6B7280; }

/* Tableta y celular */
@media (max-width: 1024px) {
	.e-con.nx-pie__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nx-pie__grid > .nx-pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.e-con.nx-pie__grid { grid-template-columns: 1fr; gap: 32px !important; }
	.nx-cintillo__acciones .elementor-button { padding: 14px 22px !important; }
}

/* Segundo botón del softphone: la persona nos llama */
.nx-sp a.nx-sp__marcar {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px;
	border-radius: 999px; color: #fff !important; text-decoration: none; font: 500 14px/1 Roboto, sans-serif;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background .25s, box-shadow .25s;
}
.nx-sp a.nx-sp__marcar:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.nx-sp a.nx-sp__marcar svg { width: 16px; height: 16px; color: #6AA8FF; }
@media (max-height: 760px) and (min-width: 1025px) { .nx-sp a.nx-sp__marcar { margin-top: 8px; padding: 10px; } }
/* Celular: el softphone sí se muestra, más compacto y derecho */
@media (max-width: 767px) {
	.e-con.nx-cintillo__visual { display: flex !important; width: 100% !important; }
	.nx-sp { transform: none !important; width: 100%; max-width: 330px; padding: 14px 16px 16px; border-radius: 30px; }
	.nx-sp__listo { border-radius: 30px; }
	.nx-sp__pantalla { padding: 10px 0 8px; }
	.nx-sp__num { font-size: 26px !important; }
	.nx-sp__teclado { grid-template-columns: repeat(3, 56px); gap: 8px 22px; }
	.nx-sp__tecla, .nx-sp button.nx-sp__tecla { width: 56px; height: 56px; }
	.nx-sp__tecla small { display: none; }
	.nx-sp button.nx-sp__llamar { margin-top: 12px; padding: 13px !important; }
}
@media (max-width: 767px) {
	.nx-cintillo__lead { display: none; }
	.nx-sp__teclado { grid-template-columns: repeat(3, 52px); gap: 6px 22px; }
	.nx-sp__tecla, .nx-sp button.nx-sp__tecla { width: 52px; height: 52px; }
	.nx-sp__tecla b { font-size: 22px; }
	.nx-sp__lbl { font-size: 12px; }
}

/* Cintillo con foto: la foto ocupa la mitad derecha a sangre y se funde en el negro hacia la izquierda, donde va el texto.
   La orilla de la foto se desvanece con máscara (sin corte visible). El brillo de abajo se retira para no competir con la foto. */
.nx-cintillo::after { display: none; }
.e-con.nx-cintillo::before {
	content: "" !important; position: absolute; inset: 0 0 0 auto !important; width: 64% !important; height: auto !important; z-index: -1; pointer-events: none; opacity: 1 !important;
	background:
		linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 32%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.25) 100%),
		linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%),
		url('../../../../uploads/2026/11/cintillo-contacto-asesora.webp') 50% 30% / cover no-repeat;
	filter: grayscale(.2) saturate(.85);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.e-con.nx-cintillo__texto { text-align: left; align-items: flex-start !important; width: min(600px, 52%) !important; max-width: 600px; }
.nx-cintillo .nx-titulo-mixto .elementor-heading-title { text-align: left; text-wrap: balance; font-size: clamp(30px, 3.4vw, 46px) !important; }
.nx-cintillo__lead, .nx-cintillo__lead p { margin-left: 0; margin-right: 0; text-align: left; max-width: 44ch; }
@media (max-width: 1024px) {
	.e-con.nx-cintillo::before { width: 100% !important; opacity: .45 !important; -webkit-mask-image: none; mask-image: none; background-position: 0 0, 0 0, 78% 30% !important; }
	.e-con.nx-cintillo__texto { width: 100% !important; }
}
@media (max-width: 767px) { .nx-cintillo__lead { display: block !important; } }

/* Filas deslizables: una flecha redonda en la orilla derecha (pie.js), solo en celular y tableta */
.nx-orilla { display: none; }
.is-arrastrando { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.is-arrastrando * { pointer-events: none; }
@media (max-width: 1024px) {
	button.nx-orilla {
		display: grid; place-items: center; position: absolute; left: 0; z-index: 5;
		width: 50px; height: 50px; margin-top: -25px; padding: 0 !important; border-radius: 50% !important;
		background: rgba(255, 255, 255, .94) !important; color: #0B0B0D !important; border: 0 !important;
		box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(11, 11, 13, .06) !important;
		-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
		transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s;
	}
	button.nx-orilla[hidden] { display: none; }
	button.nx-orilla svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
	button.nx-orilla.is-regresa svg { transform: rotate(180deg); }
	button.nx-orilla:active { transform: scale(.94); }
	/* tiras de pestañas: la tira se desvanece en la orilla con más pestañas y encima va una flecha chica */
	button.nx-orilla--chica { width: 40px; height: 40px; margin-top: -20px; }
	button.nx-orilla--chica svg { width: 19px; height: 19px; }
	.nx-tira.is-mas-der { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 6px)); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 6px)); }
	.nx-tira.is-mas-izq { -webkit-mask-image: linear-gradient(90deg, transparent 6px, #000 48px); mask-image: linear-gradient(90deg, transparent 6px, #000 48px); }
	.nx-tira.is-mas-der.is-mas-izq { -webkit-mask-image: linear-gradient(90deg, transparent 6px, #000 48px, #000 calc(100% - 64px), transparent calc(100% - 6px)); mask-image: linear-gradient(90deg, transparent 6px, #000 48px, #000 calc(100% - 64px), transparent calc(100% - 6px)); }
	.nx-ctl + .nx-flechas, .nx-pi__grid + .nx-flechas, .nx-orilla + .nx-flechas, .nx-pi__grid ~ .nx-flechas { display: none !important; }
}

/* Botones formato 2: la cápsula blanca del cintillo toma la misma forma (izquierda redondeada, derecha recta)
   y el botón verde llena su alto a la derecha */
.e-con.nx-cintillo__pildora { border-radius: 14px 0 0 14px !important; padding: 0 0 0 18px !important; overflow: hidden; align-items: stretch !important; }
.nx-cintillo__pildora .nx-cintillo__tel { align-self: center; }
.nx-cintillo__cta .elementor-button { border-radius: 0 !important; padding: 0 0 0 22px !important; min-height: 56px !important; font-size: 15px; height: 100%; }
.nx-cintillo__cta, .nx-cintillo__cta .elementor-widget-container { height: 100%; }
@media (max-width: 767px) {
	.e-con.nx-cintillo__pildora { border-radius: 14px 0 0 14px !important; padding: 8px 0 0 14px !important; gap: 4px !important; }
	.nx-cintillo__cta .elementor-button { border-radius: 10px 0 0 0 !important; }
}

/* Cintillo · opción D: solo el botón verde y el teléfono como texto chico debajo */
.e-con.nx-cintillo__pildora { flex-direction: column !important; align-items: flex-start !important; background: none !important; box-shadow: none !important;
	padding: 0 !important; gap: 14px !important; border-radius: 0 !important; overflow: visible !important; width: auto !important; }
.nx-cintillo__cta { order: -1; }
.nx-cintillo__cta, .nx-cintillo__cta .elementor-widget-container { height: auto; }
.elementor-widget-button.nx-cintillo__cta:not(.nx-enlace) .elementor-button { border-radius: 12px 0 0 12px !important; min-height: 52px !important; height: auto !important; padding: 0 0 0 22px !important; }
.elementor-widget-button.nx-cintillo__tel:not(.nx-enlace) .elementor-button { color: #C9CFD9 !important; padding: 0 !important; font-size: 15px !important; font-weight: 400 !important; }
.elementor-widget-button.nx-cintillo__tel:not(.nx-enlace) .elementor-button:hover { color: #fff !important; }
@media (max-width: 767px) { .e-con.nx-cintillo__pildora { padding: 0 !important; gap: 12px !important; border-radius: 0 !important; } }
