/* Trabaja con nosotros: recruiting page for teachers. */
.cbp-job {
  --j-navy: #161B4D;
  --j-blue: #28328F;
  --j-red: #AD2424;
  --j-sky: #CFE6F8;
  --j-ink: #161616;
  --j-muted: #5b6070;
  --j-line: #dfe1e8;
  --j-soft: #f5f7fb;
  font-family: "Geologica", sans-serif;
  color: var(--j-ink);
  width: 100%;
}
.cbp-job *, .cbp-job *::before, .cbp-job *::after { box-sizing: border-box; }
.cbp-job__wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cbp-job__section { padding: 88px 0; }
.cbp-job__section--soft { background: var(--j-soft); }
.cbp-job__eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--j-sky); color: var(--j-blue); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.cbp-job h2 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 600; color: var(--j-navy); text-wrap: balance; }
.cbp-job h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--j-navy); }
.cbp-job p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--j-muted); text-wrap: pretty; }
.cbp-job__lead { font-size: 18px !important; }
.cbp-job__head { max-width: 720px; margin-bottom: 44px; }

/* Intro */
.cbp-job__intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.cbp-job__photo { position: relative; }
.cbp-job__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.cbp-job__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 18px; background: var(--j-sky); z-index: -1;
}
.cbp-job__photo { z-index: 0; }
.cbp-job__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cbp-job__stat { padding: 16px; border: 1.5px solid var(--j-line); border-radius: 14px; background: #fff; }
.cbp-job__stat strong { display: block; font-size: 20px; line-height: 1.2; color: var(--j-navy); }
.cbp-job__stat span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--j-muted); }
.cbp-job__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-top: 28px; padding: 0 24px; border-radius: 10px;
  background: var(--j-navy); color: #fff !important; font: 600 15px/1 "Geologica", sans-serif; text-decoration: none;
  border: 1.5px solid var(--j-navy); cursor: pointer; transition: background-color .15s, border-color .15s;
}
.cbp-job__btn:hover { background: var(--j-blue); border-color: var(--j-blue); }
.cbp-job__btn svg { width: 16px; height: 16px; }

/* Benefit cards */
.cbp-job__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cbp-job__card { padding: 26px 22px; border-radius: 16px; background: #fff; border: 1.5px solid var(--j-line); }
.cbp-job__card p { font-size: 15px; margin: 0; }
.cbp-job__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px;
  background: var(--j-navy); color: #fff;
}
.cbp-job__icon svg { width: 22px; height: 22px; }

/* Profiles */
.cbp-job__profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cbp-job__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cbp-job__chips li { padding: 10px 16px; border-radius: 999px; background: var(--j-soft); border: 1.5px solid var(--j-line); font-size: 15px; font-weight: 500; color: var(--j-navy); }
.cbp-job__checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.cbp-job__checks li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--j-ink); }
.cbp-job__checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--j-sky);
}
.cbp-job__checks li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border: 2px solid var(--j-blue); border-top: 0; border-right: 0; transform: rotate(-45deg);
}

/* Application */
.cbp-job__apply { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.cbp-job__steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; counter-reset: step; }
.cbp-job__steps li { position: relative; padding-left: 52px; counter-increment: step; }
.cbp-job__steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--j-navy); color: #fff; font-weight: 600; font-size: 15px;
}
.cbp-job__steps strong { display: block; font-size: 16px; color: var(--j-navy); margin-bottom: 2px; }
.cbp-job__steps span { font-size: 15px; color: var(--j-muted); line-height: 1.5; }
.cbp-job__note { margin-top: 28px !important; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1.5px solid var(--j-line); font-size: 14.5px !important; }

