/* BSH Candidaturas — formulario. Usa las variables del tema BSH con valores de respaldo. */
.bsh-cand{--c-ink:var(--bsh-ink,#0E1B28);--c-navy:var(--bsh-navy,#00386C);--c-red:var(--bsh-red,#E83025);--c-line:var(--bsh-line,#D5D9DE);--c-muted:var(--bsh-steel,#56667A);--c-bg:var(--bsh-paper,#F3F2EE);font-family:var(--bsh-font-body,"IBM Plex Sans",system-ui,sans-serif);color:var(--c-ink)}
.bsh-cand *{box-sizing:border-box}
.bsh-cand__form{display:grid;gap:40px}
.bsh-cand__group{border:0;margin:0;padding:0;min-width:0}
.bsh-cand__legend{display:flex;align-items:baseline;gap:14px;width:100%;padding:0 0 14px;margin:0 0 24px;border-bottom:1px solid var(--c-line);font-family:var(--bsh-font-display,"Saira",sans-serif);font-weight:600;font-size:1.25rem;letter-spacing:.01em;color:var(--c-navy)}
.bsh-cand__legend span{font-family:var(--bsh-font-mono,"IBM Plex Mono",monospace);font-size:.75rem;font-weight:500;letter-spacing:.14em;color:var(--bsh-red-text,#C42419)}
.bsh-cand__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}
@media (max-width:640px){.bsh-cand__grid{grid-template-columns:1fr}}
.bsh-cand__field{display:flex;flex-direction:column;gap:8px;margin:0 0 22px}
.bsh-cand__grid .bsh-cand__field{margin:0}
.bsh-cand__field label{font-weight:500;font-size:.9375rem;line-height:1.4}
.bsh-cand__req{color:var(--bsh-red-text,#C42419);font-weight:600}
.bsh-cand__opt{color:var(--c-muted);font-weight:400;font-size:.875rem}
.bsh-cand input[type=text],.bsh-cand input[type=email],.bsh-cand input[type=tel],.bsh-cand select,.bsh-cand textarea{width:100%;min-height:52px;padding:13px 16px;font:inherit;font-size:1rem;color:var(--c-ink);background:#fff;border:1px solid var(--bsh-border-strong,#AEB6BF);border-radius:2px;transition:border-color .2s,box-shadow .2s;appearance:none}
.bsh-cand select{background-image:linear-gradient(45deg,transparent 50%,var(--c-navy) 50%),linear-gradient(135deg,var(--c-navy) 50%,transparent 50%);background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:44px}
.bsh-cand textarea{min-height:140px;resize:vertical;line-height:1.6}
.bsh-cand input:hover,.bsh-cand select:hover,.bsh-cand textarea:hover{border-color:var(--c-navy)}
.bsh-cand input:focus-visible,.bsh-cand select:focus-visible,.bsh-cand textarea:focus-visible{outline:none;border-color:var(--c-navy);box-shadow:0 0 0 3px color-mix(in srgb,var(--bsh-navy,#00386C) 18%,transparent)}
.bsh-cand__file input[type=file]{width:100%;padding:18px;background:#fff;border:1px dashed var(--bsh-border-check,#8C97A3);border-radius:2px;font:inherit;font-size:.9375rem;cursor:pointer}
.bsh-cand__file input[type=file]::file-selector-button{margin-right:16px;padding:10px 18px;border:0;border-radius:2px;background:var(--c-navy);color:#fff;font:inherit;font-weight:500;cursor:pointer;transition:background .2s}
.bsh-cand__file input[type=file]:hover::file-selector-button{background:var(--bsh-navy-hover,#002A52)}
.bsh-cand__file input[type=file]:focus-visible{outline:3px solid color-mix(in srgb,var(--bsh-navy,#00386C) 35%,transparent);outline-offset:2px}
.bsh-cand__help{margin:0;font-size:.875rem;color:var(--c-muted)}
.bsh-cand__files{margin:0;font-size:.875rem;color:var(--c-navy);font-family:var(--bsh-font-mono,"IBM Plex Mono",monospace)}
.bsh-cand__files:empty{display:none}
.has-error input,.has-error select,.has-error textarea{border-color:var(--bsh-error,#B3261E)!important}
.bsh-cand__error,.has-error .bsh-cand__files{margin:0;color:var(--bsh-error,#B3261E);font-size:.875rem;font-weight:500}
.bsh-cand__consent{flex-direction:row;align-items:flex-start;gap:12px}
.bsh-cand__consent input{flex:0 0 22px;width:22px;height:22px;margin:2px 0 0;accent-color:var(--c-navy)}
.bsh-cand__consent label{font-weight:400;font-size:.9375rem}
.bsh-cand__consent label a{color:var(--c-navy);text-decoration:underline;text-underline-offset:3px}
.bsh-cand__consent .bsh-cand__error{flex-basis:100%}
.bsh-cand__consent{flex-wrap:wrap}
.bsh-cand__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.bsh-cand__submit{position:relative;display:inline-flex;align-items:center;gap:14px;min-height:56px;padding:0 30px;border:0;border-radius:2px;background:var(--c-navy);color:#fff;font:inherit;font-weight:600;font-size:1rem;letter-spacing:.02em;cursor:pointer;overflow:hidden;transition:background .25s}
.bsh-cand__submit::after{content:"";width:22px;height:2px;background:currentColor;box-shadow:inset 0 0 0 1px currentColor;transition:width .3s}
.bsh-cand__submit::before{content:"";position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--c-red);transition:width .35s ease}
.bsh-cand__submit:hover::before,.bsh-cand__submit:focus-visible::before{width:100%}
.bsh-cand__submit:hover::after{width:34px}
.bsh-cand__submit:focus-visible{outline:3px solid var(--c-red);outline-offset:3px}
.bsh-cand__submit.is-loading{opacity:.7;cursor:progress}
.bsh-cand__required-note{margin:0;font-size:.875rem;color:var(--c-muted)}
.bsh-cand__required-note span{color:var(--c-red)}
.bsh-cand__privacy{padding:20px 22px;background:var(--c-bg);border-left:3px solid var(--c-navy);font-size:.8125rem;line-height:1.6;color:var(--c-muted)}
.bsh-cand__privacy p{margin:0 0 .5em;padding:0}.bsh-cand__privacy p:last-child{margin:0}
.bsh-cand__notice{padding:22px 24px;margin:0 0 32px;border-left:4px solid;outline:none}
.bsh-cand__notice p{margin:0;padding:0}
.bsh-cand__notice-title{font-weight:600;font-size:1.0625rem;margin-bottom:4px!important}
.bsh-cand__notice--ok{background:#E4F2E9;border-color:#1E7A43;color:#0F3D22}
.bsh-cand__notice--error{background:#FBE7E5;border-color:var(--bsh-error,#B3261E);color:#5C120D}
.bsh-cand__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
