/* Oficina de Empleo — misma identidad que el inicio */
.oe-page,
.oe-page *,
.oe-page *::before,
.oe-page *::after {
  box-sizing: border-box;
}

body.oe-page {
  background: #eaf2ff;
  color: #16325c;
  font-family: "Maven Pro", "Montserrat", sans-serif;
  justify-content: flex-start;
  align-items: stretch;
}

.oe-page main {
  width: 100%;
  flex: 1 0 auto;
}

.oe-page section {
  overflow: visible;
}

.oe-page p {
  margin: 0;
}

.oe-page a {
  color: inherit;
  text-decoration: none;
}

.oe-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oe-page strong {
  color: inherit;
  font-weight: 800;
}

.oe-page button,
.oe-page input,
.oe-page select,
.oe-page textarea {
  font-family: inherit;
}

.oe-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Hero fotográfico */
.oe-hero {
  position: relative;
  width: min(1120px, calc(100% - 28px));
  margin: 10px auto 0;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0b2a5c center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(11, 42, 92, 0.16);
}

.oe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 42, 0.18) 0%, rgba(6, 18, 42, 0.82) 72%),
    linear-gradient(90deg, rgba(6, 18, 42, 0.62), transparent 74%);
}

.oe-hero__inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 36px 36px 28px;
}

.oe-kicker,
.oe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oe-hero .oe-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.oe-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  font-family: "Montserrat", "Maven Pro", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.oe-page .oe-lead {
  max-width: 48ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  line-height: 1.55;
}

.oe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 26px;
}

.oe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.oe-page a.oe-btn--solid,
.oe-page button.oe-btn--solid,
.oe-btn--solid {
  background: #fff;
  color: #0b2a5c;
  box-shadow: 0 10px 24px rgba(6, 18, 42, 0.2);
}

.oe-page a.oe-btn--ghost,
.oe-page button.oe-btn--ghost,
.oe-btn--ghost {
  background: rgba(6, 18, 42, 0.28);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.oe-btn:hover {
  transform: translateY(-2px);
}

.oe-btn:focus-visible,
.oe-chip:focus-visible,
.btn-apply:focus-visible {
  outline: 3px solid #7bbcff;
  outline-offset: 3px;
}

.turnero-btn-oculto {
  display: none !important;
}

.oe-page .oe-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.oe-stats li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.oe-stats strong {
  display: block;
  color: #fff;
  font-family: "Montserrat", "Maven Pro", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.oe-stats span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

/* Títulos de sección, igual que el inicio */
.oe-band {
  padding: 48px 0 12px;
}

.oe-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 22px;
}

.oe-eyebrow {
  color: #185fa5;
  background: #e6f1fb;
}

.oe-title {
  margin: 0 0 8px;
  font-family: "Montserrat", "Maven Pro", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background-image: linear-gradient(90deg, #0b2a5c 0%, #1f6fe0 48%, #6bccf9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.oe-page .oe-sub {
  max-width: 46ch;
  color: #4a5670;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Programas */
.oe-programs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.oe-program {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(11, 42, 92, 0.08);
  box-shadow: 0 10px 28px rgba(11, 42, 92, 0.08);
  color: #0b2a5c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oe-program img {
  width: 100%;
  aspect-ratio: 2.3 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #e7f1ff;
}

.oe-program span {
  padding: 12px 12px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.3;
}

.oe-program:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 42, 92, 0.16);
}

/* Vacantes */
.oe-sheet {
  width: 100%;
  margin-top: 36px;
  padding: 42px 0 48px;
  background: #fff;
}

.oe-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}

.oe-chip {
  border: 1px solid #d5e0ef;
  background: #fff;
  color: #16325c;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.oe-chip.is-active {
  background: #0b2a5c;
  border-color: #0b2a5c;
  color: #fff;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  background: #f7faff;
  border: 1px solid rgba(11, 42, 92, 0.08);
}

.job-card[hidden] {
  display: none !important;
}

.job-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card h3 {
  margin: 0;
  color: #0b2a5c;
  font-size: 1.25rem;
  line-height: 1.25;
}