.cbp-job__form { padding: 36px; border-radius: 18px; background: #fff; border: 1.5px solid var(--j-line); box-shadow: 0 20px 40px -24px rgba(22, 27, 77, .25); }
.cbp-job__form h3 { font-size: 22px; margin-bottom: 4px; }
.cbp-job__form > p { font-size: 15px; margin-bottom: 26px; }
.cbp-job__legend { grid-column: 1 / -1; margin: 10px 0 -4px; padding-top: 18px; border-top: 1px solid var(--j-line); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--j-blue); }
.cbp-job__legend:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cbp-job__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cbp-job__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cbp-job__field--full { grid-column: 1 / -1; }
.cbp-job__field > label, .cbp-job__field > .cbp-job__label { font-size: 14px; font-weight: 600; color: var(--j-ink); margin: 0; }
.cbp-job__req { color: var(--j-red); }
.cbp-job__hint { font-size: 12.5px; color: var(--j-muted); font-weight: 400; }
.cbp-job .cbp-job__field input[type=text],
.cbp-job .cbp-job__field input[type=email],
.cbp-job .cbp-job__field input[type=tel],
.cbp-job .cbp-job__field select,
.cbp-job .cbp-job__field textarea {
  width: 100%; margin: 0; padding: 0 14px; height: 48px; font: inherit; font-size: 16px; color: var(--j-ink);
  background: #fff; border: 1.5px solid var(--j-line); border-radius: 10px; box-shadow: none; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cbp-job .cbp-job__field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b6070' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.cbp-job .cbp-job__field textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.cbp-job .cbp-job__field :is(input, select, textarea):focus { border-color: var(--j-blue); box-shadow: 0 0 0 3px rgba(40, 50, 143, .15); }
.cbp-job .cbp-job__field [aria-invalid="true"] { border-color: var(--j-red) !important; }

.cbp-job__options { display: flex; flex-wrap: wrap; gap: 10px; }
.cbp-job__option { position: relative; margin: 0; cursor: pointer; }
.cbp-job__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cbp-job__option span {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--j-line); font-size: 15px; font-weight: 500; transition: all .15s; user-select: none;
}
.cbp-job__option span::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #b9bdd0; background: #fff center / 10px no-repeat;
}
.cbp-job__option:hover span { background: var(--j-soft); }
.cbp-job__option input:checked + span { border-color: var(--j-blue); background: #eef1fb; color: var(--j-navy); box-shadow: 0 0 0 1px var(--j-blue) inset; }
.cbp-job__option input:checked + span::before {
  border-color: var(--j-blue); background-color: var(--j-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E");
}
.cbp-job__option input:focus-visible + span { outline: 2px solid var(--j-blue); outline-offset: 2px; }

/* File drop */
.cbp-job__file { position: relative; }
.cbp-job__file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cbp-job__drop {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #b9bdd0; border-radius: 12px;
  background: var(--j-soft); transition: border-color .15s, background-color .15s;
}
.cbp-job__file:hover .cbp-job__drop, .cbp-job__file.is-drag .cbp-job__drop { border-color: var(--j-blue); background: #eef1fb; }
.cbp-job__file input:focus-visible + .cbp-job__drop { outline: 2px solid var(--j-blue); outline-offset: 2px; }
.cbp-job__file.is-filled .cbp-job__drop { border-style: solid; border-color: var(--j-blue); background: #eef1fb; }
.cbp-job__file.is-invalid .cbp-job__drop { border-color: var(--j-red); }
.cbp-job__drop-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--j-blue); border: 1px solid var(--j-line); }
.cbp-job__drop-icon svg { width: 20px; height: 20px; }
.cbp-job__drop-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; color: var(--j-navy); }
.cbp-job__drop-text small { font-size: 13px; font-weight: 400; color: var(--j-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cbp-job__consent { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.5; color: var(--j-muted); cursor: pointer; }
.cbp-job__consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--j-blue); }

.cbp-job__error { margin: 18px 0 0 !important; font-size: 14px !important; font-weight: 500; color: var(--j-red) !important; }
.cbp-job__error:empty { display: none; }
.cbp-job__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.cbp-job__submit .cbp-job__btn { margin: 0; }
.cbp-job__submit .cbp-job__btn[disabled] { opacity: .6; cursor: progress; }
.cbp-job__submit small { font-size: 13px; color: var(--j-muted); }

.cbp-job__done { text-align: center; padding: 48px 32px; }
.cbp-job__done[hidden], .cbp-job__form [hidden] { display: none !important; }
.cbp-job__done-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: #e7f6ea; color: #1f7a35; font-size: 28px; }
.cbp-job__done p { max-width: 460px; margin: 0 auto 8px; }

@media (max-width: 1024px) {
  .cbp-job__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbp-job__intro, .cbp-job__apply { grid-template-columns: 1fr; gap: 48px; }
  .cbp-job__photo { max-width: 640px; }
}
@media (max-width: 767px) {
  .cbp-job__wrap { padding: 0 16px; }
  .cbp-job__section { padding: 56px 0; }
  .cbp-job__profiles { grid-template-columns: 1fr; gap: 36px; }
  .cbp-job__cards { grid-template-columns: 1fr; }
  .cbp-job__stats { grid-template-columns: 1fr; }
  .cbp-job__photo::before { inset: 12px -10px -12px 10px; }
  .cbp-job__form { padding: 22px 18px; }
  .cbp-job__grid { grid-template-columns: minmax(0, 1fr); }
  .cbp-job__submit .cbp-job__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cbp-job * { transition: none !important; } }

/* The theme styles every <button> and <label>; these win over it. */
.cbp-job button.cbp-job__btn,
.cbp-job button.cbp-job__btn:focus { background: var(--j-navy); color: #fff; border: 1.5px solid var(--j-navy); padding: 0 24px; height: 48px; font: 600 15px/1 "Geologica", sans-serif; letter-spacing: 0; text-transform: none; border-radius: 10px; }
.cbp-job button.cbp-job__btn:hover { background: var(--j-blue); border-color: var(--j-blue); color: #fff; }
.cbp-job .cbp-job__consent, .cbp-job .cbp-job__consent span { font-weight: 400; }
.cbp-job .cbp-job__field textarea::placeholder { color: #9a9eae; }

/* Form-only layout. */
.cbp-job__apply--solo { grid-template-columns: minmax(0, 820px); justify-content: center; }
