/* ─── Sección Vacantes ─── */
#vacantesSection.vacantes-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.vacantes-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.vacantes-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.vacantes-logo picture,
.vacantes-logo__img {
  display: block;
  width: clamp(160px, 28vw, 240px);
  max-width: min(240px, 72vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(255, 92, 240, 0.5));
}

.vacantes-form-panel {
  width: 100%;
  max-width: 520px;
  padding: 1.75rem 1.5rem 1.85rem;
  border-radius: 22px;
  background: linear-gradient(
    155deg,
    rgba(200, 0, 200, 0.38) 0%,
    rgba(255, 92, 240, 0.28) 55%,
    rgba(255, 154, 235, 0.22) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 32px rgba(200, 0, 200, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#vacantesForm {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  text-align: left;
}

.vacantes-form-title,
#vacantesForm .vacantes-form-title {
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(120, 0, 120, 0.35);
}

.vacantes-required-note {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 228, 248, 0.95);
}

.vacantes-required-note span {
  color: #fbcfe8;
  font-weight: 800;
}

.vacantes-label-required::after {
  content: " *";
  color: #f9a8d4;
  font-weight: 800;
}

.vacantes-php-hint {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #fff;
  background: rgba(234, 88, 12, 0.35);
  border: 1px solid rgba(255, 200, 100, 0.45);
}

.vacantes-php-hint code {
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.vacantes-discord-badge {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.vacantes-discord-badge.is-linked {
  display: flex;
}

.vacantes-discord-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  font-size: 0.75rem;
}

.vacantes-discord-change {
  border: none;
  background: transparent;
  color: #fce7f3;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.vacantes-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vacantes-field label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.vacantes-field--habbo { --field-accent: #f9a8d4; --field-glow: rgba(249, 168, 212, 0.35); }
.vacantes-field--dept { --field-accent: #ff5cf0; --field-glow: rgba(255, 92, 240, 0.4); }
.vacantes-field--tz { --field-accent: #f9a8d4; --field-glow: rgba(249, 168, 212, 0.35); }
.vacantes-field--schedule { --field-accent: #f9a8d4; --field-glow: rgba(249, 168, 212, 0.35); }
.vacantes-field--experience { --field-accent: #f9a8d4; --field-glow: rgba(249, 168, 212, 0.35); }

.vacantes-field-hint {
  margin: 0.2rem 0 0;
  padding-left: 0.25rem;
  font-size: 0.72rem;
  color: rgba(255, 228, 248, 0.85);
  line-height: 1.35;
}

.vacantes-input-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 240, 252, 0.96) 0%, rgba(255, 214, 245, 0.92) 100%);
  border: 2px solid rgba(255, 192, 235, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(200, 0, 160, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vacantes-input-shell:focus-within {
  border-color: var(--field-accent, #ff9aeb);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 228, 248, 0.98) 100%);
  box-shadow:
    0 0 0 3px var(--field-glow, rgba(255, 92, 240, 0.28)),
    0 8px 20px rgba(255, 92, 240, 0.2);
}

.vacantes-input-shell--area {
  align-items: flex-start;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.vacantes-input-shell--single {
  align-items: center;
  min-height: 52px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.vacantes-field--habbo .vacantes-input-shell,
.vacantes-field--tz .vacantes-input-shell,
.vacantes-field--schedule .vacantes-input-shell,
.vacantes-field--experience .vacantes-input-shell {
  border: 2px solid rgba(255, 192, 235, 0.95);
  background: linear-gradient(180deg, rgba(255, 240, 252, 0.96) 0%, rgba(255, 214, 245, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(200, 0, 160, 0.12);
}

.vacantes-field--habbo .vacantes-input-shell:focus-within,
.vacantes-field--tz .vacantes-input-shell:focus-within,
.vacantes-field--schedule .vacantes-input-shell:focus-within,
.vacantes-field--experience .vacantes-input-shell:focus-within {
  border-color: #f9a8d4;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 228, 248, 0.98) 100%);
  box-shadow:
    0 0 0 3px rgba(249, 168, 212, 0.35),
    0 8px 20px rgba(255, 92, 240, 0.2);
}

.vacantes-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  background: linear-gradient(145deg, var(--field-accent, #ff5cf0), rgba(0, 0, 0, 0.15));
  box-shadow: 0 4px 12px var(--field-glow, rgba(255, 92, 240, 0.25));
}

.vacantes-input-icon--top {
  margin-top: 0.15rem;
}

.vacantes-input-shell input,
.vacantes-input-shell textarea,
.vacantes-input-shell select {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.25rem;
  border: none;
  background: transparent;
  color: #831843;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: none;
}

/* Sin flecha de desplegable en campos de texto */
.vacantes-field--tz .vacantes-input-shell input {
  padding-right: 0.25rem;
  cursor: text;
}

.vacantes-field--tz .vacantes-input-shell::after {
  display: none;
}

.vacantes-input-shell input::placeholder,
.vacantes-input-shell textarea::placeholder {
  color: rgba(131, 24, 67, 0.45);
  font-weight: 400;
}

.vacantes-input-shell input:focus,
.vacantes-input-shell textarea:focus,
.vacantes-input-shell select:focus {
  outline: none;
}

.vacantes-input-shell input.is-habbo-valid {
  color: #166534;
}

.vacantes-input-shell input.is-habbo-invalid {
  color: #991b1b;
}

.vacantes-input-shell textarea {
  min-height: 100px;
  resize: vertical;
}

/* Select personalizado (departamento) */
.vacantes-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vacantes-custom-select {
  position: relative;
}

.vacantes-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(200, 0, 200, 0.45), rgba(255, 92, 240, 0.35));
  border: 2px solid rgba(255, 154, 235, 0.5);
  box-shadow: 0 6px 18px rgba(200, 0, 200, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.vacantes-select-trigger:hover {
  border-color: #ff9aeb;
  box-shadow: 0 8px 24px rgba(255, 92, 240, 0.4);
}

.vacantes-custom-select.is-open .vacantes-select-trigger {
  border-color: #ff5cf0;
  box-shadow: 0 0 0 3px rgba(255, 92, 240, 0.35);
}

.vacantes-select-trigger-text {
  flex: 1;
}

.vacantes-select-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.vacantes-custom-select.is-open .vacantes-select-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.vacantes-select-menu {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 14px;
  background: linear-gradient(165deg, #4a044e 0%, #701a75 50%, #86198f 100%);
  border: 2px solid rgba(255, 154, 235, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.vacantes-select-menu:not([hidden]) {
  display: block;
}

.vacantes-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  color: #fce7f3;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vacantes-select-option:hover,
.vacantes-select-option.is-focused {
  background: linear-gradient(90deg, rgba(255, 92, 240, 0.55), rgba(255, 154, 235, 0.4));
  transform: translateX(4px);
}

.vacantes-select-option.is-selected {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 154, 235, 0.6);
}

.vacantes-option-emoji {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.vacantes-option-emoji--dual {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

.vacantes-option-emoji--dual span {
  display: inline-block;
  line-height: 1;
}

.vacantes-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}

.vacantes-option-text strong {
  font-size: 0.95rem;
  color: #fff;
}

.vacantes-option-text small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.vacantes-submit {
  margin-top: 0.35rem;
  padding: 13px 18px;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #c800c8 0%, #ff5cf0 50%, #ff9aeb 100%);
  box-shadow: 0 6px 22px rgba(255, 92, 240, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.vacantes-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 92, 240, 0.55);
}

.vacantes-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 520px) {
  .vacantes-form-panel {
    padding: 1.35rem 1.1rem 1.5rem;
  }
}