.oe-page .job-card__desc {
  color: #3e4e66;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oe-page .job-card__req {
  color: #3e4e66;
  font-size: 0.95rem;
  line-height: 1.45;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status.abierta {
  background: rgba(14, 137, 112, 0.12);
  color: #0e8970;
}

.status.cerrada {
  background: rgba(185, 51, 51, 0.12);
  color: #b93333;
}

.tag {
  background: #e6f1fb;
  color: #185fa5;
}

.tag--new {
  background: #fff4e4;
  color: #9a5b00;
}

.job-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.job-meta li {
  color: #16325c;
  font-size: 0.95rem;
  line-height: 1.35;
}

.job-meta span {
  display: block;
  margin-bottom: 2px;
  color: #7b8ba3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-apply {
  margin-top: auto;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #0b2a5c 0%, #1f6fe0 100%);
  box-shadow: 0 10px 24px rgba(31, 111, 224, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-apply:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 111, 224, 0.34);
}

.btn-apply:disabled {
  background: #d5deea;
  color: #5d6c7c;
  box-shadow: none;
  cursor: not-allowed;
}

.empty-state,
.oe-filter-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  border-radius: 24px;
  background: #eaf2ff;
  color: #0b2a5c;
  font-weight: 700;
}

.oe-filter-empty[hidden] {
  display: none;
}

/* Ayuda */
.oe-help-wrap {
  padding: 42px 0 56px;
}

.oe-help {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.oe-note {
  padding: 28px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0b2a5c 0%, #1f6fe0 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(11, 42, 92, 0.16);
}

.oe-note h2 {
  margin: 0 0 10px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  font-size: 1.45rem;
}

.oe-page .oe-note p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.oe-note p + p {
  margin-top: 12px;
}

.oe-faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 42, 92, 0.08);
  box-shadow: 0 8px 22px rgba(11, 42, 92, 0.05);
}

.faq-item h3 {
  margin: 0 0 6px;
  color: #0b2a5c;
  font-size: 1.02rem;
}

.oe-page .faq-item p {
  color: #3e4e66;
  line-height: 1.5;
}

/* Fichas de postulación y turno: hoja de mesa de entrada */
.apply-panel,
.turnero-panel {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(22, 18, 12, 0.62);
  overflow: hidden;
}

.apply-panel.open,
.turnero-panel.open {
  display: flex;
}

.apply-card,
.turnero-card {
  position: relative;
  width: min(860px, 96vw);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0 0 8px;
  border-radius: 2px;
  background: #f7f3ea;
  border: 1px solid #d9d0c0;
  box-shadow: 8px 14px 0 rgba(22, 18, 12, 0.18);
}

