/* TMP Resume Builder — estilos (usa los colores de la marca si existen). */
.tmprb{--rb-azul:var(--tmp-navy,#0b2545);--rb-azul2:var(--tmp-navy2,#071a33);--rb-oro:var(--tmp-yellow,#c9a227);--rb-borde:#d5dce6;--rb-suave:#f3f5f9;--rb-texto:#1c2b40;--rb-gris:#4d5869;
	box-sizing:border-box;width:100%;max-width:1240px!important;margin-top:1.5rem!important;margin-bottom:2rem!important;color:var(--rb-texto);font-size:16px;line-height:1.45}
.tmprb *,.tmprb *::before,.tmprb *::after{box-sizing:border-box}
.tmprb [hidden]{display:none!important}
.tmprb button{font:inherit;cursor:pointer}
.tmprb input,.tmprb select,.tmprb textarea{font:inherit;font-size:16px;color:var(--rb-texto);background:#fff;border:1px solid #b9c3d1;border-radius:8px;padding:10px 12px;width:100%;min-height:46px}
.tmprb textarea{min-height:96px;resize:vertical;line-height:1.45}
.tmprb input:focus-visible,.tmprb select:focus-visible,.tmprb textarea:focus-visible,.tmprb button:focus-visible{outline:3px solid var(--rb-oro);outline-offset:2px}
.tmprb label{display:block;font-weight:600;font-size:15px;margin:0 0 5px}
.tmprb .tmprb-check{display:flex;align-items:center;gap:8px;font-weight:500;margin:6px 0 10px}
.tmprb .tmprb-check input{width:20px;height:20px;min-height:0;margin:0;flex:0 0 auto}
.tmprb-opc,.tmprb-req{font-weight:400;color:var(--rb-gris);font-size:13px}
.tmprb-ayuda{font-size:14px;color:var(--rb-gris);margin:4px 0 10px}
.tmprb-aviso-js{background:#fff3cd;border:1px solid #e0c46c;padding:14px;border-radius:8px}

/* Barra superior */
.tmprb-barra{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;background:var(--rb-azul);color:#fff;border-radius:12px 12px 0 0;padding:12px 16px}
.tmprb-barra-et{font-weight:600;font-size:14px;color:#d5dce6;margin:0}
.tmprb-idioma,.tmprb-barra-der{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tmprb-barra select{width:auto;min-height:40px;padding:6px 10px}
.tmprb-chip-idioma{border:1px solid rgba(255,255,255,.55);background:transparent;color:#fff;border-radius:999px;padding:7px 16px;font-weight:700;min-height:40px}
.tmprb-chip-idioma[aria-pressed="true"]{background:var(--rb-oro);border-color:var(--rb-oro);color:var(--rb-azul2)}
.tmprb-barra .tmprb-btn-sec{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.tmprb-privacidad{margin:0;background:#eef6ef;border:1px solid #c6e1cb;border-top:0;padding:12px 16px;font-size:14px;color:#24412b}

/* Botones */
.tmprb-btn-pri,.tmprb-btn-descargar{border:0;border-radius:8px;padding:12px 20px;min-height:48px;font-weight:800}
.tmprb-btn-pri{background:var(--rb-azul);color:#fff}
.tmprb-btn-descargar{background:var(--rb-oro);color:var(--rb-azul2);font-size:17px;box-shadow:0 4px 12px rgba(11,37,69,.15)}
.tmprb-btn-descargar:hover{filter:brightness(1.05)}
.tmprb-btn-sec{background:#fff;color:var(--rb-azul);border:1px solid var(--rb-azul);border-radius:8px;padding:9px 14px;min-height:44px;font-weight:600}
.tmprb-btn-anadir{width:100%;background:var(--rb-suave);border:2px dashed #9fb0c6;color:var(--rb-azul);border-radius:10px;padding:12px;font-weight:700;min-height:48px;margin-top:6px}
.tmprb-mini{background:#fff;border:1px solid var(--rb-borde);border-radius:6px;padding:4px 10px;min-height:36px;min-width:36px;font-weight:700;color:var(--rb-azul)}
.tmprb-quitar{color:#a11d2b;border-color:#e8b9bf}
.tmprb-btn-pri:disabled,.tmprb-btn-sec:disabled{opacity:.45;cursor:default}

/* Distribución */
.tmprb-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;border:1px solid var(--rb-borde);border-top:0;border-radius:0 0 12px 12px;padding:20px;background:#fff}
.tmprb-col-prev{position:sticky;top:16px;align-self:start;background:#e9edf3;border-radius:10px;padding:12px;max-height:calc(100vh - 32px);display:flex;flex-direction:column}
.tmprb-prev-barra{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-size:15px}
.tmprb-paginas{color:var(--rb-gris);font-size:13px}
.tmprb-hojas{overflow:auto;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;gap:14px;padding:2px}
.tmprb-prev-pie{padding-top:12px;text-align:center}
.tmprb-prev-pie .tmprb-btn-descargar{width:100%}
.tmprb-nota-plantilla{font-size:12px;color:var(--rb-gris);margin:8px 0 0}
.tmprb-solo-movil{display:none}
.tmprb-movil-barra{display:none}

/* Hoja (vista previa) */
.tmprb-hoja{background:#fff;box-shadow:0 2px 10px rgba(11,37,69,.18);flex:0 0 auto;overflow:hidden;position:relative}
.tmprb-hoja-in{position:absolute;left:0;top:0;width:612pt;height:792pt;transform-origin:0 0;color:#000}
.tmprb-hoja-in span{position:absolute;white-space:pre;line-height:1;color:#000}
.tmprb-hoja-in .tmprb-raya{position:absolute;display:block;height:0;border-top:solid #000}
.tmprb-vacio .tmprb-hojas::before{content:"Tu resume aparecerá aquí mientras escribes. Puedes empezar con el botón «Cargar un ejemplo».";display:block;text-align:center;color:var(--rb-gris);font-size:14px;padding:8px}

/* Pasos */
.tmprb-progreso{height:6px;background:var(--rb-suave);border-radius:6px;overflow:hidden;margin-bottom:10px}
.tmprb-progreso span{display:block;height:100%;width:14%;background:var(--rb-oro);transition:width .25s}
.tmprb-pasos{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.tmprb-pasos button{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--rb-borde);border-radius:999px;padding:5px 10px 5px 5px;font-size:13px;color:var(--rb-gris);min-height:36px}
.tmprb-num{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--rb-suave);font-weight:800;font-size:12px;color:var(--rb-azul)}
.tmprb-pasos button.tmprb-hecho .tmprb-num{background:#d8e8dc;color:#1f6b3a}
.tmprb-pasos button[aria-current="step"]{border-color:var(--rb-azul);color:var(--rb-azul);font-weight:700}
.tmprb-pasos button[aria-current="step"] .tmprb-num{background:var(--rb-azul);color:#fff}
.tmprb-paso-actual{font-size:13px;color:var(--rb-gris);margin:0 0 6px}
.tmprb-paso h3{font-size:21px;margin:6px 0 14px;color:var(--rb-azul)}
.tmprb-paso h3:focus{outline:none}
.tmprb-campo{margin-bottom:14px;flex:1 1 220px;min-width:0}
.tmprb-corto{flex:0 0 120px}
.tmprb-fila{display:flex;flex-wrap:wrap;gap:0 14px;align-items:flex-end}
.tmprb-fila-anadir>button{margin-bottom:14px}
.tmprb-fecha{border:0;padding:0;margin:0 0 14px;flex:1 1 220px;display:flex;gap:8px;flex-wrap:wrap}
.tmprb-fecha legend{font-weight:600;font-size:15px;margin-bottom:5px;padding:0;width:100%}
.tmprb-fecha select{flex:1 1 90px;width:auto}
.tmprb-nav{display:flex;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--rb-borde)}
.tmprb-nav .tmprb-btn-pri{margin-left:auto}

/* Bloques repetibles */
.tmprb-item{border:1px solid var(--rb-borde);border-radius:10px;padding:14px;margin-bottom:12px;background:#fbfcfd}
.tmprb-item-corto{padding:10px 12px 0}
.tmprb-item-corto .tmprb-fila{align-items:flex-end}
.tmprb-item-corto .tmprb-quitar{margin-bottom:14px}
.tmprb-item-cab{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.tmprb-item-acc{display:flex;gap:6px}

/* Versión en inglés (solo si el resume va en inglés) */
.tmprb-en,.tmprb-en-solo{display:none}
.tmprb-modo-en .tmprb-en{display:block;margin-top:8px;padding-left:10px;border-left:3px solid var(--rb-oro)}
.tmprb-modo-en .tmprb-en-solo{display:block}
.tmprb-bandera{display:inline-block;font-size:11px;font-weight:800;background:var(--rb-azul);color:#fff;border-radius:4px;padding:1px 5px;margin-right:4px;vertical-align:1px}
.tmprb-en label{font-weight:500;font-size:14px;color:var(--rb-gris)}

/* Sugerencias y habilidades */
.tmprb-sugerencias{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.tmprb-sug-tit{font-size:14px;font-weight:700;margin:6px 0 2px;color:var(--rb-azul);width:100%}
.tmprb-sug{text-align:left;background:#fffdf4;border:1px solid #e6d9a6;border-radius:8px;padding:8px 12px;font-size:14px;line-height:1.4;color:var(--rb-texto);min-height:40px}
.tmprb-sug:hover{border-color:var(--rb-oro)}
#tmprb-sug-hab,.tmprb-sug-resp{flex-direction:row;flex-wrap:wrap}
.tmprb-sug-chip{border-radius:999px;padding:6px 12px}
.tmprb-sug-chip[aria-pressed="true"]{background:#e7efe9;border-color:#9cc8a8}
.tmprb-elegidas{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 12px}
.tmprb-elegida{background:var(--rb-azul);color:#fff;border:0;border-radius:999px;padding:6px 12px;font-size:14px;min-height:36px}
.tmprb-grupo{border:1px solid var(--rb-borde);border-radius:10px;padding:12px 14px;margin:0 0 14px}
.tmprb-grupo legend{font-weight:800;color:var(--rb-azul);padding:0 6px}
.tmprb-certs{display:grid;gap:4px 14px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin-bottom:10px}
.tmprb-cert input[type="text"]{min-height:38px;padding:6px 10px;font-size:15px;margin-bottom:6px}

/* Paso 7 */
.tmprb-revision{border-radius:10px;padding:12px 14px;margin-bottom:14px;background:var(--rb-suave)}
.tmprb-rev-tit{margin:0;font-weight:700}
.tmprb-rev-ok{color:#1f6b3a}.tmprb-rev-aviso{color:#8a5a00}
.tmprb-revision ul{margin:6px 0 0;padding-left:20px;font-size:15px}
.tmprb-descarga-caja{display:flex;flex-direction:column;gap:10px}
.tmprb-descarga-caja .tmprb-btn-descargar{font-size:18px;padding:16px}

.tmprb-oculto{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tmprb-estado-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}

/* Tableta y móvil */
@media (max-width:1023px){
	.tmprb-layout{grid-template-columns:1fr;padding:14px}
	.tmprb-col-prev{display:none;position:static;max-height:none}
	.tmprb-ver-prev .tmprb-col-prev{display:flex}
	.tmprb-ver-prev .tmprb-col-form{display:none}
	.tmprb-solo-movil{display:inline-flex;align-items:center;justify-content:center}
	.tmprb-paso-nombre{display:none}
	.tmprb-pasos button{padding:4px}
	.tmprb-pasos button[aria-current="step"] .tmprb-paso-nombre{display:inline;padding-right:6px}
	.tmprb-movil-barra{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid var(--rb-borde);padding:8px 12px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 14px rgba(11,37,69,.12)}
	.tmprb-movil-barra button{flex:1}
	.tmprb{margin-bottom:84px}
	.tmprb-ver-prev .tmprb-movil-barra [data-ver]{display:none}
}
@media (max-width:600px){
	.tmprb-barra{border-radius:10px 10px 0 0;padding:10px 12px}
	.tmprb-barra-der{width:100%}
	.tmprb-barra-der select{flex:1 1 100%;min-width:0;max-width:100%}
	.tmprb-chip-idioma{padding:6px 14px;min-height:38px}
	.tmprb-idioma .tmprb-barra-et{width:100%}
	.tmprb-barra-der .tmprb-barra-et{display:none}
	.tmprb-barra-der .tmprb-btn-sec{flex:1 1 40%}
	.tmprb-item-cab{flex-wrap:wrap}
	.tmprb-corto{flex:1 1 120px}
}
@media (prefers-reduced-motion:reduce){.tmprb-progreso span{transition:none}}
@media print{.tmprb{display:none}}
