/* NME · Hoja para tu médico o farmacéutico (lote 55) · solo pantalla (media="screen"). La impresión va en impresion.css. */
body.nme-hoja-pagina { background: #F3F6F8; }
.nme-hoja {
	--h-azul: #224E66; --h-turq: #5EACB5; --h-turq-t: #287580; --h-tinta: #10212B; --h-tinta2: #4D6372;
	--h-fil: #D3DEE5; --h-filf: #7C95A4;
	max-width: 920px; margin-inline: auto !important; color: var(--h-tinta); line-height: 1.55;
	font-family: var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif);
}
.nme-hoja [hidden] { display: none !important; }
.nme-hoja p, .nme-hoja figure { margin: 0; }
.nme-hoja h2, .nme-hoja h3, .nme-hoja h4 {
	margin: 0; color: var(--h-azul); line-height: 1.25; letter-spacing: 0;
	font-family: var(--wp--preset--font-family--poppins, Poppins, system-ui, sans-serif);
}
.nme-hoja a { color: var(--h-azul); text-underline-offset: 3px; }
.nme-hoja :focus-visible { outline: 3px solid var(--h-azul); outline-offset: 2px; border-radius: 2px; }
.nme-hoja__entradilla { font-size: 1.125rem; color: var(--h-tinta2); max-width: 64ch; }
.nme-hoja__pack {
	margin-top: 20px !important; padding: 12px 16px; background: #fff; border: 1px solid var(--h-fil);
	border-left: 4px solid var(--h-turq); border-radius: 6px;
}
.nme-hoja__pack-enlace { font-weight: 600; white-space: nowrap; }

/* Pasos numerados */
.nme-hoja__paso { margin-top: 48px; }
.nme-hoja .nme-hoja__paso-tit, .nme-hoja .nme-hoja__faq-tit {
	display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 1.375rem; font-weight: 600;
}
.nme-hoja__num {
	display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border: 1.5px solid var(--h-azul);
	border-radius: 50%; font-size: 1rem; font-weight: 600;
}

