﻿		.jp-body, .jp-body * { box-sizing: border-box; }

		html { background: #eef2f7; }

		body.jp-body {
			margin: 0;
			min-height: 100vh;
			background: #eef2f7;
			color: #1b2635;
			font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
			font-size: 16px;
			line-height: 1.5;
			text-align: left;
		}

		/* Encabezado institucional */
		.jp-header {
			background: #0b3a63;
			color: #fff;
			padding: 36px 20px 96px;
		}
		.jp-header-in {
			max-width: 560px;
			margin: 0 auto;
			display:flex;
			align-items:center;
			justify-content: space-evenly;
		}
		.jp-inst {
			margin: 0 0 4px;
			font-size: .95rem;
			font-weight: 400;
			color: #b9d3ea;
		}
		.jp-header h1 {
			margin: 0;
			font-size: 1.9rem;
			font-weight: 700;
			line-height: 1.2;
			letter-spacing: -.01em;
			color: #fff;
			text-align:center;
		}

		/* Tarjeta principal */
		.jp-main {
			max-width: 560px;
			margin: -64px auto 0;
			padding: 0 16px 40px;
		}
		.jp-card {
			background: #fff;
			border-radius: 14px;
			padding: 32px 28px;
			box-shadow: 0 1px 2px rgba(15, 35, 60, .08), 0 12px 32px rgba(15, 35, 60, .12);
		}
		.jp-card h2 {
			margin: 0 0 4px;
			font-size: 1.3rem;
			font-weight: 650;
			color: #0b3a63;
		}
		.jp-sub {
			margin: 0 0 24px;
			color: #5a6778;
			font-size: .95rem;
		}

		/* Campos */
		.jp-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
		.jp-label {
			display: block;
			margin: 0 0 6px;
			padding: 0;
			font-size: .9rem;
			font-weight: 600;
			color: #27364a;
		}

		/* Selector LU / DNI */
		.jp-seg {
			display: flex;
			background: #e8edf3;
			border-radius: 10px;
			padding: 4px;
		}
		.jp-seg input {
			position: absolute;
			opacity: 0;
			pointer-events: none;
		}
		.jp-seg label {
			flex: 1;
			margin: 0;
			padding: 10px 8px;
			text-align: center;
			font-size: .95rem;
			font-weight: 600;
			color: #4b5a6e;
			border-radius: 7px;
			cursor: pointer;
		}
		.jp-seg input:checked + label {
			background: #fff;
			color: #0b3a63;
			box-shadow: 0 1px 3px rgba(15, 35, 60, .2);
		}
		.jp-seg input:focus-visible + label {
			outline: 3px solid #2f80c8;
			outline-offset: 1px;
		}

		/* Inputs */
		.jp-input {
			display: block;
			width: 100%;
			height: 48px;
			margin: 0;
			padding: 0 14px;
			font-family: inherit;
			font-size: 1.05rem;
			color: #1b2635;
			background: #fff;
			border: 1.5px solid #c3cdda;
			border-radius: 10px;
			box-shadow: none;
		}
		.jp-input:focus {
			outline: none;
			border-color: #1f6fb5;
			box-shadow: 0 0 0 4px rgba(31, 111, 181, .18);
		}
		.jp-input[aria-invalid="true"] { border-color: #c0392b; }

		.jp-captcha { display: flex; gap: 12px; align-items: center; }
		.jp-captcha img {
			display: block;
			height: 48px;
			width: auto;
			border: 1.5px solid #c3cdda;
			border-radius: 10px;
			background: #fff;
		}
		.jp-captcha .jp-input {
			flex: 1;
			min-width: 0;
			text-transform: uppercase;
			letter-spacing: .12em;
		}

		.jp-help { margin: 6px 0 0; font-size: .85rem; color: #5a6778; }
		.jp-err {
			margin: 8px 0 0;
			padding: 8px 12px;
			font-size: .9rem;
			color: #9b2c20;
			background: #fdeceb;
			border-radius: 8px;
		}

		/* Botón */
		.jp-btn {
			display: block;
			width: 100%;
			height: 50px;
			margin: 8px 0 0;
			padding: 0 18px;
			font-family: inherit;
			font-size: 1.05rem;
			font-weight: 650;
			color: #fff;
			background: #0b3a63;
			border: 0;
			border-radius: 10px;
			cursor: pointer;
		}
		.jp-btn:hover { background: #0f4a7d; }
		.jp-btn:focus-visible { outline: 3px solid #2f80c8; outline-offset: 3px; }

		/* Datos de la elección */
		.jp-info {
			margin-top: 28px;
			padding-top: 22px;
			border-top: 1px solid #dde3ec;
			font-size: .95rem;
		}
		.jp-info p { margin: 0 0 2px; }
		.jp-aviso {
			display: block;
			margin-top: 14px;
			padding: 12px 14px;
			font-weight: 700;
			color: #7a4a00;
			background: #fff3dc;
			border-left: 4px solid #e39a21;
			border-radius: 6px;
		}

		/* Resultado */
		.jp-res-claustro {
			display: inline-block;
			padding: 4px 12px;
			font-size: .85rem;
			font-weight: 600;
			color: #0b3a63;
			background: #e3eefa;
			border-radius: 999px;
		}
		.jp-res-nombre {
			margin: 12px 0 20px;
			font-size: 1.6rem;
			font-weight: 700;
			line-height: 1.2;
			color: #1b2635;
		}
		.jp-datos { margin: 0 0 20px; padding: 0; }
		.jp-datos > div {
			display: flex;
			gap: 12px;
			padding: 10px 0;
			border-bottom: 1px solid #e3e8ef;
		}
		.jp-datos dt { flex: 0 0 130px; margin: 0; color: #5a6778; font-size: .92rem; }
		.jp-datos dd { margin: 0; font-weight: 600; }

		.jp-seccion { margin: 0 0 10px; font-size: .9rem; font-weight: 600; color: #5a6778; }
		.jp-dto { margin-bottom: 8px; }
		.jp-dto h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 650; color: #1b2635; }

		.jp-lugar {
			margin: 0 0 14px;
			padding: 16px 18px;
			background: #eef5fc;
			border: 1px solid #cfe0f1;
			border-radius: 12px;
		}
		.jp-lugar p { margin: 0; }
		.jp-lugar-t { margin-bottom: 6px !important; font-size: .85rem; font-weight: 600; color: #0b3a63; }
		.jp-lugar-mesa { margin-bottom: 2px !important; font-weight: 700; font-size: 1.05rem; }

		.jp-corresp {
			margin: 0 0 14px;
			padding: 12px 14px;
			font-weight: 700;
			color: #7a4a00;
			background: #fff3dc;
			border-left: 4px solid #e39a21;
			border-radius: 6px;
		}

		.jp-prog { margin: 4px 0 8px; }
		.jp-prog-txt { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .92rem; }
		.jp-prog-bar { height: 10px; background: #e3e8ef; border-radius: 999px; overflow: hidden; }
		.jp-prog-fill { height: 100%; background: #1f6fb5; border-radius: 999px; }

		.jp-btn-sec {
			margin-top: 24px;
			line-height: 50px;
			text-align: center;
			text-decoration: none;
			color: #0b3a63;
			background: #e8edf3;
		}
		.jp-btn-sec:hover { background: #dbe3ed; }

		.jp-off { text-align: center; padding: 16px 0; }
		.jp-off h2 { color: #1b2635; font-weight: 600; }

		@media (max-width: 440px) {
			.jp-header { padding: 28px 16px 88px; }
			.jp-header h1 { font-size: 1.55rem; text-align:center;}
			.jp-card { padding: 24px 18px; }
			.jp-captcha img { height: 44px; }
		}
		
		.jp-logo {
			width:6em;
		}