/* Nova Núvia — Asesora de silueta.
   Estilo sobrio que hereda la tipografía del tema. Todo el color sale de
   variables: para adaptarlo a la marca basta redefinirlas en el tema. */

.nn-silueta {
	--nn-acento: #a3866a;
	--nn-acento-oscuro: #7d6449;
	--nn-tinta: #2b2622;
	--nn-fondo: #faf7f1;
	--nn-papel: #ffffff;
	--nn-linea: rgba( 43, 38, 34, 0.14 );
	--nn-suave: rgba( 163, 134, 106, 0.10 );
	--nn-wa: #1f9d63;
}

.nn-silueta-lanzador {
	margin: 1em 0;
}

.nn-silueta-abrir {
	cursor: pointer;
}

/* Botón de la ficha de producto: magenta de marca, por encima del estilo del tema. */
.nn-silueta-lanzador .nn-silueta-abrir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 22px;
	border: 0;
	border-radius: 0;
	background: var(--nn-acento, #d73a94);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.2;
	text-decoration: none;
	transition: background .18s ease;
}

.nn-silueta-lanzador .nn-silueta-abrir:hover,
.nn-silueta-lanzador .nn-silueta-abrir:focus {
	background: var(--nn-acento-oscuro, #a72671);
	color: #fff;
}

.nn-silueta-lanzador .nn-silueta-abrir:focus-visible {
	outline: 2px solid var(--nn-acento, #d73a94);
	outline-offset: 2px;
}

/* Panel modal */
.nn-silueta-panel {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba( 38, 32, 26, 0.42 );
	padding: 0;
}

body.nn-silueta-abierto {
	overflow: hidden;
}

.nn-silueta-panel .nn-caja,
.nn-silueta-inline .nn-caja {
	--nn-acento: #a3866a;
	--nn-acento-oscuro: #7d6449;
	--nn-tinta: #2b2622;
	--nn-fondo: #faf7f1;
	--nn-papel: #ffffff;
	--nn-linea: rgba( 43, 38, 34, 0.14 );
	--nn-suave: rgba( 163, 134, 106, 0.10 );
	--nn-wa: #1f9d63;

	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 460px;
	max-height: 92vh;
	background: var( --nn-fondo );
	color: var( --nn-tinta );
	border: 1px solid var( --nn-linea );
	box-shadow: 0 -8px 40px rgba( 38, 32, 26, 0.16 );
	font-size: 15px;
	line-height: 1.5;
}

.nn-silueta-inline .nn-caja {
	max-width: 520px;
	height: 640px;
	margin: 0 auto;
	box-shadow: none;
}

@media ( min-width: 640px ) {
	.nn-silueta-panel {
		align-items: center;
		padding: 24px;
	}

	.nn-silueta-panel .nn-caja {
		max-height: 88vh;
		height: 720px;
	}
}

/* Cabecera */
.nn-cab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	border-bottom: 1px solid var( --nn-linea );
	background: var( --nn-papel );
	flex: none;
}

.nn-ident {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	margin-right: auto;
}

.nn-titulo {
	font-size: 15px;
	letter-spacing: 0.01em;
}

.nn-estado {
	font-size: 11px;
	opacity: 0.55;
}

.nn-txtbtn,
.nn-cerrar {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 4px 6px;
}

.nn-txtbtn {
	font-size: 12px;
	opacity: 0.6;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nn-txtbtn:hover {
	opacity: 1;
}

.nn-cerrar {
	font-size: 24px;
	line-height: 1;
	opacity: 0.5;
}

.nn-cerrar:hover {
	opacity: 1;
}

.nn-txtbtn:focus-visible,
.nn-cerrar:focus-visible,
.nn-chip:focus-visible,
.nn-enviar:focus-visible,
.nn-input:focus-visible,
.nn-btn-wa:focus-visible,
.nn-btn-ficha:focus-visible {
	outline: 2px solid var( --nn-acento );
	outline-offset: 2px;
}

/* Hilo */
.nn-hilo {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	-webkit-overflow-scrolling: touch;
}

.nn-msg {
	display: flex;
}

.nn-msg.nn-yo {
	justify-content: flex-end;
}

.nn-msg-ancho .nn-ficha,
.nn-msg-ancho .nn-vestidos,
.nn-msg-ancho .nn-wa {
	width: 100%;
}

.nn-msg-ancho {
	display: block;
}

.nn-burbuja {
	max-width: 86%;
	padding: 10px 13px;
	border: 1px solid var( --nn-linea );
	background: var( --nn-papel );
	font-size: 14.5px;
	animation: nn-in 0.22s ease both;
}

.nn-yo .nn-burbuja {
	background: var( --nn-acento );
	border-color: var( --nn-acento );
	color: #fff;
	max-width: 82%;
}

.nn-typing .nn-burbuja {
	opacity: 0.6;
	font-size: 12px;
	letter-spacing: 0.08em;
	border-style: dashed;
}

.nn-enlace-priv {
	font-size: 12.5px;
	color: var( --nn-acento-oscuro );
}

@keyframes nn-in {
	from {
		opacity: 0;
		transform: translateY( 5px );
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Ficha de silueta */
.nn-ficha {
	border: 1px solid var( --nn-linea );
	background: var( --nn-papel );
	padding: 14px;
	animation: nn-in 0.24s ease both;
}

.nn-ficha-titulo {
	display: block;
	font-size: 19px;
	line-height: 1.15;
	margin-bottom: 4px;
}

.nn-ficha-texto {
	margin: 0;
	font-size: 13px;
	opacity: 0.75;
}

.nn-ficha-datos {
	display: flex;
	gap: 22px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var( --nn-linea );
}

.nn-dato {
	display: flex;
	flex-direction: column;
}

.nn-dato-label {
	font-size: 10px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	opacity: 0.5;
}

.nn-dato-valor {
	font-size: 14px;
}

.nn-ficha-nota {
	margin: 10px 0 0;
	padding-top: 9px;
	border-top: 1px solid var( --nn-linea );
	font-size: 12.5px;
	line-height: 1.45;
	color: var( --nn-acento-oscuro );
	text-wrap: pretty;
}

/* Vestidos */
.nn-vestidos {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nn-vestido {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 12px;
	padding: 11px;
	border: 1px solid var( --nn-linea );
	background: var( --nn-papel );
	animation: nn-in 0.24s ease both;
}

.nn-vestido-img {
	display: block;
	background: var( --nn-suave );
	min-height: 124px;
}

.nn-vestido-img img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 150px;
	object-fit: cover;
}

.nn-vestido-cuerpo {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.nn-vestido-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.nn-encaje {
	font-size: 11px;
	padding: 2px 8px;
	background: var( --nn-suave );
	color: var( --nn-acento-oscuro );
}

.nn-corte {
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.5;
}

.nn-vestido-titulo {
	font-size: 15px;
	line-height: 1.2;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var( --nn-suave );
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nn-vestido-titulo:hover {
	color: var( --nn-acento-oscuro );
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nn-vestido-datos {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.nn-precio {
	font-size: 13.5px;
}

.nn-talla-marca {
	font-size: 11.5px;
	color: var( --nn-acento-oscuro );
}

.nn-vestido-porque {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	opacity: 0.8;
	text-wrap: pretty;
}

.nn-vestido-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.nn-btn-wa,
.nn-btn-ficha {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid var( --nn-wa );
	background: var( --nn-wa );
	color: #fff;
}

.nn-btn-wa:hover {
	background: #187e50;
	border-color: #187e50;
	color: #fff;
}

.nn-btn-ficha {
	background: transparent;
	border-color: var( --nn-acento );
	color: var( --nn-acento-oscuro );
}

.nn-btn-ficha::after {
	content: '\2197';
	margin-left: 6px;
	font-size: 12px;
}

.nn-btn-ficha:hover {
	background: var( --nn-suave );
	border-color: var( --nn-acento-oscuro );
	color: var( --nn-acento-oscuro );
}

/* Mensaje de WhatsApp */
.nn-wa {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 14px;
	border: 1px solid var( --nn-linea );
	background: var( --nn-suave );
	animation: nn-in 0.24s ease both;
}

.nn-wa-cab {
	font-size: 10.5px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var( --nn-acento-oscuro );
}

.nn-wa-texto {
	margin: 0;
	font-family: inherit;
	font-size: 12.5px;
	line-height: 1.5;
	white-space: pre-wrap;
	opacity: 0.85;
}

.nn-btn-wa-grande {
	width: 100%;
	min-height: 46px;
	font-size: 15px;
}

.nn-wa-nota {
	font-size: 10.5px;
	opacity: 0.55;
}

/* Pie */
.nn-pie {
	flex: none;
	border-top: 1px solid var( --nn-linea );
	padding: 10px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	background: var( --nn-papel );
}

.nn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nn-chip {
	font: inherit;
	font-size: 12.5px;
	padding: 7px 11px;
	min-height: 36px;
	background: var( --nn-papel );
	border: 1px solid var( --nn-linea );
	color: inherit;
	cursor: pointer;
}

.nn-chip:hover {
	background: var( --nn-suave );
}

.nn-fila {
	display: flex;
	gap: 8px;
}

.nn-input {
	flex: 1;
	min-height: 44px;
	padding: 8px 11px;
	font: inherit;
	font-size: 15px;
	color: var( --nn-tinta );
	background: var( --nn-papel );
	border: 1px solid var( --nn-linea );
	border-radius: 0;
}

.nn-input:hover {
	border-color: rgba( 43, 38, 34, 0.4 );
}

.nn-enviar {
	min-height: 44px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	background: var( --nn-acento );
	border: 1px solid var( --nn-acento );
	color: #fff;
}

.nn-enviar:hover {
	background: var( --nn-acento-oscuro );
	border-color: var( --nn-acento-oscuro );
}

.nn-enviar[disabled],
.nn-input[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.nn-nota {
	margin: 0;
	font-size: 10.5px;
	opacity: 0.5;
}

@media ( prefers-reduced-motion: reduce ) {
	.nn-burbuja,
	.nn-ficha,
	.nn-vestido,
	.nn-wa {
		animation: none;
	}
}


/* Lanzador flotante: independiente del tema, por eso lleva todo explícito. */
.nn-silueta-flotante{
	position:fixed;right:18px;bottom:18px;z-index:99998;
	display:inline-flex;align-items:center;gap:8px;
	margin:0;padding:12px 18px;border:0;border-radius:999px;
	background:var(--nn-acento,#d73a94);color:#fff;cursor:pointer;
	font:600 15px/1.2 inherit;letter-spacing:.01em;
	box-shadow:0 6px 22px rgba(0,0,0,.18);
	transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.nn-silueta-flotante:hover{background:var(--nn-acento-oscuro,#a72671);transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.22)}
.nn-silueta-flotante:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.nn-flotante-icono{font-size:18px;line-height:1}
@media (max-width:600px){
	.nn-silueta-flotante{right:12px;bottom:12px;padding:11px 15px;font-size:14px}
	.nn-flotante-texto{display:none}
	.nn-silueta-flotante{border-radius:50%;width:52px;height:52px;justify-content:center;padding:0}
	.nn-flotante-icono{font-size:22px}
}