/* 1 · Elige */
.nme-hoja__campo { border: 0; margin: 0; padding: 0; min-width: 0; }
.nme-hoja__leyenda { padding: 0; margin-bottom: 12px; font-weight: 600; }
.nme-hoja .nme-hoja__opciones {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.nme-hoja .nme-hoja__opcion {
	display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "chk etq" ". ficha"; align-items: center;
	column-gap: 12px; margin: 0; padding: 12px 16px; background: #fff; border: 1px solid var(--h-fil); border-radius: 10px;
}
.nme-hoja__opcion:has(:checked) { border-color: var(--h-azul); box-shadow: inset 0 0 0 1px var(--h-azul); }
.nme-hoja__check { grid-area: chk; width: 22px; height: 22px; margin: 0; accent-color: var(--h-azul); cursor: pointer; }
.nme-hoja__etq { grid-area: etq; display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 600; cursor: pointer; }
.nme-hoja__silueta { flex: none; width: 40px; height: 50px; color: var(--h-azul); }
.nme-hoja__silueta-etq { stroke: var(--h-turq); }
.nme-hoja__ficha { grid-area: ficha; justify-self: start; margin-left: 52px; padding: 2px 0; font-size: .875rem; }
.nme-hoja__boton {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
	border: 2px solid var(--h-azul); border-radius: 6px; background: var(--h-azul); color: #fff !important;
	font: 600 1rem/1.2 var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif); text-decoration: none; cursor: pointer;
}
.nme-hoja__boton:hover { background: #183a4d; border-color: #183a4d; }
.nme-hoja__boton--2 { background: #fff; color: var(--h-azul) !important; }
.nme-hoja__boton--2:hover { background: #eef4f7; border-color: var(--h-azul); }
.nme-hoja__form .nme-hoja__boton { margin-top: 20px; }

/* 2 · Revisa: la hoja en «papel» */
.nme-hoja__aviso, .nme-hoja__vacio {
	margin-bottom: 16px !important; padding: 12px 16px; background: #fff; border: 1px solid var(--h-fil); border-radius: 6px;
}
.nme-hoja__papel {
	background: #fff; border: 1px solid var(--h-fil); border-radius: 4px; font-size: .9375rem;
	padding: clamp(20px, 5vw, 52px) clamp(16px, 5vw, 52px);
	box-shadow: 0 1px 2px rgba(16, 33, 43, .06), 0 16px 40px -20px rgba(16, 33, 43, .25);
}
.nme-hoja__cab { display: flex; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--h-azul); }
.nme-hoja__logo { flex: none; width: 96px; height: auto; }
.nme-hoja__logo-txt { font: 600 1.5rem/1 var(--wp--preset--font-family--poppins, Poppins, sans-serif); color: var(--h-azul); }
.nme-hoja .nme-hoja__titulo { font-size: 1.25rem; font-weight: 600; }
.nme-hoja__subtitulo { margin-top: 2px !important; font-size: .875rem; color: var(--h-tinta2); }
.nme-hoja__producto {
	display: grid; grid-template-columns: minmax(0, 1fr) 270px; grid-template-areas: "izq der" "textos textos" "pie pie";
	gap: 14px 32px; padding: 24px 0; border-bottom: 1px solid var(--h-turq);
}
.nme-hoja__prod-izq { grid-area: izq; min-width: 0; }
.nme-hoja__prod-der { grid-area: der; min-width: 0; }
.nme-hoja .nme-hoja__prod-nombre { font-size: 1.125rem; font-weight: 600; }
.nme-hoja__denominacion { margin-top: 2px !important; }
.nme-hoja__presentacion { font-size: .875rem; color: var(--h-tinta2); }
.nme-hoja__qr { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; margin-bottom: 16px !important; text-align: right; }
.nme-hoja__qr-svg { display: block; flex: none; width: 96px; height: 96px; }
.nme-hoja__qr figcaption { flex: 1 1 auto; min-width: 0; font-size: .8125rem; line-height: 1.35; color: var(--h-tinta2); overflow-wrap: anywhere; }
.nme-hoja__qr-dom, .nme-hoja__qr-ruta { display: block; }
.nme-hoja__prod-tabla { margin-top: 16px; }
.nme-hoja .nme-hoja__tabla {
	display: table; width: 100%; max-width: 100%; margin: 0; overflow: visible; border-collapse: collapse; font-size: .875rem;
}
.nme-hoja__tabla caption {
	caption-side: top; padding-bottom: 6px; text-align: left; font-size: .8125rem; font-weight: 600; color: var(--h-azul);
}
.nme-hoja .nme-hoja__tabla th, .nme-hoja .nme-hoja__tabla td {
	padding: 5px 8px; border: 0; border-bottom: 1px solid var(--h-fil); background: none; text-align: left;
	vertical-align: top; font-weight: 400;
}
.nme-hoja .nme-hoja__tabla thead th { font-size: .8125rem; font-weight: 600; color: var(--h-azul); border-bottom: 1.5px solid var(--h-azul); }
.nme-hoja .nme-hoja__tabla tbody th { font-weight: 500; }
.nme-hoja .nme-hoja__tabla td { text-align: right; }
.nme-hoja .nme-hoja__sangria th { padding-left: 22px; font-weight: 400; }
.nme-hoja__nota { margin-top: 6px !important; font-size: .8125rem; color: var(--h-tinta2); }
.nme-hoja__uso { font-size: .9375rem; }
.nme-hoja__uso p + p, .nme-hoja__textos p + p { margin-top: 8px; }
.nme-hoja__textos { grid-area: textos; font-size: .875rem; }
.nme-hoja__rot { font-weight: 600; color: var(--h-azul); }
.nme-hoja__alergeno { font-weight: 700; }
.nme-hoja__prod-pie { grid-area: pie; font-size: .8125rem; color: var(--h-tinta2); }
.nme-hoja__lote { margin: 8px 0 !important; }
.nme-hoja__raya { display: inline-block; width: 9em; height: 1.2em; margin: 0 16px 0 6px; border-bottom: 1px solid var(--h-filf); vertical-align: bottom; }
.nme-hoja__suma { padding: 20px 0; border-bottom: 1px solid var(--h-turq); }
.nme-hoja .nme-hoja__suma-tit { padding-bottom: 8px; font: 600 1rem/1.3 var(--wp--preset--font-family--poppins, Poppins, system-ui, sans-serif); color: var(--h-azul); text-align: left; }
.nme-hoja .nme-hoja__suma td { text-align: left; }
.nme-hoja__mano { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 24px; padding-top: 24px; }
.nme-hoja__recuadro { padding: 12px 16px 8px; border: 1px solid var(--h-filf); border-radius: 6px; }
.nme-hoja .nme-hoja__recuadro-tit { font: 600 .9375rem/1.3 var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif); }
.nme-hoja__linea { display: block; height: 30px; border-bottom: 1px solid var(--h-fil); }
.nme-hoja__firma { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 8px; }
.nme-hoja__firma .nme-hoja__raya { flex: 1 1 auto; width: auto; margin: 0 16px 0 0; }
.nme-hoja__firma .nme-hoja__raya--corta { flex: 0 0 8em; margin-right: 0; }
.nme-hoja__pie { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--h-turq); font-size: .8125rem; color: var(--h-tinta2); }
.nme-hoja__firma-nme { font-weight: 600; color: var(--h-azul); white-space: nowrap; }

