/* ==========================================================================
   MOTOR: faq  (preguntas frecuentes en acordeón)
   Clases (Avanzado → Clases CSS):
     nx-pregunta              contenedor de cada pregunta (+ is-open en la que inicia abierta)
     nx-pregunta__titulo      widget Encabezado con la pregunta
     nx-pregunta__respuesta   widget Editor de texto con la respuesta
   Las respuestas siguen en el HTML aunque estén cerradas: buscadores y agentes de IA las leen.
   ========================================================================== */
.nx-pregunta { border-top: 1px solid var(--nx-borde); }
.nx-pregunta:last-child { border-bottom: 1px solid var(--nx-borde); }

.nx-pregunta__titulo { position: relative; cursor: pointer; }
.nx-pregunta__titulo .elementor-heading-title {
	padding: 20px 48px 20px 0;
	color: var(--e-global-color-secondary);
	transition: color .2s ease;
}
.nx-pregunta__titulo:hover .elementor-heading-title { color: var(--e-global-color-primary); }

/* Signo + que se vuelve − */
.nx-pregunta__titulo::before,
.nx-pregunta__titulo::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--e-global-color-primary);
	transition: transform .35s var(--nx-ease), opacity .3s ease;
}
.nx-pregunta__titulo::after { transform: rotate(90deg); }
.nx-pregunta.is-open .nx-pregunta__titulo::after { transform: rotate(0); opacity: 0; }

/* Respuesta */
.nx-pregunta__respuesta {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .45s var(--nx-ease), opacity .3s ease, padding .3s ease;
}
.nx-pregunta.is-open .nx-pregunta__respuesta {
	max-height: 40em;
	opacity: 1;
	padding-bottom: 22px;
}
.nx-pregunta__respuesta p:last-child,
.nx-pregunta__respuesta ul:last-child { margin-bottom: 0; }

/* En el editor de Elementor todas las respuestas se ven abiertas */
.elementor-editor-active .nx-pregunta__respuesta { max-height: none; opacity: 1; }

/* Pantallas bajas y celular: preguntas más compactas */
@media (max-height: 760px), (max-width: 767px) {
	.nx-pregunta__titulo .elementor-heading-title { padding: 14px 40px 14px 0; font-size: 16px !important; }
}

/* Contactos junto a las preguntas (igual que en nextormovil.mx) */
.nx-fqk { max-width: 380px; padding: 18px; border-radius: 18px; background: rgba(17, 17, 17, .04); font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; box-sizing: border-box; margin-top: 10px !important; }
.nx-fqk * { box-sizing: border-box; }
.nx-fqk__top { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #111; line-height: 1.3; }
.nx-fqk__top small { display: block; font-size: 13.5px; font-weight: 300; color: #4A4A4A; margin-top: 2px; }
.nx-fqk__ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: #EEF2FB; color: #2F6FE4; display: flex; align-items: center; justify-content: center; }
.nx-fqk__ic svg { width: 20px; height: 20px; display: block; }
.nx-fqk__ct { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.nx-fqk a.nx-fqk__c { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(17, 17, 17, .1); line-height: 1.25; transition: border-color .2s, transform .2s; text-decoration: none !important; color: #111 !important; }
.nx-fqk a.nx-fqk__c:hover { border-color: #2F6FE4; transform: translateY(-1px); }
.nx-fqk__c .nx-fqk__ic { width: 32px; height: 32px; border-radius: 9px; }
.nx-fqk__c .nx-fqk__ic svg { width: 17px; height: 17px; }
.nx-fqk__c .wa { background: rgba(37, 211, 102, .12); color: #1A9E4B; }
.nx-fqk__c > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.nx-fqk__c small { font-size: 12px; font-weight: 400; color: #4A4A4A; }
.nx-fqk__c b { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-height: 760px) and (min-width: 1025px) {
	.nx-fqk { padding: 14px; }
	.nx-fqk__ct { margin-top: 10px; }
	.nx-fqk a.nx-fqk__c { padding: 8px 12px; }
}