.apply-card h3,
.turnero-card h3 {
  margin: 0;
  padding: 18px 52px 16px 22px;
  background: #241c14;
  color: #f7f3ea;
  -webkit-text-fill-color: #f7f3ea;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.turnero-card > p,
.turnero-note {
  margin: 0;
  padding: 14px 22px 0;
  background: #f7f3ea;
  color: #5e564b;
  font-size: 0.95rem;
}

.apply-card form,
.turnero-card form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  width: 100%;
  margin: 0;
  padding: 18px 22px 14px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.apply-card label,
.turnero-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: #6a6156;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apply-card input,
.apply-card textarea,
.turnero-card input,
.turnero-card select {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 8px 0 7px;
  border: none;
  border-bottom: 1.5px solid #2b241c;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #241c14;
  background: transparent;
}

.apply-card textarea {
  resize: vertical;
  min-height: 72px;
  height: auto;
}

.apply-card input[type="file"] {
  padding: 10px;
  border: 1px dashed #8d8376;
  background: #fffdf8;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.apply-card input:focus,
.apply-card textarea:focus,
.turnero-card input:focus,
.turnero-card select:focus {
  outline: none;
  border-bottom-color: #8a5a2b;
  box-shadow: none;
}

.apply-card input[type="file"]:focus {
  border-color: #8a5a2b;
}

.apply-card .full-row,
.turnero-card .full-row {
  grid-column: 1 / -1;
}

.apply-card .span-2,
.turnero-card .span-2 {
  grid-column: span 2;
}

.apply-card .close-btn,
.turnero-card .close-btn-turnero {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(247, 243, 234, 0.35);
  border-radius: 0;
  background: transparent;
  color: #f7f3ea;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.apply-card .close-btn:hover,
.turnero-card .close-btn-turnero:hover {
  background: #f7f3ea;
  color: #241c14;
}

.apply-card .btn-primary,
.turnero-btn-confirm {
  justify-self: start;
  width: auto;
  margin-top: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: 0;
  background: #241c14;
  color: #f7f3ea;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
}

.apply-card .btn-primary:hover,
.turnero-btn-confirm:hover {
  background: #3d3226;
}

.status-message,
.turnero-status {
  padding: 2px 0 2px 12px;
  border-radius: 0;
  border-left: 3px solid #241c14;
  background: transparent;
  color: #3f382f;
  font-size: 0.92rem;
}

.turnero-status:empty {
  display: none;
}

.status-message.error,
.turnero-status.error {
  background: transparent;
  border-left-color: #8d2f24;
  color: #8d2f24;
}

.status-message.success,
.turnero-status.success {
  background: transparent;
  border-left-color: #2f5d45;
  color: #2f5d45;
}

.apply-success-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 32px;
  border-radius: 0;
  background: #f7f3ea;
  text-align: left;
}

.apply-success-overlay.visible {
  display: flex;
}

.apply-success-overlay .success-icon-wrap {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #241c14;
  border-radius: 0;
  background: none;
  color: #241c14;
  font-size: 1.4rem;
  box-shadow: none;
}

.apply-success-overlay .success-title {
  margin: 0 0 8px;
  color: #241c14;
  -webkit-text-fill-color: #241c14;
  font-size: 1.45rem;
}

.apply-success-overlay .success-text {
  max-width: 36ch;
  color: #5e564b;
}

.turnero-label-horario {
  display: block;
  margin-bottom: 8px;
  color: #6a6156;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turnero-horarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.turnero-horarios button {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid #241c14;
  background: transparent;
  color: #241c14;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.turnero-horarios button:hover:not(:disabled) {
  background: #efe8db;
}

.turnero-horarios button.selected {
  border-color: #241c14;
  background: #241c14;
  color: #f7f3ea;
}

.turnero-horarios button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.turnero-msg-dia-invalido {
  display: block;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  color: #8a5a2b;
  font-weight: 700;
}

.turnero-success-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 8px 22px 16px;
  padding: 8px 0 4px;
  border: none;
  border-top: 2px solid #241c14;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.turnero-success-msg[hidden] {
  display: none !important;
}

.turnero-success-icon {
  margin-bottom: 6px;
  color: #241c14;
  font-size: 1.3rem;
}

.turnero-success-title {
  margin: 0 0 6px;
  color: #241c14;
}

.turnero-success-text {
  margin: 0;
  color: #5e564b;
}

#scrollToTopBtn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b2a5c, #1f6fe0);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 12px 28px rgba(11, 42, 92, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

#scrollToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scrollToTopBtn:hover {
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .oe-programs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oe-help {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .oe-hero {
    min-height: 0;
    border-radius: 22px;
  }

  .oe-hero__inner {
    padding: 72px 20px 22px;
  }

  .oe-actions,
  .oe-stats {
    grid-template-columns: 1fr;
  }

  .oe-actions {
    display: grid;
    gap: 12px;
  }

  .oe-page .oe-stats {
    margin-top: 28px;
  }

  .oe-btn {
    width: 100%;
  }

  .jobs-grid,
  .job-meta {
    grid-template-columns: 1fr;
  }

  .apply-card form,
  .turnero-card form,
  .apply-card .span-2,
  .turnero-card .span-2 {
    grid-template-columns: 1fr;
  }

  .apply-card .span-2,
  .turnero-card .span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .oe-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .apply-card,
  .turnero-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    box-shadow: 4px 8px 0 rgba(22, 18, 12, 0.18);
  }

  .apply-card form,
  .turnero-card form {
    grid-template-columns: 1fr;
    padding: 16px 16px 12px;
  }

  .apply-card h3,
  .turnero-card h3,
  .turnero-note {
    padding-left: 16px;
    padding-right: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oe-btn,
  .oe-program,
  .btn-apply,
  #scrollToTopBtn {
    transition: none;
  }
}