/* 3 y 4 */
.nme-hoja__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.nme-hoja__sinjs, .nme-hoja__enlace, .nme-hoja__estado:not(:empty) { margin-top: 14px !important; }
.nme-hoja__enlace a { overflow-wrap: anywhere; }
.nme-hoja__estado { font-weight: 600; color: var(--h-turq-t); }
.nme-hoja__nota-mano { max-width: 64ch; }
.nme-hoja__faq { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--h-fil); }
.nme-hoja .nme-hoja__faq-p { margin-top: 20px; font-size: 1.0625rem; font-weight: 600; }
.nme-hoja__faq-r { margin-top: 4px !important; max-width: 70ch; }
.nme-hoja__volver { margin-bottom: 16px !important; font-weight: 600; }

/* Pantallas estrechas */
@media (max-width: 760px) {
	.nme-hoja__producto { grid-template-columns: minmax(0, 1fr); grid-template-areas: "izq" "der" "textos" "pie"; gap: 16px; }
	.nme-hoja__qr { flex-direction: row; text-align: left; }
	.nme-hoja__mano { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.nme-hoja__cab { gap: 12px; }
	.nme-hoja__logo { width: 72px; }
	.nme-hoja .nme-hoja__tabla th, .nme-hoja .nme-hoja__tabla td { padding: 5px 4px; }
	.nme-hoja .nme-hoja__sangria th { padding-left: 12px; }
}

/* «Enséñala en el móvil»: una columna, letra grande, sin recuadros */
body.nme-hoja-pagina--movil .nme-pagina__imagen, body.nme-hoja-pagina--movil .wp-block-post-featured-image { display: none; }
.nme-hoja--movil .nme-hoja__papel { padding: 0; border: 0; background: none; box-shadow: none; font-size: 1.125rem; }
.nme-hoja--movil .nme-hoja__producto { grid-template-columns: minmax(0, 1fr); grid-template-areas: "izq" "der" "textos" "pie"; }
.nme-hoja--movil .nme-hoja__prod-der { display: flex; flex-direction: column; }
.nme-hoja--movil .nme-hoja__qr { order: 2; margin: 16px 0 0 !important; flex-direction: row; text-align: left; }
.nme-hoja--movil .nme-hoja__qr-svg { width: 132px; height: 132px; }
.nme-hoja--movil .nme-hoja__tabla, .nme-hoja--movil .nme-hoja__textos, .nme-hoja--movil .nme-hoja__uso { font-size: 1.0625rem; }
.nme-hoja--movil .nme-hoja__prod-pie { font-size: .9375rem; }
