.offer-editor { background: #f2efe7; color: #151617; padding-block: clamp(30px, 6vw, 80px); }
.offer-editor h1 { margin: .25em 0; font-size: clamp(38px, 7vw, 90px); letter-spacing: -.06em; line-height: 1; }
.offer-editor form { margin-top: 30px; }
.offer-editor fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 0 25px; padding: 20px; border: 1px solid #a6a095; }
.offer-editor legend { font-size: 21px; font-weight: 800; padding-inline: 8px; }
.offer-editor label { display: grid; gap: 6px; align-content: start; font-weight: 650; }
.offer-editor .wide { grid-column: 1 / -1; }
.offer-editor .check { display: flex; align-items: center; gap: 8px; }
.offer-editor :is(input:not([type="checkbox"]),select,textarea) { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #857f74; border-radius: 5px; background: #fff; color: #151617; font: inherit; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.offer-editor button { border: 1px solid #151617; border-radius: 999px; background: #ffd21f; color: #151617; min-height: 44px; padding: 8px 18px; font-weight: 800; cursor: pointer; }
.offer-editor pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media (max-width: 650px) { .offer-editor fieldset { grid-template-columns: minmax(0,1fr); } }
#job-board article { border-top: 1px solid #a6a095; padding-block: 22px; }
#job-board :is(h2,h3) { margin-block: .35em; }
#job-board dl { display: grid; grid-template-columns: minmax(115px,auto) 1fr; gap: 8px 16px; }
#job-board dd { margin: 0; }
#job-board dt { font-weight: 700; }
#job-board form .check { margin-block: 10px; }
.question .answers { display: grid; gap: 12px; }
.question .answers > div { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 10px; }

.offer-editor { background: #141617; color: #f5f2e9; }
.offer-editor .wrap { max-width: 1120px; }
.offer-editor h1, #job-board h2 { font-family: "Bricolage Grotesque", Arial, sans-serif; }
.offer-editor fieldset {
  min-inline-size: 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #4b4942;
  border-radius: 16px;
  background: #202223;
}
.offer-editor legend { color: #ffd21f; }
.offer-editor :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background: #151718;
  color: #f5f2e9;
  border-color: #68665c;
  border-radius: 9px;
  padding: 10px 13px;
  color-scheme: dark;
}
.offer-editor textarea { min-height: 330px; resize: vertical; line-height: 1.55; }
.offer-editor :is(input,select,textarea,button,a):focus-visible { outline: 2px solid #ffd21f; outline-offset: 3px; }
.offer-editor label { font-size: .95rem; }
.offer-editor button { border: 0; }
.offer-editor #save-offer, .offer-editor #add-question, .offer-editor #add-yes-no { background: #303234; color: #fff; }
#job-board article { border-color: #4b4942; }
#job-board a { color: #ffd21f; }

#offer-form { --section-accent: #ffd21f; }
#offer-form > fieldset {
  border-top: 3px solid var(--section-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--section-accent) 12%, #202223), #202223 62%);
}
#offer-form > fieldset:nth-of-type(3n + 2) { --section-accent: #75e4d3; }
#offer-form > fieldset:nth-of-type(3n + 3) { --section-accent: #c9b4ff; }
#offer-form > fieldset > legend { color: var(--section-accent); }
#job-board { scroll-margin-top: 100px; }
#job-board .job-card, .job-panel, .job-detail-head {
  padding: clamp(18px, 3vw, 34px);
  margin-block: 16px;
  border-radius: 16px;
  border: 1px solid #3b4349;
  background: #1e2328;
}
#job-board .job-card { border-left: 4px solid #75e4d3; }
#job-board .job-card:nth-of-type(even) { border-left-color: #ffd21f; }
#job-board .job-card h3 a { color: #fff; font-size: clamp(22px,3vw,34px); }
.job-company { display: flex; align-items: center; gap: 10px; color: #75e4d3; font-weight: 750; }
.job-company img { width: 36px; height: 36px; object-fit: contain; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 9px; }
.job-tags span { padding: 4px 10px; border-radius: 999px; background: #2d3b42; color: #e0f9f5; font-size: .875rem; }
#job-board .job-action { display: inline-flex; margin-top: 12px; padding: 10px 17px; border-radius: 999px; background: #ffd21f; color: #151617; font-weight: 800; }
.job-detail-head { background: linear-gradient(130deg,#243e48,#1e2328 72%); }
.job-detail-head .job-company { margin-top: 18px; }
.job-detail-head h2 { font-size: clamp(30px,5vw,72px); line-height: 1.02; }
.job-detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.job-detail-layout .job-panel { margin-block: 0; }
#job-board .job-panel dl { display: block; }
#job-board .job-panel dd { margin-bottom: 12px; }
#inscripcion { scroll-margin-top: 100px; }
#job-board input[type=file]::file-selector-button { padding: 8px 12px; color: #141617; background: #75e4d3; border: 0; border-radius: 6px; margin-right: 10px; }
@media (max-width: 720px) { .job-detail-layout { grid-template-columns: minmax(0,1fr); } }

.offer-editor-light, .offer-editor:has(.recruitment) { background: #f4f2ec; color: #181a1c; }
.offer-editor-light #offer-form > fieldset {
  background: #fff;
  border: 1px solid #dedad0;
  border-top: 3px solid #f1c31b;
}
.offer-editor-light #offer-form > fieldset > legend { color: #181a1c; }
.offer-editor-light .question { background: #faf8f0; border-color: #dedad0; }
.offer-editor-light .question legend { color: #181a1c; }
.offer-editor-light :is(input:not([type="checkbox"]),select,textarea), .recruitment :is(input,select) {
  background: #fff;
  color: #181a1c;
  border-color: #aca99e;
  color-scheme: light;
}
.recruitment .recruitment-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
#job-board.recruitment a { color: #604900; text-decoration: underline; text-underline-offset: 3px; }
.recruitment .recruitment-controls button { background: #fff; border: 1px solid #b9b5ab; }
.recruitment .recruitment-controls button[aria-pressed=true] { background: #ffd21f; border-color: #181a1c; }
.recruitment-table { overflow-x: auto; }
.recruitment table { width: 100%; border-collapse: collapse; background: white; text-align: left; font-size: .9rem; }
.recruitment :is(th,td) { border-bottom: 1px solid #e4e0d7; vertical-align: top; padding: 12px; }
.recruitment th { background: #eae6dc; }
.recruitment td:first-child { min-width: 180px; }

.offer-editor-light {
  isolation: isolate;
  position: relative;
  overflow: clip;
  background: #0b0c0d;
  color: #f8f5ec;
}
.offer-editor-light::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(330px, 45vw, 620px);
  background:
    radial-gradient(ellipse at 88% 5%, #ffc62970 0%, #98701442 29%, transparent 63%),
    radial-gradient(ellipse at 45% 0%, #d3941524, transparent 66%);
}
.offer-editor-light > .wrap { position: relative; }
.offer-editor-light > .wrap > h1 {
  margin-block: .35em .24em;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 850;
}
.offer-editor-light > .wrap > p { max-width: 47ch; }
.offer-editor-light #offer-form > fieldset { box-shadow: 0 12px 34px #262c2010; }
.offer-title-mark { position: relative; display: inline-block; }
.offer-title-mark svg {
  position: absolute;
  left: 0;
  bottom: -.15em;
  width: 100%;
  height: .25em;
  pointer-events: none;
}
.offer-title-mark path, .offer-side-mark path {
  fill: none;
  stroke: #ffd21f;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-side-mark {
  position: absolute;
  right: clamp(12px, 4vw, 60px);
  top: 70px;
  width: clamp(65px, 10vw, 132px);
  filter: drop-shadow(0 1px 2px #69420b65);
  pointer-events: none;
}
.offer-side-mark path { stroke: #fff; }
@media (max-width: 980px) { .offer-side-mark { display: none; } }


.offer-editor-light > .wrap > a, .offer-editor-light #offer-preview a { color: #ffdf68; }
.offer-editor-light #offer-form > fieldset { color: #181a1c; }
.offer-margin-mark {
  position: absolute;
  z-index: -1;
  top: 740px;
  left: max(-86px, calc((100% - 1450px) / 2));
  width: 155px;
  fill: none;
  stroke: #ffd21f;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.offer-margin-mark-right {
  top: 1240px;
  left: auto;
  right: max(-86px, calc((100% - 1450px) / 2));
  stroke: #fff;
}
@media (max-width: 1200px) { .offer-margin-mark { display: none; } }

.offer-editor-light #offer-form > fieldset > legend {
  max-inline-size: 100%;
  padding: 0;
  overflow: visible;
  line-height: 1.25;
}
.offer-section-title {
  display: block;
  padding: 6px 12px;
  border-radius: 7px;
  background: #fff;
  color: #181a1c;
  overflow-wrap: anywhere;
}

.offer-form-doodle {
  display: flex;
  justify-content: flex-end;
  height: 62px;
  margin: -10px 0 8px;
  padding-inline: clamp(10px, 6vw, 70px);
  color: #ffd21f;
  pointer-events: none;
}
.offer-form-doodle-1 { justify-content: flex-start; color: #fff; }
.offer-form-doodle-2 { color: #fff; }
.offer-form-doodle svg { width: clamp(90px, 12vw, 165px); height: 100%; }
.offer-form-doodle path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
